:root {
  --ink: #142135;
  --muted: #667387;
  --panel: rgba(255, 255, 255, 0.95);
  --line: rgba(20, 33, 53, 0.14);
  --shadow: 0 18px 48px rgba(13, 27, 42, 0.18);
  --blue: #2478ff;
  --green: #21c57a;
  --red: #ff595e;
  --logo-navy: #edf6ff;
}

/* Today Memory v325: clearer photo, no white chips, stronger location/story panel. */
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-card {
  overflow: hidden !important;
  border: 1px solid rgba(7, 80, 80, 0.16) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.84), transparent 34%),
    radial-gradient(circle at 92% 92%, rgba(10, 93, 105, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(250, 255, 250, 0.95) 0%, rgba(235, 250, 244, 0.9) 48%, rgba(8, 65, 70, 0.18) 100%) !important;
  box-shadow:
    0 24px 60px rgba(7, 55, 62, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.68) inset !important;
}

html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .home-kicker,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-date-pill,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .memory-day-slide-count {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .home-kicker {
  min-height: auto !important;
  padding: 0 !important;
  color: rgba(7, 66, 74, 0.78) !important;
}

html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-date-pill {
  min-height: auto !important;
  padding: 0 !important;
  color: rgba(16, 79, 87, 0.58) !important;
  font-size: clamp(0.82rem, 1.25vw, 0.94rem) !important;
}

html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo.has-photo-slideshow {
  position: relative !important;
  display: block !important;
  width: min(100%, 700px) !important;
  height: clamp(230px, 34vw, 320px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(225, 255, 247, 0.72) !important;
  border-radius: 26px !important;
  background: linear-gradient(135deg, #0b4a58, #14946f) !important;
  box-shadow:
    0 20px 44px rgba(6, 47, 56, 0.2),
    0 0 0 7px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo::after {
  z-index: 2 !important;
  background:
    linear-gradient(180deg, rgba(2, 24, 30, 0) 58%, rgba(2, 24, 30, 0.18) 100%) !important;
}

html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo img,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo-frame {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: saturate(1.08) contrast(1.03) brightness(1.04) !important;
}

html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-copy {
  width: min(100%, 650px) !important;
  max-width: 650px !important;
  margin-top: 0 !important;
  padding: clamp(14px, 2.2vw, 18px) !important;
  border: 1px solid rgba(194, 255, 237, 0.18) !important;
  border-radius: 23px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(117, 232, 189, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(5, 52, 62, 0.94), rgba(8, 92, 75, 0.88)) !important;
  box-shadow:
    0 16px 34px rgba(5, 42, 50, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
}

html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-copy small {
  color: rgba(219, 255, 244, 0.84) !important;
  font-size: clamp(0.86rem, 1.35vw, 0.98rem) !important;
  font-weight: 900 !important;
}

html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-copy p {
  color: rgba(250, 255, 252, 0.94) !important;
  font-size: clamp(0.96rem, 1.75vw, 1.08rem) !important;
  line-height: 1.45 !important;
}

@media (max-width: 720px) {
  html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo,
  html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo.has-photo-slideshow {
    height: clamp(190px, 57vw, 250px) !important;
    border-radius: 21px !important;
  }

  html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-copy {
    border-radius: 20px !important;
    padding: 13px !important;
  }
}

html body.map-engine-unavailable .map-stage.map-focus #map::before {
  content: "Explore is reconnecting to the map…";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: min(82vw, 320px);
  padding: 16px 18px;
  border: 1px solid rgba(18, 97, 111, 0.16);
  border-radius: 20px;
  color: #073f52;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  background: rgba(250, 255, 252, 0.94);
  box-shadow: 0 18px 38px rgba(18, 72, 82, 0.12);
  transform: translate(-50%, -50%);
}

/* Mobile v541: one deliberate phone layout across Home, Explore, Memory Lane,
   the memory editor, and account controls. */
@media (max-width: 720px) {
  html body .app-shell,
  html body main.app-shell,
  html body .app-shell .map-stage,
  html body main.app-shell section.map-stage {
    height: 100dvh !important;
    min-height: 100dvh !important;
  }

  html body .app-shell .topbar,
  html body main.app-shell .topbar {
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-height: calc(env(safe-area-inset-top) + 64px) !important;
    padding: calc(env(safe-area-inset-top) + 9px) 10px 7px !important;
    z-index: 1300 !important;
  }

  html body .app-shell .topbar .brand,
  html body main.app-shell .topbar .brand {
    width: auto !important;
    max-width: 152px !important;
    padding: 7px 11px !important;
  }

  html body .app-shell .topbar .brand h1,
  html body main.app-shell .topbar .brand h1 {
    font-size: clamp(1.22rem, 6vw, 1.48rem) !important;
  }

  html body .app-shell .map-stage.home-focus,
  html body main.app-shell section.map-stage.home-focus {
    display: block !important;
    padding: calc(env(safe-area-inset-top) + 78px) 0 calc(var(--bottom-nav-height, 78px) + env(safe-area-inset-bottom) + 34px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    scroll-padding-bottom: calc(var(--bottom-nav-height, 78px) + 32px) !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy,
  html body main.app-shell section.map-stage.home-focus .hero-copy {
    width: calc(100vw - 24px) !important;
    margin: 0 auto 22px !important;
    padding: 0 !important;
    gap: 10px !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy h2,
  html body main.app-shell section.map-stage.home-focus .hero-copy h2 {
    margin: 0 auto !important;
    font-size: clamp(1.55rem, 7vw, 1.95rem) !important;
    line-height: 1.08 !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard,
  html body main.app-shell section.map-stage.home-focus .home-dashboard {
    display: grid !important;
    width: calc(100vw - 24px) !important;
    margin: 0 auto !important;
    padding: 0 0 18px !important;
    gap: 26px !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard > .home-section,
  html body main.app-shell section.map-stage.home-focus .home-dashboard > .home-section,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay,
  html body .app-shell .map-stage.home-focus #homeOnThisDay,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay,
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body main.app-shell section.map-stage.home-focus #homeJourney,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-section,
  html body main.app-shell section.map-stage.home-focus .home-action-section {
    padding: 0 !important;
    overflow: visible !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions,
  html body main.app-shell section.map-stage.home-focus .home-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card,
  html body main.app-shell section.map-stage.home-focus .home-action-card {
    display: grid !important;
    grid-template-rows: 30px auto !important;
    place-items: center !important;
    min-width: 0 !important;
    min-height: 82px !important;
    padding: 11px 6px !important;
    gap: 6px !important;
    border-radius: 22px !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card strong,
  html body main.app-shell section.map-stage.home-focus .home-action-card strong {
    font-size: clamp(0.68rem, 3.1vw, 0.82rem) !important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }

  html body .app-shell .map-stage.map-focus,
  html body main.app-shell section.map-stage.map-focus {
    position: relative !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html body .app-shell .map-stage.map-focus #map,
  html body main.app-shell section.map-stage.map-focus #map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100dvh !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget,
  html body main.app-shell section.map-stage.map-focus .map-navigation-gadget {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: calc(var(--bottom-nav-height, 78px) + env(safe-area-inset-bottom) + 20px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, 42px) !important;
    grid-template-rows: repeat(2, 42px) !important;
    width: 92px !important;
    height: 92px !important;
    gap: 1px !important;
    padding: 3px !important;
    overflow: hidden !important;
    border: 1px solid rgba(213, 248, 240, 0.34) !important;
    border-radius: 22px !important;
    background: rgba(5, 46, 59, 0.9) !important;
    box-sizing: border-box !important;
    box-sizing: border-box !important;
    box-sizing: border-box !important;
    box-shadow: 0 14px 34px rgba(4, 31, 42, 0.24) !important;
    backdrop-filter: blur(18px) saturate(1.12) !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget > *,
  html body main.app-shell section.map-stage.map-focus .map-navigation-gadget > * {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 13px !important;
    color: #f4fffb !important;
    background: rgba(255, 255, 255, 0.075) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    box-sizing: border-box !important;
    box-sizing: border-box !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget #locateButton {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget #mapZoomInButton {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget #mapZoomOutButton {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  html body .app-shell .map-stage.map-focus .map-empty-state,
  html body main.app-shell section.map-stage.map-focus .map-empty-state {
    position: absolute !important;
    right: 118px !important;
    bottom: calc(var(--bottom-nav-height, 78px) + env(safe-area-inset-bottom) + 20px) !important;
    left: 14px !important;
    z-index: 620 !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    width: auto !important;
    min-height: 92px !important;
    padding: 12px !important;
    gap: 2px 10px !important;
    border-radius: 22px !important;
    text-align: left !important;
    overflow: hidden !important;
  }

  html body .app-shell .map-stage.map-focus .map-empty-state[hidden],
  html body main.app-shell section.map-stage.map-focus .map-empty-state[hidden] {
    display: none !important;
  }

  html body .app-shell .map-stage.map-focus .map-empty-state img,
  html body main.app-shell section.map-stage.map-focus .map-empty-state img {
    grid-row: 1 / span 2 !important;
    width: 48px !important;
    height: 64px !important;
    object-fit: contain !important;
  }

  html body .app-shell .map-stage.map-focus .map-empty-state strong,
  html body main.app-shell section.map-stage.map-focus .map-empty-state strong {
    align-self: end !important;
    font-size: 0.86rem !important;
    line-height: 1.1 !important;
  }

  html body .app-shell .map-stage.map-focus .map-empty-state span,
  html body main.app-shell section.map-stage.map-focus .map-empty-state span {
    align-self: start !important;
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
  }

  html body .app-shell .map-stage.map-focus .you-are-here-message,
  html body main.app-shell section.map-stage.map-focus .you-are-here-message {
    top: calc(env(safe-area-inset-top) + 76px) !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
  }

  html body .app-shell .map-stage.memories-focus,
  html body main.app-shell section.map-stage.memories-focus {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  html body .app-shell .map-stage.memories-focus .memory-database-page.side-panel,
  html body main.app-shell section.map-stage.memories-focus .memory-database-page.side-panel,
  html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: calc(env(safe-area-inset-top) + 78px) 12px calc(var(--bottom-nav-height, 78px) + env(safe-area-inset-bottom) + 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    scroll-padding-bottom: 24px !important;
  }

  html body .app-shell .account-menu,
  html body main.app-shell .account-menu,
  html body .app-shell .account-menu.open,
  html body main.app-shell .account-menu.open {
    top: auto !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(var(--bottom-nav-height, 78px) + env(safe-area-inset-bottom) + 12px) !important;
    left: auto !important;
    width: min(350px, calc(100vw - 24px)) !important;
    max-width: min(350px, calc(100vw - 24px)) !important;
    max-height: min(68dvh, 560px) !important;
    padding-bottom: 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    border-radius: 26px !important;
  }

  html body .app-shell .memory-editor,
  html body main.app-shell .memory-editor {
    inset: calc(env(safe-area-inset-top) + 10px) 8px calc(var(--bottom-nav-height, 78px) + env(safe-area-inset-bottom) + 8px) 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 26px !important;
  }

  html body .app-shell .bottom-nav,
  html body main.app-shell .bottom-nav {
    right: 10px !important;
    bottom: calc(env(safe-area-inset-bottom) + 8px) !important;
    left: 10px !important;
    z-index: 1250 !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 56px minmax(0, 1fr) minmax(0, 1fr) !important;
    width: auto !important;
    height: 78px !important;
    min-height: 78px !important;
    padding: 8px !important;
    gap: 3px !important;
  }

  html body .app-shell .bottom-nav-item,
  html body main.app-shell .bottom-nav-item {
    min-width: 0 !important;
    min-height: 50px !important;
    padding: 7px 2px !important;
    font-size: 0.6rem !important;
    line-height: 1.05 !important;
  }

  html body .app-shell .add-memory-button,
  html body main.app-shell .add-memory-button {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    transform: translateY(-7px) !important;
  }
}

/* Home v496: Life Chapters as premium swipeable storybook covers. */
html body .app-shell .map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeJourney {
  --chapter-card-width: clamp(292px, 31vw, 366px);
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-shelf,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-shelf {
  position: relative !important;
  margin-top: clamp(12px, 1.8vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
  grid-auto-columns: var(--chapter-card-width) !important;
  gap: clamp(16px, 2.2vw, 22px) !important;
  align-items: stretch !important;
  padding: 7px max(18px, calc((100vw - min(1040px, 92vw)) / 2)) 22px !important;
  scroll-padding-inline: max(18px, calc((100vw - min(1040px, 92vw)) / 2)) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 12px !important;
  padding: 10px !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--chapter-accent, #18a978) 22%, rgba(255, 255, 255, 0.76)) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 18% 4%, color-mix(in srgb, var(--chapter-accent, #18a978) 18%, transparent), transparent 38%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), color-mix(in srgb, var(--chapter-accent, #18a978) 6%, #f7fffb) 62%, rgba(239, 250, 248, 0.94)) !important;
  box-shadow:
    0 22px 50px rgba(7, 70, 78, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card:hover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card:hover {
  box-shadow:
    0 26px 58px rgba(7, 70, 78, 0.15),
    0 0 0 5px color-mix(in srgb, var(--chapter-accent, #18a978) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  position: relative !important;
  aspect-ratio: 1.22 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 20% 8%, color-mix(in srgb, var(--chapter-accent, #18a978) 24%, rgba(255,255,255,.22)), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--chapter-accent, #18a978) 24%, #07546a), #eafaf5) !important;
  box-shadow:
    0 15px 34px rgba(7, 70, 78, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.025) !important;
  transition: transform 3600ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card:hover .life-chapter-cover img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card:hover .life-chapter-cover img {
  transform: scale(1.065) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover::after {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  content: "" !important;
  background:
    linear-gradient(180deg, rgba(2, 30, 42, 0.1) 0%, transparent 35%, rgba(2, 30, 42, 0.74) 100%),
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.2), transparent 42%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption {
  position: absolute !important;
  right: 16px !important;
  bottom: 15px !important;
  left: 16px !important;
  z-index: 3 !important;
  display: grid !important;
  gap: 5px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption span {
  width: fit-content !important;
  padding: 5px 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(2, 28, 40, 0.3) !important;
  backdrop-filter: blur(10px) saturate(1.1) !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption strong {
  display: -webkit-box !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #ffffff !important;
  font-size: clamp(1.32rem, 2.4vw, 1.72rem) !important;
  font-weight: 980 !important;
  line-height: 1.03 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38) !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption small {
  display: block !important;
  overflow: hidden !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.76rem !important;
  font-weight: 780 !important;
  line-height: 1.22 !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36) !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-count-badge {
  top: 12px !important;
  right: 12px !important;
  z-index: 4 !important;
  min-width: 0 !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(3, 36, 48, 0.52) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,.22) !important;
  backdrop-filter: blur(13px) saturate(1.15) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  display: grid !important;
  gap: 10px !important;
  padding: 0 3px 4px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy > strong,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-kicker,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy > strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-kicker {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(7, 70, 78, 0.065) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(242, 252, 247, 0.46)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 5%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta span,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta span {
  color: #073542 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta small {
  flex: 0 1 auto !important;
  color: rgba(7, 50, 63, 0.54) !important;
  font-size: 0.68rem !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important;
  gap: 7px !important;
  min-height: 46px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-more {
  height: 46px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--chapter-accent, #18a978) 12%, rgba(255,255,255,.78)) !important;
  box-shadow: 0 7px 14px rgba(7, 70, 78, 0.07), inset 0 1px 0 rgba(255,255,255,.56) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-more {
  display: grid !important;
  min-width: 42px !important;
  place-items: center !important;
  color: color-mix(in srgb, var(--chapter-accent, #18a978) 72%, #063542) !important;
  font-size: 0.76rem !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
  min-height: 42px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 920 !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255,255,255,.32), transparent 38%),
    linear-gradient(135deg, #073f52, color-mix(in srgb, var(--chapter-accent, #18a978) 68%, #087c8a)) !important;
  box-shadow:
    0 13px 28px color-mix(in srgb, var(--chapter-accent, #18a978) 22%, rgba(7,70,78,.15)),
    inset 0 1px 0 rgba(255,255,255,.28) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-open {
  color: rgba(6, 53, 66, 0.78) !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body main.app-shell section.map-stage.home-focus #homeJourney {
    --chapter-card-width: min(84vw, 338px);
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
    padding-inline: 22px !important;
    scroll-padding-inline: 22px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
    aspect-ratio: 1.18 / 1 !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
    display: grid !important;
    gap: 3px !important;
  }
}

/* Home v504: final premium Life Chapters polish at EOF. */
html body .app-shell .map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeJourney {
  position: relative !important;
  isolation: isolate !important;
  border: 1px solid rgba(255, 255, 255, 0.54) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(36, 181, 132, 0.12), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(31, 78, 121, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(237, 250, 246, 0.62)) !important;
  box-shadow:
    0 20px 54px rgba(7, 70, 78, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading > strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .home-section-heading > strong {
  color: rgba(6, 53, 66, 0.72) !important;
  font-size: clamp(0.9rem, 1.45vw, 1.05rem) !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  position: relative !important;
  isolation: isolate !important;
  border-color: color-mix(in srgb, var(--chapter-accent, #18a978) 22%, rgba(255, 255, 255, 0.78)) !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(245, 253, 249, 0.92)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 4%, transparent) !important;
  box-shadow:
    0 18px 42px rgba(7, 70, 78, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.48) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::before,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::before {
  position: absolute !important;
  inset: 11px 12px auto !important;
  z-index: -1 !important;
  display: block !important;
  height: 56% !important;
  border-radius: 24px !important;
  background: color-mix(in srgb, var(--chapter-accent, #18a978) 12%, rgba(255, 255, 255, 0.78)) !important;
  box-shadow: 0 12px 30px rgba(7, 70, 78, 0.08) !important;
  content: "" !important;
  transform: rotate(-1.4deg) translateY(5px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::after {
  position: absolute !important;
  inset: 13px 15px auto !important;
  z-index: -1 !important;
  display: block !important;
  height: 54% !important;
  border-radius: 23px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  content: "" !important;
  transform: rotate(1.2deg) translateY(9px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  box-shadow:
    0 13px 30px rgba(7, 70, 78, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    inset 0 -36px 74px rgba(0, 0, 0, 0.15) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover::after {
  background:
    linear-gradient(180deg, rgba(2, 30, 42, 0.03) 0%, rgba(2, 30, 42, 0.1) 36%, rgba(2, 30, 42, 0.78) 100%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.12) 48%, transparent 58% 100%) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption span {
  color: rgba(255, 255, 255, 0.92) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(2, 28, 40, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(242, 252, 247, 0.48)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 7%, transparent) !important;
  box-shadow:
    0 9px 18px rgba(7, 70, 78, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  padding: 4px !important;
  border: 1px solid rgba(7, 70, 78, 0.055) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(240, 251, 247, 0.32)) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive {
  letter-spacing: 0 !important;
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--chapter-accent, #18a978) 24%, rgba(7, 70, 78, 0.16)),
    0 0 0 5px color-mix(in srgb, var(--chapter-accent, #18a978) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-open {
  border: 1px solid rgba(7, 70, 78, 0.08) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(242, 252, 247, 0.5)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

/* Home v506 final: Recent Memories quiet premium shelf. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
  border: 1px solid rgba(255, 255, 255, 0.52) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 78, 121, 0.09), transparent 36%),
    radial-gradient(circle at 86% 26%, rgba(31, 169, 121, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(239, 250, 246, 0.58)) !important;
  box-shadow: 0 18px 46px rgba(7, 70, 78, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-section-heading {
  margin-bottom: 10px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading > strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-section-heading > strong {
  color: rgba(6, 53, 66, 0.66) !important;
  font-size: clamp(0.84rem, 1.25vw, 0.98rem) !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
  display: grid !important;
  gap: 10px !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(240, 251, 247, 0.34)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row {
  display: flex !important;
  gap: 7px !important;
  overflow-x: auto !important;
  padding: 2px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.35) !important;
  scrollbar-width: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row::-webkit-scrollbar,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row::-webkit-scrollbar {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter {
  min-height: 30px !important;
  padding: 6px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(6, 53, 66, 0.64) !important;
  font-size: 0.7rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter.active,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter.active {
  color: #fff !important;
  background: linear-gradient(135deg, #073f52, #159d8b) !important;
  box-shadow: 0 8px 18px rgba(7, 70, 78, 0.14) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 92px !important;
  gap: 11px !important;
  padding: 9px !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--recent-accent, #18a978) 18%, rgba(255, 255, 255, 0.62)) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.9), rgba(245, 253, 249, 0.74)), color-mix(in srgb, var(--recent-accent, #18a978) 7%, transparent) !important;
  box-shadow: 0 14px 30px rgba(7, 70, 78, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 2 !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: color-mix(in srgb, var(--recent-accent, #18a978) 68%, #073542) !important;
  content: "Latest" !important;
  font-size: 0.58rem !important;
  font-weight: 920 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
  width: 76px !important;
  height: 76px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(7, 63, 82, 0.14), rgba(31, 169, 121, 0.12)) !important;
  box-shadow: 0 9px 18px rgba(7, 70, 78, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art img,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body {
  display: grid !important;
  min-width: 0 !important;
  align-content: center !important;
  gap: 4px !important;
  padding-right: 48px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-kicker,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-kicker {
  color: color-mix(in srgb, var(--recent-accent, #18a978) 72%, #073542) !important;
  font-size: 0.66rem !important;
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body strong {
  overflow: hidden !important;
  color: #073542 !important;
  font-size: clamp(0.9rem, 1.5vw, 1.08rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body em {
  display: block !important;
  overflow: hidden !important;
  max-width: 100% !important;
  color: rgba(6, 53, 66, 0.52) !important;
  font-size: 0.7rem !important;
  font-style: normal !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row {
  display: flex !important;
  gap: 5px !important;
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span {
  flex: 0 0 auto !important;
  max-width: 104px !important;
  overflow: hidden !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  color: rgba(6, 53, 66, 0.58) !important;
  font-size: 0.6rem !important;
  font-weight: 850 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3),
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3) {
  color: color-mix(in srgb, var(--recent-accent, #18a978) 72%, #073542) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-relive,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-relive {
  display: inline-flex !important;
  width: fit-content !important;
  margin-top: 2px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #073f52, color-mix(in srgb, var(--recent-accent, #18a978) 68%, #087c8a)) !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  font-weight: 920 !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--recent-accent, #18a978) 20%, rgba(7, 70, 78, 0.14)) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
  display: grid !important;
  grid-auto-columns: minmax(178px, 220px) !important;
  grid-auto-flow: column !important;
  gap: 9px !important;
  overflow-x: auto !important;
  padding: 2px 1px 4px !important;
  scroll-snap-type: x proximity !important;
  scrollbar-width: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip::-webkit-scrollbar,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip::-webkit-scrollbar {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 72px !important;
  gap: 9px !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.84), rgba(243, 252, 248, 0.62)) !important;
  box-shadow: 0 10px 22px rgba(7, 70, 78, 0.06) !important;
  scroll-snap-align: start !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art {
  width: 52px !important;
  height: 52px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--recent-accent, #18a978) 14%, rgba(255, 255, 255, 0.58)) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 2px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong {
  color: #073542 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small {
  color: rgba(6, 53, 66, 0.52) !important;
  font-size: 0.64rem !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em {
  color: color-mix(in srgb, var(--recent-accent, #18a978) 65%, #073542) !important;
  font-size: 0.62rem !important;
  font-style: normal !important;
  font-weight: 850 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 86px !important;
  padding: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.82), rgba(239, 250, 246, 0.52)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty img {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty strong,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note strong {
  color: #073542 !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note small {
  color: rgba(6, 53, 66, 0.56) !important;
  font-size: 0.72rem !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
    padding: 9px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    grid-template-columns: 68px minmax(0, 1fr) !important;
    min-height: 86px !important;
    gap: 10px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before {
    display: none !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
    width: 68px !important;
    height: 68px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body {
    padding-right: 0 !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3),
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3) {
    display: none !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
    grid-auto-columns: minmax(164px, 78vw) !important;
  }
}

/* Home v506: premium Recent Memories latest-saves shelf. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
  opacity: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.52) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 78, 121, 0.09), transparent 36%),
    radial-gradient(circle at 86% 26%, rgba(31, 169, 121, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(239, 250, 246, 0.58)) !important;
  box-shadow:
    0 18px 46px rgba(7, 70, 78, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-section-heading {
  margin-bottom: 10px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading > strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-section-heading > strong {
  color: rgba(6, 53, 66, 0.66) !important;
  font-size: clamp(0.84rem, 1.25vw, 0.98rem) !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
  display: grid !important;
  gap: 10px !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(240, 251, 247, 0.34)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row {
  display: flex !important;
  gap: 7px !important;
  overflow-x: auto !important;
  padding: 2px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.35) !important;
  scrollbar-width: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row::-webkit-scrollbar,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row::-webkit-scrollbar {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter {
  min-height: 30px !important;
  padding: 6px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(6, 53, 66, 0.64) !important;
  font-size: 0.7rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter.active,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter.active {
  color: #fff !important;
  background: linear-gradient(135deg, #073f52, #159d8b) !important;
  box-shadow: 0 8px 18px rgba(7, 70, 78, 0.14) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 92px !important;
  gap: 11px !important;
  padding: 9px !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--recent-accent, #18a978) 18%, rgba(255, 255, 255, 0.62)) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.9), rgba(245, 253, 249, 0.74)),
    color-mix(in srgb, var(--recent-accent, #18a978) 7%, transparent) !important;
  box-shadow:
    0 14px 30px rgba(7, 70, 78, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 2 !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: color-mix(in srgb, var(--recent-accent, #18a978) 68%, #073542) !important;
  content: "Latest" !important;
  font-size: 0.58rem !important;
  font-weight: 920 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
  width: 76px !important;
  height: 76px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(7, 63, 82, 0.14), rgba(31, 169, 121, 0.12)) !important;
  box-shadow:
    0 9px 18px rgba(7, 70, 78, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art img,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body {
  display: grid !important;
  min-width: 0 !important;
  align-content: center !important;
  gap: 4px !important;
  padding-right: 48px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-kicker,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-kicker {
  color: color-mix(in srgb, var(--recent-accent, #18a978) 72%, #073542) !important;
  font-size: 0.66rem !important;
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body strong {
  overflow: hidden !important;
  color: #073542 !important;
  font-size: clamp(0.9rem, 1.5vw, 1.08rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body em {
  display: block !important;
  overflow: hidden !important;
  max-width: 100% !important;
  color: rgba(6, 53, 66, 0.52) !important;
  font-size: 0.7rem !important;
  font-style: normal !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row {
  display: flex !important;
  gap: 5px !important;
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span {
  flex: 0 0 auto !important;
  max-width: 104px !important;
  overflow: hidden !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  color: rgba(6, 53, 66, 0.58) !important;
  font-size: 0.6rem !important;
  font-weight: 850 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3),
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3) {
  color: color-mix(in srgb, var(--recent-accent, #18a978) 72%, #073542) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-relive,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-relive {
  display: inline-flex !important;
  width: fit-content !important;
  margin-top: 2px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #073f52, color-mix(in srgb, var(--recent-accent, #18a978) 68%, #087c8a)) !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  font-weight: 920 !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--recent-accent, #18a978) 20%, rgba(7, 70, 78, 0.14)) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
  display: grid !important;
  grid-auto-columns: minmax(178px, 220px) !important;
  grid-auto-flow: column !important;
  gap: 9px !important;
  overflow-x: auto !important;
  padding: 2px 1px 4px !important;
  scroll-snap-type: x proximity !important;
  scrollbar-width: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip::-webkit-scrollbar,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip::-webkit-scrollbar {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 72px !important;
  gap: 9px !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.84), rgba(243, 252, 248, 0.62)) !important;
  box-shadow: 0 10px 22px rgba(7, 70, 78, 0.06) !important;
  scroll-snap-align: start !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art {
  width: 52px !important;
  height: 52px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--recent-accent, #18a978) 14%, rgba(255, 255, 255, 0.58)) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 2px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong {
  color: #073542 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small {
  color: rgba(6, 53, 66, 0.52) !important;
  font-size: 0.64rem !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em {
  color: color-mix(in srgb, var(--recent-accent, #18a978) 65%, #073542) !important;
  font-size: 0.62rem !important;
  font-style: normal !important;
  font-weight: 850 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 86px !important;
  padding: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.82), rgba(239, 250, 246, 0.52)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty img {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty strong,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note strong {
  color: #073542 !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note small {
  color: rgba(6, 53, 66, 0.56) !important;
  font-size: 0.72rem !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
    padding: 9px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    grid-template-columns: 68px minmax(0, 1fr) !important;
    min-height: 86px !important;
    gap: 10px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before {
    display: none !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
    width: 68px !important;
    height: 68px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body {
    padding-right: 0 !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3),
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3) {
    display: none !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
    grid-auto-columns: minmax(164px, 78vw) !important;
  }
}

/* Home v503: premium Life Chapters story-album finish. */
html body .app-shell .map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeJourney {
  position: relative !important;
  isolation: isolate !important;
  border: 1px solid rgba(255, 255, 255, 0.54) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(36, 181, 132, 0.12), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(31, 78, 121, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(237, 250, 246, 0.62)) !important;
  box-shadow:
    0 20px 54px rgba(7, 70, 78, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeJourney .home-section-heading {
  gap: 5px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading > strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .home-section-heading > strong {
  color: rgba(6, 53, 66, 0.72) !important;
  font-size: clamp(0.9rem, 1.45vw, 1.05rem) !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  position: relative !important;
  isolation: isolate !important;
  border-color: color-mix(in srgb, var(--chapter-accent, #18a978) 22%, rgba(255, 255, 255, 0.78)) !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(245, 253, 249, 0.92)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 4%, transparent) !important;
  box-shadow:
    0 18px 42px rgba(7, 70, 78, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.48) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::before,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::before {
  position: absolute !important;
  inset: 11px 12px auto !important;
  z-index: -1 !important;
  display: block !important;
  height: 56% !important;
  border-radius: 24px !important;
  background: color-mix(in srgb, var(--chapter-accent, #18a978) 12%, rgba(255, 255, 255, 0.78)) !important;
  box-shadow: 0 12px 30px rgba(7, 70, 78, 0.08) !important;
  content: "" !important;
  transform: rotate(-1.4deg) translateY(5px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::after {
  position: absolute !important;
  inset: 13px 15px auto !important;
  z-index: -1 !important;
  display: block !important;
  height: 54% !important;
  border-radius: 23px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  content: "" !important;
  transform: rotate(1.2deg) translateY(9px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  box-shadow:
    0 13px 30px rgba(7, 70, 78, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    inset 0 -36px 74px rgba(0, 0, 0, 0.15) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover::after {
  background:
    linear-gradient(180deg, rgba(2, 30, 42, 0.03) 0%, rgba(2, 30, 42, 0.1) 36%, rgba(2, 30, 42, 0.78) 100%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.12) 48%, transparent 58% 100%) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption span {
  color: rgba(255, 255, 255, 0.92) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(2, 28, 40, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-count-badge {
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.22), transparent 38%),
    rgba(2, 31, 43, 0.58) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(242, 252, 247, 0.48)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 7%, transparent) !important;
  box-shadow:
    0 9px 18px rgba(7, 70, 78, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  padding: 4px !important;
  border: 1px solid rgba(7, 70, 78, 0.055) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(240, 251, 247, 0.32)) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-more {
  box-shadow:
    0 5px 11px rgba(7, 70, 78, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.54) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive {
  letter-spacing: 0 !important;
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--chapter-accent, #18a978) 24%, rgba(7, 70, 78, 0.16)),
    0 0 0 5px color-mix(in srgb, var(--chapter-accent, #18a978) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-open {
  border: 1px solid rgba(7, 70, 78, 0.08) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(242, 252, 247, 0.5)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

/* Home v499: final compact Life Chapters spacing. */
html body .app-shell .map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeJourney {
  --chapter-card-width: clamp(276px, 29vw, 330px) !important;
  padding: clamp(14px, 2vw, 18px) !important;
  padding-bottom: clamp(14px, 2vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeJourney .home-section-heading {
  margin-bottom: 8px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-shelf,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-shelf {
  margin-top: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
  gap: 15px !important;
  padding-top: 4px !important;
  padding-bottom: 8px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  gap: 9px !important;
  min-height: 0 !important;
  padding: 9px !important;
  border-radius: 27px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  aspect-ratio: 1.58 / 1 !important;
  min-height: 0 !important;
  border-radius: 21px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption {
  right: 13px !important;
  bottom: 12px !important;
  left: 13px !important;
  gap: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption span {
  padding: 4px 8px !important;
  font-size: 0.58rem !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption strong {
  font-size: clamp(1.12rem, 2vw, 1.44rem) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption small {
  font-size: 0.68rem !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  gap: 7px !important;
  padding-bottom: 2px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
  padding: 8px 10px !important;
  border-radius: 15px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  min-height: 38px !important;
  gap: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-more {
  height: 38px !important;
  border-radius: 12px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
  min-height: 38px !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body main.app-shell section.map-stage.home-focus #homeJourney {
    --chapter-card-width: min(82vw, 318px) !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
    aspect-ratio: 1.5 / 1 !important;
  }
}

/* Home v498: tighten Life Chapters vertical spacing. */
html body .app-shell .map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeJourney {
  --chapter-card-width: clamp(276px, 29vw, 330px) !important;
  padding: clamp(14px, 2vw, 18px) !important;
  padding-bottom: clamp(14px, 2vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeJourney .home-section-heading {
  margin-bottom: 8px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-shelf,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-shelf {
  margin-top: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
  gap: 15px !important;
  padding-top: 4px !important;
  padding-bottom: 8px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  gap: 9px !important;
  min-height: 0 !important;
  padding: 9px !important;
  border-radius: 27px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  aspect-ratio: 1.58 / 1 !important;
  min-height: 0 !important;
  border-radius: 21px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption {
  right: 13px !important;
  bottom: 12px !important;
  left: 13px !important;
  gap: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption span {
  padding: 4px 8px !important;
  font-size: 0.58rem !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption strong {
  font-size: clamp(1.12rem, 2vw, 1.44rem) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption small {
  font-size: 0.68rem !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  gap: 7px !important;
  padding-bottom: 2px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
  padding: 8px 10px !important;
  border-radius: 15px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  min-height: 38px !important;
  gap: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-more {
  height: 38px !important;
  border-radius: 12px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
  min-height: 38px !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body main.app-shell section.map-stage.home-focus #homeJourney {
    --chapter-card-width: min(82vw, 318px) !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
    aspect-ratio: 1.5 / 1 !important;
  }
}

/* Explore dual-mode final override v315. */
html body .app-shell .explore-mode-switch {
  position: fixed !important;
  top: max(78px, calc(env(safe-area-inset-top) + 78px)) !important;
  left: 50% !important;
  z-index: 135 !important;
  display: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: min(250px, calc(100vw - 38px)) !important;
  padding: 5px !important;
  border: 1px solid rgba(204, 247, 237, 0.2) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(7, 35, 49, 0.78), rgba(6, 52, 55, 0.56)) !important;
  box-shadow: 0 16px 38px rgba(0, 18, 29, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
  transform: translateX(-50%) !important;
}

html body .app-shell .map-stage.map-focus .explore-mode-switch {
  display: grid !important;
}

html body .app-shell .explore-mode-switch button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 38px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: rgba(235, 255, 249, 0.78) !important;
  font: 900 0.82rem/1 Inter, system-ui, sans-serif !important;
  background: transparent !important;
  cursor: pointer !important;
}

html body .app-shell .explore-mode-switch button.active {
  color: #073540 !important;
  background: radial-gradient(circle at 26% 16%, rgba(255, 255, 255, 0.86), transparent 32%), linear-gradient(135deg, #ddfff0, #78e7ff) !important;
  box-shadow: 0 8px 18px rgba(0, 18, 29, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode {
  background: radial-gradient(circle at 50% 46%, rgba(52, 172, 255, 0.22), transparent 34%), radial-gradient(circle at 18% 14%, rgba(87, 227, 179, 0.12), transparent 28%), linear-gradient(180deg, #051827 0%, #082b38 46%, #03111d 100%) !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode #map {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .earth-globe {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 20 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: grab !important;
  filter: drop-shadow(0 0 44px rgba(67, 185, 255, 0.28)) drop-shadow(0 28px 70px rgba(0, 9, 20, 0.42)) !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .earth-globe:active {
  cursor: grabbing !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .map-navigation-gadget,
html body .app-shell .map-stage.map-focus.explore-world-mode .map-coordinates,
html body .app-shell .map-stage.map-focus.explore-world-mode .memory-peek-card,
html body .app-shell .map-stage.map-focus.explore-world-mode .location-banner,
html body .app-shell .map-stage.map-focus.explore-world-mode .you-are-here-message {
  display: none !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .map-life-layer {
  z-index: 22 !important;
  opacity: 0.28 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode::before {
  display: block !important;
  opacity: 1 !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 18 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.48) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 72%, rgba(151, 228, 255, 0.46) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.36) 0 1px, transparent 2px) !important;
  background-size: 260px 220px, 330px 280px, 410px 360px, 520px 460px !important;
}

html body .app-shell .map-stage.map-focus.explore-map-mode .earth-globe {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus.explore-map-mode #map {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

html body .app-shell .map-stage.map-focus .travel-path,
html body .app-shell .map-stage.map-focus .travel-path-halo,
html body .app-shell .map-stage.map-focus .travel-path-core,
html body .app-shell .map-stage.map-focus .travel-path-pulse,
html body .app-shell .map-stage.map-focus .journey-stop-marker,
html body .app-shell .map-stage.map-focus .memory-trail-path,
html body .app-shell .map-stage.map-focus .memory-trail-footprint,
html body .app-shell .map-stage.map-focus .memory-chapter-trail,
html body .app-shell .map-stage.map-focus .memory-chapter-trail-stop,
html body .app-shell .map-stage.map-focus .memory-chapter-trail-label,
html body .app-shell .map-stage.map-focus .memory-constellation-line,
html body .app-shell .map-stage.map-focus .memory-constellation-label {
  display: none !important;
  opacity: 0 !important;
}

@media (max-width: 720px) {
  html body .app-shell .explore-mode-switch {
    top: max(64px, calc(env(safe-area-inset-top) + 64px)) !important;
    width: min(218px, calc(100vw - 34px)) !important;
  }

  html body .app-shell .explore-mode-switch button {
    min-height: 34px !important;
    font-size: 0.76rem !important;
  }
}

/* Explore dual-mode experience: World for wonder, Map for precision. */
html body .app-shell .explore-mode-switch {
  position: fixed !important;
  top: max(78px, calc(env(safe-area-inset-top) + 78px)) !important;
  left: 50% !important;
  z-index: 135 !important;
  display: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: min(250px, calc(100vw - 38px)) !important;
  padding: 5px !important;
  border: 1px solid rgba(204, 247, 237, 0.2) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(7, 35, 49, 0.78), rgba(6, 52, 55, 0.56)) !important;
  box-shadow:
    0 16px 38px rgba(0, 18, 29, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
  transform: translateX(-50%) !important;
}

html body .app-shell .map-stage.map-focus .explore-mode-switch {
  display: grid !important;
}

html body .app-shell .explore-mode-switch button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 38px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: rgba(235, 255, 249, 0.78) !important;
  font: 900 0.82rem/1 Inter, system-ui, sans-serif !important;
  background: transparent !important;
  cursor: pointer !important;
}

html body .app-shell .explore-mode-switch button.active {
  color: #073540 !important;
  background:
    radial-gradient(circle at 26% 16%, rgba(255, 255, 255, 0.86), transparent 32%),
    linear-gradient(135deg, #ddfff0, #78e7ff) !important;
  box-shadow:
    0 8px 18px rgba(0, 18, 29, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode {
  background:
    radial-gradient(circle at 50% 46%, rgba(52, 172, 255, 0.22), transparent 34%),
    radial-gradient(circle at 18% 14%, rgba(87, 227, 179, 0.12), transparent 28%),
    linear-gradient(180deg, #051827 0%, #082b38 46%, #03111d 100%) !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode #map {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .earth-globe {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 20 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: grab !important;
  filter:
    drop-shadow(0 0 44px rgba(67, 185, 255, 0.28))
    drop-shadow(0 28px 70px rgba(0, 9, 20, 0.42)) !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .earth-globe:active {
  cursor: grabbing !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .map-navigation-gadget,
html body .app-shell .map-stage.map-focus.explore-world-mode .map-coordinates,
html body .app-shell .map-stage.map-focus.explore-world-mode .memory-peek-card,
html body .app-shell .map-stage.map-focus.explore-world-mode .location-banner,
html body .app-shell .map-stage.map-focus.explore-world-mode .you-are-here-message {
  display: none !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .map-life-layer {
  z-index: 22 !important;
  opacity: 0.28 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode::before {
  display: block !important;
  opacity: 1 !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 18 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.48) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 72%, rgba(151, 228, 255, 0.46) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.36) 0 1px, transparent 2px) !important;
  background-size: 260px 220px, 330px 280px, 410px 360px, 520px 460px !important;
}

html body .app-shell .map-stage.map-focus.explore-map-mode .earth-globe {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus.explore-map-mode #map {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 720px) {
  html body .app-shell .explore-mode-switch {
    top: max(64px, calc(env(safe-area-inset-top) + 64px)) !important;
    width: min(218px, calc(100vw - 34px)) !important;
  }

  html body .app-shell .explore-mode-switch button {
    min-height: 34px !important;
    font-size: 0.76rem !important;
  }
}

/* Home premium lock v311: one calm column, generous spacing, no legacy clutter. */
html body .app-shell .map-stage.home-focus {
  --home-page-width: min(880px, calc(100vw - 32px));
  --home-section-gap: clamp(22px, 3.4vw, 34px);
  --home-card-radius: 30px;
  background:
    radial-gradient(circle at 14% 4%, rgba(35, 156, 119, 0.2), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(42, 138, 187, 0.17), transparent 30%),
    radial-gradient(circle at 50% 82%, rgba(255, 200, 87, 0.08), transparent 42%),
    linear-gradient(180deg, #eef9f2 0%, #e5f3f0 44%, #fbfcf8 100%) !important;
}

html body .app-shell .map-stage.home-focus .pin-network,
html body .app-shell .map-stage.home-focus .spotlight-cards,
html body .app-shell .map-stage.home-focus .favorite-notes {
  display: none !important;
}

html body .app-shell .map-stage.home-focus .hero-copy,
html body .app-shell .map-stage.home-focus .home-dashboard {
  width: var(--home-page-width) !important;
  max-width: 880px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus .hero-copy {
  margin-top: clamp(94px, 13vh, 126px) !important;
  display: grid !important;
  justify-items: center !important;
  gap: clamp(18px, 2.4vw, 24px) !important;
}

html body .app-shell .map-stage.home-focus .hero-copy h2 {
  padding: 12px 22px 13px !important;
  color: #174b52 !important;
  font-size: clamp(1.34rem, 2.6vw, 2rem) !important;
  font-weight: 850 !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(239, 251, 244, 0.58)) !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-moment {
  max-width: 520px !important;
  margin: -3px auto 0 !important;
  color: rgba(18, 66, 74, 0.68) !important;
  font-size: clamp(0.94rem, 1.8vw, 1.08rem) !important;
  line-height: 1.4 !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse {
  width: min(620px, 100%) !important;
  gap: 12px !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
  min-height: 72px !important;
  border-radius: 21px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(238, 251, 245, 0.52)) !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: var(--home-section-gap) !important;
  margin-top: clamp(26px, 4.4vw, 44px) !important;
  margin-bottom: calc(var(--bottom-nav-height, 84px) + 56px) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard > * {
  width: 100% !important;
  max-width: 100% !important;
  justify-self: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  min-height: auto !important;
  padding: clamp(18px, 3vw, 26px) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 24% 9%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.93), rgba(234, 250, 243, 0.82)) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  margin-bottom: clamp(15px, 2vw, 20px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  gap: clamp(12px, 2vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
  height: clamp(230px, 33vw, 310px) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 18px 36px rgba(10, 72, 68, 0.12),
    0 0 0 1px rgba(14, 86, 80, 0.08) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem) !important;
  max-width: 680px !important;
}

html body .app-shell .map-stage.home-focus .home-action-section {
  margin-top: -2px !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions {
  gap: clamp(12px, 2vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  min-height: clamp(104px, 12vw, 124px) !important;
  border-radius: 24px !important;
  transition: transform 180ms ease, box-shadow 180ms ease !important;
}

html body .app-shell .map-stage.home-focus .home-action-card:hover {
  transform: translateY(-2px) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  padding: clamp(18px, 2.8vw, 26px) !important;
  border-radius: var(--home-card-radius) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(239, 252, 246, 0.6)) !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  margin: 0 0 clamp(14px, 2vw, 18px) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker,
html body .app-shell .map-stage.home-focus .home-section-title {
  min-height: 40px !important;
  padding: 9px 15px !important;
  border-radius: 999px !important;
  background: rgba(255, 253, 248, 0.68) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .section-title-text,
html body .app-shell .map-stage.home-focus .home-section-title .section-title-text,
html body .app-shell .map-stage.home-focus .home-section-title strong {
  font-size: clamp(1.02rem, 1.9vw, 1.22rem) !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-bottom-note {
  justify-self: center !important;
  width: fit-content !important;
  max-width: min(520px, 100%) !important;
  margin-top: 2px !important;
  border: 1px solid rgba(15, 99, 91, 0.08) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 24px rgba(10, 72, 68, 0.06) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus {
    --home-page-width: calc(100vw - 24px);
    --home-section-gap: 18px;
  }

  html body .app-shell .map-stage.home-focus .hero-copy {
    margin-top: 80px !important;
    gap: 12px !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy h2 {
    padding: 10px 16px 11px !important;
    font-size: clamp(1.12rem, 5vw, 1.45rem) !important;
  }

  html body .app-shell .map-stage.home-focus .home-mappi-moment {
    font-size: 0.88rem !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse {
    gap: 7px !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
    min-height: 58px !important;
    padding: 9px 5px !important;
    border-radius: 17px !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard {
    margin-top: 18px !important;
    margin-bottom: calc(var(--bottom-nav-height, 84px) + 44px) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    padding: 15px !important;
    border-radius: 25px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
    height: 188px !important;
    border-radius: 20px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
    font-size: 1.28rem !important;
    line-height: 1.12 !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
    font-size: 0.88rem !important;
    line-height: 1.38 !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    min-height: 82px !important;
    padding: 11px 5px !important;
    border-radius: 18px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay,
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip {
    padding: 16px 12px !important;
    border-radius: 24px !important;
  }
}

/* Home v322: smaller wordmark and cleaner Today's Memory hierarchy. */
html body .app-shell .map-stage.home-focus .brand {
  padding: 7px 13px !important;
}

html body .app-shell .map-stage.home-focus .brand h1 {
  font-size: clamp(1.78rem, 3.4vw, 2.85rem) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  display: grid !important;
  gap: clamp(14px, 2.2vw, 20px) !important;
  padding: clamp(18px, 2.8vw, 24px) !important;
  border-radius: 32px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 auto 2px !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker {
  min-height: 34px !important;
  padding: 7px 13px !important;
  color: #0f4650 !important;
  background: rgba(255, 253, 248, 0.74) !important;
  box-shadow: 0 9px 18px rgba(10, 72, 68, 0.045) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker .section-title-text {
  font-size: clamp(0.96rem, 1.5vw, 1.08rem) !important;
  font-weight: 940 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-name-pill {
  display: block !important;
  max-width: min(680px, 100%) !important;
  margin: 3px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #0c3745 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: clamp(1.55rem, 3.1vw, 2.28rem) !important;
  font-weight: 950 !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-date-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  margin: 0 auto !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(15, 99, 91, 0.08) !important;
  border-radius: 999px !important;
  color: rgba(19, 70, 82, 0.64) !important;
  background: rgba(255, 253, 248, 0.54) !important;
  box-shadow: 0 8px 15px rgba(10, 72, 68, 0.04) !important;
  font-size: clamp(0.78rem, 1.2vw, 0.9rem) !important;
  font-weight: 860 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  margin-top: 0 !important;
  padding: 5px 10px !important;
  color: rgba(14, 67, 78, 0.66) !important;
  background: rgba(224, 250, 242, 0.6) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  gap: clamp(11px, 1.8vw, 15px) !important;
  max-width: 700px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
  width: min(100%, 680px) !important;
  height: clamp(218px, 31vw, 292px) !important;
  border-radius: 25px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  gap: 7px !important;
  max-width: 560px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-title {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(18, 73, 83, 0.62) !important;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem) !important;
  font-weight: 830 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
  color: rgba(24, 65, 75, 0.76) !important;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem) !important;
  line-height: 1.45 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .brand h1 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    gap: 12px !important;
    padding: 14px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-name-pill {
    font-size: clamp(1.18rem, 5.4vw, 1.55rem) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
    height: 178px !important;
    border-radius: 20px !important;
  }
}

/* Absolute final memory capsule placement v341. */
html body main.app-shell .memory-bottom-sheet.open {
  display: grid !important;
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
  padding: clamp(14px, 3vw, 34px) !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(96, 220, 178, 0.24), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(87, 170, 238, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(246, 255, 251, 0.28), rgba(6, 45, 51, 0.2)) !important;
  backdrop-filter: blur(10px) saturate(1.06) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.06) !important;
}

html body main.app-shell .memory-bottom-sheet.open #memorySheetContent {
  align-self: center !important;
  justify-self: center !important;
  width: min(920px, calc(100vw - 28px)) !important;
  margin: auto !important;
}

html body main.app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule {
  width: 100% !important;
  max-height: min(88vh, 820px) !important;
  margin: auto !important;
  box-shadow:
    0 26px 74px rgba(3, 28, 36, 0.24),
    0 10px 24px rgba(10, 72, 68, 0.12) !important;
}

@media (max-width: 820px) {
  html body main.app-shell .memory-bottom-sheet.open {
    align-items: center !important;
    justify-items: center !important;
    padding: 12px !important;
  }

  html body main.app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule {
    max-height: calc(100vh - 24px) !important;
    border-radius: 28px !important;
  }
}

/* True final memory capsule placement v341: centered and calmer than the old dark sheet. */
html body main.app-shell .memory-bottom-sheet.open {
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
  padding: clamp(14px, 3vw, 34px) !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(96, 220, 178, 0.24), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(87, 170, 238, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(246, 255, 251, 0.28), rgba(6, 45, 51, 0.2)) !important;
  backdrop-filter: blur(10px) saturate(1.06) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.06) !important;
}

html body main.app-shell .memory-bottom-sheet.open #memorySheetContent {
  align-self: center !important;
  justify-self: center !important;
  width: min(920px, calc(100vw - 28px)) !important;
  margin: auto !important;
}

html body main.app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule {
  width: 100% !important;
  max-height: min(88vh, 820px) !important;
  margin: auto !important;
  box-shadow:
    0 26px 74px rgba(3, 28, 36, 0.24),
    0 10px 24px rgba(10, 72, 68, 0.12) !important;
}

@media (max-width: 820px) {
  html body main.app-shell .memory-bottom-sheet.open {
    align-items: center !important;
    justify-items: center !important;
    padding: 12px !important;
  }

  html body main.app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule {
    max-height: calc(100vh - 24px) !important;
    border-radius: 28px !important;
  }
}

/* Final memory capsule placement v341: centered, softer backdrop. */
html body main.app-shell .memory-bottom-sheet.open {
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
  padding: clamp(14px, 3vw, 34px) !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(96, 220, 178, 0.24), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(87, 170, 238, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(246, 255, 251, 0.28), rgba(6, 45, 51, 0.2)) !important;
  backdrop-filter: blur(10px) saturate(1.06) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.06) !important;
}

html body main.app-shell .memory-bottom-sheet.open #memorySheetContent {
  align-self: center !important;
  justify-self: center !important;
  width: min(920px, calc(100vw - 28px)) !important;
  margin: auto !important;
}

html body main.app-shell .memory-sheet-card.full-memory-capsule {
  width: 100% !important;
  max-height: min(88vh, 820px) !important;
  margin: auto !important;
  box-shadow:
    0 26px 74px rgba(3, 28, 36, 0.24),
    0 10px 24px rgba(10, 72, 68, 0.12) !important;
}

@media (max-width: 820px) {
  html body main.app-shell .memory-bottom-sheet.open {
    align-items: center !important;
    justify-items: center !important;
    padding: 12px !important;
  }

  html body main.app-shell .memory-sheet-card.full-memory-capsule {
    max-height: calc(100vh - 24px) !important;
    border-radius: 28px !important;
  }
}

/* Memory capsule v339: clicked memories open like a full scrapbook page. */
html body main.app-shell .memory-bottom-sheet.open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 620 !important;
  display: grid !important;
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  padding: clamp(14px, 3vw, 34px) !important;
  overflow: auto !important;
  transform: none !important;
  animation: none !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(96, 220, 178, 0.24), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(87, 170, 238, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(246, 255, 251, 0.28), rgba(6, 45, 51, 0.2)) !important;
  backdrop-filter: blur(10px) saturate(1.06) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.06) !important;
}

html body main.app-shell .memory-bottom-sheet .sheet-grabber {
  display: none !important;
}

html body main.app-shell .memory-bottom-sheet.open #memorySheetContent {
  align-self: center !important;
  justify-self: center !important;
  width: min(920px, calc(100vw - 28px)) !important;
  margin: auto !important;
}

html body main.app-shell .memory-sheet-card.full-memory-capsule {
  display: grid !important;
  gap: clamp(16px, 2.4vw, 24px) !important;
  width: 100% !important;
  max-height: calc(100vh - clamp(36px, 8vw, 88px)) !important;
  overflow: auto !important;
  padding: clamp(18px, 3vw, 30px) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: clamp(26px, 4vw, 40px) !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(236, 252, 245, 0.94)),
    radial-gradient(circle at 15% 8%, color-mix(in srgb, var(--sheet-accent) 20%, transparent), transparent 34%) !important;
  box-shadow: 0 34px 90px rgba(3, 20, 28, 0.38), 0 12px 28px rgba(10, 72, 68, 0.16) !important;
  color: #102f3a !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 38px !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
  color: #0e4450 !important;
  background: rgba(255, 255, 255, 0.66) !important;
  box-shadow: 0 10px 24px rgba(13, 79, 81, 0.1) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-pin {
  width: 16px !important;
  height: 16px !important;
  border-radius: 999px 999px 999px 3px !important;
  background: linear-gradient(145deg, var(--sheet-accent), #1f9ed8) !important;
  transform: rotate(-45deg) !important;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--sheet-accent) 18%, transparent), 0 6px 14px rgba(9, 64, 73, 0.18) !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-close {
  position: static !important;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  margin: 0 !important;
  border: 1px solid rgba(7, 40, 50, 0.12) !important;
  border-radius: 999px !important;
  color: #071f2a !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 12px 24px rgba(6, 31, 39, 0.16) !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  transform: none !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-close::before,
html body main.app-shell .full-memory-capsule .memory-capsule-close::after {
  content: none !important;
  display: none !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: clamp(14px, 2.4vw, 28px) !important;
  padding: clamp(18px, 3vw, 30px) !important;
  border-radius: clamp(22px, 3vw, 30px) !important;
  background:
    linear-gradient(135deg, rgba(8, 47, 57, 0.96), rgba(21, 119, 112, 0.88)),
    radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--sheet-accent) 34%, transparent), transparent 36%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 38px rgba(6, 54, 59, 0.18) !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-title-block {
  min-width: 0 !important;
}

html body main.app-shell .full-memory-capsule .sheet-eyebrow {
  display: inline-flex !important;
  margin-bottom: 10px !important;
  color: rgba(228, 255, 247, 0.78) !important;
  font-size: 0.78rem !important;
  font-weight: 920 !important;
  letter-spacing: 0 !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-title-block h2 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(2rem, 4.8vw, 4.15rem) !important;
  line-height: 0.96 !important;
  letter-spacing: 0 !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-title-block p {
  max-width: 720px !important;
  margin: 12px 0 0 !important;
  color: rgba(244, 255, 251, 0.84) !important;
  font-size: clamp(0.98rem, 1.7vw, 1.18rem) !important;
  font-weight: 780 !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-date-block {
  display: grid !important;
  gap: 5px !important;
  min-width: 150px !important;
  padding: 13px 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 20px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-date-block span {
  color: rgba(230, 255, 247, 0.68) !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-date-block strong {
  font-size: 0.98rem !important;
  line-height: 1.2 !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr) !important;
  gap: clamp(16px, 2.4vw, 24px) !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-media {
  grid-row: span 2 !important;
  min-height: clamp(320px, 42vw, 520px) !important;
  padding: 12px !important;
  border: 1px solid rgba(9, 66, 70, 0.1) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 18px 34px rgba(13, 79, 81, 0.1) !important;
}

html body main.app-shell .full-memory-capsule .memory-sheet-media-bar {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 0 10px !important;
  padding: 0 4px !important;
  color: #123e4b !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body main.app-shell .full-memory-capsule .sheet-photo-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  height: auto !important;
}

html body main.app-shell .full-memory-capsule .sheet-photo-gallery__photo:first-child {
  grid-column: 1 / -1 !important;
  height: clamp(240px, 34vw, 410px) !important;
}

html body main.app-shell .full-memory-capsule .sheet-photo-gallery__photo,
html body main.app-shell .full-memory-capsule .sheet-video-wrap,
html body main.app-shell .full-memory-capsule .sheet-video-wrap .memory-video-player,
html body main.app-shell .full-memory-capsule .sheet-video-wrap .memory-card-video,
html body main.app-shell .full-memory-capsule .sheet-video-wrap .memory-card-video-link {
  width: 100% !important;
  height: 120px !important;
  border-radius: 20px !important;
  background: #e8f6f4 !important;
  object-fit: cover !important;
  box-shadow: none !important;
}

html body main.app-shell .full-memory-capsule .sheet-video-wrap {
  min-height: 0 !important;
  overflow: hidden !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-media.has-video-only .sheet-video-wrap,
html body main.app-shell .full-memory-capsule .memory-capsule-media.has-video-only .memory-video-player,
html body main.app-shell .full-memory-capsule .memory-capsule-media.has-video-only .memory-card-video,
html body main.app-shell .full-memory-capsule .memory-capsule-media.has-video-only .memory-card-video-link {
  height: clamp(260px, 38vw, 460px) !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-story {
  align-self: start !important;
  padding: clamp(18px, 2.4vw, 24px) !important;
  border: 1px solid rgba(20, 91, 82, 0.1) !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 14px 28px rgba(13, 79, 81, 0.08) !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-story span {
  color: #0f6a62 !important;
  font-size: 0.76rem !important;
  font-weight: 930 !important;
  text-transform: uppercase !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-story p {
  margin: 10px 0 0 !important;
  color: #183f49 !important;
  font-size: clamp(1rem, 1.65vw, 1.16rem) !important;
  line-height: 1.6 !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-info-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-info-grid span {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
  padding: 13px 14px !important;
  border: 1px solid rgba(12, 73, 78, 0.09) !important;
  border-radius: 18px !important;
  background: rgba(240, 252, 248, 0.86) !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-info-grid b {
  color: rgba(18, 65, 75, 0.56) !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-info-grid em {
  overflow: hidden !important;
  color: #123e4b !important;
  font-size: 0.88rem !important;
  font-style: normal !important;
  font-weight: 850 !important;
  line-height: 1.28 !important;
  text-overflow: ellipsis !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-detail-chips,
html body main.app-shell .full-memory-capsule .memory-capsule-coordinates {
  grid-column: 2 !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-actions {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 0 !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-actions button {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 17px !important;
  color: #0d3a44 !important;
  background: rgba(238, 251, 247, 0.92) !important;
  box-shadow: 0 12px 24px rgba(13, 79, 81, 0.09) !important;
  font-weight: 920 !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-actions button[data-sheet-action="edit"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #137f76, #1c8fd3) !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-actions button[data-sheet-action="route"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1f7ed0, #33b49b) !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-actions button[data-route-mode="walking"] {
  color: #0d3a44 !important;
  background: linear-gradient(135deg, rgba(215, 255, 239, 0.96), rgba(197, 237, 255, 0.96)) !important;
}

html body main.app-shell .full-memory-capsule .memory-capsule-actions button.danger {
  color: #9b1d2b !important;
  background: rgba(255, 237, 237, 0.92) !important;
}

@media (max-width: 820px) {
  html body main.app-shell .memory-bottom-sheet.open {
    padding: 12px !important;
    align-items: center !important;
    justify-items: center !important;
  }

  html body main.app-shell .memory-sheet-card.full-memory-capsule {
    max-height: calc(100vh - 24px) !important;
    border-radius: 28px !important;
    padding: 14px !important;
  }

  html body main.app-shell .full-memory-capsule .memory-capsule-hero,
  html body main.app-shell .full-memory-capsule .memory-capsule-body {
    grid-template-columns: 1fr !important;
  }

  html body main.app-shell .full-memory-capsule .memory-capsule-date-block {
    min-width: 0 !important;
  }

  html body main.app-shell .full-memory-capsule .memory-capsule-media {
    grid-row: auto !important;
    min-height: 0 !important;
  }

  html body main.app-shell .full-memory-capsule .sheet-photo-gallery__photo:first-child {
    height: 240px !important;
  }

  html body main.app-shell .full-memory-capsule .memory-capsule-detail-chips,
  html body main.app-shell .full-memory-capsule .memory-capsule-coordinates {
    grid-column: auto !important;
  }

  html body main.app-shell .full-memory-capsule .memory-capsule-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final stat icon alignment: the stats are stacked, so no side offset. */
html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat-icon.mappi-glyph {
  margin: 0 auto !important;
  justify-self: center !important;
  align-self: center !important;
  transform: translateX(0) !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
  text-align: center !important;
}

html body .app-shell .memory-editor .memory-flow-panel {
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--editor-accent, #2478ff) 7%, #ffffff), rgba(255, 255, 255, 0.9)),
    #ffffff !important;
}

html body .app-shell .memory-editor .editor-actions {
  display: grid !important;
  grid-template-columns: auto minmax(190px, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .app-shell .memory-editor .editor-actions .primary-button {
  width: min(100%, 260px) !important;
  justify-self: end !important;
  background:
    linear-gradient(135deg, #136f63, #2d9b85 48%, #1f78d1) !important;
  box-shadow:
    0 18px 34px rgba(15, 96, 116, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
}

html body .app-shell .memory-save-confirmation[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  html body .app-shell .memory-editor .editor-actions {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .memory-editor .editor-actions .primary-button {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

html body .app-shell .memory-editor .memory-flow-panel {
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--editor-accent, #2478ff) 7%, #ffffff), rgba(255, 255, 255, 0.9)),
    #ffffff !important;
}

html body .app-shell .memory-editor .editor-actions {
  display: grid !important;
  grid-template-columns: auto minmax(190px, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .app-shell .memory-editor .editor-actions .primary-button {
  width: min(100%, 260px) !important;
  justify-self: end !important;
  background:
    linear-gradient(135deg, #136f63, #2d9b85 48%, #1f78d1) !important;
  box-shadow:
    0 18px 34px rgba(15, 96, 116, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
}

html body .app-shell .memory-save-confirmation[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  html body .app-shell .memory-editor .editor-actions {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .memory-editor .editor-actions .primary-button {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

html body .app-shell .memory-editor .memory-flow-panel {
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--editor-accent, #2478ff) 7%, #ffffff), rgba(255, 255, 255, 0.9)),
    #ffffff !important;
}

html body .app-shell .memory-editor .editor-actions {
  display: grid !important;
  grid-template-columns: auto minmax(190px, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .app-shell .memory-editor .editor-actions .primary-button {
  width: min(100%, 260px) !important;
  justify-self: end !important;
  background:
    linear-gradient(135deg, #136f63, #2d9b85 48%, #1f78d1) !important;
  box-shadow:
    0 18px 34px rgba(15, 96, 116, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
}

html body .app-shell .memory-save-confirmation[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  html body .app-shell .memory-editor .editor-actions {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .memory-editor .editor-actions .primary-button {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

/* Memory database v326: make Memories a full-page memory lane, not a clipped side panel. */
html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel {
  position: fixed !important;
  inset: 0 !important;
  z-index: 42 !important;
  display: block !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: calc(env(safe-area-inset-top) + 86px) clamp(14px, 3vw, 34px) calc(var(--bottom-nav-height, 84px) + 34px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 197, 122, 0.22), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(35, 194, 221, 0.18), transparent 32%),
    linear-gradient(180deg, #061a26 0%, #082f3c 50%, #0d3d34 100%) !important;
  box-shadow: none !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel > .panel-section,
html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel > .tabs,
html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel > .drawer-view {
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel > .panel-section {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(18px, 2.4vw, 24px) !important;
  padding: clamp(22px, 3.2vw, 34px) !important;
  border: 1px solid rgba(186, 247, 230, 0.16) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(123, 235, 193, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(5, 52, 62, 0.92), rgba(9, 78, 71, 0.82)) !important;
  box-shadow: 0 24px 58px rgba(0, 18, 28, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .memory-hub-heading {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: clamp(16px, 3vw, 28px) !important;
  margin: 0 !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .memory-hub-heading > div:first-child {
  display: grid !important;
  max-width: 760px !important;
  gap: 9px !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .memory-hub-heading h2 {
  margin: 0 !important;
  color: #f7fffb !important;
  font-size: clamp(2.25rem, 5vw, 4.5rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 0.94 !important;
  text-shadow: 0 18px 42px rgba(0, 16, 24, 0.36) !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .memory-hub-heading p {
  max-width: 58ch !important;
  margin: 0 !important;
  color: rgba(222, 255, 246, 0.86) !important;
  font-size: clamp(1rem, 1.85vw, 1.22rem) !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .memory-hub-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel #memoryCount {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 50px !important;
  min-height: 42px !important;
  padding: 8px 15px !important;
  border: 1px solid rgba(211, 255, 244, 0.22) !important;
  border-radius: 999px !important;
  color: #083742 !important;
  background: linear-gradient(135deg, #d9fff2, #82e8ff) !important;
  box-shadow: 0 14px 30px rgba(0, 18, 28, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  font-size: 1.05rem !important;
  font-weight: 950 !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .search-wrap {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 58px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid rgba(218, 255, 245, 0.28) !important;
  border-radius: 22px !important;
  color: rgba(236, 255, 250, 0.92) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(130, 232, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.09)) !important;
  box-shadow:
    0 18px 40px rgba(0, 18, 28, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .search-wrap svg,
html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .search-wrap span[data-icon] {
  width: 22px !important;
  height: 22px !important;
  color: #9ff6dc !important;
  filter: drop-shadow(0 0 12px rgba(111, 232, 207, 0.28)) !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .search-wrap input {
  width: 100% !important;
  min-width: 0 !important;
  border: 0 !important;
  outline: none !important;
  color: #f7fffb !important;
  background: transparent !important;
  font-size: clamp(1rem, 1.8vw, 1.14rem) !important;
  font-weight: 760 !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .search-wrap input::placeholder {
  color: rgba(225, 255, 247, 0.62) !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .search-wrap:focus-within {
  border-color: rgba(154, 246, 220, 0.62) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(130, 232, 255, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.21), rgba(255, 255, 255, 0.12)) !important;
  box-shadow:
    0 18px 42px rgba(0, 18, 28, 0.24),
    0 0 0 4px rgba(111, 232, 207, 0.12),
    0 0 34px rgba(111, 232, 207, 0.16) !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel > .tabs {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  margin-top: 18px !important;
  margin-bottom: 22px !important;
}

/* Memory database v330: header/search/tabs scroll away so cards own the page. */
html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel > .panel-section,
html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel > .tabs {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel > .panel-section {
  margin-bottom: 0 !important;
}

html body main.app-shell section.map-stage.memories-focus #memoryList.drawer-view {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(18px, 2.4vw, 28px) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  overflow: hidden !important;
  border: 1px solid rgba(206, 255, 240, 0.18) !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(235, 249, 244, 0.94)) !important;
  box-shadow: 0 24px 62px rgba(0, 18, 28, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  height: clamp(250px, 36vw, 430px) !important;
  min-height: clamp(250px, 36vw, 430px) !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 24% 16%, color-mix(in srgb, var(--memory-accent, #18a978) 34%, #ffffff 66%), transparent 34%),
    linear-gradient(145deg, #0b4c57, #16a06f) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-image,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-empty {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-empty {
  display: grid !important;
  place-items: center !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-shade {
  background:
    linear-gradient(180deg, rgba(2, 18, 24, 0.02) 18%, rgba(2, 20, 28, 0.16) 52%, rgba(2, 20, 28, 0.84) 100%),
    linear-gradient(90deg, rgba(3, 45, 48, 0.25), transparent 58%) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-copy {
  position: absolute !important;
  right: clamp(16px, 3vw, 30px) !important;
  bottom: clamp(16px, 2.8vw, 28px) !important;
  left: clamp(16px, 3vw, 30px) !important;
  width: auto !important;
  max-width: min(760px, calc(100% - 32px)) !important;
  padding: clamp(14px, 2vw, 18px) clamp(15px, 2.4vw, 22px) !important;
  overflow: visible !important;
  border: 1px solid rgba(204, 255, 240, 0.2) !important;
  border-radius: 24px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 15% 0%, rgba(91, 226, 178, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(5, 52, 62, 0.9), rgba(8, 92, 75, 0.76)) !important;
  box-shadow: 0 18px 42px rgba(0, 18, 28, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-copy strong {
  display: block !important;
  max-width: 100% !important;
  overflow: visible !important;
  color: #fff !important;
  font-size: clamp(1.45rem, 3vw, 2.45rem) !important;
  line-height: 1.02 !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-copy small {
  display: block !important;
  overflow: visible !important;
  color: rgba(229, 255, 248, 0.84) !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-feeling {
  width: fit-content !important;
  color: #083a42 !important;
  background: rgba(235, 255, 248, 0.9) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-body {
  padding: clamp(18px, 3vw, 32px) !important;
}

/* Memory database v328: premium album polish for saved memory cards. */
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(18px, 2.4vw, 26px) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(239, 251, 246, 0.94)) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-main {
  display: grid !important;
  gap: 16px !important;
  padding: clamp(16px, 2.3vw, 22px) !important;
  border: 1px solid rgba(12, 83, 82, 0.08) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 4% 0%, color-mix(in srgb, var(--memory-accent, #18a978) 12%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48)) !important;
  box-shadow:
    0 14px 32px rgba(8, 54, 62, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-title-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 16px !important;
}

/* Memory database v329: keep title/place/date in the cover box and avoid repeated card info. */
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-actions-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-saved-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: fit-content !important;
  min-height: 32px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(12, 83, 82, 0.08) !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--memory-accent, #18a978) 72%, #06343e) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 8px 16px rgba(8, 54, 62, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-size: 0.73rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-saved-label::before,
html body .app-shell .memory-card.compact .memory-sync-status::before {
  content: "" !important;
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-sync-status.is-synced,
html body .app-shell .memory-card.compact .memory-sync-status.is-synced {
  color: #0d6f57 !important;
  background: linear-gradient(180deg, rgba(225, 255, 243, 0.92), rgba(194, 246, 226, 0.74)) !important;
  border-color: rgba(28, 169, 120, 0.2) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-sync-status.is-local,
html body .app-shell .memory-card.compact .memory-sync-status.is-local {
  color: #0a5f7b !important;
  background: linear-gradient(180deg, rgba(231, 249, 255, 0.94), rgba(208, 239, 250, 0.76)) !important;
  border-color: rgba(31, 128, 164, 0.18) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-sync-status.is-pending,
html body .app-shell .memory-card.compact .memory-sync-status.is-pending {
  color: #9a6a04 !important;
  background: linear-gradient(180deg, rgba(255, 249, 223, 0.94), rgba(255, 235, 178, 0.72)) !important;
  border-color: rgba(188, 132, 12, 0.18) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-sync-status.needs-backup,
html body .app-shell .memory-card.compact .memory-sync-status.needs-backup {
  color: #9a352c !important;
  background: linear-gradient(180deg, rgba(255, 244, 241, 0.94), rgba(255, 224, 217, 0.72)) !important;
  border-color: rgba(177, 56, 42, 0.18) !important;
}

html body .app-shell .memory-card.compact .memory-sync-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: fit-content !important;
  min-height: 24px !important;
  margin-top: 6px !important;
  padding: 4px 8px !important;
  border: 1px solid rgba(12, 83, 82, 0.08) !important;
  border-radius: 999px !important;
  font-size: 0.64rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .card-title-block {
  display: grid !important;
  gap: 6px !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .card-title-block span {
  color: color-mix(in srgb, var(--memory-accent, #18a978) 72%, #06343e) !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .card-title-block strong {
  color: #082f3b !important;
  font-size: clamp(1.32rem, 2.4vw, 1.95rem) !important;
  font-weight: 940 !important;
  letter-spacing: 0 !important;
  line-height: 1.04 !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action {
  min-height: 38px !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(11, 82, 82, 0.1) !important;
  border-radius: 999px !important;
  color: #0b3b48 !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 10px 22px rgba(8, 54, 62, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  font-size: 0.84rem !important;
  font-weight: 920 !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(8, 54, 62, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action.primary {
  color: #fff !important;
  border-color: rgba(204, 255, 241, 0.2) !important;
  background:
    radial-gradient(circle at 26% 12%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, #0b7285, #18a978) !important;
  box-shadow: 0 16px 32px rgba(13, 121, 105, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action.danger {
  color: #8d342c !important;
  border-color: rgba(177, 56, 42, 0.12) !important;
  background: linear-gradient(180deg, rgba(255, 249, 246, 0.9), rgba(255, 235, 230, 0.72)) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action.needs-location {
  color: #814b08 !important;
  border-color: rgba(240, 151, 41, 0.24) !important;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 214, 131, 0.34), transparent 38%),
    linear-gradient(180deg, rgba(255, 251, 239, 0.95), rgba(255, 236, 191, 0.82)) !important;
  box-shadow:
    0 14px 28px rgba(184, 112, 24, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-info,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin: 0 !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-info span,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-badges span {
  min-height: 32px !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(12, 83, 82, 0.08) !important;
  border-radius: 999px !important;
  color: rgba(8, 48, 59, 0.72) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 8px 16px rgba(8, 54, 62, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-size: 0.8rem !important;
  font-weight: 840 !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-note {
  margin: 0 !important;
  padding: clamp(16px, 2.2vw, 20px) clamp(17px, 2.4vw, 22px) !important;
  border: 0 !important;
  border-left: 4px solid var(--memory-accent, #18a978) !important;
  border-radius: 22px !important;
  color: rgba(8, 48, 59, 0.82) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--memory-accent, #18a978) 11%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 22px rgba(8, 54, 62, 0.055) !important;
  font-size: clamp(1rem, 1.7vw, 1.12rem) !important;
  font-weight: 560 !important;
  line-height: 1.62 !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-note::before {
  content: "Story" !important;
  display: block !important;
  margin-bottom: 7px !important;
  color: color-mix(in srgb, var(--memory-accent, #18a978) 72%, #06343e) !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-media {
  display: grid !important;
  gap: 14px !important;
  padding: clamp(16px, 2.3vw, 22px) !important;
  border: 1px solid rgba(12, 83, 82, 0.08) !important;
  border-radius: 26px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.42)) !important;
  box-shadow: 0 14px 32px rgba(8, 54, 62, 0.065), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-media-heading {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-media-heading strong {
  color: #0a3440 !important;
  font-size: clamp(1rem, 1.8vw, 1.16rem) !important;
  font-weight: 940 !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-media-heading small {
  color: rgba(10, 51, 61, 0.58) !important;
  font-size: 0.8rem !important;
  font-weight: 830 !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)) !important;
  gap: 10px !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-photo-tile {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 12px 24px rgba(8, 54, 62, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-photo-tile img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 260ms ease, filter 260ms ease !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-photo-tile:hover img {
  filter: saturate(1.08) contrast(1.03) !important;
  transform: scale(1.055) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-video-button {
  display: grid !important;
  grid-template-columns: 50px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 72px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(203, 255, 239, 0.24) !important;
  border-radius: 22px !important;
  color: #f7fffb !important;
  text-align: left !important;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(7, 69, 82, 0.96), rgba(12, 138, 102, 0.9)) !important;
  box-shadow: 0 16px 34px rgba(7, 58, 67, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-video-icon {
  display: grid !important;
  width: 50px !important;
  height: 50px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  color: #083742 !important;
  background: linear-gradient(135deg, #d9fff2, #82e8ff) !important;
  box-shadow: 0 12px 26px rgba(0, 18, 28, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-video-button strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 940 !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-video-button small {
  color: rgba(225, 255, 247, 0.76) !important;
  font-size: 0.8rem !important;
  font-weight: 780 !important;
}

@media (max-width: 720px) {
  html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel {
    padding: calc(env(safe-area-inset-top) + 76px) 12px calc(var(--bottom-nav-height, 84px) + 24px) !important;
  }

  html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel > .panel-section {
    border-radius: 22px !important;
    gap: 16px !important;
    padding: 18px !important;
  }

  html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .memory-hub-heading {
    display: grid !important;
    justify-items: stretch !important;
  }

  html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .memory-hub-heading h2 {
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }

  html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .memory-hub-heading p {
    font-size: 0.96rem !important;
  }

  html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .memory-hub-actions {
    justify-content: space-between !important;
  }

  html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel .search-wrap {
    min-height: 54px !important;
    border-radius: 19px !important;
    padding: 0 15px !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card {
    border-radius: 24px !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover {
    height: clamp(220px, 62vw, 300px) !important;
    min-height: clamp(220px, 62vw, 300px) !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-copy {
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    max-width: calc(100% - 24px) !important;
    border-radius: 20px !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-copy strong {
    font-size: clamp(1.25rem, 6vw, 1.7rem) !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-title-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-actions-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-actions {
    justify-content: stretch !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action {
    flex: 1 1 92px !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-main,
  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-media {
    border-radius: 21px !important;
    padding: 14px !important;
  }
}

/* Header size v324: keep MyMappi smaller on both Home and Explore. */
html body main.app-shell section.map-stage.home-focus header.topbar a.brand,
html body main.app-shell section.map-stage.map-focus header.topbar a.brand {
  padding: 6px 12px !important;
}

html body main.app-shell section.map-stage.home-focus header.topbar a.brand h1,
html body main.app-shell section.map-stage.map-focus header.topbar a.brand h1 {
  font-size: clamp(1.6rem, 3.05vw, 2.55rem) !important;
  line-height: 1 !important;
}

@media (max-width: 720px) {
  html body main.app-shell section.map-stage.home-focus header.topbar a.brand,
  html body main.app-shell section.map-stage.map-focus header.topbar a.brand {
    padding: 5px 9px !important;
  }

  html body main.app-shell section.map-stage.home-focus header.topbar a.brand h1,
  html body main.app-shell section.map-stage.map-focus header.topbar a.brand h1 {
    font-size: clamp(1.36rem, 6.2vw, 1.78rem) !important;
  }
}

/* True final header lock v323: Home and Explore share the exact same header placement. */
html body .app-shell .map-stage.home-focus .topbar,
html body .app-shell .map-stage.map-focus .topbar {
  position: fixed !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  right: auto !important;
  left: 50% !important;
  z-index: 140 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(980px, calc(100vw - 24px)) !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important;
}

html body .app-shell .map-stage.home-focus .topbar-left,
html body .app-shell .map-stage.map-focus .topbar-left,
html body .app-shell .map-stage.home-focus .topbar-actions,
html body .app-shell .map-stage.map-focus .topbar-actions {
  position: absolute !important;
  top: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(6, 31, 43, 0.42) !important;
  box-shadow:
    0 14px 34px rgba(3, 21, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  pointer-events: auto !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1) !important;
  transform: translateY(-50%) !important;
}

html body .app-shell .map-stage.home-focus .topbar-left,
html body .app-shell .map-stage.map-focus .topbar-left {
  left: 0 !important;
}

html body .app-shell .map-stage.home-focus .topbar-actions,
html body .app-shell .map-stage.map-focus .topbar-actions {
  right: 0 !important;
  justify-content: flex-end !important;
}

html body .app-shell .map-stage.home-focus .brand,
html body .app-shell .map-stage.map-focus .brand {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  padding: 7px 13px !important;
  border: 1px solid rgba(222, 255, 247, 0.16) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(7, 41, 52, 0.54), rgba(6, 55, 50, 0.38)) !important;
  box-shadow:
    0 14px 34px rgba(4, 36, 47, 0.14),
    0 0 22px rgba(33, 197, 122, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  pointer-events: auto !important;
  transform: none !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
}

html body .app-shell .map-stage.home-focus .brand h1,
html body .app-shell .map-stage.map-focus .brand h1 {
  font-size: clamp(1.78rem, 3.4vw, 2.85rem) !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus .topbar .icon-button,
html body .app-shell .map-stage.map-focus .topbar .icon-button,
html body .app-shell .map-stage.home-focus .topbar .avatar-button,
html body .app-shell .map-stage.map-focus .topbar .avatar-button {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .topbar,
  html body .app-shell .map-stage.map-focus .topbar {
    top: max(10px, env(safe-area-inset-top)) !important;
    width: calc(100vw - 16px) !important;
    min-height: 50px !important;
  }

  html body .app-shell .map-stage.home-focus .topbar-left,
  html body .app-shell .map-stage.map-focus .topbar-left,
  html body .app-shell .map-stage.home-focus .topbar-actions,
  html body .app-shell .map-stage.map-focus .topbar-actions {
    gap: 5px !important;
    padding: 4px !important;
  }

  html body .app-shell .map-stage.home-focus .brand,
  html body .app-shell .map-stage.map-focus .brand {
    padding: 6px 10px !important;
  }

  html body .app-shell .map-stage.home-focus .brand h1,
  html body .app-shell .map-stage.map-focus .brand h1 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  html body .app-shell .map-stage.home-focus .topbar .icon-button,
  html body .app-shell .map-stage.map-focus .topbar .icon-button,
  html body .app-shell .map-stage.home-focus .topbar .avatar-button,
  html body .app-shell .map-stage.map-focus .topbar .avatar-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
}

/* Header alignment safety lock: higher specificity beats older Home-only rules. */
html body main.app-shell section.map-stage.home-focus header.topbar,
html body main.app-shell section.map-stage.map-focus header.topbar {
  position: fixed !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  right: auto !important;
  left: 50% !important;
  width: min(980px, calc(100vw - 24px)) !important;
  min-height: 56px !important;
  transform: translateX(-50%) !important;
}

html body main.app-shell section.map-stage.home-focus header.topbar a.brand,
html body main.app-shell section.map-stage.map-focus header.topbar a.brand {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  margin: 0 auto !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(222, 255, 247, 0.16) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(7, 41, 52, 0.54), rgba(6, 55, 50, 0.38)) !important;
  box-shadow:
    0 14px 34px rgba(4, 36, 47, 0.14),
    0 0 22px rgba(33, 197, 122, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  transform: none !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
}

html body main.app-shell section.map-stage.home-focus header.topbar a.brand h1,
html body main.app-shell section.map-stage.map-focus header.topbar a.brand h1 {
  font-size: clamp(1.6rem, 3.05vw, 2.55rem) !important;
  line-height: 1 !important;
}

html body main.app-shell section.map-stage.home-focus header.topbar .topbar-left,
html body main.app-shell section.map-stage.map-focus header.topbar .topbar-left,
html body main.app-shell section.map-stage.home-focus header.topbar .topbar-actions,
html body main.app-shell section.map-stage.map-focus header.topbar .topbar-actions {
  top: 50% !important;
  gap: 8px !important;
  padding: 5px !important;
  transform: translateY(-50%) !important;
}

html body main.app-shell section.map-stage.home-focus header.topbar .topbar-left,
html body main.app-shell section.map-stage.map-focus header.topbar .topbar-left {
  left: 0 !important;
}

html body main.app-shell section.map-stage.home-focus header.topbar .topbar-actions,
html body main.app-shell section.map-stage.map-focus header.topbar .topbar-actions {
  right: 0 !important;
}

@media (max-width: 720px) {
  html body main.app-shell section.map-stage.home-focus header.topbar,
  html body main.app-shell section.map-stage.map-focus header.topbar {
    top: max(10px, env(safe-area-inset-top)) !important;
    width: calc(100vw - 16px) !important;
    min-height: 50px !important;
  }

  html body main.app-shell section.map-stage.home-focus header.topbar a.brand,
  html body main.app-shell section.map-stage.map-focus header.topbar a.brand {
    padding: 5px 9px !important;
  }

  html body main.app-shell section.map-stage.home-focus header.topbar a.brand h1,
  html body main.app-shell section.map-stage.map-focus header.topbar a.brand h1 {
    font-size: clamp(1.36rem, 6.2vw, 1.78rem) !important;
  }
}

/* True final header lock: Home and Explore share the exact same header placement. */
html body .app-shell .map-stage.home-focus .topbar,
html body .app-shell .map-stage.map-focus .topbar {
  position: fixed !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  right: auto !important;
  left: 50% !important;
  z-index: 140 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(980px, calc(100vw - 24px)) !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important;
}

html body .app-shell .map-stage.home-focus .topbar-left,
html body .app-shell .map-stage.map-focus .topbar-left,
html body .app-shell .map-stage.home-focus .topbar-actions,
html body .app-shell .map-stage.map-focus .topbar-actions {
  position: absolute !important;
  top: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(6, 31, 43, 0.42) !important;
  box-shadow:
    0 14px 34px rgba(3, 21, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  pointer-events: auto !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1) !important;
  transform: translateY(-50%) !important;
}

html body .app-shell .map-stage.home-focus .topbar-left,
html body .app-shell .map-stage.map-focus .topbar-left {
  left: 0 !important;
}

html body .app-shell .map-stage.home-focus .topbar-actions,
html body .app-shell .map-stage.map-focus .topbar-actions {
  right: 0 !important;
  justify-content: flex-end !important;
}

html body .app-shell .map-stage.home-focus .brand,
html body .app-shell .map-stage.map-focus .brand {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  padding: 7px 13px !important;
  border: 1px solid rgba(222, 255, 247, 0.16) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(7, 41, 52, 0.54), rgba(6, 55, 50, 0.38)) !important;
  box-shadow:
    0 14px 34px rgba(4, 36, 47, 0.14),
    0 0 22px rgba(33, 197, 122, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  pointer-events: auto !important;
  transform: none !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
}

html body .app-shell .map-stage.home-focus .brand h1,
html body .app-shell .map-stage.map-focus .brand h1 {
  font-size: clamp(1.78rem, 3.4vw, 2.85rem) !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus .topbar .icon-button,
html body .app-shell .map-stage.map-focus .topbar .icon-button,
html body .app-shell .map-stage.home-focus .topbar .avatar-button,
html body .app-shell .map-stage.map-focus .topbar .avatar-button {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .topbar,
  html body .app-shell .map-stage.map-focus .topbar {
    top: max(10px, env(safe-area-inset-top)) !important;
    width: calc(100vw - 16px) !important;
    min-height: 50px !important;
  }

  html body .app-shell .map-stage.home-focus .topbar-left,
  html body .app-shell .map-stage.map-focus .topbar-left,
  html body .app-shell .map-stage.home-focus .topbar-actions,
  html body .app-shell .map-stage.map-focus .topbar-actions {
    gap: 5px !important;
    padding: 4px !important;
  }

  html body .app-shell .map-stage.home-focus .brand,
  html body .app-shell .map-stage.map-focus .brand {
    padding: 6px 10px !important;
  }

  html body .app-shell .map-stage.home-focus .brand h1,
  html body .app-shell .map-stage.map-focus .brand h1 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  html body .app-shell .map-stage.home-focus .topbar .icon-button,
  html body .app-shell .map-stage.map-focus .topbar .icon-button,
  html body .app-shell .map-stage.home-focus .topbar .avatar-button,
  html body .app-shell .map-stage.map-focus .topbar .avatar-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
}

/* Explore World: keep the globe centered as the hero object. */
html body .app-shell .map-stage.map-focus.explore-world-mode canvas#earthGlobe.earth-globe {
  --explore-globe-size: min(84vw, calc(100vh - 190px), 780px);
  display: block !important;
  position: fixed !important;
  z-index: 20 !important;
  top: 52% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  width: var(--explore-globe-size) !important;
  height: var(--explore-globe-size) !important;
  min-width: min(320px, calc(100vw - 28px)) !important;
  min-height: min(320px, calc(100vw - 28px)) !important;
  max-width: calc(100vw - 28px) !important;
  max-height: calc(100vh - 150px) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: grab !important;
  transform: translate3d(-50%, -50%, 0) !important;
  transform-origin: center center !important;
  filter: drop-shadow(0 0 52px rgba(78, 197, 255, 0.34)) drop-shadow(0 28px 72px rgba(0, 8, 20, 0.46)) !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode canvas#earthGlobe.earth-globe:active {
  cursor: grabbing !important;
}

/* Explore is map-only for now: keep all old globe UI/layers from interfering. */
html body .app-shell .explore-mode-switch,
html body .app-shell canvas#earthGlobe.earth-globe,
html body .app-shell .map-stage .earth-globe {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus #map {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Memory Lane photo softness: no black photo backgrounds. */
html body .app-shell .memory-lane-cover {
  background:
    radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--memory-accent, #18a978) 18%, #ffffff 82%), transparent 36%),
    linear-gradient(145deg, #f7fff9, #dff4ec) !important;
}

html body .app-shell .memory-lane-cover-shade {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.02) 0%, rgba(255, 253, 248, 0.06) 48%, rgba(255, 253, 248, 0.72) 100%) !important;
}

html body .app-shell .memory-lane-cover-copy {
  right: 16px !important;
  bottom: 16px !important;
  left: 16px !important;
  padding: 14px 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.64) !important;
  border-radius: 22px !important;
  color: #0b3440 !important;
  background: rgba(255, 253, 248, 0.78) !important;
  box-shadow: 0 14px 30px rgba(8, 54, 62, 0.1) !important;
  backdrop-filter: blur(14px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.05) !important;
}

html body .app-shell .memory-lane-cover-copy strong {
  color: #0a3440 !important;
  text-shadow: none !important;
}

html body .app-shell .memory-lane-cover-copy small {
  color: rgba(10, 52, 64, 0.68) !important;
}

html body .app-shell .memory-lane-feeling {
  border-color: rgba(14, 89, 87, 0.08) !important;
  color: color-mix(in srgb, var(--memory-accent, #18a978) 70%, #0a3440) !important;
  background: rgba(255, 255, 255, 0.68) !important;
}

/* Memories makeover final override v316. */
html body .app-shell .map-stage.memories-focus {
  background:
    radial-gradient(circle at 14% 8%, rgba(44, 171, 124, 0.18), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(49, 142, 197, 0.16), transparent 32%),
    linear-gradient(180deg, #eef9f2 0%, #e7f4ef 44%, #fbfcf8 100%) !important;
}

html body .app-shell .map-stage.memories-focus .memory-database-page {
  width: min(980px, calc(100vw - 26px)) !important;
  max-width: 980px !important;
  padding: clamp(18px, 3vw, 28px) !important;
  border: 1px solid rgba(14, 89, 87, 0.1) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.75), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(238, 251, 245, 0.78)) !important;
  box-shadow: 0 26px 70px rgba(8, 54, 62, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .memory-journal-list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(18px, 2.8vw, 28px) !important;
}

html body .app-shell .memory-lane-card {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.46fr) minmax(0, 0.54fr) !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(14, 89, 87, 0.1) !important;
  border-radius: 34px !important;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(240, 252, 247, 0.86)) !important;
  box-shadow: 0 22px 58px rgba(9, 58, 66, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html body .app-shell .memory-lane-cover {
  position: relative !important;
  min-height: 380px !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--memory-accent, #18a978) 34%, #ffffff 66%), transparent 34%), linear-gradient(145deg, #0b4c57, #16a06f) !important;
}

html body .app-shell .memory-lane-cover-image,
html body .app-shell .memory-lane-cover-empty {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  min-height: inherit !important;
  place-items: center !important;
  object-fit: cover !important;
}

html body .app-shell .memory-lane-cover-shade {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, transparent 22%, rgba(3, 21, 29, 0.18) 55%, rgba(2, 20, 28, 0.78) 100%) !important;
}

html body .app-shell .memory-lane-cover-copy {
  position: absolute !important;
  right: 20px !important;
  bottom: 20px !important;
  left: 20px !important;
  display: grid !important;
  gap: 7px !important;
  color: #ffffff !important;
  text-align: left !important;
}

html body .app-shell .memory-lane-cover-copy strong {
  color: #ffffff !important;
  font-size: clamp(1.55rem, 3vw, 2.35rem) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34) !important;
}

html body .app-shell .memory-lane-body {
  display: grid !important;
  align-content: start !important;
  gap: 20px !important;
  padding: clamp(20px, 3vw, 30px) !important;
}

html body .app-shell .memory-lane-title-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: start !important;
}

html body .app-shell .memory-lane-info,
html body .app-shell .memory-lane-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

html body .app-shell .memory-lane-info {
  margin-top: 14px !important;
}

html body .app-shell .memory-lane-info span,
html body .app-shell .memory-lane-badges span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(14, 89, 87, 0.08) !important;
  border-radius: 999px !important;
  color: rgba(10, 51, 61, 0.72) !important;
  font-size: 0.78rem !important;
  font-weight: 820 !important;
  background: rgba(255, 255, 255, 0.58) !important;
}

html body .app-shell .memory-lane-note {
  margin: 16px 0 0 !important;
  padding: 16px 18px !important;
  border-left: 3px solid var(--memory-accent, #18a978) !important;
  border-radius: 18px !important;
  color: rgba(10, 49, 59, 0.82) !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  text-align: left !important;
  background: rgba(255, 255, 255, 0.58) !important;
}

html body .app-shell .memory-lane-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)) !important;
  gap: 8px !important;
}

html body .app-shell .memory-lane-photo-tile {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.74) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.56) !important;
  box-shadow: 0 8px 18px rgba(8, 54, 62, 0.09) !important;
  cursor: zoom-in !important;
}

html body .app-shell .memory-lane-photo-tile img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

html body .app-shell .memory-lane-video-button {
  display: inline-grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 62px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(14, 89, 87, 0.1) !important;
  border-radius: 18px !important;
  color: #093643 !important;
  text-align: left !important;
  background: radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--memory-accent, #18a978) 18%, transparent), transparent 42%), rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 10px 22px rgba(8, 54, 62, 0.09) !important;
}

html body .app-shell .memory-lane-video-icon {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0b7285, #18a978) !important;
  box-shadow: 0 10px 20px rgba(13, 121, 105, 0.2) !important;
}

@media (max-width: 780px) {
  html body .app-shell .memory-lane-card {
    grid-template-columns: 1fr !important;
    border-radius: 28px !important;
  }

  html body .app-shell .memory-lane-cover {
    min-height: 265px !important;
  }

  html body .app-shell .memory-lane-title-row {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .memory-lane-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Memories makeover: premium Memory Lane cards. */
html body .app-shell .map-stage.memories-focus {
  background:
    radial-gradient(circle at 14% 8%, rgba(44, 171, 124, 0.18), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(49, 142, 197, 0.16), transparent 32%),
    linear-gradient(180deg, #eef9f2 0%, #e7f4ef 44%, #fbfcf8 100%) !important;
}

html body .app-shell .map-stage.memories-focus .memory-database-page {
  width: min(980px, calc(100vw - 26px)) !important;
  max-width: 980px !important;
  padding: clamp(18px, 3vw, 28px) !important;
  border: 1px solid rgba(14, 89, 87, 0.1) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.75), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(238, 251, 245, 0.78)) !important;
  box-shadow:
    0 26px 70px rgba(8, 54, 62, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .memory-journal-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 20px !important;
  padding: clamp(18px, 2.8vw, 26px) !important;
  border: 1px solid rgba(14, 89, 87, 0.08) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(135deg, rgba(7, 54, 64, 0.96), rgba(10, 119, 99, 0.88)) !important;
  box-shadow: 0 18px 42px rgba(5, 44, 54, 0.18) !important;
}

html body .app-shell .memory-journal-header span {
  color: rgba(222, 255, 246, 0.72) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html body .app-shell .memory-journal-header strong {
  color: #ffffff !important;
  font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .memory-journal-header p {
  max-width: 580px !important;
  margin: 8px 0 0 !important;
  color: rgba(235, 255, 249, 0.76) !important;
  font-size: 0.96rem !important;
  line-height: 1.45 !important;
}

html body .app-shell .memory-journal-list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(18px, 2.8vw, 28px) !important;
}

html body .app-shell .memory-lane-card {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.46fr) minmax(0, 0.54fr) !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(14, 89, 87, 0.1) !important;
  border-radius: 34px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(240, 252, 247, 0.86)) !important;
  box-shadow:
    0 22px 58px rgba(9, 58, 66, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html body .app-shell .memory-lane-cover {
  position: relative !important;
  min-height: 380px !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--memory-accent, #18a978) 34%, #ffffff 66%), transparent 34%),
    linear-gradient(145deg, #0b4c57, #16a06f) !important;
}

html body .app-shell .memory-lane-cover-image,
html body .app-shell .memory-lane-cover-empty {
  width: 100% !important;
  height: 100% !important;
  min-height: inherit !important;
  object-fit: cover !important;
  display: grid !important;
  place-items: center !important;
}

html body .app-shell .memory-lane-cover-image {
  cursor: zoom-in !important;
  transition: transform 700ms ease !important;
}

html body .app-shell .memory-lane-card:hover .memory-lane-cover-image {
  transform: scale(1.035) !important;
}

html body .app-shell .memory-lane-cover-empty {
  color: #ffffff !important;
  gap: 10px !important;
  font-size: 4rem !important;
}

html body .app-shell .memory-lane-cover-empty strong {
  padding: 7px 12px !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.9rem !important;
  background: rgba(5, 33, 44, 0.32) !important;
}

html body .app-shell .memory-lane-cover-shade {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, transparent 22%, rgba(3, 21, 29, 0.18) 55%, rgba(2, 20, 28, 0.78) 100%) !important;
}

html body .app-shell .memory-lane-cover-copy {
  position: absolute !important;
  right: 20px !important;
  bottom: 20px !important;
  left: 20px !important;
  display: grid !important;
  gap: 7px !important;
  color: #ffffff !important;
  text-align: left !important;
}

html body .app-shell .memory-lane-feeling {
  width: fit-content !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  background: rgba(6, 40, 48, 0.42) !important;
  backdrop-filter: blur(12px) !important;
}

html body .app-shell .memory-lane-cover-copy strong {
  color: #ffffff !important;
  font-size: clamp(1.55rem, 3vw, 2.35rem) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34) !important;
}

html body .app-shell .memory-lane-cover-copy small {
  color: rgba(245, 255, 252, 0.82) !important;
  font-size: 0.88rem !important;
  font-weight: 780 !important;
}

html body .app-shell .memory-lane-body {
  display: grid !important;
  align-content: start !important;
  gap: 20px !important;
  padding: clamp(20px, 3vw, 30px) !important;
}

html body .app-shell .memory-lane-title-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: start !important;
}

html body .app-shell .memory-lane-title-row .card-title-block {
  display: grid !important;
  gap: 5px !important;
  text-align: left !important;
}

html body .app-shell .memory-lane-title-row .card-title-block span {
  color: color-mix(in srgb, var(--memory-accent, #18a978) 70%, #083640) !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html body .app-shell .memory-lane-title-row .card-title-block strong {
  color: #092f3b !important;
  font-size: clamp(1.25rem, 2.1vw, 1.72rem) !important;
  line-height: 1.08 !important;
}

html body .app-shell .memory-lane-info {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

html body .app-shell .memory-lane-info span,
html body .app-shell .memory-lane-badges span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(14, 89, 87, 0.08) !important;
  border-radius: 999px !important;
  color: rgba(10, 51, 61, 0.72) !important;
  font-size: 0.78rem !important;
  font-weight: 820 !important;
  background: rgba(255, 255, 255, 0.58) !important;
}

html body .app-shell .memory-lane-note {
  margin: 16px 0 0 !important;
  padding: 16px 18px !important;
  border-left: 3px solid var(--memory-accent, #18a978) !important;
  border-radius: 18px !important;
  color: rgba(10, 49, 59, 0.82) !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  text-align: left !important;
  background: rgba(255, 255, 255, 0.58) !important;
}

html body .app-shell .memory-lane-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

html body .app-shell .memory-card-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

html body .app-shell .memory-card-action {
  min-height: 34px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(14, 89, 87, 0.09) !important;
  border-radius: 999px !important;
  color: #103f4a !important;
  font-weight: 900 !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

html body .app-shell .memory-card-action.primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0b7285, #18a978) !important;
  box-shadow: 0 10px 22px rgba(13, 121, 105, 0.18) !important;
}

html body .app-shell .memory-card-action.danger {
  color: #9b2e28 !important;
  background: rgba(255, 244, 241, 0.78) !important;
}

html body .app-shell .memory-lane-media {
  display: grid !important;
  gap: 12px !important;
  padding-top: 4px !important;
}

html body .app-shell .memory-lane-media-heading {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

html body .app-shell .memory-lane-media-heading strong {
  color: #0c3440 !important;
  font-size: 0.96rem !important;
}

html body .app-shell .memory-lane-media-heading small {
  color: rgba(10, 51, 61, 0.5) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
}

html body .app-shell .memory-lane-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)) !important;
  gap: 8px !important;
}

html body .app-shell .memory-lane-photo-tile {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.74) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.56) !important;
  box-shadow: 0 8px 18px rgba(8, 54, 62, 0.09) !important;
  cursor: zoom-in !important;
}

html body .app-shell .memory-lane-photo-tile img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 220ms ease !important;
}

html body .app-shell .memory-lane-photo-tile:hover img {
  transform: scale(1.05) !important;
}

html body .app-shell .memory-lane-video-button {
  display: inline-grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 62px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(14, 89, 87, 0.1) !important;
  border-radius: 18px !important;
  color: #093643 !important;
  text-align: left !important;
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--memory-accent, #18a978) 18%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 10px 22px rgba(8, 54, 62, 0.09) !important;
}

html body .app-shell .memory-lane-video-icon {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0b7285, #18a978) !important;
  box-shadow: 0 10px 20px rgba(13, 121, 105, 0.2) !important;
}

html body .app-shell .memory-lane-video-button strong {
  display: block !important;
  color: #093643 !important;
  font-size: 0.96rem !important;
}

html body .app-shell .memory-lane-video-button small {
  color: rgba(10, 51, 61, 0.58) !important;
  font-size: 0.76rem !important;
  font-weight: 780 !important;
}

@media (max-width: 780px) {
  html body .app-shell .map-stage.memories-focus .memory-database-page {
    width: calc(100vw - 18px) !important;
    padding: 12px !important;
    border-radius: 26px !important;
  }

  html body .app-shell .memory-journal-header {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
    border-radius: 24px !important;
  }

  html body .app-shell .memory-lane-card {
    grid-template-columns: 1fr !important;
    border-radius: 28px !important;
  }

  html body .app-shell .memory-lane-cover {
    min-height: 265px !important;
  }

  html body .app-shell .memory-lane-body {
    padding: 18px !important;
  }

  html body .app-shell .memory-lane-title-row {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .memory-card-actions {
    justify-content: flex-start !important;
  }

  html body .app-shell .memory-lane-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Explore dual-mode experience v314: World for wonder, Map for precision. */
html body .app-shell .explore-mode-switch {
  position: fixed !important;
  top: max(78px, calc(env(safe-area-inset-top) + 78px)) !important;
  left: 50% !important;
  z-index: 135 !important;
  display: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: min(250px, calc(100vw - 38px)) !important;
  padding: 5px !important;
  border: 1px solid rgba(204, 247, 237, 0.2) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(7, 35, 49, 0.78), rgba(6, 52, 55, 0.56)) !important;
  box-shadow: 0 16px 38px rgba(0, 18, 29, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
  transform: translateX(-50%) !important;
}

html body .app-shell .map-stage.map-focus .explore-mode-switch {
  display: grid !important;
}

html body .app-shell .explore-mode-switch button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 38px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: rgba(235, 255, 249, 0.78) !important;
  font: 900 0.82rem/1 Inter, system-ui, sans-serif !important;
  background: transparent !important;
  cursor: pointer !important;
}

html body .app-shell .explore-mode-switch button.active {
  color: #073540 !important;
  background: radial-gradient(circle at 26% 16%, rgba(255, 255, 255, 0.86), transparent 32%), linear-gradient(135deg, #ddfff0, #78e7ff) !important;
  box-shadow: 0 8px 18px rgba(0, 18, 29, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode {
  background: radial-gradient(circle at 50% 46%, rgba(52, 172, 255, 0.22), transparent 34%), radial-gradient(circle at 18% 14%, rgba(87, 227, 179, 0.12), transparent 28%), linear-gradient(180deg, #051827 0%, #082b38 46%, #03111d 100%) !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode #map {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .earth-globe {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 20 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: grab !important;
  filter: drop-shadow(0 0 44px rgba(67, 185, 255, 0.28)) drop-shadow(0 28px 70px rgba(0, 9, 20, 0.42)) !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .earth-globe:active {
  cursor: grabbing !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .map-navigation-gadget,
html body .app-shell .map-stage.map-focus.explore-world-mode .map-coordinates,
html body .app-shell .map-stage.map-focus.explore-world-mode .memory-peek-card,
html body .app-shell .map-stage.map-focus.explore-world-mode .location-banner,
html body .app-shell .map-stage.map-focus.explore-world-mode .you-are-here-message {
  display: none !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode .map-life-layer {
  z-index: 22 !important;
  opacity: 0.28 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus.explore-world-mode::before {
  display: block !important;
  opacity: 1 !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 18 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.48) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 72%, rgba(151, 228, 255, 0.46) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.36) 0 1px, transparent 2px) !important;
  background-size: 260px 220px, 330px 280px, 410px 360px, 520px 460px !important;
}

html body .app-shell .map-stage.map-focus.explore-map-mode .earth-globe {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus.explore-map-mode #map {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

html body .app-shell .map-stage.map-focus .travel-path,
html body .app-shell .map-stage.map-focus .travel-path-halo,
html body .app-shell .map-stage.map-focus .travel-path-core,
html body .app-shell .map-stage.map-focus .travel-path-pulse,
html body .app-shell .map-stage.map-focus .journey-stop-marker,
html body .app-shell .map-stage.map-focus .memory-trail-path,
html body .app-shell .map-stage.map-focus .memory-trail-footprint,
html body .app-shell .map-stage.map-focus .memory-chapter-trail,
html body .app-shell .map-stage.map-focus .memory-chapter-trail-stop,
html body .app-shell .map-stage.map-focus .memory-chapter-trail-label,
html body .app-shell .map-stage.map-focus .memory-constellation-line,
html body .app-shell .map-stage.map-focus .memory-constellation-label {
  display: none !important;
  opacity: 0 !important;
}

@media (max-width: 720px) {
  html body .app-shell .explore-mode-switch {
    top: max(64px, calc(env(safe-area-inset-top) + 64px)) !important;
    width: min(218px, calc(100vw - 34px)) !important;
  }

  html body .app-shell .explore-mode-switch button {
    min-height: 34px !important;
    font-size: 0.76rem !important;
  }
}

/* Home premium polish: quieter stats, stronger hero memory, one tiny Mappi note. */
html body .app-shell .map-stage.home-focus .hero-copy > .home-mappi-moment {
  display: none !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse {
  gap: 8px !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
  min-height: 42px !important;
  padding: 8px 13px !important;
  border-color: rgba(20, 116, 111, 0.075) !important;
  color: rgba(8, 47, 60, 0.68) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.58), rgba(241, 251, 246, 0.46)) !important;
  box-shadow:
    0 8px 20px rgba(15, 92, 89, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.62) inset !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat-icon {
  opacity: 0.8 !important;
  transform: scale(0.92) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  position: relative !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card::before {
  content: "" !important;
  position: absolute !important;
  inset: -24px -18px -28px !important;
  z-index: -1 !important;
  border-radius: 46px !important;
  background:
    radial-gradient(circle at 50% 36%, rgba(44, 215, 169, 0.25), transparent 48%),
    radial-gradient(circle at 18% 18%, rgba(255, 199, 87, 0.12), transparent 34%),
    radial-gradient(circle at 82% 84%, rgba(11, 114, 133, 0.13), transparent 42%) !important;
  filter: blur(8px) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-bottom-note {
  width: fit-content !important;
  max-width: min(92vw, 520px) !important;
  margin: 2px auto 0 !important;
  padding: 10px 15px !important;
  border: 1px solid rgba(20, 116, 111, 0.08) !important;
  border-radius: 999px !important;
  color: rgba(7, 63, 74, 0.64) !important;
  font-size: clamp(0.82rem, 1.4vw, 0.94rem) !important;
  font-weight: 740 !important;
  text-align: center !important;
  background: rgba(255, 253, 248, 0.54) !important;
  box-shadow: 0 10px 24px rgba(15, 92, 89, 0.06) !important;
  backdrop-filter: blur(14px) saturate(1.04) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.04) !important;
}

/* Absolute final memory sheet header lock. */
html body .app-shell .memory-sheet-card.memory-capsule-card {
  padding-top: 14px !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 78px !important;
  width: 100% !important;
  margin: -2px -2px 2px !important;
  padding: 12px 54px 12px 12px !important;
  border: 1px solid rgba(201, 255, 238, 0.15) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(42, 215, 156, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(4, 48, 58, 0.96), rgba(5, 32, 48, 0.94)) !important;
  box-shadow:
    0 18px 38px rgba(3, 27, 38, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 4px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3 {
  margin: 0 !important;
  color: #f7fffb !important;
  font-size: clamp(1.44rem, 3vw, 2rem) !important;
  font-weight: 920 !important;
  line-height: 1.03 !important;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-meta {
  margin: 0 !important;
  color: rgba(232, 255, 247, 0.72) !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker {font-size: 0.58rem !important;
  padding: 4px 8px !important;
  line-height: 1.05 !important;

  width: fit-content !important;
  order: 2 !important;
  margin-top: 1px !important;
  border-color: rgba(144, 242, 209, 0.22) !important;
  color: #8df1ca !important;
  font-size: 0.68rem !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
  width: 58px !important;
  height: 58px !important;
  margin-top: 0 !important;
  border-color: rgba(144, 242, 209, 0.42) !important;
  background:
    radial-gradient(circle at 32% 18%, rgba(126, 232, 194, 0.32), transparent 36%),
    linear-gradient(145deg, #053040 0%, #0b7285 52%, #18a978 100%) !important;
  box-shadow:
    0 14px 28px rgba(2, 20, 28, 0.24),
    0 0 0 6px rgba(126, 232, 194, 0.12) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi {
  transform: rotate(45deg) scale(1) translate(1px, -1px) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi img {
  display: none !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi {
  position: relative !important;
  display: block !important;
  width: 36px !important;
  height: 34px !important;
  overflow: visible !important;
  border: 2px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 11px 13px 10px 12px !important;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(255, 255, 255, 0.86) 39% 45%, transparent 46%),
    linear-gradient(210deg, transparent 0 58%, rgba(255, 255, 255, 0.82) 59% 65%, transparent 66%),
    linear-gradient(150deg, #8ee33d 0 56%, #27b4ed 57% 100%) !important;
  box-shadow:
    0 7px 12px rgba(0, 0, 0, 0.18),
    0 0 0 3px rgba(144, 242, 209, 0.12) !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-pin {
  position: absolute !important;
  top: -11px !important;
  left: 50% !important;
  width: 13px !important;
  height: 17px !important;
  border: 2px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 50% 50% 50% 0 !important;
  background: linear-gradient(180deg, #ff595e, #ef3338) !important;
  box-shadow: 0 5px 8px rgba(239, 51, 56, 0.22) !important;
  transform: translateX(-50%) rotate(-45deg) !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-pin::after {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.94) !important;
  content: "" !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-eye {
  position: absolute !important;
  top: 13px !important;
  width: 6px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #06283a !important;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-eye.left {
  left: 10px !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-eye.right {
  right: 9px !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-smile {
  position: absolute !important;
  right: 12px !important;
  bottom: 8px !important;
  left: 12px !important;
  height: 6px !important;
  border-bottom: 3px solid #06283a !important;
  border-radius: 0 0 999px 999px !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  top: 21px !important;
  right: 20px !important;
  border-color: rgba(201, 255, 238, 0.22) !important;
  color: #eefdf8 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.14) inset !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    min-height: 72px !important;
    gap: 12px !important;
    padding: 11px 48px 11px 10px !important;
    border-radius: 22px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 52px !important;
    height: 52px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 19px !important;
    right: 17px !important;
  }
}

/* Memory tab touch-up: real Mappi crop, tighter feeling tag, stronger close button. */
html body .app-shell .memory-sheet-card .sheet-memory-heading {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 12px 50px 12px 12px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  gap: 3px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker {
  justify-self: start !important;
  max-width: min(100%, 320px) !important;
  margin-top: 2px !important;
  padding: 4px 9px !important;
  border-color: rgba(162, 250, 219, 0.34) !important;
  color: #b6ffe2 !important;
  font-size: 0.56rem !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  text-align: left !important;
  background: rgba(255, 255, 255, 0.11) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
  overflow: hidden !important;
  width: 58px !important;
  height: 58px !important;
  border-color: rgba(162, 250, 219, 0.58) !important;
  background:
    radial-gradient(circle at 28% 12%, rgba(126, 232, 194, 0.42), transparent 36%),
    linear-gradient(145deg, #052436 0%, #0b7285 54%, #18a978 100%) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  transform: none !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi .sheet-mappi-real {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  filter:
    saturate(1.08)
    contrast(1.03)
    drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18)) !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi {
  display: none !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  top: 16px !important;
  right: 16px !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(205, 255, 238, 0.5) !important;
  color: #ffffff !important;
  font-size: 1.55rem !important;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.22), transparent 42%),
    rgba(3, 25, 38, 0.72) !important;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    0 0 0 4px rgba(126, 232, 194, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.18) inset !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button:hover {
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.28), transparent 42%),
    rgba(7, 66, 78, 0.86) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    padding-right: 50px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 54px !important;
    height: 54px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 17px !important;
    right: 15px !important;
    width: 39px !important;
    height: 39px !important;
  }
}

/* True final memory capsule polish. */
html body .app-shell .memory-bottom-sheet {
  width: min(700px, calc(100vw - 22px)) !important;
}

html body .app-shell .memory-sheet-card.memory-capsule-card {
  padding: 18px !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--sheet-accent) 18%, transparent), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(255, 201, 87, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(236, 251, 244, 0.94) 52%, rgba(229, 247, 250, 0.96)) !important;
  box-shadow:
    0 34px 86px rgba(3, 29, 38, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading {
  min-height: 86px !important;
  margin: 0 0 4px !important;
  padding: 14px 56px 14px 14px !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 14% 8%, rgba(52, 231, 170, 0.24), transparent 38%),
    radial-gradient(circle at 92% 0%, rgba(59, 176, 214, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(3, 55, 65, 0.98), rgba(5, 30, 47, 0.96)) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
  overflow: visible !important;
  width: 58px !important;
  height: 58px !important;
  border-color: rgba(151, 244, 212, 0.52) !important;
  background:
    radial-gradient(circle at 32% 18%, rgba(126, 232, 194, 0.34), transparent 36%),
    linear-gradient(145deg, #053040 0%, #0b7285 52%, #18a978 100%) !important;
  box-shadow:
    0 14px 28px rgba(2, 20, 28, 0.24),
    0 0 0 6px rgba(126, 232, 194, 0.12) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi {
  overflow: visible !important;
  transform: rotate(45deg) scale(1) translate(1px, -1px) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi img {
  display: none !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi {
  position: relative !important;
  display: block !important;
  width: 36px !important;
  height: 34px !important;
  overflow: visible !important;
  border: 2px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 11px 13px 10px 12px !important;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(255, 255, 255, 0.86) 39% 45%, transparent 46%),
    linear-gradient(210deg, transparent 0 58%, rgba(255, 255, 255, 0.82) 59% 65%, transparent 66%),
    linear-gradient(150deg, #8ee33d 0 56%, #27b4ed 57% 100%) !important;
  box-shadow:
    0 7px 12px rgba(0, 0, 0, 0.18),
    0 0 0 3px rgba(144, 242, 209, 0.12) !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-pin {
  position: absolute !important;
  top: -11px !important;
  left: 50% !important;
  width: 13px !important;
  height: 17px !important;
  border: 2px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 50% 50% 50% 0 !important;
  background: linear-gradient(180deg, #ff595e, #ef3338) !important;
  transform: translateX(-50%) rotate(-45deg) !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-pin::after {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.94) !important;
  content: "" !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-eye {
  position: absolute !important;
  top: 13px !important;
  width: 6px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #06283a !important;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-eye.left {
  left: 10px !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-eye.right {
  right: 9px !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-smile {
  position: absolute !important;
  right: 12px !important;
  bottom: 8px !important;
  left: 12px !important;
  height: 6px !important;
  border-bottom: 3px solid #06283a !important;
  border-radius: 0 0 999px 999px !important;
}

html body .app-shell .memory-sheet-card .sheet-note {
  position: relative !important;
  padding: 18px 18px 18px 46px !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-left: 0 !important;
  border-radius: 24px !important;
  font-size: clamp(0.96rem, 1.6vw, 1.08rem) !important;
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--sheet-accent) 12%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(248, 255, 252, 0.58)) !important;
}

html body .app-shell .memory-sheet-card .sheet-note::before {
  position: absolute !important;
  top: 12px !important;
  left: 16px !important;
  color: color-mix(in srgb, var(--sheet-accent) 74%, #0b7285) !important;
  content: "“" !important;
  font-family: Georgia, serif !important;
  font-size: 2.6rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  opacity: 0.72 !important;
}

/* Memory capsule final polish: warmer, more cinematic, and no white patch behind Mappi. */
html body .app-shell .memory-bottom-sheet {
  width: min(700px, calc(100vw - 22px)) !important;
}

html body .app-shell .memory-sheet-card.memory-capsule-card {
  isolation: isolate !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 14% 8%, color-mix(in srgb, var(--sheet-accent) 18%, transparent), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(255, 201, 87, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(236, 251, 244, 0.94) 52%, rgba(229, 247, 250, 0.96)) !important;
  box-shadow:
    0 34px 86px rgba(3, 29, 38, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(255, 255, 255, 0.42) inset !important;
}

html body .app-shell .memory-sheet-card.memory-capsule-card::after {
  position: absolute !important;
  right: 26px !important;
  bottom: 78px !important;
  z-index: 0 !important;
  width: 118px !important;
  height: 48px !important;
  content: "" !important;
  border-top: 2px dotted color-mix(in srgb, var(--sheet-accent) 38%, rgba(7, 63, 74, 0.16)) !important;
  border-radius: 50% !important;
  opacity: 0.55 !important;
  transform: rotate(-16deg) !important;
  pointer-events: none !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading {
  min-height: 86px !important;
  margin: 0 0 4px !important;
  padding: 14px 56px 14px 14px !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 14% 8%, rgba(52, 231, 170, 0.24), transparent 38%),
    radial-gradient(circle at 92% 0%, rgba(59, 176, 214, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(3, 55, 65, 0.98), rgba(5, 30, 47, 0.96)) !important;
  box-shadow:
    0 20px 42px rgba(3, 27, 38, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.13) inset !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3 {
  color: #fbfffc !important;
  font-size: clamp(1.46rem, 3vw, 2.05rem) !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker {font-size: 0.58rem !important;
  padding: 4px 8px !important;
  line-height: 1.05 !important;

  padding: 5px 9px !important;
  color: #a7f5d7 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
  overflow: visible !important;
  width: 58px !important;
  height: 58px !important;
  border-color: rgba(151, 244, 212, 0.52) !important;
  background:
    radial-gradient(circle at 32% 18%, rgba(126, 232, 194, 0.34), transparent 36%),
    linear-gradient(145deg, #053040 0%, #0b7285 52%, #18a978 100%) !important;
  box-shadow:
    0 14px 28px rgba(2, 20, 28, 0.24),
    0 0 0 6px rgba(126, 232, 194, 0.12) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi {
  overflow: visible !important;
  transform: rotate(45deg) scale(1) translate(1px, -1px) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi img {
  display: none !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi {
  position: relative !important;
  display: block !important;
  width: 36px !important;
  height: 34px !important;
  overflow: visible !important;
  border: 2px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 11px 13px 10px 12px !important;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(255, 255, 255, 0.86) 39% 45%, transparent 46%),
    linear-gradient(210deg, transparent 0 58%, rgba(255, 255, 255, 0.82) 59% 65%, transparent 66%),
    linear-gradient(150deg, #8ee33d 0 56%, #27b4ed 57% 100%) !important;
  box-shadow:
    0 7px 12px rgba(0, 0, 0, 0.18),
    0 0 0 3px rgba(144, 242, 209, 0.12) !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-pin {
  position: absolute !important;
  top: -11px !important;
  left: 50% !important;
  width: 13px !important;
  height: 17px !important;
  border: 2px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 50% 50% 50% 0 !important;
  background: linear-gradient(180deg, #ff595e, #ef3338) !important;
  box-shadow: 0 5px 8px rgba(239, 51, 56, 0.22) !important;
  transform: translateX(-50%) rotate(-45deg) !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-pin::after {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.94) !important;
  content: "" !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-eye {
  position: absolute !important;
  top: 13px !important;
  width: 6px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #06283a !important;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-eye.left {
  left: 10px !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-eye.right {
  right: 9px !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi-smile {
  position: absolute !important;
  right: 12px !important;
  bottom: 8px !important;
  left: 12px !important;
  height: 6px !important;
  border-bottom: 3px solid #06283a !important;
  border-radius: 0 0 999px 999px !important;
}

html body .app-shell .memory-sheet-card .sheet-copy {
  gap: 14px !important;
  padding-top: 2px !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery {
  gap: 10px !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery__photo,
html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-video-player {
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  box-shadow:
    0 20px 42px rgba(4, 31, 38, 0.18),
    0 0 0 6px rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .memory-sheet-card .sheet-note {
  position: relative !important;
  padding: 18px 18px 18px 46px !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-left: 0 !important;
  border-radius: 24px !important;
  color: rgba(4, 42, 51, 0.86) !important;
  font-size: clamp(0.96rem, 1.6vw, 1.08rem) !important;
  line-height: 1.56 !important;
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--sheet-accent) 12%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(248, 255, 252, 0.58)) !important;
  box-shadow:
    0 16px 34px rgba(4, 31, 38, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.88) inset !important;
}

html body .app-shell .memory-sheet-card .sheet-note::before {
  position: absolute !important;
  top: 12px !important;
  left: 16px !important;
  color: color-mix(in srgb, var(--sheet-accent) 74%, #0b7285) !important;
  content: "“" !important;
  font-family: Georgia, serif !important;
  font-size: 2.6rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  opacity: 0.72 !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-details span {
  border-color: color-mix(in srgb, var(--sheet-accent) 22%, white) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .memory-sheet-card .sheet-actions {
  gap: 11px !important;
  padding-top: 14px !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button {
  min-height: 48px !important;
  border-radius: 18px !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button[data-sheet-action="edit"] {
  color: #fff !important;
  background: linear-gradient(135deg, #0b7285, #18a978) !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button[data-sheet-action="route"] {
  background: linear-gradient(135deg, #063040, #0b7285) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card.memory-capsule-card {
    padding: 14px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    min-height: 78px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-note {
    padding: 16px 15px 16px 42px !important;
  }
}

/* Final memory sheet header lock: Mappi and the title sit in the branded blue-green band. */
html body .app-shell .memory-sheet-card.memory-capsule-card {
  padding-top: 14px !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 78px !important;
  width: 100% !important;
  margin: -2px -2px 2px !important;
  padding: 12px 54px 12px 12px !important;
  border: 1px solid rgba(201, 255, 238, 0.15) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(42, 215, 156, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(4, 48, 58, 0.96), rgba(5, 32, 48, 0.94)) !important;
  box-shadow:
    0 18px 38px rgba(3, 27, 38, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 5px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3 {
  margin: 0 !important;
  color: #f7fffb !important;
  font-size: clamp(1.32rem, 2.8vw, 1.86rem) !important;
  font-weight: 920 !important;
  line-height: 1.03 !important;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-meta {
  margin: 0 !important;
  color: rgba(232, 255, 247, 0.72) !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker {font-size: 0.58rem !important;
  padding: 4px 8px !important;
  line-height: 1.05 !important;

  width: fit-content !important;
  border-color: rgba(144, 242, 209, 0.22) !important;
  color: #8df1ca !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
  width: 58px !important;
  height: 58px !important;
  margin-top: 0 !important;
  border-color: rgba(151, 244, 212, 0.52) !important;
  background:
    radial-gradient(circle at 32% 18%, rgba(126, 232, 194, 0.34), transparent 36%),
    linear-gradient(145deg, #053040 0%, #0b7285 52%, #18a978 100%) !important;
  box-shadow:
    0 14px 28px rgba(2, 20, 28, 0.24),
    0 0 0 6px rgba(126, 232, 194, 0.12) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi {
  transform: rotate(45deg) scale(1) translate(1px, -1px) !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  top: 21px !important;
  right: 20px !important;
  border-color: rgba(201, 255, 238, 0.22) !important;
  color: #eefdf8 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.14) inset !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    min-height: 72px !important;
    gap: 12px !important;
    padding: 11px 48px 11px 10px !important;
    border-radius: 22px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 52px !important;
    height: 52px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 19px !important;
    right: 17px !important;
  }
}

/* Memory sheet branded header: dark blue-green Mappi moment near the close button. */
html body .app-shell .memory-sheet-card.memory-capsule-card {
  padding-top: 14px !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading {
  min-height: 78px !important;
  margin: -2px -2px 2px !important;
  padding: 12px 54px 12px 12px !important;
  border: 1px solid rgba(201, 255, 238, 0.15) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(42, 215, 156, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(4, 48, 58, 0.96), rgba(5, 32, 48, 0.94)) !important;
  box-shadow:
    0 18px 38px rgba(3, 27, 38, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3 {
  color: #f7fffb !important;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-meta {
  color: rgba(232, 255, 247, 0.72) !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker {font-size: 0.58rem !important;
  padding: 4px 8px !important;
  line-height: 1.05 !important;

  border-color: rgba(144, 242, 209, 0.22) !important;
  color: #8df1ca !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
  width: 58px !important;
  height: 58px !important;
  margin-top: 0 !important;
  border-color: rgba(151, 244, 212, 0.52) !important;
  background:
    radial-gradient(circle at 32% 18%, rgba(126, 232, 194, 0.34), transparent 36%),
    linear-gradient(145deg, #053040 0%, #0b7285 52%, #18a978 100%) !important;
  box-shadow:
    0 14px 28px rgba(2, 20, 28, 0.24),
    0 0 0 6px rgba(126, 232, 194, 0.12) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi {
  transform: rotate(45deg) scale(1) translate(1px, -1px) !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  top: 21px !important;
  right: 20px !important;
  border-color: rgba(201, 255, 238, 0.22) !important;
  color: #eefdf8 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.14) inset !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    min-height: 72px !important;
    padding: 11px 48px 11px 10px !important;
    border-radius: 22px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 52px !important;
    height: 52px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 19px !important;
    right: 17px !important;
  }
}

/* Memory sheet layout fix: header gets the pin, media and notes get the full width. */
html body .app-shell .memory-sheet-card.memory-capsule-card {
  grid-template-columns: minmax(0, 1fr) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading {
  display: grid !important;
  grid-template-columns: 62px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  padding-right: 42px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 6px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3 {
  margin: 0 !important;
  color: #0b2c36 !important;
  font-size: clamp(1.38rem, 3vw, 1.95rem) !important;
  font-weight: 920 !important;
  line-height: 1.04 !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-meta {
  margin: 0 !important;
}

html body .app-shell .memory-sheet-card .sheet-copy {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  padding-right: 0 !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery,
html body .app-shell .memory-sheet-card .sheet-video-wrap,
html body .app-shell .memory-sheet-card .sheet-note,
html body .app-shell .memory-sheet-card .sheet-memory-details,
html body .app-shell .memory-sheet-card .sheet-coordinates {
  width: 100% !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery__photo:first-child {
  min-height: clamp(190px, 32vh, 320px) !important;
}

html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video {
  min-height: clamp(190px, 30vh, 300px) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding-right: 34px !important;
  }
}

/* Premium Explore map skin: richer geography, soft depth, and living-map atmosphere. */
html body .app-shell .map-stage.map-focus {
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(209, 242, 234, 0.56), transparent 42%),
    linear-gradient(180deg, #e5f2f5 0%, #dbeef0 48%, #d8e8ee 100%) !important;
}

html body .app-shell .map-stage.map-focus::before,
html body .app-shell .map-stage.map-focus::after {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  content: "" !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus::before {
  z-index: 6 !important;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 54%, rgba(3, 45, 54, 0.11) 82%, rgba(3, 31, 41, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.1), transparent 22%, transparent 74%, rgba(4, 37, 50, 0.12)) !important;
}

html body .app-shell .map-stage.map-focus::after {
  z-index: 7 !important;
  background:
    linear-gradient(90deg, rgba(4, 37, 50, 0.1), transparent 18%, transparent 82%, rgba(4, 37, 50, 0.1)),
    radial-gradient(circle at 78% 14%, rgba(255, 210, 116, 0.11), transparent 30%) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting::before,
html body .app-shell .map-stage.map-focus.map-interacting::after {
  opacity: 0.58 !important;
  transition: opacity 180ms ease !important;
}

html body .app-shell .map-stage.map-focus #map,
html body .app-shell .map-stage.map-focus.globe-mode #map {
  background: #dfeff1 !important;
  filter: saturate(1.03) contrast(1.01) !important;
}

html body .app-shell .map-stage.map-focus .leaflet-container,
html body .app-shell .map-stage.map-focus .leaflet-map-pane,
html body .app-shell .map-stage.map-focus .leaflet-pane,
html body .app-shell .map-stage.map-focus .leaflet-tile-pane,
html body .app-shell .map-stage.map-focus .leaflet-tile-container,
html body .app-shell .map-stage.map-focus .maplibregl-canvas-container,
html body .app-shell .map-stage.map-focus .maplibregl-canvas {
  background: #dfeff1 !important;
}

html body .app-shell .map-stage.map-focus .leaflet-tile,
html body .app-shell .map-stage.map-focus .maplibregl-canvas {
  opacity: 1 !important;
  filter: saturate(1.15) contrast(1.08) brightness(1.03) sepia(0.035) !important;
  image-rendering: auto !important;
  backface-visibility: hidden !important;
  transform: translate3d(0, 0, 0) !important;
}

html body .app-shell .map-stage.map-focus.map-night .leaflet-tile,
html body .app-shell .map-stage.map-focus.map-night .maplibregl-canvas {
  filter: brightness(0.78) saturate(1.06) contrast(1.16) hue-rotate(5deg) !important;
}

html body .app-shell .map-stage.map-focus .map-life-layer {
  z-index: 8 !important;
  display: block !important;
  opacity: 0.52 !important;
  filter: saturate(0.95) contrast(0.96) !important;
  transition:
    opacity 220ms ease,
    filter 220ms ease !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .map-life-layer {
  opacity: 0 !important;
  filter: blur(6px) saturate(0.7) !important;
}

html body .app-shell .map-stage.map-focus .life-cloud {
  opacity: 0.34 !important;
  background: rgba(255, 255, 255, 0.64) !important;
  box-shadow:
    18px -9px 0 -2px rgba(255, 255, 255, 0.5),
    36px -3px 0 -7px rgba(255, 255, 255, 0.44),
    0 18px 38px rgba(31, 78, 121, 0.09) !important;
}

html body .app-shell .map-stage.map-focus .life-plane,
html body .app-shell .map-stage.map-focus .life-ship,
html body .app-shell .map-stage.map-focus .life-birds {
  opacity: 0.22 !important;
}

html body .app-shell .map-stage.map-focus .life-plane::before,
html body .app-shell .map-stage.map-focus .life-plane::after,
html body .app-shell .map-stage.map-focus .life-ship::before,
html body .app-shell .map-stage.map-focus .life-ship::after {
  background-color: rgba(8, 74, 91, 0.38) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker {
  border-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--marker-color) 14%, transparent),
    0 14px 30px rgba(5, 37, 47, 0.26),
    0 0 24px color-mix(in srgb, var(--marker-color) 22%, transparent),
    0 1px 0 rgba(255, 255, 255, 0.36) inset !important;
}

html body .app-shell .map-stage.map-focus .memory-marker-glow {
  opacity: 0.5 !important;
  filter: blur(18px) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker-face {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82) 46%, rgba(236, 252, 246, 0.92)) !important;
  box-shadow:
    0 5px 14px rgba(4, 31, 38, 0.16),
    0 0 0 4px rgba(255, 255, 255, 0.16) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-marker-glow {
  opacity: 0.3 !important;
  filter: blur(12px) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster,
html body .app-shell .map-stage.map-focus .memory-cluster-marker {
  border-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--marker-color) 13%, transparent),
    0 0 28px color-mix(in srgb, var(--marker-color) 34%, transparent),
    0 16px 36px rgba(5, 37, 47, 0.24) !important;
}

html body .app-shell .map-stage.map-focus .pin-preview-card,
html body .app-shell .map-stage.map-focus .memory-peek-card {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(238, 251, 244, 0.84)) !important;
  box-shadow:
    0 22px 54px rgba(5, 37, 47, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.86) inset !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget {
  border-color: rgba(220, 255, 246, 0.22) !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(92, 224, 184, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(4, 42, 51, 0.84), rgba(4, 30, 42, 0.78)) !important;
  box-shadow:
    0 22px 54px rgba(3, 21, 31, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
}

html body .app-shell .map-stage.map-focus {
  --map-gadget-cell-bg: linear-gradient(135deg, rgba(11, 94, 101, 0.94), rgba(5, 52, 67, 0.92));
  --map-gadget-cell-hover-bg: linear-gradient(135deg, rgba(29, 164, 139, 0.98), rgba(10, 103, 122, 0.96));
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.map-focus .map-life-layer,
  html body .app-shell .map-stage.map-focus .memory-marker,
  html body .app-shell .map-stage.map-focus .memory-marker-glow,
  html body .app-shell .map-stage.map-focus .memory-cluster-marker {
    animation: none !important;
    transition: none !important;
  }
}

/* Map memory sheet brand pin: keep Mappi inside the pin instead of floating above it. */
html body .app-shell .memory-sheet-card .sheet-mappi-helper {
  display: none !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
  overflow: hidden !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78) 30%, transparent 31%),
    linear-gradient(145deg, color-mix(in srgb, var(--sheet-accent) 22%, #ffffff 78%), #ffffff) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  transform: rotate(45deg) scale(1.22) translate(1px, -1px) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi img {
  display: block !important;
  width: 92% !important;
  height: 92% !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 7px 8px rgba(4, 31, 38, 0.14)) !important;
}

/* Premium map memory sheet: the pin should open like a keepsake, not a utility popup. */
html body .app-shell .memory-bottom-sheet {
  width: min(620px, calc(100vw - 24px)) !important;
  color: #102f37 !important;
}

html body .app-shell .memory-bottom-sheet.open {
  animation: premiumMemorySheetRise 420ms cubic-bezier(0.18, 1, 0.26, 1) both !important;
}

html body .app-shell .memory-bottom-sheet.closing {
  animation: premiumMemorySheetDrop 240ms ease both !important;
}

html body .app-shell .memory-sheet-card.memory-capsule-card {
  position: relative !important;
  grid-template-columns: 62px minmax(0, 1fr) !important;
  gap: 16px !important;
  max-height: min(76dvh, 720px) !important;
  padding: 20px !important;
  overflow: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 14% 6%, color-mix(in srgb, var(--sheet-accent) 24%, transparent), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(255, 199, 87, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(236, 250, 244, 0.94) 48%, rgba(229, 246, 250, 0.96)) !important;
  box-shadow:
    0 32px 78px rgba(3, 30, 38, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.92) inset !important;
  backdrop-filter: blur(26px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.18) !important;
  scrollbar-width: thin !important;
}

html body .app-shell .memory-sheet-card.memory-capsule-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.48), transparent 34%),
    radial-gradient(circle at 50% 102%, color-mix(in srgb, var(--sheet-accent) 13%, transparent), transparent 44%) !important;
  pointer-events: none !important;
}

html body .app-shell .memory-sheet-card.memory-capsule-card > * {
  position: relative !important;
  z-index: 1 !important;
}

html body .app-shell .sheet-close-button {
  top: 14px !important;
  right: 14px !important;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(9, 58, 66, 0.12) !important;
  color: #092d35 !important;
  font-size: 1.4rem !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    0 14px 30px rgba(7, 38, 45, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.94) inset !important;
}

html body .app-shell .sheet-close-button:hover {
  color: #041d24 !important;
  background: #ffffff !important;
}

html body .app-shell .sheet-mappi-helper {
  top: -22px !important;
  left: 26px !important;
  width: 58px !important;
  height: 58px !important;
  border-width: 4px !important;
  background: rgba(255, 253, 248, 0.98) !important;
  box-shadow:
    0 18px 34px rgba(3, 30, 38, 0.2),
    0 0 0 8px color-mix(in srgb, var(--sheet-accent) 14%, transparent) !important;
}

html body .app-shell .sheet-pin-badge {
  width: 62px !important;
  height: 62px !important;
  margin-top: 8px !important;
  border: 4px solid rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    0 18px 34px color-mix(in srgb, var(--sheet-accent) 34%, transparent),
    0 0 0 10px color-mix(in srgb, var(--sheet-accent) 9%, transparent) !important;
}

html body .app-shell .sheet-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 10px !important;
  padding-right: 34px !important;
}

html body .app-shell .sheet-kicker {
  width: fit-content !important;
  padding: 6px 10px !important;
  border: 1px solid color-mix(in srgb, var(--sheet-accent) 24%, white) !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--sheet-accent) 78%, #08353e) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0 !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

html body .app-shell .sheet-copy h3 {
  margin: 0 !important;
  color: #0b2c36 !important;
  font-size: clamp(1.38rem, 3vw, 1.95rem) !important;
  font-weight: 920 !important;
  line-height: 1.04 !important;
}

html body .app-shell .sheet-meta {
  margin: -4px 0 2px !important;
  color: rgba(7, 55, 65, 0.68) !important;
  font-size: 0.9rem !important;
  font-weight: 760 !important;
}

html body .app-shell .sheet-photo-gallery {
  gap: 9px !important;
  margin-top: 4px !important;
}

html body .app-shell .sheet-photo-gallery__photo {
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 18px !important;
  background: #08232c !important;
  box-shadow: 0 16px 34px rgba(3, 30, 38, 0.16) !important;
}

html body .app-shell .sheet-photo-gallery__photo:first-child {
  border-radius: 22px !important;
}

html body .app-shell .sheet-video-wrap {
  margin-top: 2px !important;
}

html body .app-shell .sheet-video-wrap .memory-video-player {
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 38px rgba(3, 30, 38, 0.18) !important;
}

html body .app-shell .sheet-video-wrap .memory-card-video {
  max-height: 320px !important;
  border-radius: inherit !important;
}

html body .app-shell .sheet-note {
  margin: 0 !important;
  padding: 14px 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.64) !important;
  border-left: 4px solid var(--sheet-accent) !important;
  border-radius: 18px !important;
  color: rgba(6, 42, 51, 0.82) !important;
  font-size: 0.95rem !important;
  font-weight: 720 !important;
  line-height: 1.52 !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: 0 12px 28px rgba(7, 38, 45, 0.08) !important;
}

html body .app-shell .sheet-memory-details {
  gap: 8px !important;
  margin-top: 0 !important;
}

html body .app-shell .sheet-memory-details span {
  padding: 8px 10px !important;
  border-color: color-mix(in srgb, var(--sheet-accent) 18%, white) !important;
  color: rgba(6, 42, 51, 0.76) !important;
  font-size: 0.78rem !important;
  background: rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 8px 18px rgba(7, 38, 45, 0.055) !important;
}

html body .app-shell .sheet-coordinates {
  margin: -2px 0 0 !important;
  color: rgba(7, 55, 65, 0.42) !important;
  font-size: 0.76rem !important;
  font-weight: 760 !important;
}

html body .app-shell .sheet-actions {
  grid-column: 1 / -1 !important;
  gap: 10px !important;
  margin-top: 4px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(10, 74, 83, 0.08) !important;
}

html body .app-shell .sheet-actions button {
  min-height: 46px !important;
  border: 1px solid rgba(255, 255, 255, 0.56) !important;
  border-radius: 16px !important;
  color: #07333c !important;
  font-size: 0.88rem !important;
  font-weight: 920 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(235, 248, 243, 0.76)) !important;
  box-shadow:
    0 12px 24px rgba(3, 30, 38, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

html body .app-shell .sheet-actions button:hover {
  transform: translateY(-1px) !important;
  box-shadow:
    0 16px 30px rgba(3, 30, 38, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

html body .app-shell .sheet-actions button[data-sheet-action="route"] {
  color: #fff !important;
  background: linear-gradient(135deg, #0b7285, #16a879) !important;
}

html body .app-shell .sheet-actions .danger {
  color: #8b1e2e !important;
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.94), rgba(255, 225, 229, 0.82)) !important;
}

@keyframes premiumMemorySheetRise {
  from {
    opacity: 0;
    transform: translateX(50%) translateY(34px) scale(0.965);
  }

  to {
    opacity: 1;
    transform: translateX(50%) translateY(0) scale(1);
  }
}

@keyframes premiumMemorySheetDrop {
  from {
    opacity: 1;
    transform: translateX(50%) translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(50%) translateY(22px) scale(0.98);
  }
}

@media (max-width: 640px) {
  html body .app-shell .memory-bottom-sheet {
    bottom: 92px !important;
    width: calc(100vw - 18px) !important;
  }

  html body .app-shell .memory-sheet-card.memory-capsule-card {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 12px !important;
    max-height: min(72dvh, 620px) !important;
    padding: 17px !important;
    border-radius: 26px !important;
  }

  html body .app-shell .sheet-pin-badge {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.34rem !important
  }

  html body .app-shell .sheet-copy {
    padding-right: 30px !important;
  }

  html body .app-shell .sheet-actions {
    grid-template-columns: 1fr !important;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #081728;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell,
.map-stage,
#map {
  width: 100vw;
  height: 100vh;
}

.map-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 28%, rgba(36, 120, 255, 0.32), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(33, 197, 122, 0.22), transparent 24%),
    linear-gradient(135deg, #071426 0%, #0d243a 42%, #152d35 100%);
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #08131f;
  transition:
    width 320ms ease,
    height 320ms ease,
    inset 320ms ease,
    border-radius 320ms ease,
    box-shadow 320ms ease,
    filter 320ms ease;
}

.map-stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.42) 1px, transparent 1.5px);
  background-position:
    0 0,
    38px 52px;
  background-size:
    112px 112px,
    164px 164px;
  opacity: 0.45;
}

.map-stage::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 30vh;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, rgba(8, 23, 40, 0.52), transparent);
}

.map-stage.globe-mode #map {
  width: min(74vh, calc(100vw - 470px), 780px);
  height: min(74vh, calc(100vw - 470px), 780px);
  inset: 50% auto auto clamp(24px, 9vw, 150px);
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow:
    inset -56px -28px 90px rgba(6, 17, 31, 0.48),
    inset 26px 20px 44px rgba(255, 255, 255, 0.26),
    0 0 0 12px rgba(116, 192, 255, 0.12),
    0 0 54px rgba(72, 149, 255, 0.34),
    0 0 140px rgba(72, 149, 255, 0.16),
    0 36px 80px rgba(0, 0, 0, 0.38);
  filter: saturate(1.08) contrast(1.04);
  transform: translateY(-50%);
}

.map-stage.globe-mode #map::before {
  position: absolute;
  inset: 0;
  z-index: 410;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.32), transparent 24%),
    radial-gradient(circle at 67% 68%, transparent 40%, rgba(4, 17, 31, 0.5) 100%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 38%);
  mix-blend-mode: screen;
}

.map-stage.globe-mode #map::after {
  position: absolute;
  inset: 10%;
  z-index: 411;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-18deg) scaleX(1.22);
}

.orbit {
  position: absolute;
  z-index: 2;
  display: none;
  width: min(78vh, calc(100vw - 380px), 840px);
  height: min(26vh, 250px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  pointer-events: none;
}

.globe-mode .orbit {
  display: block;
}

.orbit-one {
  top: 50%;
  left: clamp(0px, 5vw, 90px);
  transform: translateY(-50%) rotate(-18deg);
}

.orbit-two {
  top: 50%;
  left: clamp(18px, 7vw, 122px);
  transform: translateY(-50%) rotate(22deg);
  opacity: 0.56;
}

.topbar,
.category-rail,
.account-menu,
.notification-hub,
.pin-search-panel,
.side-panel,
.memory-editor {
  position: absolute;
  z-index: 500;
}

.topbar {
  top: 18px;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.topbar > *,
.category-rail,
.account-menu,
.notification-hub,
.pin-search-panel,
.side-panel,
.memory-editor {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 8px 13px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.brand p,
.editor-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.icon-button,
.category-button,
.tab,
.primary-button,
.text-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(13, 27, 42, 0.12);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
}

.icon-button:hover,
.category-button:hover,
.primary-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.icon-button.active {
  color: #fff;
  background: var(--blue);
}

.icon-button svg,
.primary-button svg,
.search-wrap svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.file-button input {
  display: none;
}

.category-rail {
  top: 92px;
  right: 398px;
  left: 18px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 8px 11px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: none;
}

.category-button.active,
.tab.active {
  border-color: transparent;
  color: #fff;
  background: #172a45;
}

.memory-database-page,
.side-panel {
  top: 92px;
  right: 18px;
  bottom: 22px;
  display: flex;
  width: 360px;
  flex-direction: column;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section-heading,
.editor-header,
.editor-actions,
.collection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2,
.editor-header h2,
.timeline-year h3,
.collection h3,
.capsule h3,
.country-cloud h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.memory-hub-heading {
  align-items: flex-start;
}

.memory-hub-heading > div:first-child {
  min-width: 0;
}

.memory-hub-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.memory-hub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.memory-hub-actions .icon-button {
  position: relative;
  z-index: 5;
  color: #0b0f14;
  background: #fff;
  box-shadow: 0 10px 22px rgba(13, 27, 42, 0.08);
  pointer-events: auto;
}

.memory-hub-actions .icon-button:hover {
  color: #000;
}

.memory-database-page {
  z-index: 20;
  display: none;
}

.memory-editor .editor-header {
  position: relative;
  justify-content: center;
  padding-right: 46px;
  text-align: center;
}

.memory-editor .editor-header > div {
  display: grid;
  flex: 1;
  justify-items: center;
}

.memory-editor .editor-header .icon-button {
  position: absolute;
  top: 0;
  right: 0;
  color: #142135;
}

.memory-editor .editor-header .icon-button:hover {
  color: #08131f;
}

#memoryCount,
.collection-heading span {
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  font-weight: 850;
  background: #172a45;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.tab {
  min-height: 34px;
  padding: 0 7px;
  font-size: 0.76rem;
  font-weight: 850;
  box-shadow: none;
}

.drawer-view {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.hidden,
.hidden-field {
  display: none !important;
}

.memory-card {
  display: grid;
  width: 100%;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: #fff;
}

.memory-card.compact {
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 8px;
}

.memory-card.rich {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.08);
}

.card-media-wrap {
  display: grid;
  width: 92px;
  min-height: 92px;
}

.memory-card img,
.card-emoji {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.memory-card.compact img,
.memory-card.compact .card-emoji {
  width: 38px;
  height: 38px;
}

.memory-card img {
  object-fit: cover;
}

.memory-card.rich .card-art {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.memory-card.rich .card-art.card-emoji {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent, #2478ff) 88%, white), var(--card-accent, #2478ff));
}

.card-emoji {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: #edf4ff;
}

.card-copy {
  min-width: 0;
}

.memory-card.rich .card-copy {
  display: grid;
  gap: 8px;
}

.memory-card-gallery {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.memory-video-player {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #06131f;
}

.memory-card-photo,
.memory-card-video {
  width: 100%;
  max-height: 220px;
  border-radius: 12px;
  object-fit: cover;
  background: #0c1727;
}

.memory-card-video {
  display: block;
  min-height: 180px;
  border-radius: inherit;
  cursor: pointer;
}

.memory-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #06343d;
  font-size: 0.86rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.memory-video-play span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  background: linear-gradient(135deg, #0b7285, #16a879);
}

.memory-video-player.is-playing .memory-video-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
}

.memory-video-controls {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.memory-video-controls > button {
  pointer-events: auto;
}

.memory-video-open-large {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(4, 31, 45, 0.48);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  font-size: 0.76rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.memory-card-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: #17304e;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  background: rgba(20, 33, 53, 0.06);
}

.memory-file-input {
  margin-top: 8px;
  padding: 10px !important;
  border: 1px dashed rgba(31, 78, 121, 0.24) !important;
  border-radius: 12px !important;
  color: rgba(18, 55, 92, 0.78) !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: rgba(20, 33, 53, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
}

.sheet-video-wrap {
  margin-top: 12px;
}

.sheet-video-wrap .memory-card-video {
  width: 100%;
  max-height: 280px;
  border-radius: 18px;
  background: #07111e;
}

.sheet-video-wrap .memory-card-video-link {
  width: fit-content;
}

.card-copy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title-block {
  min-width: 0;
}

.memory-card.rich .card-title-block strong {
  display: block;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-card.rich .card-title-block small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.memory-card-action {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(20, 33, 53, 0.12);
  border-radius: 999px;
  color: #17304e;
  font-size: 0.72rem;
  font-weight: 850;
  background: #eef4ff;
  box-shadow: none;
}

.memory-card-action.danger {
  color: #b52d31;
  background: rgba(255, 89, 94, 0.12);
}

.memory-card-meta,
.memory-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.memory-card-meta span,
.memory-card-badges span {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
}

.memory-card-meta span {
  color: #22415f;
  background: rgba(36, 120, 255, 0.08);
}

.memory-card-badges span {
  color: #4b5e77;
  background: rgba(20, 33, 53, 0.06);
}

.memory-card-note {
  margin: 0;
  color: #33445c;
  font-size: 0.86rem;
  line-height: 1.45;
}

.memory-card-note.subtle {
  color: var(--muted);
}

.pin-database-header {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid rgba(36, 120, 255, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(36, 120, 255, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.06);
}

.pin-database-header span {
  color: #2478ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pin-database-header strong {
  display: block;
  margin-top: 3px;
  font-size: 1.18rem;
}

.pin-database-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.pin-database-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pin-database-stats span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #17304e;
  font-size: 0.72rem;
  font-weight: 850;
  background: rgba(20, 33, 53, 0.06);
}

.pin-database-list {
  display: grid;
  gap: 0;
}

.card-copy strong,
.card-copy small,
.card-copy em {
  display: block;
}

.card-copy strong {
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-copy em {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.81rem;
  font-style: normal;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.memory-editor {
  left: 50%;
  bottom: 86px;
  display: none;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 152px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 10px 10px;
  background:
    radial-gradient(circle at 18% 0%, var(--editor-accent-soft, rgba(36, 120, 255, 0.12)), transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, var(--editor-accent, #2478ff) 8%), var(--panel));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--editor-accent, #2478ff) 12%, transparent),
    var(--shadow);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.memory-editor::before {
  position: sticky;
  top: 0;
  display: block;
  width: 56px;
  height: 5px;
  margin: 0 auto 14px;
  content: "";
  border-radius: 999px;
  background: color-mix(in srgb, var(--editor-accent, #2478ff) 24%, white);
}

.memory-editor.open {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.memory-editor label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #33445c;
  font-size: 0.8rem;
  font-weight: 850;
}

.memory-flow-panel {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--editor-accent, #2478ff) 12%, rgba(25, 48, 74, 0.1));
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--editor-accent, #2478ff) 7%, #ffffff), rgba(255, 255, 255, 0.86)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(14, 44, 66, 0.08);
}

.memory-flow-panel label {
  margin-top: 0;
}

.memory-flow-place::after,
.memory-flow-feeling::after,
.memory-flow-story::after {
  position: absolute;
  left: 26px;
  bottom: -18px;
  width: 2px;
  height: 18px;
  content: "";
  border-radius: 999px;
  background: color-mix(in srgb, var(--editor-accent, #2478ff) 24%, transparent);
}

.memory-flow-media {
  margin-bottom: 2px;
}

.editor-subheading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.editor-subheading span {
  color: #33445c;
  font-size: 0.8rem;
  font-weight: 850;
}

.editor-subheading small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.memory-flow-step {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--editor-accent, #2478ff) 78%, #12375c);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--editor-accent, #2478ff) 12%, white);
}

.memory-optional-fields {
  margin-top: 2px;
  border: 1px solid rgba(20, 49, 72, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.62);
}

.memory-optional-fields summary {
  cursor: pointer;
  color: #29445e;
  font-size: 0.82rem;
  font-weight: 900;
}

.field-hint {
  color: rgba(50, 67, 89, 0.66);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.memory-file-input {
  padding: 9px !important;
  border-style: dashed !important;
  background: rgba(246, 252, 249, 0.92) !important;
}

.memory-editor .editor-actions {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.memory-editor .editor-actions .primary-button {
  min-width: min(100%, 210px);
  min-height: 52px;
  justify-content: center;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #136f63, #2d9b85 48%, #1f78d1);
  box-shadow:
    0 18px 34px rgba(15, 96, 116, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.memory-save-confirmation {
  position: fixed;
  right: clamp(18px, 4vw, 42px);
  bottom: calc(var(--bottom-nav-height, 86px) + 20px);
  z-index: 240;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  width: min(360px, calc(100vw - 32px));
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  color: #f8fffb;
  background:
    radial-gradient(circle at 18% 12%, rgba(83, 225, 174, 0.34), transparent 42%),
    linear-gradient(135deg, rgba(9, 42, 64, 0.94), rgba(20, 107, 91, 0.92));
  box-shadow:
    0 22px 45px rgba(8, 25, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  backdrop-filter: blur(18px);
}

.memory-save-confirmation.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.memory-save-confirmation.is-error {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 188, 134, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(68, 23, 28, 0.96), rgba(148, 51, 39, 0.92));
}

.memory-save-confirmation.is-delete {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 220, 162, 0.26), transparent 42%),
    linear-gradient(135deg, rgba(62, 35, 24, 0.95), rgba(115, 78, 34, 0.92));
}

.memory-save-confirmation > span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #0a4c5a;
  background: #dcfff3;
  box-shadow: 0 0 0 6px rgba(220, 255, 243, 0.14);
}

.memory-save-confirmation strong {
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-save-confirmation small {
  overflow: hidden;
  color: rgba(246, 255, 251, 0.74);
  font-size: 0.76rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-confirmation-undo {
  grid-column: 2;
  justify-self: start;
  min-height: 30px;
  margin-top: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #07363d;
  font-size: 0.76rem;
  font-weight: 950;
  background: rgba(235, 255, 248, 0.9);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
}

.memory-editor button[aria-busy="true"] svg {
  animation: memorySavingSpin 0.9s linear infinite;
}

@keyframes memorySavingSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .memory-flow-panel {
    padding: 12px;
  }

  .memory-save-confirmation {
    right: 14px;
    left: 14px;
    width: auto;
    bottom: calc(var(--bottom-nav-height, 86px) + 14px);
  }

  .memory-editor .editor-actions {
    grid-template-columns: 1fr;
  }

  .memory-editor .editor-actions .primary-button {
    width: 100%;
  }
}

.save-step {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: center;
  margin: 0 auto -2px;
}

.memory-editor input,
.memory-editor select,
.memory-editor textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

.memory-editor textarea {
  resize: vertical;
}

.category-swatch-row {
  display: grid;
  gap: 10px;
}

.category-swatch-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.08);
}

.category-swatch-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--swatch) 22%, transparent);
}

.category-swatch-copy {
  display: grid;
  min-width: 0;
}

.category-swatch-copy strong {
  font-size: 0.8rem;
}

.category-swatch-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-swatch.active {
  border-color: color-mix(in srgb, var(--swatch) 58%, white);
  background: linear-gradient(135deg, color-mix(in srgb, var(--swatch) 18%, white), #fff);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--swatch) 30%, transparent),
    0 14px 26px rgba(13, 27, 42, 0.12);
}

.memory-editor .favorite-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(251, 78, 112, 0.22);
  border-radius: 14px;
  color: #693145;
  background: linear-gradient(135deg, rgba(251, 78, 112, 0.12), rgba(255, 255, 255, 0.94));
}

.memory-editor .favorite-toggle input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: #fb4e70;
}

.memory-editor .favorite-toggle span {
  font-weight: 900;
}

.memory-editor input:focus,
.memory-editor select:focus,
.memory-editor textarea:focus {
  border-color: var(--editor-accent, var(--blue));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--editor-accent, var(--blue)) 18%, transparent);
}

.title-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  font-weight: 850;
  background: #172a45;
}

.memory-editor .editor-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 16px;
}

.memory-editor .primary-button {
  width: min(320px, 100%);
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #477dff, #8e4be2 48%, #ff5a7a);
  box-shadow:
    0 18px 34px rgba(71, 125, 255, 0.28),
    0 10px 24px rgba(142, 75, 226, 0.16);
}

.memory-editor .primary-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 20px 38px rgba(71, 125, 255, 0.34),
    0 12px 28px rgba(142, 75, 226, 0.2);
}

.memory-editor .text-button.danger {
  width: min(320px, 100%);
}

.text-button {
  min-height: 42px;
  padding: 0 12px;
  font-weight: 850;
  box-shadow: none;
}

.text-button.danger {
  color: #b82e32;
  background: linear-gradient(135deg, rgba(255, 89, 94, 0.1), rgba(255, 255, 255, 0.98));
}

.text-button.danger:hover {
  border-color: rgba(255, 89, 94, 0.28);
  background: linear-gradient(135deg, rgba(255, 89, 94, 0.14), rgba(255, 255, 255, 0.98));
}

.subtle {
  box-shadow: none;
}

.memory-marker {
  position: relative;
  display: grid;
  width: 42px;
  height: 56px;
  place-items: center;
  cursor: grab;
  border: 3px solid rgba(255, 255, 255, 0.98);
  border-radius: 50% 50% 50% 8px;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.66), transparent 20%),
    linear-gradient(160deg, color-mix(in srgb, var(--marker-color) 78%, white 22%), var(--marker-color) 58%, color-mix(in srgb, var(--marker-color) 74%, #06182c 26%));
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--marker-color) 17%, transparent),
    0 16px 30px rgba(13, 27, 42, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.24) inset;
  transform: rotate(-45deg);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.16, 1.05, 0.28, 1),
    filter 260ms ease,
    box-shadow 260ms ease;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.map-stage.map-focus #map {
  cursor: crosshair;
}

.starter-place-marker,
.memory-marker {
  cursor: pointer;
}

.memory-marker:active {
  cursor: grabbing;
}

.map-stage.map-focus.map-emotion-filter .memory-marker.is-feeling-muted {
  opacity: 0.34;
  filter: saturate(0.58) brightness(0.82);
  transform: rotate(-45deg) scale(0.86);
}

.map-stage.map-focus.map-emotion-filter .memory-marker.is-feeling-muted .memory-marker-glow,
.map-stage.map-focus.map-emotion-filter .memory-marker.is-feeling-muted .memory-marker-detail {
  opacity: 0;
}

.map-stage.map-focus.map-emotion-filter .memory-marker.is-feeling-match {
  box-shadow:
    0 0 0 11px color-mix(in srgb, var(--marker-color) 24%, transparent),
    0 0 36px color-mix(in srgb, var(--marker-color) 72%, transparent),
    0 18px 34px rgba(13, 27, 42, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.32) inset;
  animation: emotionMatchPulse 3.6s ease-in-out infinite;
}

.map-stage.map-focus .memory-marker.is-living-awake:not(.is-new) {
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--marker-color) 19%, transparent),
    0 0 34px color-mix(in srgb, var(--marker-color) 56%, transparent),
    0 18px 34px rgba(13, 27, 42, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  animation: livingMemoryWake 5.2s ease-in-out infinite;
}

.map-stage.map-focus .memory-marker.is-living-awake:not(.is-new) .memory-marker-glow {
  opacity: 0.82;
  filter: blur(24px);
}

.memory-cluster-marker {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.58), transparent 22%),
    linear-gradient(145deg, color-mix(in srgb, var(--marker-color) 70%, #ffffff 30%), var(--marker-color));
  box-shadow:
    0 0 0 9px color-mix(in srgb, var(--marker-color) 16%, transparent),
    0 16px 34px rgba(9, 22, 41, 0.34);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.memory-cluster-marker span {
  font-size: 1.16rem;
  font-weight: 950;
  line-height: 1;
}

.memory-cluster-marker small {
  margin-top: -10px;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.memory-marker.is-new {
  animation: memoryPinDrop 900ms cubic-bezier(0.2, 1.45, 0.34, 1) both;
}

.memory-marker.draft {
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.14),
    0 0 0 18px color-mix(in srgb, var(--marker-color) 16%, transparent),
    0 10px 28px rgba(13, 27, 42, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.memory-marker.draft::before {
  box-shadow:
    inset 0 -10px 18px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.memory-marker.draft::after {
  filter: brightness(1.02);
}

.memory-marker::before {
  position: absolute;
  inset: 6px 7px 20px;
  content: "";
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 35% 27%, rgba(255, 255, 255, 0.74) 0 14%, transparent 16%),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 -12px 20px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.memory-marker::after {
  position: absolute;
  inset: auto 10px -6px;
  height: 16px;
  content: "";
  border-radius: 0 0 12px 12px;
  background: inherit;
  transform: rotate(45deg);
  filter: brightness(0.95);
}

.memory-marker-core {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
}

.memory-marker-glow {
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: inherit;
  background: var(--marker-color);
  filter: blur(16px);
  opacity: 0.42;
  will-change: opacity, filter;
}

.memory-marker-face {
  position: relative;
  z-index: 2;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 4px 10px rgba(4, 16, 31, 0.16),
    0 0 0 4px rgba(255, 255, 255, 0.13);
  color: #142135;
  font-size: 0.94rem;
  transform: rotate(45deg);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.memory-marker-face > span,
.memory-marker img {
  position: relative;
  z-index: 1;
}

.starter-place-marker {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.24);
}

.starter-place-marker.restaurant {
  background: #f05a4f;
}

.starter-place-marker.hotel {
  background: #5c6bc0;
}

.starter-place-marker.landmark {
  background: #718096;
}

.starter-place-marker.park {
  background: #25a86b;
}

.starter-place-marker small {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  display: block;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.55rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
  background: rgba(8, 24, 38, 0.72);
  box-shadow: 0 8px 16px rgba(5, 22, 34, 0.18);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.map-stage.map-focus .starter-place-marker:hover small,
.map-stage.map-focus .starter-place-marker:focus-within small {
  opacity: 1;
  transform: translateX(-50%) translateY(1px);
}

.marker-photo {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  opacity: 0.74;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.96);
  transform: scale(0.94);
  transition:
    opacity 260ms ease,
    filter 260ms ease,
    transform 320ms cubic-bezier(0.16, 1.2, 0.28, 1);
  will-change: transform, opacity, filter;
}

.memory-marker-detail {
  position: absolute;
  z-index: 5;
  left: 40px;
  top: 8px;
  display: grid;
  width: 172px;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 15px;
  color: #12375c;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(250, 249, 246, 0.88)),
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--marker-color) 18%, transparent), transparent 54%);
  box-shadow:
    0 18px 38px rgba(6, 17, 34, 0.22),
    0 0 0 5px color-mix(in srgb, var(--marker-color) 8%, transparent);
  transform: rotate(45deg) translateY(8px) scale(0.92);
  transform-origin: left center;
  transition:
    opacity 230ms ease,
    transform 320ms cubic-bezier(0.16, 1.1, 0.28, 1);
  backdrop-filter: blur(16px);
  will-change: transform, opacity;
}

.memory-marker-detail strong {
  overflow: hidden;
  color: #12375c;
  font-size: 0.76rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-marker-detail em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(18, 55, 92, 0.7);
  font-size: 0.68rem;
  font-style: normal;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@keyframes memoryPinDrop {
  0% {
    opacity: 0;
    transform: translateY(-26px) scale(0.68) rotate(-45deg);
  }
  62% {
    opacity: 1;
    transform: translateY(4px) scale(1.1) rotate(-45deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(-45deg);
  }
}

.travel-path {
  animation: pathFlow 12s linear infinite;
}

.travel-path-halo {
  filter: drop-shadow(0 0 18px rgba(87, 199, 255, 0.48));
}

.travel-path-core {
  filter:
    drop-shadow(0 0 10px rgba(87, 199, 255, 0.65))
    drop-shadow(0 0 22px rgba(255, 244, 168, 0.24));
}

.travel-path-pulse {
  animation: pathFlow 8s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 244, 168, 0.72));
}

.journey-stop-marker {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.journey-stop-dot {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #12375c;
  font-size: 0.64rem;
  font-weight: 950;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), rgba(255, 244, 168, 0.9) 38%, rgba(87, 199, 255, 0.92) 100%);
  box-shadow:
    0 0 0 5px rgba(87, 199, 255, 0.14),
    0 0 24px rgba(87, 199, 255, 0.48),
    0 10px 22px rgba(6, 17, 34, 0.22);
}

.journey-stop-label {
  max-width: 104px;
  overflow: hidden;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: #12375c;
  font-size: 0.68rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 12px 28px rgba(6, 17, 34, 0.18);
  backdrop-filter: blur(14px);
}

.memory-trail-footprint {
  position: relative;
  width: 26px;
  height: 18px;
  pointer-events: none;
  transform: rotate(-18deg);
}

.memory-trail-footprint span {
  position: absolute;
  display: block;
  width: 8px;
  height: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px 999px 999px 4px;
  background: color-mix(in srgb, var(--trail-color, #57c7ff) 78%, white);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--trail-color, #57c7ff) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--trail-color, #57c7ff) 48%, transparent);
  opacity: 0.82;
  animation: memoryTrailBreathe 3.6s ease-in-out infinite;
}

.memory-trail-footprint span:first-child {
  --trail-rotate: -14deg;
  left: 5px;
  top: 2px;
  transform: rotate(-14deg);
}

.memory-trail-footprint span:last-child {
  --trail-rotate: 16deg;
  right: 4px;
  bottom: 1px;
  transform: rotate(16deg);
  animation-delay: 0.45s;
}

.memory-constellation-label {
  pointer-events: none;
}

.memory-constellation-label span {
  display: inline-grid;
  gap: 1px;
  max-width: 174px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--constellation-color, #57c7ff) 42%, rgba(255, 255, 255, 0.34));
  border-radius: 999px;
  color: #fffdf8;
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
  text-shadow: 0 0 12px color-mix(in srgb, var(--constellation-color, #57c7ff) 72%, transparent);
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--constellation-color, #57c7ff) 32%, transparent), transparent 52%),
    rgba(7, 17, 30, 0.7);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--constellation-color, #57c7ff) 10%, transparent),
    0 0 24px color-mix(in srgb, var(--constellation-color, #57c7ff) 34%, transparent);
  animation: constellationLabelGlow 4.6s ease-in-out var(--constellation-delay, 0ms) infinite;
  backdrop-filter: blur(12px);
}

.memory-constellation-label small {
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.58rem;
  font-weight: 850;
}

.hidden-discovery-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 176px;
  padding: 6px 9px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  color: #12375c;
  pointer-events: none;
  background: rgba(255, 253, 248, 0.9);
  box-shadow:
    0 14px 34px rgba(6, 17, 34, 0.2),
    0 0 0 6px rgba(255, 200, 87, 0.1);
  backdrop-filter: blur(14px);
  animation: hiddenDiscoveryFloat 4.8s ease-in-out infinite;
}

.hidden-discovery-badge span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 200, 87, 0.24);
}

.hidden-discovery-badge strong {
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-hover-preview {
  position: absolute;
  z-index: 28;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 264px;
  max-width: calc(100vw - 32px);
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  color: #12375c;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(250, 249, 246, 0.88)),
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--preview-accent, #ff6b6b) 18%, transparent), transparent 54%);
  box-shadow:
    0 20px 48px rgba(6, 17, 34, 0.24),
    0 0 0 6px color-mix(in srgb, var(--preview-accent, #ff6b6b) 9%, transparent);
  transform: translate(-50%, -100%) translateY(-8px) scale(0.96);
  transition:
    opacity 150ms ease,
    transform 190ms cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(18px);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.pin-hover-preview.below {
  transform: translate(-50%, 0) translateY(8px) scale(0.96);
}

.pin-hover-preview.show {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(0) scale(1);
}

.pin-hover-preview.below.show {
  transform: translate(-50%, 0) translateY(0) scale(1);
}

.pin-hover-preview::after {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  content: "";
  background: rgba(255, 253, 248, 0.92);
  transform: translateX(-50%) rotate(45deg);
}

.pin-hover-preview.below::after {
  top: -7px;
  bottom: auto;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.62);
}

.pin-preview-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50% 50% 50% 12px;
  color: #fff;
  font-size: 1.15rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--preview-accent, #ff6b6b) 72%, white), var(--preview-accent, #ff6b6b));
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--preview-accent, #ff6b6b) 12%, transparent),
    0 10px 22px rgba(31, 78, 121, 0.16);
  transform: rotate(-45deg);
}

.pin-preview-icon > * {
  transform: rotate(45deg);
}

.pin-preview-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pin-preview-copy strong {
  overflow: hidden;
  color: #12375c;
  font-size: 0.92rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-preview-copy small {
  overflow: hidden;
  color: rgba(31, 78, 121, 0.66);
  font-size: 0.7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-preview-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(18, 55, 92, 0.72);
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-life-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  overflow: hidden;
  pointer-events: none;
}

.map-stage.map-focus .map-life-layer {
  display: block;
  transition: opacity 220ms ease, filter 220ms ease;
}

.map-stage.map-focus .maplibregl-canvas {
  transition: filter 260ms ease;
}

.map-stage.map-focus .maplibregl-marker {
  transform-style: preserve-3d;
}

.map-stage.map-focus.map-interacting .map-life-layer {
  opacity: 0;
  filter: blur(4px);
}

.map-stage.map-focus.map-interacting .memory-constellation-label,
.map-stage.map-focus.map-interacting .hidden-discovery-badge,
.map-stage.map-focus.map-interacting .journey-stop-label,
.map-stage.map-focus.map-interacting .memory-marker-detail,
.map-stage.map-focus.map-interacting .memory-peek-card {
  opacity: 0 !important;
  transition: opacity 140ms ease;
}

.map-stage.map-focus.map-performance-mode .map-life-layer,
.map-stage.map-focus.map-performance-mode .memory-constellation-label,
.map-stage.map-focus.map-performance-mode .hidden-discovery-badge,
.map-stage.map-focus.map-performance-mode .journey-stop-label {
  opacity: 0 !important;
  transition: opacity 160ms ease;
}

.map-stage.map-focus.map-performance-mode .memory-marker-detail {
  display: none;
}

.map-stage.map-focus.map-performance-mode .memory-marker-glow {
  opacity: 0.34;
  filter: blur(12px);
}

.map-stage.map-focus.map-performance-mode .memory-marker.is-breathing:not(.is-new),
.map-stage.map-focus.map-performance-mode .memory-marker.is-living-awake:not(.is-new) {
  animation-duration: 7.5s;
}

.life-cloud,
.life-plane,
.life-ship,
.life-birds,
.season-snow,
.season-petal,
.season-sun,
.season-leaf {
  position: absolute;
  opacity: 0.28;
  will-change: transform;
}

.life-cloud {
  width: 74px;
  height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    18px -9px 0 -2px rgba(255, 255, 255, 0.66),
    36px -3px 0 -7px rgba(255, 255, 255, 0.58),
    0 12px 28px rgba(31, 78, 121, 0.12);
  filter: blur(0.2px);
}

.cloud-one {
  top: 18%;
  left: -14%;
  animation: cloudDrift 72s linear infinite;
}

.cloud-two {
  top: 38%;
  left: -18%;
  width: 96px;
  opacity: 0.2;
  animation: cloudDrift 96s linear 18s infinite;
}

.cloud-three {
  top: 64%;
  left: -16%;
  width: 62px;
  opacity: 0.18;
  animation: cloudDrift 84s linear 42s infinite;
}

.life-plane {
  width: 34px;
  height: 18px;
}

.life-plane::before,
.life-plane::after {
  position: absolute;
  content: "";
  background: rgba(31, 78, 121, 0.48);
}

.life-plane::before {
  top: 8px;
  left: 1px;
  width: 31px;
  height: 2px;
  border-radius: 999px;
}

.life-plane::after {
  top: 3px;
  left: 12px;
  width: 13px;
  height: 12px;
  clip-path: polygon(0 42%, 100% 0, 72% 50%, 100% 100%, 0 58%);
}

.plane-one {
  top: 22%;
  left: -8%;
  animation: planeCross 62s linear 8s infinite;
}

.plane-two {
  top: 58%;
  right: -8%;
  opacity: 0.2;
  transform: rotate(180deg);
  animation: planeCrossReverse 88s linear 26s infinite;
}

.life-ship {
  width: 44px;
  height: 24px;
}

.life-ship::before {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 32px;
  height: 9px;
  border-radius: 0 0 999px 999px;
  content: "";
  background: rgba(31, 78, 121, 0.34);
}

.life-ship::after {
  position: absolute;
  left: 17px;
  bottom: 14px;
  width: 13px;
  height: 13px;
  content: "";
  background: rgba(255, 253, 248, 0.64);
  clip-path: polygon(0 100%, 0 0, 100% 100%);
}

.ship-one {
  top: 72%;
  left: -10%;
  animation: shipCross 102s linear 6s infinite;
}

.ship-two {
  top: 82%;
  right: -10%;
  opacity: 0.2;
  transform: scaleX(-1);
  animation: shipCrossReverse 118s linear 36s infinite;
}

.life-birds {
  width: 52px;
  height: 18px;
}

.life-birds::before,
.life-birds::after {
  position: absolute;
  width: 13px;
  height: 8px;
  border-top: 2px solid rgba(31, 78, 121, 0.42);
  border-radius: 50%;
  content: "";
}

.life-birds::before {
  left: 8px;
  transform: rotate(-12deg);
}

.life-birds::after {
  right: 8px;
  transform: rotate(12deg);
}

.birds-one {
  top: 30%;
  left: -7%;
  animation: birdsDrift 54s ease-in-out 4s infinite;
}

.birds-two {
  top: 50%;
  right: -7%;
  opacity: 0.2;
  animation: birdsDriftReverse 78s ease-in-out 22s infinite;
}

.season-snow,
.season-petal,
.season-sun,
.season-leaf {
  display: none;
  pointer-events: none;
}

.map-stage.map-focus.map-season-winter .season-snow,
.map-stage.map-focus.map-season-spring .season-petal,
.map-stage.map-focus.map-season-summer .season-sun,
.map-stage.map-focus.map-season-autumn .season-leaf {
  display: block;
}

.season-snow {
  top: -12%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    28px 22px 0 rgba(255, 255, 255, 0.56),
    56px -12px 0 rgba(255, 255, 255, 0.46),
    88px 14px 0 rgba(255, 255, 255, 0.62),
    118px -4px 0 rgba(255, 255, 255, 0.5);
  filter: drop-shadow(0 0 8px rgba(172, 218, 255, 0.44));
}

.snow-one {
  left: 14%;
  animation: northernSnow 18s linear infinite;
}

.snow-two {
  left: 48%;
  opacity: 0.18;
  animation: northernSnow 24s linear 7s infinite;
}

.season-petal {
  width: 11px;
  height: 17px;
  border-radius: 70% 30% 70% 30%;
  background: rgba(255, 151, 190, 0.54);
  box-shadow:
    34px 28px 0 rgba(255, 206, 222, 0.44),
    76px -8px 0 rgba(255, 151, 190, 0.34);
}

.petal-one {
  top: 18%;
  left: -8%;
  animation: petalFloat 30s ease-in-out infinite;
}

.petal-two {
  top: 46%;
  right: -8%;
  opacity: 0.2;
  animation: petalFloatReverse 38s ease-in-out 12s infinite;
}

.season-sun {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 200, 87, 0.82);
  box-shadow:
    0 0 16px rgba(255, 200, 87, 0.44),
    42px 16px 0 -2px rgba(255, 255, 255, 0.48),
    82px -10px 0 -1px rgba(101, 205, 255, 0.28);
}

.sun-one {
  top: 21%;
  left: 18%;
  animation: summerGlint 6.8s ease-in-out infinite;
}

.sun-two {
  top: 68%;
  right: 24%;
  opacity: 0.18;
  animation: summerGlint 8.6s ease-in-out 2.4s infinite;
}

.season-leaf {
  width: 13px;
  height: 20px;
  border-radius: 90% 0 90% 0;
  background: rgba(226, 116, 53, 0.54);
  box-shadow:
    38px 22px 0 rgba(255, 200, 87, 0.42),
    74px -10px 0 rgba(180, 87, 52, 0.34);
}

.leaf-one {
  top: 16%;
  left: -8%;
  animation: autumnLeafFall 36s ease-in-out infinite;
}

.leaf-two {
  top: 42%;
  right: -8%;
  opacity: 0.22;
  animation: autumnLeafFallReverse 44s ease-in-out 14s infinite;
}

@keyframes pathFlow {
  to {
    stroke-dashoffset: -220;
  }
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--ink);
}

.memory-popup {
  width: min(260px, 60vw);
}

.memory-popup h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.memory-popup p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.popup-meta {
  font-size: 0.78rem;
  font-weight: 760;
}

.popup-note-block {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.popup-note-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.popup-note {
  margin: 0;
  color: var(--ink);
}

.popup-photo {
  width: 100%;
  max-height: 140px;
  margin-bottom: 8px;
  border-radius: 8px;
  object-fit: cover;
}

.popup-media {
  display: grid;
  gap: 6px;
}

.popup-media a,
.popup-edit {
  color: var(--blue);
  font-weight: 850;
}

.popup-edit {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.timeline-year,
.collection,
.capsule,
.country-cloud {
  margin-bottom: 14px;
}

.timeline-year h3,
.collection h3,
.capsule h3,
.country-cloud h3 {
  margin-bottom: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stat-card,
.capsule,
.country-cloud {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.18rem;
}

.stat-card span,
.capsule p,
.country-cloud p {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.country-cloud div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.country-cloud span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0b5c3a;
  font-size: 0.75rem;
  font-weight: 850;
  background: rgba(33, 197, 122, 0.14);
}

.empty-state {
  position: relative;
  padding: 20px 8px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.empty-state::before {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  content: "";
  background: #fff url("./mymappi-mascot-wave-v3.png") center / contain no-repeat;
  box-shadow:
    0 12px 28px rgba(31, 78, 121, 0.16),
    0 0 0 7px rgba(48, 128, 255, 0.08);
}

@media (max-width: 920px) {
  .side-panel {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: 40vh;
  }

  .category-rail {
    right: 12px;
    top: 72px;
    bottom: auto;
    left: 12px;
  }

  .memory-editor {
    left: 50%;
    bottom: calc(40vh + 76px);
    width: calc(100vw - 20px);
    max-height: 46vh;
    border-radius: 16px 16px 10px 10px;
  }
}

@media (max-width: 560px) {
  .topbar {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .brand {
    padding: 7px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand p {
    display: none;
  }

  .brand h1 {
    font-size: 1.28rem;
  }

  .category-rail {
    top: 64px;
    padding: 6px;
  }

  .category-button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.82rem;
  }

  .topbar-actions {
    gap: 6px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Cinematic MyMappi home */
body {
  overflow: hidden;
  color: #f8fbff;
  background: #020918;
}

.map-stage {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 43%, rgba(78, 170, 255, 0.36), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(255, 165, 74, 0.18), transparent 22%),
    radial-gradient(circle at 83% 24%, rgba(148, 103, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #03101f 0%, #06223d 44%, #08294a 100%);
}

.map-stage::before {
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(122, 198, 255, 0.85) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(72, 151, 255, 0.42) 1px, transparent 1.5px);
  background-position:
    10px 20px,
    48px 72px,
    92px 34px;
  background-size:
    116px 116px,
    183px 183px,
    257px 257px;
  opacity: 0.72;
}

.map-stage::after {
  z-index: 4;
  height: 100%;
  background:
    radial-gradient(circle at 50% 53%, transparent 0 31%, rgba(6, 22, 43, 0.04) 39%, rgba(3, 13, 28, 0.62) 80%),
    linear-gradient(180deg, rgba(4, 20, 38, 0.04), rgba(3, 14, 31, 0.72));
}

.map-stage.globe-mode #map {
  z-index: 1;
  width: min(90vh, 82vw, 940px);
  height: min(90vh, 82vw, 940px);
  inset: 54% auto auto 50%;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.5), transparent 0 17%, transparent 18%),
    radial-gradient(ellipse at 40% 30%, rgba(102, 190, 101, 0.86) 0 11%, transparent 11.5%),
    radial-gradient(ellipse at 56% 34%, rgba(98, 181, 96, 0.78) 0 8%, transparent 8.6%),
    radial-gradient(ellipse at 45% 50%, rgba(198, 176, 119, 0.8) 0 13%, transparent 13.7%),
    radial-gradient(ellipse at 35% 59%, rgba(86, 167, 98, 0.76) 0 9%, transparent 9.6%),
    radial-gradient(ellipse at 64% 58%, rgba(191, 153, 95, 0.74) 0 10%, transparent 10.7%),
    radial-gradient(ellipse at 54% 74%, rgba(78, 154, 108, 0.72) 0 7%, transparent 7.8%),
    radial-gradient(circle at 46% 42%, rgba(119, 213, 255, 0.34) 0 28%, transparent 46%),
    radial-gradient(circle at 50% 50%, #4ac7f5 0 50%, #147fc4 72%, #082f6a 100%);
  box-shadow:
    inset -92px -48px 130px rgba(0, 8, 22, 0.76),
    inset 38px 26px 76px rgba(136, 218, 255, 0.34),
    0 0 0 1px rgba(128, 205, 255, 0.38),
    0 0 48px rgba(73, 173, 255, 0.72),
    0 0 180px rgba(13, 111, 255, 0.48);
  filter: saturate(1.36) contrast(1.08) brightness(0.9);
  transform: translate(-50%, -50%);
}

.map-stage.globe-mode .leaflet-tile {
  background: transparent !important;
}

.map-stage.globe-mode .leaflet-tile-pane {
  opacity: 0;
}

.map-stage.map-focus.globe-mode #map {
  z-index: 1;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #08131f;
  opacity: 1;
  pointer-events: auto;
  box-shadow: none;
  filter: saturate(1.08) contrast(1.02);
  transform: none;
}

.map-stage.map-focus.globe-mode #map::before,
.map-stage.map-focus.globe-mode #map::after {
  opacity: 0;
}

.map-stage.map-focus.globe-mode .leaflet-tile-pane {
  opacity: 1;
  mix-blend-mode: normal;
}

.map-stage.map-focus.globe-mode .leaflet-overlay-pane {
  opacity: 0.9;
}

.map-stage.map-focus.globe-mode .leaflet-marker-pane,
.map-stage.map-focus.globe-mode .leaflet-shadow-pane,
.map-stage.map-focus.globe-mode .leaflet-popup-pane {
  opacity: 1;
}

.map-stage.map-focus #map {
  z-index: 1;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #08131f;
  opacity: 1;
  pointer-events: auto;
  box-shadow: none;
  filter: saturate(1.08) contrast(1.02);
  transform: none;
  transition: none;
}

.map-stage.map-focus #map::before,
.map-stage.map-focus #map::after {
  opacity: 0;
}

.map-stage.map-focus .leaflet-tile-pane {
  opacity: 1;
}

.map-stage.map-focus .leaflet-container,
.map-stage.map-focus .leaflet-pane,
.map-stage.map-focus .leaflet-tile-container {
  background: #08131f;
}

.map-stage.map-focus .leaflet-tile {
  opacity: 1 !important;
  background: #08131f !important;
}

.map-coordinates {
  position: absolute;
  z-index: 18;
  top: 104px;
  left: 38px;
  display: none;
  min-width: 260px;
  padding: 11px 16px;
  border: 1px solid rgba(142, 181, 226, 0.24);
  border-radius: 18px;
  color: rgba(226, 242, 255, 0.78);
  background: rgba(9, 22, 41, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.map-stage.map-focus .map-coordinates {
  display: block;
}

.map-coordinates span,
.map-coordinates strong {
  display: block;
}

.map-coordinates > span {
  color: #72d8ff;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.map-coordinates strong {
  margin-top: 3px;
  color: rgba(246, 250, 255, 0.9);
  font-size: 0.9rem;
}

.map-layer-controls {
  position: absolute;
  z-index: 18;
  top: 176px;
  left: 38px;
  display: none;
  width: min(260px, calc(100vw - 76px));
  grid-template-columns: 1fr;
  gap: 8px;
}

.map-stage.map-focus .map-layer-controls {
  display: grid;
}

.map-layer-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(142, 181, 226, 0.22);
  border-radius: 999px;
  color: rgba(226, 235, 255, 0.66);
  font-weight: 850;
  text-align: left;
  background: rgba(9, 22, 41, 0.76);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.map-layer-chip.active {
  color: #fff;
  background: linear-gradient(135deg, #2478ff, #23c2dd);
}

.earth-globe {
  position: absolute;
  z-index: 2;
  top: 51%;
  left: 50%;
  display: none;
  width: min(80vh, 80vw, 860px);
  height: min(80vh, 80vw, 860px);
  cursor: grab;
  touch-action: none;
  transform: translate(-50%, -50%);
}

.earth-globe:active {
  cursor: grabbing;
}

.map-stage.home-focus .earth-globe {
  display: block;
}

.map-stage.home-focus #map {
  opacity: 0;
  pointer-events: none;
}

.map-stage.home-focus .leaflet-container,
.map-stage.home-focus .leaflet-map-pane,
.map-stage.home-focus .leaflet-pane,
.map-stage.home-focus .leaflet-tile-pane,
.map-stage.home-focus .leaflet-tile-container,
.map-stage.home-focus .leaflet-overlay-pane,
.map-stage.home-focus .leaflet-marker-pane,
.map-stage.home-focus .leaflet-shadow-pane,
.map-stage.home-focus .leaflet-popup-pane {
  opacity: 0;
  pointer-events: none;
}

.map-stage.map-focus .earth-globe {
  display: none;
}

.map-hud {
  position: absolute;
  z-index: 18;
  top: 112px;
  right: 38px;
  left: auto;
  display: none;
  min-width: 250px;
  padding: 11px 16px;
  border: 1px solid rgba(142, 214, 255, 0.22);
  border-radius: 999px;
  color: rgba(226, 242, 255, 0.76);
  text-align: center;
  background: rgba(8, 20, 38, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.map-hud span,
.map-hud strong {
  display: block;
}

.map-hud span {
  color: #82caff;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.map-hud strong {
  margin-top: 2px;
  color: rgba(246, 250, 255, 0.88);
  font-size: 0.88rem;
}

.map-stage.map-focus .map-hud {
  display: block;
}

.map-stage.globe-mode .leaflet-container {
  background: transparent;
}

.map-stage.globe-mode #map::before {
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.26), transparent 22%),
    radial-gradient(circle at 48% 44%, transparent 0 38%, rgba(0, 6, 18, 0.38) 64%, rgba(0, 4, 14, 0.82) 100%),
    linear-gradient(115deg, rgba(172, 222, 255, 0.25), transparent 40%);
  mix-blend-mode: screen;
}

.leaflet-control-container {
  display: none;
}

.map-stage.map-focus .leaflet-control-container {
  display: block;
}

.map-stage.map-focus .leaflet-control-zoom {
  margin-right: 28px;
  margin-bottom: 122px;
  overflow: hidden;
  border: 1px solid rgba(142, 181, 226, 0.28);
  border-radius: 16px;
  background: rgba(9, 22, 41, 0.78);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.map-stage.map-focus .leaflet-control-zoom a {
  width: 42px;
  height: 42px;
  border: 0;
  color: #f6fbff;
  line-height: 42px;
  background: transparent;
}

.map-stage.map-focus .leaflet-control-zoom a + a {
  border-top: 1px solid rgba(142, 181, 226, 0.2);
}

.state-label-marker {
  display: grid;
  place-items: center;
  pointer-events: none;
}

.state-label-marker span {
  display: inline-grid;
  max-width: 108px;
  min-height: 22px;
  place-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(36, 120, 255, 0.34);
  border-radius: 999px;
  color: #12365a;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  background: rgba(245, 251, 255, 0.72);
  box-shadow: 0 6px 16px rgba(18, 54, 90, 0.16);
  backdrop-filter: blur(7px);
}

.orbit {
  z-index: 3;
  width: min(82vh, 68vw, 760px);
  border-color: rgba(255, 192, 133, 0.38);
}

.orbit-one {
  left: 50%;
  transform: translate(-50%, -35%) rotate(9deg);
}

.orbit-two {
  left: 50%;
  transform: translate(-50%, -24%) rotate(-16deg);
}

.topbar {
  z-index: 20;
  top: 28px;
  right: 38px;
  left: 38px;
  align-items: center;
}

.topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.brand h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  color: var(--logo-navy);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.55),
    0 8px 26px rgba(35, 120, 255, 0.22);
}

.brand-my,
.brand-i {
  color: var(--logo-navy);
}

.brand-mapp {
  background: linear-gradient(90deg, #24d68f 0%, #23c2dd 48%, #2674f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-i {
  position: relative;
  display: inline-block;
  width: auto;
  height: auto;
  margin-left: 0.005em;
  overflow: visible;
  color: var(--logo-navy);
  line-height: 1;
  vertical-align: baseline;
}

.brand-i::before {
  position: absolute;
  top: 0.055em;
  left: 50%;
  z-index: 2;
  width: 0.18em;
  height: 0.18em;
  border: 0.025em solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  content: "";
  background: linear-gradient(180deg, #ff7b6f 0%, #ff3c36 100%);
  box-shadow: 0 0.06em 0.2em rgba(255, 52, 59, 0.36);
  transform: translateX(-50%);
}

.avatar-button {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 0;
  overflow: visible;
  background: #fff;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(15, 32, 52, 0.06);
}

.avatar-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
}

.avatar-button::after {
  display: none;
  content: none;
}

.topbar-actions {
  margin-left: auto;
  align-items: center;
  gap: 18px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 0;
  color: rgba(224, 235, 255, 0.78);
  background: transparent;
  box-shadow: none;
}

.icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.icon-button.active {
  color: #fff;
  background: linear-gradient(135deg, #4f80ff, #9149dd);
}

.hidden-control {
  display: none;
}

.notification-button {
  position: relative;
}

.notification-button::after {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: #ff6e8a;
}

[data-icon] {
  display: inline-grid;
  place-items: center;
  min-width: 1em;
  color: currentColor;
  font-size: 1.2rem;
  line-height: 1;
}

[data-icon] svg,
.icon-button svg,
.primary-button svg,
.search-wrap svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.1;
}

.hero-copy {
  position: absolute;
  z-index: 12;
  top: 86px;
  left: 50%;
  width: min(980px, calc(100vw - 48px));
  text-align: center;
  transform: translateX(-50%);
}

.mappi-greeting {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, calc(100vw - 56px));
  margin: 0 auto 14px;
  padding: 8px 13px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(246, 250, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 850;
  background: rgba(9, 22, 41, 0.58);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.mappi-greeting img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #fff;
}

.mappi-greeting::after {
  position: absolute;
  top: -11px;
  left: 26px;
  content: "👋";
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform-origin: 20% 90%;
}

.map-stage.home-focus .avatar-button img,
.map-stage.home-focus .mappi-greeting img {
  animation: mappiMascotIdle 6.4s ease-in-out 900ms infinite;
}

.map-stage.home-focus .mappi-greeting::after {
  animation: mappiMascotWave 6.4s ease-in-out 1180ms infinite;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
  background: linear-gradient(90deg, #69a1ff, #a978ff 46%, #ff7fb7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 12px 0 0;
  color: rgba(226, 235, 255, 0.74);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.home-memory-pulse {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  max-width: 760px;
}

.home-memory-pulse span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(232, 240, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(10, 24, 44, 0.42);
  backdrop-filter: blur(14px);
}

.home-memory-pulse strong {
  color: #fff;
}

.home-memory-pulse .today-memory {
  border-color: rgba(255, 127, 183, 0.28);
  background: rgba(251, 78, 112, 0.14);
}

.pin-network {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  pointer-events: none;
}

.pin {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 0 24px currentColor;
  transform: rotate(-45deg);
}

.pin::after {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  content: "";
  background: #fff;
}

.pin-purple {
  top: 44%;
  left: 32%;
  color: #8667ff;
  background: #8667ff;
}

.pin-pink {
  top: 39%;
  right: 36%;
  color: #ff6dab;
  background: #ff6dab;
}

.pin-orange {
  top: 61%;
  left: 34%;
  color: #ff9b3d;
  background: #ff9b3d;
}

.pin-green {
  right: 43%;
  bottom: 24%;
  color: #65dcc3;
  background: #65dcc3;
}

.pin-blue {
  bottom: 17%;
  left: 43%;
  color: #5f83ff;
  background: #5f83ff;
}

.spotlight-cards {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
}

.spotlight-card {
  position: absolute;
  display: inline-grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: clamp(168px, 17vw, 230px);
  min-height: 62px;
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(160, 196, 238, 0.26);
  border-radius: 999px;
  color: #fff;
  text-align: left;
  background: linear-gradient(135deg, rgba(16, 34, 58, 0.72), rgba(5, 16, 32, 0.62));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
  pointer-events: none;
  backdrop-filter: blur(18px);
}

.story-1 {
  top: 31%;
  left: 12%;
}

.story-2 {
  top: 30%;
  right: 13%;
}

.story-3 {
  bottom: 32%;
  left: 10%;
}

.story-4 {
  right: 10%;
  bottom: 31%;
}

.story-5 {
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
}

.story-6 {
  display: none;
}

.spotlight-pin {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50% 50% 50% 10px;
  color: #fff;
  background: var(--accent, #5f83ff);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.07), 0 0 26px color-mix(in srgb, var(--accent, #5f83ff), transparent 20%);
  transform: rotate(-45deg);
}

.spotlight-pin span {
  font-size: 1.05rem;
  transform: rotate(45deg);
}

.spotlight-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 0;
}

.spotlight-copy strong {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-copy small {
  color: rgba(226, 235, 255, 0.58);
  font-size: 0.72rem;
}

.favorite-notes {
  position: absolute;
  z-index: 15;
  top: 132px;
  right: clamp(18px, 5vw, 72px);
  bottom: 122px;
  display: none;
  width: min(510px, calc(100vw - 36px));
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(160, 196, 238, 0.34);
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(180deg, rgba(11, 31, 57, 0.84), rgba(5, 16, 32, 0.9));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(22px);
}

.map-stage.memories-focus .favorite-notes {
  display: block;
}

.favorite-notes-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.favorite-notes-heading span {
  color: #72d8ff;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.favorite-notes-heading strong {
  color: rgba(246, 250, 255, 0.96);
  font-size: 1.35rem;
  text-align: right;
}

.favorite-note-tabs {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px;
  border: 1px solid rgba(160, 196, 238, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.favorite-note-tabs span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 11px;
  color: rgba(226, 235, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 850;
}

.favorite-note-tabs .active {
  color: #fff;
  background: linear-gradient(135deg, #2478ff, #8e4be2);
}

.favorite-notes-list {
  display: grid;
  gap: 9px;
}

.favorite-note {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(160, 196, 238, 0.2);
  border-radius: 16px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
}

.favorite-note:hover {
  background: rgba(255, 255, 255, 0.1);
}

.favorite-note-emoji {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  font-size: 1.25rem;
  background: rgba(114, 216, 255, 0.14);
}

.favorite-note-copy {
  min-width: 0;
}

.favorite-note-copy strong,
.favorite-note-copy small,
.favorite-note-copy em {
  display: block;
}

.favorite-note-copy strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-note-copy small {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px;
  margin-top: 2px;
  color: rgba(226, 235, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 750;
}

.favorite-note-copy small span:first-child {
  color: #72d8ff;
}

.favorite-note-copy em {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: rgba(246, 250, 255, 0.82);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category-rail {
  z-index: 22;
  top: 92px;
  right: auto;
  bottom: auto;
  left: 38px;
  display: none;
  width: min(260px, calc(100vw - 32px));
  max-width: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border-color: rgba(142, 181, 226, 0.22);
  border-radius: 18px;
  background: rgba(9, 22, 41, 0.9);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.category-rail.open {
  display: grid;
}

.account-menu {
  z-index: 22;
  top: auto;
  right: 38px;
  bottom: 110px;
  display: none;
  width: min(230px, calc(100vw - 32px));
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(142, 181, 226, 0.22);
  border-radius: 18px;
  background: rgba(9, 22, 41, 0.9);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.account-menu.open {
  display: grid;
}

.account-menu::before {
  display: grid;
  min-height: 54px;
  padding: 8px 10px 8px 62px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: rgba(241, 247, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 850;
  content: "Mappi is here to help";
  background:
    url("./mymappi-mascot-wave-v3.png") 10px center / 42px 42px no-repeat,
    rgba(255, 255, 255, 0.07);
}

@media (max-width: 720px) {
  .account-menu {
    right: 12px;
    bottom: 98px;
    width: min(230px, calc(100vw - 24px));
  }
}

.notification-hub {
  z-index: 22;
  top: 82px;
  right: 82px;
  display: none;
  width: min(360px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(142, 181, 226, 0.24);
  border-radius: 22px;
  color: #fff;
  background: rgba(9, 22, 41, 0.92);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
}

.notification-hub.open {
  display: grid;
  gap: 10px;
}

.notification-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 4px;
}

.notification-heading::before,
.pin-search-heading::before {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  content: "";
  background: #fff url("./mymappi-mascot-wave-v3.png") center / contain no-repeat;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.notification-heading > div,
.pin-search-heading > div {
  min-width: 0;
  margin-right: auto;
}

.notification-heading span {
  color: #72d8ff;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.notification-heading strong {
  color: rgba(246, 250, 255, 0.96);
  font-size: 1.1rem;
}

.notification-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(160, 196, 238, 0.18);
  border-radius: 16px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
}

.notification-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.notification-card strong,
.notification-card small {
  display: block;
}

.notification-card strong {
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-card small {
  margin-top: 4px;
  color: rgba(226, 235, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.35;
}

.notification-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
}

.notification-icon.deal {
  color: #fff;
  background: linear-gradient(135deg, #23c2dd, #2674f0);
}

.notification-icon.update {
  color: #fff;
  background: linear-gradient(135deg, #24d68f, #23c2dd);
}

.notification-icon.story {
  color: #fff;
  background: linear-gradient(135deg, #ff5f7c, #8e4be2);
}

.notification-icon.news {
  color: #fff;
  background: linear-gradient(135deg, #ffb347, #ff5f7c);
}

.pin-search-panel {
  z-index: 22;
  top: 82px;
  right: 130px;
  display: none;
  width: min(390px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(142, 181, 226, 0.24);
  border-radius: 22px;
  color: #fff;
  background: rgba(9, 22, 41, 0.92);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
}

.pin-search-panel.open {
  display: grid;
  gap: 12px;
}

.pin-search-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.pin-search-heading span {
  color: #72d8ff;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pin-search-heading strong {
  color: rgba(246, 250, 255, 0.96);
  font-size: 1.1rem;
}

.pin-search-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(160, 196, 238, 0.2);
  border-radius: 16px;
  color: rgba(226, 235, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.pin-search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.pin-search-box input::placeholder {
  color: rgba(226, 235, 255, 0.5);
}

.pin-search-results {
  display: grid;
  max-height: min(48vh, 420px);
  gap: 9px;
  overflow: auto;
}

.pin-search-section-label {
  margin: 8px 4px 0;
  color: rgba(226, 235, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pin-search-loading {
  padding: 12px;
  border: 1px solid rgba(160, 196, 238, 0.14);
  border-radius: 16px;
  color: rgba(226, 235, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 820;
  background: rgba(255, 255, 255, 0.055);
}

.pin-search-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(160, 196, 238, 0.18);
  border-radius: 16px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
}

.pin-search-result:hover {
  background: rgba(255, 255, 255, 0.12);
}

.world-place-result {
  border-color: rgba(83, 214, 171, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(83, 214, 171, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.07);
}

.pin-search-result-emoji {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  font-size: 1.2rem;
  background: rgba(114, 216, 255, 0.14);
}

.pin-search-result strong,
.pin-search-result small {
  display: block;
}

.pin-search-result strong {
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-search-result small {
  margin-top: 4px;
  color: rgba(226, 235, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.35;
}

.category-button,
.account-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: rgba(226, 235, 255, 0.68);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.category-button.active,
.account-menu-item:hover {
  color: #fff;
  background: linear-gradient(135deg, #3c86ff, #914ee5);
}

.bottom-nav {
  position: absolute;
  z-index: 19;
  right: 38px;
  bottom: 28px;
  left: 38px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  max-width: 1160px;
  min-height: 74px;
  margin: 0 auto;
  border: 1px solid rgba(142, 181, 226, 0.22);
  border-radius: 38px;
  background: rgba(9, 22, 41, 0.82);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.bottom-nav-item,
.add-memory-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  border: 0;
  color: rgba(226, 235, 255, 0.66);
  font-size: 1.06rem;
  background: transparent;
}

.bottom-nav-item.active {
  color: #4393ff;
}

.add-memory-button {
  width: 68px;
  height: 68px;
  margin: -24px auto 0;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.36), transparent 30%),
    linear-gradient(135deg, #0b7285 0%, #16a879 72%, #54d88d 100%);
  box-shadow:
    0 16px 38px rgba(11, 114, 133, 0.34),
    0 0 30px rgba(255, 107, 107, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.add-memory-button [data-icon] {
  font-size: 2.6rem;
}

.explore-panel,
.side-panel {
  display: none;
}

.memory-editor {
  z-index: 30;
  bottom: 116px;
  left: 50%;
  width: min(560px, calc(100vw - 36px));
  color: var(--ink);
}

.memory-bottom-sheet {
  position: absolute;
  z-index: 34;
  right: 50%;
  bottom: 112px;
  display: none;
  width: min(520px, calc(100vw - 32px));
  color: #142135;
  transform: translateX(50%);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.memory-bottom-sheet.open {
  display: block;
  animation: memorySheetRise 320ms cubic-bezier(0.16, 1.08, 0.28, 1) both;
}

.memory-bottom-sheet.closing {
  display: block;
  animation: softBottomCardOut 220ms ease both;
}

.sheet-grabber {
  display: block;
  width: 58px;
  height: 7px;
  margin: 0 auto 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 22px rgba(9, 22, 41, 0.2);
}

.memory-sheet-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(20, 33, 53, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sheet-accent) 10%, white 90%), rgba(255, 255, 255, 0.96));
  box-shadow: 0 24px 64px rgba(9, 22, 41, 0.28);
  backdrop-filter: blur(18px);
}

.sheet-mappi-helper {
  position: absolute;
  top: -28px;
  left: 22px;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 14px 28px rgba(9, 22, 41, 0.18),
    0 0 0 8px color-mix(in srgb, var(--sheet-accent) 16%, transparent);
  pointer-events: none;
  animation: mappiMascotIdle 6.4s ease-in-out 900ms infinite;
}

.sheet-mappi-helper img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.sheet-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(20, 33, 53, 0.12);
  border-radius: 50%;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(9, 22, 41, 0.16);
}

.sheet-close-button:hover {
  transform: translateY(-1px);
  background: #fff;
}

.sheet-pin-badge {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 13px;
  color: #fff;
  font-size: 1.24rem;
  background: var(--sheet-accent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--sheet-accent) 28%, transparent);
  transform: rotate(-45deg);
}

.sheet-pin-badge span {
  transform: rotate(45deg);
}

.sheet-copy {
  min-width: 0;
}

.sheet-kicker {
  color: var(--sheet-accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-copy h3 {
  margin: 3px 0 2px;
  font-size: 1.12rem;
}

.sheet-meta,
.sheet-note,
.sheet-coordinates {
  margin: 6px 0 0;
  color: #667387;
  line-height: 1.4;
}

.sheet-photo {
  width: 100%;
  max-height: 170px;
  margin-top: 10px;
  border-radius: 18px;
  object-fit: cover;
}

@keyframes memorySheetRise {
  from {
    opacity: 0;
    transform: translateX(50%) translateY(28px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateX(50%) translateY(0) scale(1);
  }
}

.sheet-memory-details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.sheet-memory-details span {
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--sheet-accent) 24%, white);
  border-radius: 999px;
  color: #304158;
  font-size: 0.76rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.72);
}

.sheet-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sheet-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #3c86ff, #24b6d6);
}

.sheet-actions .danger {
  background: linear-gradient(135deg, #ff6969, #fb4e70);
}

.map-stage.map-focus .hero-copy,
.map-stage.map-focus .spotlight-cards,
.map-stage.map-focus .favorite-notes,
.map-stage.map-focus .pin-network,
.map-stage.map-focus .category-rail,
.map-stage.map-focus .explore-panel,
.map-stage.map-focus .side-panel {
  display: none;
}

.map-stage.memories-focus .hero-copy,
.map-stage.memories-focus .spotlight-cards,
.map-stage.memories-focus .favorite-notes,
.map-stage.memories-focus .pin-network,
.map-stage.memories-focus .category-rail,
.map-stage.memories-focus .explore-panel {
  display: none;
}

.map-stage.memories-focus .topbar,
.map-stage.memories-focus .bottom-nav {
  display: none;
}

.map-stage.memories-focus .memory-database-page {
  inset: 0;
  display: flex;
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding: 24px clamp(16px, 3vw, 36px) 18px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(36, 120, 255, 0.12), transparent 34%),
    radial-gradient(circle at 90% 16%, rgba(142, 75, 226, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(236, 243, 250, 0.98));
  box-shadow: none;
  backdrop-filter: blur(18px);
  overflow: auto;
}

.map-stage.memories-focus .panel-section {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 4px 0 14px;
  background: inherit;
}

.map-stage.memories-focus .tabs {
  position: sticky;
  top: 92px;
  z-index: 2;
  padding: 0 0 12px;
  background: inherit;
}

.map-stage.memories-focus .drawer-view {
  padding: 0 2px 24px;
}

.map-stage.memories-focus .memory-card.rich {
  margin-bottom: 14px;
}

.map-stage.map-focus .orbit {
  display: none;
}

.map-stage.map-focus .bottom-nav {
  max-width: 1160px;
}

.map-stage.map-focus::after {
  background:
    linear-gradient(90deg, rgba(2, 10, 22, 0.72), transparent 18%, transparent 82%, rgba(2, 10, 22, 0.58)),
    linear-gradient(180deg, rgba(2, 8, 18, 0.04), rgba(2, 8, 18, 0.34));
}

@media (max-width: 980px) {
  .hero-copy {
    top: 94px;
  }

  .spotlight-card {
    width: min(260px, 42vw);
  }

  .story-4,
  .story-6 {
    display: none;
  }

  .favorite-notes {
    right: 12px;
    bottom: 104px;
    width: min(330px, calc(100vw - 24px));
  }

  .category-rail {
    top: 72px;
    right: auto;
    left: 18px;
    width: min(260px, calc(100vw - 36px));
  }

  .bottom-nav {
    right: 12px;
    left: 12px;
  }
}

@media (max-width: 720px) {
  .topbar {
    right: 18px;
    left: 18px;
  }

  .brand h1 {
    font-size: 1.7rem;
  }

  .avatar-button {
    width: 46px;
    height: 46px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .hero-copy {
    top: 64px;
  }

  .hero-copy h2 {
    font-size: clamp(1.45rem, 7vw, 2.2rem);
  }

  .map-stage.globe-mode #map {
    width: 92vw;
    height: 92vw;
    top: 48%;
  }

  .spotlight-card {
    width: min(220px, 58vw);
  }

  .category-swatch-rail {
    grid-template-columns: 1fr;
  }

  .editor-subheading {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-1 {
    top: 30%;
    left: 4%;
  }

  .story-2 {
    top: 49%;
    right: 4%;
  }

  .story-3,
  .story-5 {
    display: none;
  }

  .favorite-notes {
    right: 12px;
    bottom: 92px;
    left: 12px;
    width: auto;
    padding: 12px;
  }

  .favorite-notes-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .spotlight-image {
    height: 112px;
  }

  .category-rail {
    top: 68px;
    right: auto;
    left: 18px;
    padding: 10px;
    border-radius: 18px;
  }

  .category-button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 66px;
  }

  .bottom-nav-item {
    gap: 4px;
    flex-direction: column;
    font-size: 0.72rem;
  }

  .add-memory-button {
    width: 68px;
    height: 68px;
    margin-top: -28px;
  }

  .memory-editor {
    bottom: 104px;
    width: calc(100vw - 16px);
    max-height: 52vh;
  }
}

.map-stage.map-focus #map,
.map-stage.map-focus.globe-mode #map {
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #08131f !important;
  box-shadow: none !important;
  filter: saturate(1.08) contrast(1.02) !important;
  transform: none !important;
  transition: none !important;
}

.map-stage.map-focus #map::before,
.map-stage.map-focus #map::after {
  opacity: 0 !important;
}

.map-stage.map-focus .leaflet-tile-pane,
.map-stage.map-focus .leaflet-overlay-pane,
.map-stage.map-focus .leaflet-marker-pane,
.map-stage.map-focus .leaflet-shadow-pane,
.map-stage.map-focus .leaflet-popup-pane {
  opacity: 1 !important;
}

/* Clean flat-map mode: keep the Home globe feel away from the Map tab. */
.map-stage.map-focus {
  background: #08131f !important;
}

.map-stage.map-focus::before,
.map-stage.map-focus::after {
  display: none !important;
  opacity: 0 !important;
}

.map-stage.map-focus #map,
.map-stage.map-focus.globe-mode #map {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #08131f !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.map-stage.map-focus #map::before,
.map-stage.map-focus #map::after,
.map-stage.map-focus .earth-globe,
.map-stage.map-focus .orbit {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.map-stage.map-focus .leaflet-container,
.map-stage.map-focus .leaflet-map-pane,
.map-stage.map-focus .leaflet-pane,
.map-stage.map-focus .leaflet-tile-pane,
.map-stage.map-focus .leaflet-tile-container,
.map-stage.map-focus .leaflet-overlay-pane,
.map-stage.map-focus .leaflet-marker-pane,
.map-stage.map-focus .leaflet-shadow-pane,
.map-stage.map-focus .leaflet-popup-pane,
.map-stage.map-focus .leaflet-control-container {
  visibility: visible !important;
  opacity: 1 !important;
}

.map-stage.map-focus .leaflet-container {
  overflow: hidden !important;
}

.map-stage.map-focus .leaflet-pane,
.map-stage.map-focus .leaflet-map-pane,
.map-stage.map-focus .leaflet-tile-pane,
.map-stage.map-focus .leaflet-overlay-pane,
.map-stage.map-focus .leaflet-marker-pane,
.map-stage.map-focus .leaflet-shadow-pane,
.map-stage.map-focus .leaflet-popup-pane {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

.map-stage.map-focus .leaflet-image-layer,
.map-stage.map-focus .leaflet-marker-icon,
.map-stage.map-focus .leaflet-marker-shadow {
  position: absolute !important;
}

.map-stage.map-focus .leaflet-tile {
  visibility: visible !important;
  opacity: 1 !important;
  background: #08131f !important;
}

.map-stage.map-focus .leaflet-image-layer {
  opacity: 1 !important;
}

.map-stage.map-focus .topbar-left,
.map-stage.map-focus .topbar-actions {
  padding: 6px;
  border: 1px solid rgba(143, 217, 255, 0.16);
  border-radius: 999px;
  background: rgba(6, 14, 25, 0.58);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.map-stage.map-focus .brand {
  top: 50%;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(143, 217, 255, 0.16);
  border-radius: 999px;
  color: #f5fbff;
  background: rgba(6, 14, 25, 0.58);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  transform: translate(-50%, -50%);
}

.map-stage.map-focus .brand h1 {
  color: #f5fbff;
  text-shadow: none;
}

.map-stage.map-focus .brand-my,
.map-stage.map-focus .brand-i {
  color: #f5fbff;
}

.map-stage.map-focus .brand-mapp {
  background: linear-gradient(90deg, #2fdc96 0%, #25cfe6 52%, #58a4ff 100%);
  -webkit-background-clip: text;
}

.map-stage.map-focus .topbar-left {
  gap: 8px;
}

.map-stage.map-focus .topbar-actions {
  gap: 8px;
}

.map-stage.map-focus .topbar .icon-button {
  border: 1px solid rgba(143, 217, 255, 0.16);
  color: #f5fbff;
  background: rgba(12, 24, 38, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.map-stage.map-focus .topbar .icon-button:hover {
  background: rgba(18, 34, 54, 0.92);
}

.map-stage.map-focus .topbar .icon-button.active {
  background: linear-gradient(135deg, #58a4ff, #7f57f1);
}

.map-stage.map-focus .notification-button::after {
  box-shadow: 0 0 0 2px rgba(6, 14, 25, 0.84);
}

.map-stage.map-focus #locateButton {
  gap: 8px;
  min-width: 170px;
  padding: 0 14px 0 12px;
  color: #0b3550;
  border-color: rgba(11, 53, 80, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 12px 28px rgba(8, 31, 48, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.84) inset;
}

.map-stage.map-focus #locateButton [data-icon] {
  color: #1578ff;
}

.map-stage.map-focus #locateButton .locate-label {
  display: inline;
  font-size: 0.8rem;
  font-weight: 900;
}

.map-stage.map-focus #locateButton:hover {
  border-color: rgba(21, 120, 255, 0.32);
  background: #ffffff;
  box-shadow:
    0 14px 32px rgba(8, 31, 48, 0.22),
    0 0 0 3px rgba(21, 120, 255, 0.1);
}

.map-stage.map-focus #locateButton.needs-location {
  color: #5c3500;
  border-color: rgba(255, 200, 87, 0.72);
  background: #fff7df;
  box-shadow:
    0 12px 28px rgba(111, 74, 0, 0.18),
    0 0 0 3px rgba(255, 200, 87, 0.22);
}

.map-stage:not(.map-focus) #locateButton .locate-label {
  display: none;
}

.map-stage.map-focus .map-coordinates,
.map-stage.map-focus .map-layer-controls {
  z-index: 18 !important;
}

.map-stage.map-focus #locateButton {
  display: inline-flex;
}

.location-banner {
  position: absolute;
  z-index: 18;
  left: 22px;
  bottom: 106px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  width: min(360px, calc(100vw - 44px));
  padding: 13px;
  border: 1px solid rgba(142, 181, 226, 0.2);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(92, 184, 255, 0.2), transparent 40%),
    rgba(9, 22, 41, 0.82);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.24),
    0 0 34px rgba(52, 142, 255, 0.14);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.map-stage:not(.map-focus) .location-banner {
  display: none !important;
}

.map-stage.map-focus .location-banner {
  display: inline-flex;
}

.location-banner strong {
  display: block;
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0;
}

.location-banner span {
  display: block;
  min-width: 0;
  color: rgba(226, 235, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.35;
}

.location-banner img {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.16),
    0 0 0 7px rgba(59, 150, 255, 0.08);
}

.location-banner button {
  grid-column: 2;
  justify-self: start;
  min-height: 36px;
  margin-top: 2px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  background: linear-gradient(135deg, #2674f0, #23c2dd);
  box-shadow:
    0 12px 26px rgba(38, 116, 240, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.location-banner button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.mappi-guide-bubble {
  position: absolute;
  z-index: 30;
  top: 92px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(320px, calc(100vw - 48px));
  min-height: 54px;
  padding: 7px 13px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f8fbff;
  background: rgba(9, 22, 41, 0.7);
  box-shadow:
    0 18px 44px rgba(4, 10, 20, 0.2),
    0 0 28px rgba(62, 145, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
  backdrop-filter: blur(16px);
}

.mappi-guide-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mappi-guide-bubble[hidden] {
  display: none !important;
}

.mappi-guide-bubble img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  object-position: center;
  animation: mappiMascotIdle 6.4s ease-in-out 900ms infinite;
}

.mappi-guide-bubble span {
  color: rgba(248, 251, 255, 0.94);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.22;
}

.map-stage.home-focus .mappi-guide-bubble {
  top: 96px;
  left: max(24px, env(safe-area-inset-left));
}

.map-stage.memories-focus .mappi-guide-bubble {
  top: auto;
  bottom: 112px;
}

.map-stage:not(.home-focus):not(.map-focus):not(.memories-focus):not(.profile-focus) .mappi-guide-bubble {
  display: none !important;
}

.map-empty-state {
  position: absolute;
  z-index: 17;
  left: 50%;
  bottom: 118px;
  display: grid;
  justify-items: center;
  width: min(340px, calc(100vw - 42px));
  padding: 18px 18px 16px;
  border: 1px solid rgba(142, 181, 226, 0.22);
  border-radius: 26px;
  color: #10213a;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 185, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    0 22px 58px rgba(9, 22, 41, 0.22),
    0 0 42px rgba(58, 152, 255, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.map-empty-state[hidden],
.map-stage:not(.map-focus) .map-empty-state {
  display: none !important;
}

.map-empty-state img {
  width: 64px;
  height: 64px;
  margin-bottom: 9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 12px 28px rgba(31, 78, 121, 0.16),
    0 0 0 8px rgba(38, 116, 240, 0.08);
  animation: mappiMascotIdle 6.4s ease-in-out 900ms infinite;
}

.map-empty-state strong {
  color: #142a44;
  font-size: 1.05rem;
  line-height: 1.16;
}

.map-empty-state span {
  margin: 8px 0 14px;
  color: #65758a;
  font-size: 0.9rem;
}

.map-empty-state button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b6b, #8e4be2 52%, #2674f0);
  box-shadow:
    0 14px 30px rgba(142, 75, 226, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.map-empty-state button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.map-stage.map-focus .bottom-nav,
.map-stage.map-focus .add-memory-button {
  z-index: 19 !important;
}

/* Final home-globe lock: keep the playful green-land / blue-water globe stable. */
.map-stage.home-focus .earth-globe {
  z-index: 3 !important;
  top: 53% !important;
  width: min(69vh, 74vw, 760px) !important;
  height: min(69vh, 74vw, 760px) !important;
  border-radius: 50% !important;
  clip-path: circle(49.5% at 50% 50%) !important;
  background: transparent !important;
  outline: 2px solid rgba(220, 247, 255, 0.36) !important;
  outline-offset: -3px !important;
  filter:
    drop-shadow(0 0 12px rgba(178, 233, 255, 0.46))
    drop-shadow(0 0 34px rgba(52, 168, 255, 0.48))
    drop-shadow(0 0 86px rgba(38, 128, 255, 0.28)) !important;
  box-shadow:
    inset -88px -46px 124px rgba(0, 8, 24, 0.72),
    inset 34px 26px 78px rgba(186, 238, 255, 0.24),
    inset 0 0 0 2px rgba(219, 249, 255, 0.24),
    0 0 0 2px rgba(158, 222, 255, 0.28),
    0 0 56px rgba(72, 180, 255, 0.62),
    0 0 132px rgba(48, 142, 255, 0.32) !important;
}

.map-stage.home-focus .topbar,
.map-stage.home-focus .bottom-nav,
.map-stage.home-focus .hero-copy,
.map-stage.home-focus .spotlight-cards,
.map-stage.home-focus .favorite-notes,
.map-stage.home-focus .category-rail,
.map-stage.home-focus .account-menu,
.map-stage.home-focus .notification-hub,
.map-stage.home-focus .pin-search-panel,
.map-stage.home-focus .memory-editor {
  z-index: 40 !important;
}

.map-stage.home-focus .bottom-nav,
.map-stage.home-focus .topbar > *,
.map-stage.home-focus .category-rail,
.map-stage.home-focus .account-menu,
.map-stage.home-focus .notification-hub,
.map-stage.home-focus .pin-search-panel,
.map-stage.home-focus .memory-editor {
  pointer-events: auto !important;
}

.map-stage.home-focus #map,
.map-stage.home-focus .map-backdrop {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Absolute final home reset: the front page is moment-first, with no globe. */
.map-stage.home-focus {
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(57, 138, 255, 0.16) 38%, transparent 58%),
    linear-gradient(245deg, transparent 0 32%, rgba(251, 78, 112, 0.11) 48%, transparent 68%),
    linear-gradient(180deg, #071426 0%, #06111f 48%, #030911 100%) !important;
}

.map-stage.home-focus .earth-globe,
.map-stage.home-focus #map,
.map-stage.home-focus .map-backdrop,
.map-stage.home-focus .pin-network,
.map-stage.home-focus .orbit {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.map-stage.home-focus .hero-copy {
  top: 112px !important;
  z-index: 42 !important;
}

.map-stage.home-focus .hero-copy h2 {
  white-space: normal;
}

.map-stage.home-focus .spotlight-cards {
  position: absolute;
  z-index: 18;
  top: clamp(280px, 38vh, 360px);
  right: auto;
  bottom: auto;
  left: 50%;
  display: grid;
  width: min(930px, calc(100vw - 42px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  pointer-events: none;
  transform: translateX(-50%);
}

.map-stage.home-focus .spotlight-card {
  position: relative !important;
  inset: auto !important;
  width: auto;
  min-height: 76px;
  border-radius: 22px;
  transform: none !important;
  background:
    linear-gradient(135deg, rgba(21, 44, 76, 0.82), rgba(7, 20, 38, 0.76)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 32%);
}

.map-stage.home-focus .story-4,
.map-stage.home-focus .story-5 {
  display: inline-grid;
}

@media (max-width: 820px) {
  .map-stage.home-focus .spotlight-cards {
    top: clamp(320px, 42vh, 390px);
    grid-template-columns: 1fr;
  }

  .map-stage.home-focus .spotlight-card {
    min-height: 68px;
  }
}

/* Quiet home globe: decorative, slow, and behind every control. */
.map-stage.home-focus {
  background:
    linear-gradient(180deg, #071426 0%, #06111f 48%, #030911 100%) !important;
}

.map-stage.home-focus .home-background,
.map-stage.home-focus #map,
.map-stage.home-focus .map-backdrop,
.map-stage.home-focus .pin-network,
.map-stage.home-focus .orbit {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.map-stage.home-focus .earth-globe {
  position: absolute !important;
  z-index: 8 !important;
  top: 58% !important;
  left: 50% !important;
  display: block !important;
  width: min(82vh, 86vw, 900px) !important;
  height: min(82vh, 86vw, 900px) !important;
  border-radius: 50% !important;
  clip-path: circle(49.2% at 50% 50%) !important;
  cursor: default !important;
  opacity: 0.86 !important;
  outline: 2px solid rgba(206, 242, 255, 0.28) !important;
  outline-offset: -4px !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) !important;
  filter:
    saturate(1.18)
    contrast(1.08)
    drop-shadow(0 0 20px rgba(178, 233, 255, 0.52))
    drop-shadow(0 0 78px rgba(56, 148, 255, 0.42))
    drop-shadow(0 0 156px rgba(42, 112, 255, 0.26)) !important;
  mix-blend-mode: normal !important;
}

.map-stage.home-focus .earth-globe:active {
  cursor: default !important;
}

.map-stage.home-focus .hero-copy,
.map-stage.home-focus .spotlight-cards,
.map-stage.home-focus .bottom-nav,
.map-stage.home-focus .topbar,
.map-stage.home-focus .category-rail,
.map-stage.home-focus .account-menu,
.map-stage.home-focus .notification-hub,
.map-stage.home-focus .pin-search-panel,
.map-stage.home-focus .memory-editor {
  z-index: 40 !important;
}

@media (max-width: 820px) {
  .map-stage.home-focus .earth-globe {
    top: 60% !important;
    width: min(76vh, 116vw, 760px) !important;
    height: min(76vh, 116vw, 760px) !important;
    opacity: 0.72 !important;
  }
}

/* True final current-location marker: blue pin only after location is shared. */
.user-location-marker.is-current-location {
  position: relative;
  display: block;
  width: 42px !important;
  height: 52px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.user-location-marker.is-current-location .user-location-head,
.user-location-marker.is-current-location .user-location-arms,
.user-location-marker.is-current-location .user-location-legs {
  display: none !important;
}

.user-location-marker.is-current-location .user-location-body {
  position: absolute;
  top: 4px;
  left: 50%;
  display: block !important;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 9px;
  background:
    radial-gradient(circle at 50% 46%, #fff 0 17%, transparent 19%),
    linear-gradient(180deg, #78d8ff 0%, #2478ff 74%, #1559dc 100%);
  box-shadow:
    0 0 0 8px rgba(36, 120, 255, 0.12),
    0 0 28px rgba(36, 120, 255, 0.48),
    0 16px 34px rgba(7, 28, 64, 0.28);
  transform: translateX(-50%) rotate(-45deg);
  animation: currentLocationPinPulse 1.8s ease-in-out infinite;
}

.user-location-marker.is-current-location::before {
  position: absolute;
  right: 6px;
  bottom: 2px;
  left: 6px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 120, 255, 0.44) 0 32%, rgba(36, 120, 255, 0.12) 62%, transparent 74%);
  filter: blur(1px);
}

.user-location-marker.is-current-location.is-estimate {
  opacity: 0 !important;
}

/* Final current-location marker: blue pin only after location is shared. */
.user-location-marker {
  position: relative;
  display: block;
  width: 42px !important;
  height: 52px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.user-location-marker .user-location-head,
.user-location-marker .user-location-arms,
.user-location-marker .user-location-legs {
  display: none !important;
}

.user-location-marker .user-location-body {
  position: absolute;
  top: 4px;
  left: 50%;
  display: block !important;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 9px;
  background:
    radial-gradient(circle at 50% 46%, #fff 0 17%, transparent 19%),
    linear-gradient(180deg, #78d8ff 0%, #2478ff 74%, #1559dc 100%);
  box-shadow:
    0 0 0 8px rgba(36, 120, 255, 0.12),
    0 0 28px rgba(36, 120, 255, 0.48),
    0 16px 34px rgba(7, 28, 64, 0.28);
  transform: translateX(-50%) rotate(-45deg);
  animation: currentLocationPinPulse 1.8s ease-in-out infinite;
}

.user-location-marker::before {
  position: absolute;
  right: 6px;
  bottom: 2px;
  left: 6px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 120, 255, 0.44) 0 32%, rgba(36, 120, 255, 0.12) 62%, transparent 74%);
  filter: blur(1px);
}

.user-location-marker.is-estimate {
  opacity: 0 !important;
}

/* Current location: show the user as a clear blue map pin after permission. */
.user-location-marker {
  position: relative;
  display: block;
  width: 42px !important;
  height: 52px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.user-location-marker .user-location-head,
.user-location-marker .user-location-arms,
.user-location-marker .user-location-legs {
  display: none !important;
}

.user-location-marker .user-location-body {
  position: absolute;
  top: 4px;
  left: 50%;
  display: block !important;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 9px;
  background:
    radial-gradient(circle at 50% 46%, #fff 0 17%, transparent 19%),
    linear-gradient(180deg, #78d8ff 0%, #2478ff 74%, #1559dc 100%);
  box-shadow:
    0 0 0 8px rgba(36, 120, 255, 0.12),
    0 0 28px rgba(36, 120, 255, 0.48),
    0 16px 34px rgba(7, 28, 64, 0.28);
  transform: translateX(-50%) rotate(-45deg);
  animation: currentLocationPinPulse 1.8s ease-in-out infinite;
}

.user-location-marker::before {
  position: absolute;
  right: 6px;
  bottom: 2px;
  left: 6px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 120, 255, 0.44) 0 32%, rgba(36, 120, 255, 0.12) 62%, transparent 74%);
  filter: blur(1px);
}

.user-location-marker.is-estimate {
  opacity: 0;
}

@keyframes currentLocationPinPulse {
  0%,
  100% {
    transform: translateX(-50%) rotate(-45deg) translateY(0);
  }

  50% {
    transform: translateX(-50%) rotate(-45deg) translateY(-4px);
  }
}

/* Interactive home background: playful memory routes without using the map. */
.home-background {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  overflow: hidden;
  pointer-events: none;
  --home-shift-x: 0;
  --home-shift-y: 0;
}

.map-stage.home-focus .home-background {
  display: block;
}

.home-background::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(135, 191, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 191, 255, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 80%, transparent 100%);
  transform: translate(
    calc(var(--home-shift-x) * -10px),
    calc(var(--home-shift-y) * -8px)
  );
}

.home-background::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, transparent 0%, rgba(100, 177, 255, 0.1) 34%, transparent 58%),
    linear-gradient(245deg, transparent 0%, rgba(255, 113, 153, 0.09) 40%, transparent 68%);
  opacity: 0.9;
  transform: translate(
    calc(var(--home-shift-x) * 14px),
    calc(var(--home-shift-y) * 10px)
  );
}

.home-route-field {
  position: absolute;
  inset: 10% -6% 8%;
  width: 112%;
  height: 82%;
  opacity: 0.84;
  transform: translate(
    calc(var(--home-shift-x) * -18px),
    calc(var(--home-shift-y) * -12px)
  );
}

.memory-route {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 10 18;
  stroke-width: 3;
  animation: routeTravel 18s linear infinite;
}

.route-one {
  stroke: rgba(108, 165, 255, 0.62);
}

.route-two {
  stroke: rgba(255, 120, 166, 0.5);
  animation-duration: 24s;
  animation-direction: reverse;
}

.route-three {
  stroke: rgba(62, 208, 165, 0.46);
  animation-duration: 21s;
}

.home-memory-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50% 50% 50% 12px;
  color: #fff;
  background: var(--pin-color, #477dff);
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--pin-color, #477dff) 14%, transparent),
    0 18px 34px rgba(0, 0, 0, 0.26);
  transform: translate(
      calc(var(--home-shift-x) * var(--drift-x, 18px)),
      calc(var(--home-shift-y) * var(--drift-y, 12px))
    )
    rotate(-45deg);
  animation: memoryPinFloat 6.5s ease-in-out infinite;
}

.home-memory-pin span {
  font-size: 1.08rem;
  transform: rotate(45deg);
}

.home-pin-one {
  top: 28%;
  left: 12%;
  --pin-color: #fb4e70;
  --drift-x: 22px;
  --drift-y: 16px;
}

.home-pin-two {
  top: 20%;
  right: 18%;
  --pin-color: #477dff;
  --drift-x: -18px;
  --drift-y: 18px;
  animation-delay: -1.2s;
}

.home-pin-three {
  right: 10%;
  bottom: 27%;
  --pin-color: #9b6a3c;
  --drift-x: -24px;
  --drift-y: -12px;
  animation-delay: -2.4s;
}

.home-pin-four {
  bottom: 20%;
  left: 18%;
  --pin-color: #8b5cf6;
  --drift-x: 18px;
  --drift-y: -20px;
  animation-delay: -3.4s;
}

.home-pin-five {
  top: 46%;
  left: 50%;
  --pin-color: #f5a524;
  --drift-x: 12px;
  --drift-y: 18px;
  animation-delay: -4.2s;
}

.memory-sticker {
  position: absolute;
  z-index: 1;
  width: 118px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 18px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
  opacity: 0.58;
  transform: translate(
      calc(var(--home-shift-x) * var(--sticker-x, 10px)),
      calc(var(--home-shift-y) * var(--sticker-y, 14px))
    )
    rotate(var(--sticker-rotate, -8deg));
}

.memory-sticker::before {
  position: absolute;
  top: 12px;
  left: 13px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  content: "";
  background: linear-gradient(135deg, rgba(113, 216, 255, 0.72), rgba(62, 208, 165, 0.58));
}

.memory-sticker::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 66px;
  height: 7px;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 -14px 0 rgba(255, 255, 255, 0.16);
}

.sticker-one {
  top: 33%;
  right: 5%;
  --sticker-x: -12px;
  --sticker-y: 20px;
  --sticker-rotate: 9deg;
}

.sticker-two {
  bottom: 28%;
  left: 5%;
  --sticker-x: 18px;
  --sticker-y: -14px;
  --sticker-rotate: -11deg;
}

.sticker-three {
  right: 28%;
  bottom: 13%;
  --sticker-x: -16px;
  --sticker-y: -18px;
  --sticker-rotate: 7deg;
}

@keyframes routeTravel {
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes memoryPinFloat {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -12px;
  }
}

@media (max-width: 820px) {
  .home-memory-pin {
    width: 40px;
    height: 40px;
  }

  .memory-sticker {
    width: 94px;
    height: 68px;
  }

  .home-pin-five,
  .sticker-three {
    display: none;
  }
}

/* Home page reset: no front-page globe, only moments. */
.map-stage.home-focus {
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(57, 138, 255, 0.16) 38%, transparent 58%),
    linear-gradient(245deg, transparent 0 32%, rgba(251, 78, 112, 0.11) 48%, transparent 68%),
    linear-gradient(180deg, #071426 0%, #06111f 48%, #030911 100%) !important;
}

.map-stage.home-focus .earth-globe,
.map-stage.home-focus #map,
.map-stage.home-focus .map-backdrop,
.map-stage.home-focus .pin-network,
.map-stage.home-focus .orbit {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.map-stage.home-focus .hero-copy {
  top: 112px !important;
  z-index: 42 !important;
}

.map-stage.home-focus .hero-copy h2 {
  white-space: normal;
}

.map-stage.home-focus .spotlight-cards {
  position: absolute;
  z-index: 18;
  top: clamp(280px, 38vh, 360px);
  right: auto;
  bottom: auto;
  left: 50%;
  display: grid;
  width: min(930px, calc(100vw - 42px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  pointer-events: none;
  transform: translateX(-50%);
}

.map-stage.home-focus .spotlight-card {
  position: relative !important;
  inset: auto !important;
  width: auto;
  min-height: 76px;
  border-radius: 22px;
  transform: none !important;
  background:
    linear-gradient(135deg, rgba(21, 44, 76, 0.82), rgba(7, 20, 38, 0.76)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 32%);
}

.map-stage.home-focus .story-4,
.map-stage.home-focus .story-5 {
  display: inline-grid;
}

@media (max-width: 820px) {
  .map-stage.home-focus .spotlight-cards {
    top: clamp(320px, 42vh, 390px);
    grid-template-columns: 1fr;
  }

  .map-stage.home-focus .spotlight-card {
    min-height: 68px;
  }
}

/* Final globe silhouette: make the planet edge clear against space. */
.map-stage.home-focus .earth-globe {
  outline: 2px solid rgba(220, 247, 255, 0.36) !important;
  outline-offset: -3px !important;
  filter:
    drop-shadow(0 0 12px rgba(178, 233, 255, 0.46))
    drop-shadow(0 0 34px rgba(52, 168, 255, 0.48))
    drop-shadow(0 0 86px rgba(38, 128, 255, 0.28)) !important;
  box-shadow:
    inset -88px -46px 124px rgba(0, 8, 24, 0.72),
    inset 34px 26px 78px rgba(186, 238, 255, 0.24),
    inset 0 0 0 2px rgba(219, 249, 255, 0.24),
    0 0 0 2px rgba(158, 222, 255, 0.28),
    0 0 56px rgba(72, 180, 255, 0.62),
    0 0 132px rgba(48, 142, 255, 0.32) !important;
}

/* Final home-globe lock: keep the playful green-land / blue-water globe stable. */
.map-stage.home-focus .earth-globe {
  z-index: 3 !important;
  top: 53% !important;
  width: min(69vh, 74vw, 760px) !important;
  height: min(69vh, 74vw, 760px) !important;
  border-radius: 50% !important;
  clip-path: circle(49.5% at 50% 50%) !important;
  background: transparent !important;
  box-shadow:
    inset -72px -38px 110px rgba(0, 10, 27, 0.62),
    inset 32px 24px 70px rgba(173, 232, 255, 0.2),
    0 0 0 1px rgba(160, 220, 255, 0.28),
    0 0 42px rgba(72, 180, 255, 0.52),
    0 0 110px rgba(48, 142, 255, 0.24) !important;
}

.map-stage.home-focus .topbar,
.map-stage.home-focus .bottom-nav,
.map-stage.home-focus .hero-copy,
.map-stage.home-focus .spotlight-cards,
.map-stage.home-focus .favorite-notes,
.map-stage.home-focus .category-rail,
.map-stage.home-focus .account-menu,
.map-stage.home-focus .notification-hub,
.map-stage.home-focus .pin-search-panel,
.map-stage.home-focus .memory-editor {
  z-index: 40 !important;
}

.map-stage.home-focus .bottom-nav,
.map-stage.home-focus .topbar > *,
.map-stage.home-focus .category-rail,
.map-stage.home-focus .account-menu,
.map-stage.home-focus .notification-hub,
.map-stage.home-focus .pin-search-panel,
.map-stage.home-focus .memory-editor {
  pointer-events: auto !important;
}

.map-stage.home-focus #map,
.map-stage.home-focus .map-backdrop {
  opacity: 0 !important;
  pointer-events: none !important;
}

.map-stage.map-focus .topbar {
  gap: 10px;
}

/* Navigation-first map override */
.map-stage.map-focus,
.map-stage.map-focus.globe-mode {
  background: #eaf2f8 !important;
}

.map-stage.map-focus #map,
.map-stage.map-focus.globe-mode #map {
  background: #eaf2f8 !important;
  box-shadow: none !important;
  filter: none !important;
}

.map-stage.map-focus .leaflet-container,
.map-stage.map-focus .leaflet-map-pane,
.map-stage.map-focus .leaflet-pane,
.map-stage.map-focus .leaflet-tile-pane,
.map-stage.map-focus .leaflet-tile-container,
.map-stage.map-focus .leaflet-overlay-pane,
.map-stage.map-focus .leaflet-marker-pane,
.map-stage.map-focus .leaflet-shadow-pane,
.map-stage.map-focus .leaflet-popup-pane {
  background: #eaf2f8 !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.map-stage.map-focus .leaflet-tile {
  opacity: 1 !important;
  filter: none !important;
  background: transparent !important;
}

.map-stage.map-focus .map-backdrop {
  display: none !important;
}

/* Final navigation hub polish. */
.map-stage.map-focus {
  background: #eef4f8 !important;
}

.map-stage.map-focus::before,
.map-stage.map-focus::after {
  display: none !important;
  opacity: 0 !important;
}

.map-stage.map-focus .map-backdrop {
  display: none !important;
}

.map-stage.map-focus #map,
.map-stage.map-focus.globe-mode #map {
  background: transparent !important;
}

.map-stage.map-focus .leaflet-container,
.map-stage.map-focus .leaflet-map-pane,
.map-stage.map-focus .leaflet-pane,
.map-stage.map-focus .leaflet-tile-pane,
.map-stage.map-focus .leaflet-tile-container,
.map-stage.map-focus .leaflet-overlay-pane,
.map-stage.map-focus .leaflet-marker-pane,
.map-stage.map-focus .leaflet-shadow-pane,
.map-stage.map-focus .leaflet-popup-pane {
  background: transparent !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

.map-stage.map-focus .leaflet-tile {
  opacity: 1 !important;
}

.map-stage.home-focus .earth-globe {
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  overflow: hidden;
  background: transparent;
  box-shadow:
    inset -90px -44px 110px rgba(0, 8, 22, 0.62),
    inset 30px 24px 68px rgba(136, 218, 255, 0.2),
    0 0 0 1px rgba(128, 205, 255, 0.2),
    0 0 46px rgba(73, 173, 255, 0.5);
}

.directions-panel {
  position: absolute;
  z-index: 22;
  top: 84px;
  left: 38px;
  display: none;
  width: min(390px, calc(100vw - 76px));
  padding: 14px;
  border: 1px solid rgba(142, 181, 226, 0.24);
  border-radius: 22px;
  color: #fff;
  background: rgba(9, 22, 41, 0.92);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
}

.directions-panel[hidden] {
  display: none !important;
}

.map-stage.map-focus .directions-panel.open {
  display: grid;
  gap: 12px;
}

.directions-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.directions-heading span {
  color: #72d8ff;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.directions-heading strong {
  color: rgba(246, 250, 255, 0.96);
  font-size: 1.1rem;
}

.directions-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #0b3550;
  font-size: 1.25rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: auto;
}

.directions-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 160px;
}

.directions-mode-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(160, 196, 238, 0.18);
  border-radius: 12px;
  color: rgba(226, 235, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
}

.directions-mode-button.active {
  color: #fff;
  background: linear-gradient(135deg, #3c86ff, #24d68f);
}

.directions-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(160, 196, 238, 0.2);
  border-radius: 16px;
  color: rgba(226, 235, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.directions-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.directions-box input::placeholder {
  color: rgba(226, 235, 255, 0.5);
}

.directions-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.directions-action,
.popup-route {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #3c86ff, #914ee5);
}

.directions-action.subtle,
.popup-route.subtle {
  color: rgba(226, 235, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
}

.directions-results {
  display: grid;
  max-height: 214px;
  gap: 8px;
  overflow: auto;
}

.directions-result {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(160, 196, 238, 0.16);
  border-radius: 16px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
}

.directions-result:hover {
  background: rgba(255, 255, 255, 0.12);
}

.directions-result-emoji {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: rgba(114, 216, 255, 0.14);
}

.directions-result strong,
.directions-result small {
  display: block;
}

.directions-result strong {
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directions-result small {
  margin-top: 4px;
  color: rgba(226, 235, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.35;
}

.directions-summary {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(160, 196, 238, 0.16);
  border-radius: 14px;
  color: rgba(226, 235, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
}

.directions-summary strong {
  color: #fff;
  font-size: 0.92rem;
}

.directions-summary span {
  font-size: 0.8rem;
  line-height: 1.35;
}

.popup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}

.popup-action {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 850;
}

.popup-edit.popup-action {
  background: linear-gradient(135deg, #3c86ff, #914ee5);
}

.popup-delete.popup-action {
  background: linear-gradient(135deg, #ff6b6b, #ff8d3a);
}

.route-marker {
  display: grid;
  place-items: center;
  width: 58px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #3c86ff, #24d68f);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.route-marker.route-marker-end {
  background: linear-gradient(135deg, #ff6b6b, #ff9a3d);
}

.directions-action:disabled,
.popup-route:disabled,
.directions-mode-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.map-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #eef4f8 0%, #dde9ef 100%);
}

.map-stage.map-focus .map-backdrop {
  display: block;
}

.map-backdrop svg {
  display: block;
  width: 100%;
  height: 100%;
}

.map-ocean {
  fill: #eef4f8;
}

.map-grid {
  stroke: rgba(111, 142, 170, 0.24);
  stroke-width: 1;
}

.map-land {
  fill: url(#landFill);
  stroke: rgba(71, 94, 110, 0.5);
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.map-boundary {
  fill: none;
  stroke: rgba(82, 105, 123, 0.4);
  stroke-width: 1.2;
  stroke-dasharray: 5 7;
}

.map-stage.map-focus #map {
  background: transparent !important;
}

.map-stage:not(.map-focus) .maplibregl-ctrl-top-left,
.map-stage:not(.map-focus) .maplibregl-ctrl-top-right,
.map-stage:not(.map-focus) .maplibregl-ctrl-bottom-left,
.map-stage:not(.map-focus) .maplibregl-ctrl-bottom-right {
  display: none;
}

.map-stage.map-focus .maplibregl-ctrl-top-left,
.map-stage.map-focus .maplibregl-ctrl-top-right,
.map-stage.map-focus .maplibregl-ctrl-bottom-left,
.map-stage.map-focus .maplibregl-ctrl-bottom-right {
  display: block;
}

.map-stage.map-focus .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(142, 181, 226, 0.28);
  border-radius: 16px;
  background: rgba(9, 22, 41, 0.78);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.map-stage.map-focus .maplibregl-ctrl-group button {
  width: 42px;
  height: 42px;
  color: #f6fbff;
  background: transparent;
}

.map-stage.map-focus .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(142, 181, 226, 0.2);
}

.map-stage.map-focus .maplibregl-popup {
  z-index: 650;
}

.map-stage.map-focus .maplibregl-popup-content-wrapper {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.map-stage.map-focus .maplibregl-popup-content {
  margin: 0;
  padding: 14px 16px;
}

.map-stage.map-focus .maplibregl-popup-tip {
  border-top-color: var(--panel);
}

.map-stage.map-focus .leaflet-container,
.map-stage.map-focus .leaflet-map-pane,
.map-stage.map-focus .leaflet-pane,
.map-stage.map-focus .leaflet-tile-pane,
.map-stage.map-focus .leaflet-tile-container,
.map-stage.map-focus .leaflet-overlay-pane,
.map-stage.map-focus .leaflet-marker-pane,
.map-stage.map-focus .leaflet-shadow-pane,
.map-stage.map-focus .leaflet-popup-pane {
  background: transparent !important;
}

.map-stage.map-focus .leaflet-tile {
  opacity: 0.92 !important;
}

.user-location-marker {
  position: relative;
  display: block;
  width: 30px !important;
  height: 40px !important;
  margin: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.user-location-marker.is-estimate {
  opacity: 0.72;
  filter: saturate(0.9);
}

.user-location-marker.is-estimate::after {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 38px;
  height: 38px;
  content: "";
  border: 1px solid rgba(36, 120, 255, 0.38);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: locationSearchRing 1.4s ease-out infinite;
}

.user-location-marker::before {
  position: absolute;
  right: 3px;
  bottom: 0;
  left: 3px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 120, 255, 0.42) 0 30%, rgba(36, 120, 255, 0.1) 60%, transparent 72%);
  filter: blur(1px);
}

.user-location-head,
.user-location-body,
.user-location-arms,
.user-location-legs {
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
}

.user-location-head {
  top: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.44) 0 18%, transparent 19%), linear-gradient(180deg, #7ecfff 0%, #2478ff 100%);
  box-shadow:
    0 0 0 4px rgba(36, 120, 255, 0.16),
    0 4px 10px rgba(15, 42, 76, 0.26);
}

.user-location-body {
  top: 11px;
  width: 14px;
  height: 15px;
  border-radius: 7px 7px 5px 5px;
  background: linear-gradient(180deg, #69beff 0%, #2478ff 100%);
  box-shadow: 0 4px 10px rgba(15, 42, 76, 0.24);
}

.user-location-arms {
  top: 14px;
  width: 20px;
  height: 7px;
  border-top: 3px solid #6cc4ff;
  border-radius: 999px;
}

.user-location-legs {
  top: 23px;
  width: 14px;
  height: 13px;
  border-bottom: 3px solid #6cc4ff;
  border-radius: 0 0 7px 7px;
}

.user-location-head,
.user-location-body,
.user-location-arms,
.user-location-legs {
  animation: locationPulse 1.6s ease-out infinite;
}

.user-location-marker.is-current-location {
  width: 34px !important;
  height: 44px !important;
}

.user-location-marker.is-current-location .user-location-head,
.user-location-marker.is-current-location .user-location-body,
.user-location-marker.is-current-location .user-location-arms,
.user-location-marker.is-current-location .user-location-legs {
  display: block !important;
}

.user-location-marker.is-current-location .user-location-head {
  top: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.user-location-marker.is-current-location .user-location-body {
  top: 13px;
  width: 15px;
  height: 16px;
  border: 0;
  border-radius: 8px 8px 6px 6px;
  transform: translateX(-50%);
}

.user-location-marker.is-current-location .user-location-arms {
  top: 16px;
  width: 23px;
  height: 8px;
}

.user-location-marker.is-current-location .user-location-legs {
  top: 26px;
  width: 16px;
  height: 14px;
}

.user-location-marker.is-current-location::before {
  right: 3px;
  bottom: 0;
  left: 3px;
}

@keyframes locationPulse {
  0% {
    transform: translateX(-50%) scale(0.94);
    opacity: 0.92;
  }
  70% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(0.94);
    opacity: 0.92;
  }
}

@keyframes locationSearchRing {
  0% {
    transform: translateX(-50%) scale(0.72);
    opacity: 0.72;
  }
  100% {
    transform: translateX(-50%) scale(1.35);
    opacity: 0;
  }
}

/* Final map polish: keep the flat map bright and steady while zooming. */
.map-stage.map-focus {
  background: linear-gradient(180deg, #dbe9f6 0%, #e8f1f8 100%) !important;
}

.map-stage.map-focus::before,
.map-stage.map-focus::after {
  display: none !important;
  opacity: 0 !important;
}

.map-stage.map-focus #map,
.map-stage.map-focus.globe-mode #map {
  background: #dbe9f6 !important;
  filter: none !important;
}

.map-stage.map-focus .leaflet-container,
.map-stage.map-focus .leaflet-map-pane,
.map-stage.map-focus .leaflet-pane,
.map-stage.map-focus .leaflet-tile-pane,
.map-stage.map-focus .leaflet-tile-container,
.map-stage.map-focus .leaflet-overlay-pane,
.map-stage.map-focus .leaflet-marker-pane,
.map-stage.map-focus .leaflet-shadow-pane,
.map-stage.map-focus .leaflet-popup-pane {
  background: #dbe9f6 !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

.map-stage.map-focus .leaflet-tile {
  background: transparent !important;
  opacity: 1 !important;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.map-stage.map-focus .leaflet-pane,
.map-stage.map-focus .leaflet-map-pane,
.map-stage.map-focus .leaflet-tile-pane,
.map-stage.map-focus .leaflet-container {
  will-change: auto !important;
  transform-style: flat !important;
}

/* Basic map layout: plain street map with only the essentials visible. */
.map-stage.map-focus {
  background: #eef4f8 !important;
}

.map-stage.map-focus::before,
.map-stage.map-focus::after,
.map-stage.map-focus .earth-globe,
.map-stage.map-focus .orbit,
.map-stage.map-focus .hero-copy,
.map-stage.map-focus .spotlight-cards,
.map-stage.map-focus .favorite-notes,
.map-stage.map-focus .pin-network,
.map-stage.map-focus .category-rail,
.map-stage.map-focus .explore-panel,
.map-stage.map-focus .side-panel,
.map-stage.map-focus .map-coordinates,
.map-stage.map-focus .location-banner,
.map-stage.map-focus .map-layer-controls,
.map-stage.map-focus .map-hud {
  display: none !important;
}

.map-stage.map-focus #map,
.map-stage.map-focus.globe-mode #map {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #eef4f8 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

.map-stage.map-focus .leaflet-container,
.map-stage.map-focus .leaflet-map-pane,
.map-stage.map-focus .leaflet-pane,
.map-stage.map-focus .leaflet-tile-pane,
.map-stage.map-focus .leaflet-tile-container,
.map-stage.map-focus .leaflet-overlay-pane,
.map-stage.map-focus .leaflet-marker-pane,
.map-stage.map-focus .leaflet-shadow-pane,
.map-stage.map-focus .leaflet-popup-pane {
  background: #eef4f8 !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: none !important;
}

.map-stage.map-focus .leaflet-tile {
  background: transparent !important;
  opacity: 1 !important;
  transform: none !important;
  backface-visibility: hidden;
}

.map-stage.map-focus .leaflet-control-container {
  display: block !important;
}

.map-stage.map-focus .leaflet-control-zoom {
  margin-right: 18px;
  margin-bottom: 96px;
}

.map-stage.map-focus .bottom-nav,
.map-stage.map-focus .add-memory-button {
  z-index: 19 !important;
}

/* Final home-globe lock: keep the playful green-land / blue-water globe stable. */
.map-stage.home-focus .earth-globe {
  z-index: 3 !important;
  top: 53% !important;
  width: min(69vh, 74vw, 760px) !important;
  height: min(69vh, 74vw, 760px) !important;
  border-radius: 50% !important;
  clip-path: circle(49.5% at 50% 50%) !important;
  background: transparent !important;
  outline: 2px solid rgba(220, 247, 255, 0.36) !important;
  outline-offset: -3px !important;
  filter:
    drop-shadow(0 0 12px rgba(178, 233, 255, 0.46))
    drop-shadow(0 0 34px rgba(52, 168, 255, 0.48))
    drop-shadow(0 0 86px rgba(38, 128, 255, 0.28)) !important;
  box-shadow:
    inset -88px -46px 124px rgba(0, 8, 24, 0.72),
    inset 34px 26px 78px rgba(186, 238, 255, 0.24),
    inset 0 0 0 2px rgba(219, 249, 255, 0.24),
    0 0 0 2px rgba(158, 222, 255, 0.28),
    0 0 56px rgba(72, 180, 255, 0.62),
    0 0 132px rgba(48, 142, 255, 0.32) !important;
}

.map-stage.home-focus .topbar,
.map-stage.home-focus .bottom-nav,
.map-stage.home-focus .hero-copy,
.map-stage.home-focus .spotlight-cards,
.map-stage.home-focus .favorite-notes,
.map-stage.home-focus .category-rail,
.map-stage.home-focus .account-menu,
.map-stage.home-focus .notification-hub,
.map-stage.home-focus .pin-search-panel,
.map-stage.home-focus .memory-editor {
  z-index: 40 !important;
}

.map-stage.home-focus .bottom-nav,
.map-stage.home-focus .topbar > *,
.map-stage.home-focus .category-rail,
.map-stage.home-focus .account-menu,
.map-stage.home-focus .notification-hub,
.map-stage.home-focus .pin-search-panel,
.map-stage.home-focus .memory-editor {
  pointer-events: auto !important;
}

.map-stage.home-focus #map,
.map-stage.home-focus .map-backdrop {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Absolute final home reset: the front page is moment-first, with no globe. */
.map-stage.home-focus {
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(57, 138, 255, 0.16) 38%, transparent 58%),
    linear-gradient(245deg, transparent 0 32%, rgba(251, 78, 112, 0.11) 48%, transparent 68%),
    linear-gradient(180deg, #071426 0%, #06111f 48%, #030911 100%) !important;
}

.map-stage.home-focus .earth-globe,
.map-stage.home-focus #map,
.map-stage.home-focus .map-backdrop,
.map-stage.home-focus .pin-network,
.map-stage.home-focus .orbit {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.map-stage.home-focus .hero-copy {
  top: 112px !important;
  z-index: 42 !important;
}

.map-stage.home-focus .hero-copy h2 {
  white-space: normal;
}

.map-stage.home-focus .spotlight-cards {
  position: absolute;
  z-index: 18;
  top: clamp(280px, 38vh, 360px);
  right: auto;
  bottom: auto;
  left: 50%;
  display: grid;
  width: min(930px, calc(100vw - 42px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  pointer-events: none;
  transform: translateX(-50%);
}

.map-stage.home-focus .spotlight-card {
  position: relative !important;
  inset: auto !important;
  width: auto;
  min-height: 76px;
  border-radius: 22px;
  transform: none !important;
  background:
    linear-gradient(135deg, rgba(21, 44, 76, 0.82), rgba(7, 20, 38, 0.76)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 32%);
}

.map-stage.home-focus .story-4,
.map-stage.home-focus .story-5 {
  display: inline-grid;
}

@media (max-width: 820px) {
  .map-stage.home-focus .spotlight-cards {
    top: clamp(320px, 42vh, 390px);
    grid-template-columns: 1fr;
  }

  .map-stage.home-focus .spotlight-card {
    min-height: 68px;
  }
}

/* True final home globe: subtle, decorative, non-interactive. */
.map-stage.home-focus {
  background: linear-gradient(180deg, #071426 0%, #06111f 48%, #030911 100%) !important;
}

.map-stage.home-focus .home-background,
.map-stage.home-focus #map,
.map-stage.home-focus .map-backdrop,
.map-stage.home-focus .pin-network,
.map-stage.home-focus .orbit {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.map-stage.home-focus .earth-globe {
  position: absolute !important;
  z-index: 8 !important;
  top: 58% !important;
  left: 50% !important;
  display: block !important;
  width: min(82vh, 86vw, 900px) !important;
  height: min(82vh, 86vw, 900px) !important;
  border-radius: 50% !important;
  clip-path: circle(49.2% at 50% 50%) !important;
  cursor: default !important;
  opacity: 0.86 !important;
  outline: 2px solid rgba(206, 242, 255, 0.28) !important;
  outline-offset: -4px !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) !important;
  filter:
    saturate(1.18)
    contrast(1.08)
    drop-shadow(0 0 20px rgba(178, 233, 255, 0.52))
    drop-shadow(0 0 78px rgba(56, 148, 255, 0.42))
    drop-shadow(0 0 156px rgba(42, 112, 255, 0.26)) !important;
  mix-blend-mode: normal !important;
}

.map-stage.home-focus .earth-globe:active {
  cursor: default !important;
}

.map-stage.home-focus .hero-copy,
.map-stage.home-focus .spotlight-cards,
.map-stage.home-focus .bottom-nav,
.map-stage.home-focus .topbar,
.map-stage.home-focus .category-rail,
.map-stage.home-focus .account-menu,
.map-stage.home-focus .notification-hub,
.map-stage.home-focus .pin-search-panel,
.map-stage.home-focus .memory-editor {
  z-index: 40 !important;
}

@media (max-width: 820px) {
  .map-stage.home-focus .earth-globe {
    top: 60% !important;
    width: min(76vh, 116vw, 760px) !important;
    height: min(76vh, 116vw, 760px) !important;
    opacity: 0.72 !important;
  }
}

/* Home stars: quiet twinkle behind the globe and memories. */
.map-stage.home-focus::before {
  display: block !important;
  opacity: 0.72 !important;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(157, 216, 255, 0.72) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 199, 222, 0.5) 0 1px, transparent 1.8px) !important;
  background-position:
    0 0,
    42px 66px,
    96px 28px !important;
  background-size:
    132px 132px,
    190px 190px,
    260px 260px !important;
  animation: homeStarsDrift 34s linear infinite;
}

.map-stage.home-focus::after {
  display: block !important;
  height: auto !important;
  inset: 0 !important;
  opacity: 0.58 !important;
  background:
    radial-gradient(circle at 24% 28%, rgba(142, 213, 255, 0.12), transparent 34%),
    radial-gradient(circle at 78% 38%, rgba(255, 127, 183, 0.08), transparent 30%),
    linear-gradient(180deg, transparent 0%, rgba(3, 9, 17, 0.42) 100%) !important;
  animation: homeSkyGlow 8s ease-in-out infinite alternate;
}

@keyframes homeStarsDrift {
  from {
    background-position:
      0 0,
      42px 66px,
      96px 28px;
  }

  to {
    background-position:
      132px 132px,
      232px 256px,
      356px 288px;
  }
}

@keyframes homeSkyGlow {
  from {
    opacity: 0.46;
  }

  to {
    opacity: 0.68;
  }
}

/* Final home space pass: deeper sky, layered stars, and a softer globe halo. */
.map-stage.home-focus {
  background:
    radial-gradient(ellipse at 50% 62%, rgba(55, 148, 255, 0.2) 0 12%, transparent 42%),
    radial-gradient(ellipse at 18% 18%, rgba(99, 198, 255, 0.16) 0 18%, transparent 42%),
    radial-gradient(ellipse at 82% 24%, rgba(255, 124, 184, 0.1) 0 16%, transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(7, 33, 72, 0.92) 0 16%, transparent 48%),
    linear-gradient(180deg, #020714 0%, #061329 42%, #02050d 100%) !important;
}

.map-stage.home-focus::before {
  display: block !important;
  opacity: 0.96 !important;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 0.8px, transparent 1.4px),
    radial-gradient(circle, rgba(168, 220, 255, 0.78) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 214, 236, 0.52) 0 1.2px, transparent 2px),
    radial-gradient(ellipse at center, rgba(112, 178, 255, 0.16) 0 10%, transparent 54%) !important;
  background-position:
    0 0,
    42px 66px,
    96px 28px,
    50% 44% !important;
  background-size:
    118px 118px,
    184px 184px,
    290px 290px,
    100% 100% !important;
  mix-blend-mode: screen;
  animation: homeStarsDrift 52s linear infinite;
}

.map-stage.home-focus::after {
  display: block !important;
  inset: -12% !important;
  opacity: 0.74 !important;
  background:
    linear-gradient(116deg, transparent 0 30%, rgba(120, 190, 255, 0.12) 40%, rgba(255, 255, 255, 0.08) 47%, transparent 61%),
    radial-gradient(circle at 25% 24%, rgba(126, 207, 255, 0.16), transparent 30%),
    radial-gradient(circle at 78% 32%, rgba(255, 116, 176, 0.1), transparent 28%),
    radial-gradient(circle at 50% 67%, rgba(51, 154, 255, 0.22), transparent 34%),
    linear-gradient(180deg, transparent 0%, rgba(2, 5, 13, 0.36) 100%) !important;
  filter: blur(0.3px);
  animation: homeSkyGlow 9s ease-in-out infinite alternate;
}

.map-stage.home-focus .earth-globe {
  opacity: 0.9 !important;
  outline-color: rgba(221, 249, 255, 0.42) !important;
  filter:
    saturate(1.16)
    contrast(1.08)
    drop-shadow(0 0 16px rgba(201, 242, 255, 0.62))
    drop-shadow(0 0 58px rgba(67, 177, 255, 0.54))
    drop-shadow(0 0 138px rgba(41, 117, 255, 0.38)) !important;
}

/* Memory-journal home: the front page is about moments first, map second. */
.home-dashboard {
  position: absolute;
  z-index: 34;
  top: clamp(250px, 32vh, 320px);
  right: max(18px, env(safe-area-inset-right));
  bottom: 104px;
  left: max(18px, env(safe-area-inset-left));
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.9fr);
  gap: 18px;
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  overflow: auto;
  scrollbar-width: none;
  pointer-events: auto;
}

.home-dashboard::-webkit-scrollbar {
  display: none;
}

.map-stage.home-focus .home-dashboard {
  display: grid;
}

.map-stage.map-focus .home-dashboard,
.map-stage.memories-focus .home-dashboard,
.map-stage.profile-focus .home-dashboard {
  display: none !important;
}

.map-stage.home-focus .spotlight-cards,
.map-stage.home-focus .favorite-notes,
.map-stage.home-focus .explore-panel,
.map-stage.home-focus .pin-network {
  display: none !important;
}

.map-stage.home-focus .hero-copy {
  top: 94px !important;
  z-index: 38 !important;
}

.map-stage.home-focus .hero-copy h2 {
  color: #fffdf8;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
}

.map-stage.home-focus .hero-copy p {
  color: rgba(255, 253, 248, 0.78);
}

.home-spotlight-hero {
  position: relative;
  grid-column: 1 / -1;
  min-height: clamp(330px, 42vh, 520px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(31, 78, 121, 0.96), rgba(8, 23, 43, 0.82)),
    radial-gradient(circle at 72% 24%, rgba(255, 107, 107, 0.28), transparent 34%);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
  isolation: isolate;
}

.spotlight-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 7, 20, 0.72), rgba(2, 7, 20, 0.18) 52%, rgba(2, 7, 20, 0.66)),
    linear-gradient(180deg, rgba(2, 7, 20, 0.05), rgba(2, 7, 20, 0.72)),
    var(--spotlight-image, radial-gradient(circle at 70% 32%, var(--spotlight-accent, #ff6b6b), transparent 28%)),
    linear-gradient(135deg, #1f4e79, #1b8fd8 48%, #ff6b6b);
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.spotlight-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.2), transparent 20%),
    radial-gradient(circle at 24% 80%, rgba(255, 200, 87, 0.18), transparent 28%);
  mix-blend-mode: screen;
}

.spotlight-orb {
  position: absolute;
  right: clamp(28px, 8vw, 120px);
  bottom: clamp(26px, 6vw, 76px);
  display: grid;
  width: clamp(96px, 16vw, 170px);
  height: clamp(96px, 16vw, 170px);
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.72);
  border-radius: 50% 50% 50% 28%;
  font-size: clamp(3rem, 7vw, 5.8rem);
  background: linear-gradient(135deg, var(--spotlight-accent, #ff6b6b), rgba(255, 200, 87, 0.88));
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.08), 0 24px 80px rgba(0, 0, 0, 0.32);
  transform: rotate(-45deg);
}

.spotlight-orb > span {
  display: block;
  transform: rotate(45deg);
}

.spotlight-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 680px;
  min-height: inherit;
  padding: clamp(24px, 5vw, 54px);
}

.spotlight-overlay .home-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.spotlight-overlay h3 {
  margin: 10px 0 0;
  color: #fffdf8;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.spotlight-overlay p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1.05rem, 2.2vw, 1.42rem);
  line-height: 1.5;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.spotlight-button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #12375c;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.spotlight-button.capture {
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #ffc857);
}

.memory-of-day-card,
.home-section,
.home-action-card {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #1f4e79;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(250, 249, 246, 0.88)),
    radial-gradient(circle at 15% 0%, rgba(255, 200, 87, 0.18), transparent 38%);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.memory-of-day-card {
  display: grid;
  grid-row: span 2;
  grid-template-rows: minmax(190px, 0.95fr) auto;
  min-height: 470px;
  overflow: hidden;
  border-radius: 26px;
}

.memory-day-media {
  position: relative;
  display: grid;
  min-height: 210px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(135deg, #1f4e79, #3a8dde 48%, #ff6b6b);
}

.memory-day-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(31, 78, 121, 0.46));
}

.memory-day-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: homePhotoDrift 12s ease-in-out infinite alternate;
}

.memory-day-emoji {
  position: relative;
  z-index: 1;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 50% 50% 50% 28%;
  color: #fff;
  font-size: 3.8rem;
  background: var(--memory-day-accent, #ff6b6b);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.12), 0 20px 56px rgba(0, 0, 0, 0.22);
  transform: rotate(-45deg);
}

.memory-day-emoji > span {
  display: block;
  transform: rotate(45deg);
}

.memory-day-copy {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.home-kicker,
.home-section-heading span {
  color: #ff6b6b;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-day-copy h3 {
  margin: 0;
  color: #12375c;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.memory-day-copy small,
.journey-card small,
.home-timeline-card small {
  color: rgba(31, 78, 121, 0.66);
  font-weight: 800;
}

.memory-day-copy p {
  margin: 0;
  color: rgba(18, 55, 92, 0.76);
  font-size: 1.02rem;
  line-height: 1.55;
}

.home-memory-link,
.on-this-day-card,
.journey-card,
.emotion-highlight,
.home-timeline-card {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.home-memory-link {
  justify-self: start;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #ff6b6b, #ffc857);
  box-shadow: 0 14px 32px rgba(255, 107, 107, 0.28);
}

.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-action-card {
  display: grid;
  min-height: 94px;
  place-items: center;
  gap: 8px;
  border-radius: 24px;
  cursor: pointer;
  font: inherit;
}

.home-action-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  color: #1f4e79;
  background: rgba(31, 78, 121, 0.08);
}

.home-action-card.primary {
  color: #fff;
  background: linear-gradient(135deg, #1f4e79, #2e86de 55%, #ff6b6b);
}

.home-action-card.primary span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.home-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
}

.home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.home-section-heading strong {
  color: #12375c;
  font-size: 1.08rem;
  text-align: right;
}

.feeling-row,
.emotion-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feeling-row button {
  min-height: 42px;
  border: 1px solid rgba(31, 78, 121, 0.1);
  border-radius: 999px;
  color: #1f4e79;
  font-weight: 900;
  background: rgba(31, 78, 121, 0.06);
}

.feeling-row button.active {
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #ffc857);
}

.on-this-day-card,
.journey-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 20px;
  color: #1f4e79;
  text-align: left;
  background: rgba(31, 78, 121, 0.06);
}

.on-this-day-card > span:first-child,
.journey-badge {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  font-size: 1.55rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 78, 121, 0.1);
}

.on-this-day-card em {
  display: block;
  overflow: hidden;
  color: rgba(31, 78, 121, 0.68);
  font-size: 0.86rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.on-this-day-card small {
  color: #ff6b6b;
  font-weight: 950;
}

.emotion-highlight {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border-radius: 18px;
  color: #1f4e79;
  text-align: left;
  background: rgba(255, 255, 255, 0.62);
}

.emotion-highlight small {
  overflow: hidden;
  color: rgba(31, 78, 121, 0.62);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-timeline-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.home-timeline-row::-webkit-scrollbar {
  display: none;
}

.home-timeline-card {
  display: grid;
  min-width: 126px;
  gap: 6px;
  padding: 13px;
  border-radius: 18px;
  color: #1f4e79;
  text-align: left;
  background: rgba(31, 78, 121, 0.06);
}

.home-timeline-card span {
  font-size: 1.35rem;
}

.home-timeline-card strong {
  color: #12375c;
}

@keyframes homePhotoDrift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.045);
  }
}

@media (max-width: 900px) {
  .home-dashboard {
    top: 265px;
    grid-template-columns: 1fr;
  }

  .memory-of-day-card {
    min-height: 430px;
  }
}

@media (max-width: 620px) {
  .map-stage.home-focus .hero-copy {
    top: 82px !important;
    width: min(100% - 24px, 560px);
  }

  .map-stage.home-focus .hero-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.55rem);
  }

  .home-dashboard {
    top: 285px;
    right: 12px;
    bottom: 92px;
    left: 12px;
    width: calc(100vw - 24px);
  }

  .home-quick-actions,
  .feeling-row,
  .emotion-highlight-grid {
    grid-template-columns: 1fr;
  }

  .on-this-day-card,
  .journey-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .on-this-day-card small {
    grid-column: 2;
  }
}

/* Cinematic map entrance: memory pins turn on like tiny lights. */
.map-stage.map-focus.map-cinematic-intro::before {
  z-index: 8 !important;
  display: block !important;
  opacity: 1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 50% 52%, rgba(63, 158, 255, 0.22), transparent 24%),
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(2, 8, 20, 0.22) 72%),
    linear-gradient(180deg, rgba(3, 9, 20, 0.28), rgba(3, 9, 20, 0.06) 52%, rgba(3, 9, 20, 0.24)) !important;
  animation: mapCinematicFade 2.8s ease forwards;
}

.map-stage.map-focus.map-cinematic-intro .memory-marker:not(.is-new) {
  opacity: 0;
  animation: memoryLightOn 720ms cubic-bezier(0.16, 1.2, 0.28, 1) var(--marker-reveal-delay, 0ms) both;
}

.map-stage.map-focus.map-cinematic-intro .memory-cluster-marker {
  opacity: 0;
  animation: clusterLightOn 720ms cubic-bezier(0.16, 1.2, 0.28, 1) var(--marker-reveal-delay, 0ms) both;
}

.map-stage.map-focus.map-cinematic-intro .memory-marker-glow {
  opacity: 0.74;
  filter: blur(22px);
  animation: memoryGlowPulse 1.7s ease-in-out infinite alternate;
}

@keyframes mapCinematicFade {
  0% {
    opacity: 1;
  }

  70% {
    opacity: 0.38;
  }

  100% {
    opacity: 0;
  }
}

@keyframes memoryLightOn {
  0% {
    opacity: 0;
    transform: rotate(-45deg) scale(0.16) translateY(12px);
    filter: brightness(1.8) saturate(1.4);
  }

  55% {
    opacity: 1;
    transform: rotate(-45deg) scale(1.16) translateY(-3px);
    filter: brightness(1.3) saturate(1.2);
  }

  100% {
    opacity: 1;
    transform: rotate(-45deg) scale(1) translateY(0);
    filter: brightness(1) saturate(1);
  }
}

@keyframes clusterLightOn {
  0% {
    opacity: 0;
    transform: scale(0.22);
    filter: brightness(1.8) saturate(1.4);
  }

  58% {
    opacity: 1;
    transform: scale(1.14);
    filter: brightness(1.24) saturate(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
}

@keyframes memoryGlowPulse {
  from {
    opacity: 0.42;
  }

  to {
    opacity: 0.82;
  }
}

/* Living memory markers: subtle heartbeat, glow, warmth, and wishlist shimmer. */
.map-stage.map-focus .memory-marker.is-breathing:not(.is-new) {
  animation: memoryHeartbeat 4.8s ease-in-out infinite;
}

.map-stage.map-focus .memory-marker.is-breathing:not(.is-new)::before {
  animation: memoryFaceBreath 4.8s ease-in-out infinite;
}

.map-stage.map-focus .memory-marker.is-breathing:not(.is-new) .memory-marker-glow {
  animation: memoryGlowBreath 4.8s ease-in-out infinite;
}

.map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new) {
  box-shadow:
    0 0 0 9px color-mix(in srgb, var(--marker-color) 22%, transparent),
    0 0 30px color-mix(in srgb, var(--marker-color) 62%, transparent),
    0 18px 34px rgba(13, 27, 42, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new) .memory-marker-glow {
  opacity: 0.74;
  filter: blur(22px);
}

.map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new) {
  box-shadow:
    0 0 0 9px color-mix(in srgb, var(--marker-color) 20%, transparent),
    0 0 24px rgba(70, 175, 255, 0.48),
    0 16px 30px rgba(13, 27, 42, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.24) inset;
}

.map-stage.map-focus .memory-marker.is-old-memory:not(.is-new) {
  box-shadow:
    0 0 0 8px rgba(255, 200, 87, 0.17),
    0 0 26px rgba(255, 190, 90, 0.34),
    0 16px 30px rgba(13, 27, 42, 0.3),
    0 0 0 1px rgba(255, 246, 220, 0.26) inset;
}

.map-stage.map-focus .memory-marker.is-wishlist-memory:not(.is-new)::before {
  background:
    linear-gradient(120deg, transparent 0 32%, rgba(255, 255, 255, 0.64) 48%, transparent 64%),
    radial-gradient(circle at 35% 27%, rgba(255, 255, 255, 0.74) 0 14%, transparent 16%),
    rgba(255, 255, 255, 0.18);
  background-size: 220% 100%, auto, auto;
  animation: wishlistShimmer 3.6s ease-in-out infinite, memoryFaceBreath 4.8s ease-in-out infinite;
}

.map-stage.map-focus .memory-marker.pin-heart:not(.is-new) .memory-marker-face {
  width: 28px;
  height: 28px;
  animation: heartPinBeat 3.2s ease-in-out infinite;
}

.map-stage.map-focus .memory-marker.pin-heart:not(.is-new) .memory-marker-glow {
  opacity: 0.7;
  animation: heartPinAura 3.2s ease-in-out infinite;
}

.map-stage.map-focus .memory-marker.pin-coffee:not(.is-new) .memory-marker-face {
  overflow: visible;
}

.map-stage.map-focus .memory-marker.pin-coffee:not(.is-new) .memory-marker-face::before,
.map-stage.map-focus .memory-marker.pin-coffee:not(.is-new) .memory-marker-face::after {
  position: absolute;
  z-index: 0;
  top: -14px;
  width: 8px;
  height: 18px;
  content: "";
  pointer-events: none;
  border-left: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.34));
  transform: rotate(-12deg) translateY(7px);
  animation: coffeeSteamRise 2.8s ease-in-out infinite;
}

.map-stage.map-focus .memory-marker.pin-coffee:not(.is-new) .memory-marker-face::before {
  left: 7px;
}

.map-stage.map-focus .memory-marker.pin-coffee:not(.is-new) .memory-marker-face::after {
  right: 5px;
  animation-delay: 1.15s;
}

.map-stage.map-focus .memory-marker.pin-adventure:not(.is-new) .memory-marker-face {
  width: 27px;
  height: 27px;
  animation: adventurePinBounce 3.8s ease-in-out infinite;
}

.map-stage.map-focus .memory-marker.pin-adventure:not(.is-new) .memory-marker-glow {
  opacity: 0.58;
  filter: blur(19px);
}

.map-stage.map-focus .memory-marker.pin-music:not(.is-new) .memory-marker-face {
  width: 24px;
  height: 24px;
  animation: musicPinVibe 1.9s ease-in-out infinite;
}

.map-stage.map-focus .memory-marker.pin-music:not(.is-new) .memory-marker-glow {
  opacity: 0.6;
  animation: musicPinGlow 1.9s ease-in-out infinite;
}

.map-stage.map-focus.map-interacting .memory-marker.pin-heart .memory-marker-face,
.map-stage.map-focus.map-interacting .memory-marker.pin-heart .memory-marker-glow,
.map-stage.map-focus.map-interacting .memory-marker.pin-coffee .memory-marker-face::before,
.map-stage.map-focus.map-interacting .memory-marker.pin-coffee .memory-marker-face::after,
.map-stage.map-focus.map-interacting .memory-marker.pin-adventure .memory-marker-face,
.map-stage.map-focus.map-interacting .memory-marker.pin-music .memory-marker-face,
.map-stage.map-focus.map-interacting .memory-marker.pin-music .memory-marker-glow {
  animation-play-state: paused;
}

.map-stage.map-focus.map-cinematic-intro .memory-marker.is-breathing:not(.is-new) {
  opacity: 0;
  animation: memoryLightOn 720ms cubic-bezier(0.16, 1.2, 0.28, 1) var(--marker-reveal-delay, 0ms) both;
}

.map-stage.map-focus.map-cinematic-intro .memory-marker.is-breathing:not(.is-new) .memory-marker-glow {
  opacity: 0.74;
  filter: blur(22px);
  animation: memoryGlowPulse 1.7s ease-in-out infinite alternate;
}

@keyframes memoryHeartbeat {
  0%,
  16%,
  100% {
    transform: rotate(-45deg) scale(1);
    filter: brightness(1);
  }

  7% {
    transform: rotate(-45deg) scale(1.035);
    filter: brightness(1.08);
  }

  12% {
    transform: rotate(-45deg) scale(0.992);
    filter: brightness(1.02);
  }
}

@keyframes memoryFaceBreath {
  0%,
  16%,
  100% {
    opacity: 1;
  }

  7% {
    opacity: 0.92;
  }
}

@keyframes memoryGlowBreath {
  0%,
  16%,
  100% {
    opacity: 0.38;
    filter: blur(16px);
  }

  7% {
    opacity: 0.7;
    filter: blur(22px);
  }
}

@keyframes wishlistShimmer {
  0%,
  48%,
  100% {
    background-position: -140% 0, center, center;
  }

  72% {
    background-position: 160% 0, center, center;
  }
}

@keyframes heartPinBeat {
  0%,
  18%,
  100% {
    transform: rotate(45deg) scale(1);
    filter: brightness(1);
  }

  7% {
    transform: rotate(45deg) scale(1.13);
    filter: brightness(1.1);
  }

  12% {
    transform: rotate(45deg) scale(0.98);
    filter: brightness(1.02);
  }
}

@keyframes heartPinAura {
  0%,
  18%,
  100% {
    opacity: 0.48;
    filter: blur(16px);
  }

  7% {
    opacity: 0.82;
    filter: blur(23px);
  }
}

@keyframes coffeeSteamRise {
  0%,
  42% {
    opacity: 0;
    transform: rotate(-12deg) translateY(8px) scale(0.92);
  }

  58% {
    opacity: 0.74;
  }

  100% {
    opacity: 0;
    transform: rotate(10deg) translateY(-9px) scale(1.12);
  }
}

@keyframes adventurePinBounce {
  0%,
  42%,
  100% {
    transform: rotate(45deg) translateY(0) scale(1);
  }

  50% {
    transform: rotate(45deg) translateY(-4px) scale(1.04);
  }

  58% {
    transform: rotate(45deg) translateY(1px) scale(0.99);
  }
}

@keyframes musicPinVibe {
  0%,
  76%,
  100% {
    transform: rotate(45deg) translateX(0) scale(1);
  }

  80% {
    transform: rotate(42deg) translateX(-1px) scale(1.03);
  }

  84% {
    transform: rotate(48deg) translateX(1px) scale(1.03);
  }

  88% {
    transform: rotate(43deg) translateX(-1px) scale(1.02);
  }

  92% {
    transform: rotate(47deg) translateX(1px) scale(1.02);
  }
}

@keyframes musicPinGlow {
  0%,
  76%,
  100% {
    opacity: 0.42;
    filter: blur(16px);
  }

  84%,
  92% {
    opacity: 0.76;
    filter: blur(21px);
  }
}

/* Constellation memory clusters and bloom-open zoom behavior. */
.map-stage.map-focus .memory-cluster-marker.constellation-cluster {
  position: relative;
  display: grid;
  width: 86px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.34), transparent 18%),
    radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--marker-color) 34%, transparent), transparent 42%),
    linear-gradient(135deg, rgba(7, 21, 42, 0.78), rgba(9, 28, 55, 0.62));
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--marker-color) 12%, transparent),
    0 0 34px color-mix(in srgb, var(--marker-color) 42%, transparent),
    0 18px 42px rgba(5, 15, 31, 0.34);
  backdrop-filter: blur(12px);
  animation: constellationBreath 5.4s ease-in-out infinite;
}

.map-stage.map-focus .memory-cluster-marker.constellation-cluster::before {
  position: absolute;
  inset: 16px 14px 25px;
  content: "";
  border-top: 1px solid color-mix(in srgb, var(--marker-color) 54%, rgba(255, 255, 255, 0.2));
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0.72;
  transform: rotate(-12deg);
}

.cluster-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cluster-star {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow:
    0 0 8px #fff,
    0 0 18px var(--marker-color);
  animation: clusterStarTwinkle 2.8s ease-in-out infinite;
}

.cluster-star-1 { top: 14px; left: 18px; }
.cluster-star-2 { top: 22px; right: 18px; animation-delay: 0.25s; }
.cluster-star-3 { right: 28px; bottom: 15px; animation-delay: 0.5s; }
.cluster-star-4 { bottom: 19px; left: 16px; animation-delay: 0.75s; }
.cluster-star-5 { top: 10px; left: 48%; animation-delay: 1s; }
.cluster-star-6 { right: 9px; bottom: 34px; animation-delay: 1.25s; }

.map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 16px var(--marker-color);
}

.map-stage.map-focus .memory-cluster-marker.constellation-cluster small {
  position: relative;
  z-index: 1;
  margin-top: -11px;
  color: rgba(255, 253, 248, 0.86);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-stage.map-focus.memory-blooming .memory-marker:not(.is-new) {
  animation: memoryBloomOpen 820ms cubic-bezier(0.16, 1.3, 0.28, 1) var(--marker-reveal-delay, 0ms) both;
}

.map-stage.map-focus.memory-blooming .memory-cluster-marker.constellation-cluster {
  animation: constellationGather 820ms cubic-bezier(0.16, 1.1, 0.28, 1) var(--marker-reveal-delay, 0ms) both;
}

.map-stage.map-focus.memory-detail-mode .memory-marker {
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--marker-color) 18%, transparent),
    0 0 30px color-mix(in srgb, var(--marker-color) 34%, transparent),
    0 18px 34px rgba(13, 27, 42, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.map-stage.map-focus.memory-detail-mode .memory-marker-detail {
  opacity: 1;
  transform: rotate(45deg) translateY(0) scale(1);
}

.map-stage.map-focus.memory-detail-mode .marker-photo,
.map-stage.map-focus.memory-zoom-story .marker-photo {
  opacity: 1;
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.06);
}

.map-stage.map-focus.memory-zoom-story .memory-marker:not(.is-new) {
  animation: memoryZoomStory 900ms cubic-bezier(0.16, 1.25, 0.28, 1) both;
}

.map-stage.map-focus.memory-zoom-story .memory-marker-detail {
  animation: noteRevealOnZoom 900ms cubic-bezier(0.16, 1, 0.28, 1) both;
}

@keyframes constellationBreath {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.025);
    filter: brightness(1.08);
  }
}

@keyframes memoryZoomStory {
  0% {
    transform: rotate(-45deg) scale(0.92);
    filter: brightness(0.96);
  }

  55% {
    transform: rotate(-45deg) scale(1.18);
    filter: brightness(1.12);
  }

  100% {
    transform: rotate(-45deg) scale(1);
    filter: brightness(1);
  }
}

@keyframes noteRevealOnZoom {
  0%,
  36% {
    opacity: 0;
    transform: rotate(45deg) translateY(10px) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: rotate(45deg) translateY(0) scale(1);
  }
}

@keyframes clusterStarTwinkle {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.88);
  }

  48% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes memoryBloomOpen {
  0% {
    opacity: 0;
    transform: rotate(-45deg) scale(0.28) translateY(10px);
    filter: brightness(1.35) saturate(1.22);
  }

  62% {
    opacity: 1;
    transform: rotate(-45deg) scale(1.13) translateY(-4px);
    filter: brightness(1.16) saturate(1.1);
  }

  100% {
    opacity: 1;
    transform: rotate(-45deg) scale(1) translateY(0);
    filter: brightness(1) saturate(1);
  }
}

@keyframes constellationGather {
  0% {
    opacity: 0;
    transform: scale(1.16);
    filter: blur(4px) brightness(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) brightness(1);
  }
}

/* Memory camera shot: a soft drone-like focus while opening a memory. */
.map-stage.map-focus.memory-camera-shot::before {
  z-index: 8 !important;
  display: block !important;
  opacity: 1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(4, 12, 26, 0.16) 70%),
    linear-gradient(180deg, rgba(4, 12, 26, 0.18), transparent 34%, rgba(4, 12, 26, 0.18)) !important;
  animation: memoryCameraVignette 2.1s ease forwards;
}

.map-stage.map-focus.memory-camera-shot .memory-bottom-sheet {
  transform: translateX(-50%) translateY(18px);
}

@keyframes memoryCameraVignette {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 0.78;
  }

  100% {
    opacity: 0.18;
  }
}

/* Memory peeks: small cards that slide up while exploring the map. */
.memory-peek-card {
  position: absolute;
  z-index: 25;
  right: 50%;
  bottom: 104px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: min(380px, calc(100vw - 36px));
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 22px;
  color: #12375c;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(250, 249, 246, 0.9)),
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--peek-accent, #ff6b6b) 18%, transparent), transparent 42%);
  box-shadow: 0 22px 58px rgba(6, 17, 34, 0.28);
  pointer-events: none;
  transform: translateX(50%) translateY(28px) scale(0.98);
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.16, 1.15, 0.28, 1);
  backdrop-filter: blur(18px);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.memory-peek-card.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(50%) translateY(0) scale(1);
}

.memory-peek-card.living-whisper {
  border-color: color-mix(in srgb, var(--peek-accent, #ff6b6b) 30%, rgba(255, 255, 255, 0.58));
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(250, 249, 246, 0.9)),
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--peek-accent, #ff6b6b) 22%, transparent), transparent 50%);
  box-shadow:
    0 24px 62px rgba(6, 17, 34, 0.28),
    0 0 0 7px color-mix(in srgb, var(--peek-accent, #ff6b6b) 8%, transparent),
    0 0 42px color-mix(in srgb, var(--peek-accent, #ff6b6b) 16%, transparent);
}

.memory-peek-card.living-whisper .peek-copy strong {
  color: color-mix(in srgb, var(--peek-accent, #ff6b6b) 42%, #12375c);
}

.memory-peek-card.nearby-discovery {
  bottom: 116px;
  border-color: color-mix(in srgb, var(--peek-accent, #ff6b6b) 26%, rgba(255, 255, 255, 0.62));
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(250, 249, 246, 0.92)),
    radial-gradient(circle at 10% 14%, color-mix(in srgb, var(--peek-accent, #ff6b6b) 18%, transparent), transparent 48%);
  box-shadow:
    0 22px 54px rgba(6, 17, 34, 0.22),
    0 0 0 6px color-mix(in srgb, var(--peek-accent, #ff6b6b) 7%, transparent);
}

.memory-peek-card.nearby-discovery .peek-copy small::before {
  content: "Nearby · ";
}

.memory-peek-card.nearby-discovery .peek-copy em {
  display: inline-flex;
  width: max-content;
  margin-top: 3px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  background: linear-gradient(135deg, color-mix(in srgb, var(--peek-accent, #ff6b6b) 70%, #4f80ff), var(--peek-accent, #ff6b6b));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--peek-accent, #ff6b6b) 18%, transparent);
}

.memory-peek-card.story-mode-card {
  bottom: 118px;
  grid-template-columns: 58px minmax(0, 1fr);
  width: min(460px, calc(100vw - 36px));
  min-height: 94px;
  border-color: color-mix(in srgb, var(--peek-accent, #8e4be2) 36%, rgba(255, 255, 255, 0.58));
  color: #fffdf8;
  background:
    linear-gradient(180deg, rgba(9, 22, 41, 0.9), rgba(7, 16, 30, 0.82)),
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--peek-accent, #8e4be2) 34%, transparent), transparent 48%);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.42),
    0 0 0 8px color-mix(in srgb, var(--peek-accent, #8e4be2) 8%, transparent),
    0 0 58px color-mix(in srgb, var(--peek-accent, #8e4be2) 20%, transparent);
}

.memory-peek-card.story-mode-card .peek-pin {
  width: 58px;
  height: 58px;
  box-shadow:
    0 0 0 9px color-mix(in srgb, var(--peek-accent, #8e4be2) 14%, transparent),
    0 0 32px color-mix(in srgb, var(--peek-accent, #8e4be2) 38%, transparent),
    0 14px 30px rgba(0, 0, 0, 0.28);
}

.memory-peek-card.story-mode-card .peek-copy strong {
  color: #fff;
  font-size: 1rem;
}

.memory-peek-card.story-mode-card .peek-copy small {
  color: rgba(226, 235, 255, 0.72);
}

.memory-peek-card.story-mode-card .peek-copy em {
  color: rgba(255, 253, 248, 0.82);
}

.memory-peek-card.story-mode-intro,
.memory-peek-card.story-mode-outro {
  bottom: 50%;
  transform: translateX(50%) translateY(44%) scale(0.94);
}

.memory-peek-card.story-mode-intro.show,
.memory-peek-card.story-mode-outro.show {
  transform: translateX(50%) translateY(50%) scale(1);
}

.map-stage.story-mode-active::after {
  z-index: 7;
  height: 100%;
  opacity: 0.6;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 28%, rgba(3, 8, 16, 0.28) 68%),
    linear-gradient(180deg, rgba(3, 8, 16, 0.22), transparent 34%, rgba(3, 8, 16, 0.32));
}

.map-stage.story-mode-active #storyModeButton {
  color: #fff;
  background: linear-gradient(135deg, #8e4be2, #ff5f7c);
  box-shadow:
    0 0 0 8px rgba(142, 75, 226, 0.12),
    0 0 34px rgba(255, 95, 124, 0.34),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.map-stage.story-mode-active .memory-bottom-sheet {
  width: min(680px, calc(100vw - 28px));
}

.map-stage.story-mode-active .memory-sheet-card {
  grid-template-columns: 72px minmax(0, 1fr);
  border-color: color-mix(in srgb, var(--sheet-accent, #8e4be2) 26%, rgba(255, 255, 255, 0.28));
  color: #fffdf8;
  background:
    linear-gradient(180deg, rgba(9, 22, 41, 0.92), rgba(7, 16, 30, 0.86)),
    radial-gradient(circle at 14% 8%, color-mix(in srgb, var(--sheet-accent, #8e4be2) 28%, transparent), transparent 46%);
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.44),
    0 0 0 8px color-mix(in srgb, var(--sheet-accent, #8e4be2) 7%, transparent),
    0 0 64px color-mix(in srgb, var(--sheet-accent, #8e4be2) 18%, transparent);
}

.map-stage.story-mode-active .sheet-copy h3,
.map-stage.story-mode-active .sheet-note {
  color: #fffdf8;
}

.map-stage.story-mode-active .sheet-meta,
.map-stage.story-mode-active .sheet-coordinates {
  color: rgba(226, 235, 255, 0.72);
}

.map-stage.story-mode-active .sheet-photo {
  max-height: 300px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.map-stage:not(.map-focus) .memory-peek-card,
.memory-peek-card[hidden] {
  display: none !important;
}

.peek-pin {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50% 50% 50% 14px;
  color: #fff;
  font-size: 1.3rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--peek-accent, #ff6b6b) 74%, white), var(--peek-accent, #ff6b6b));
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--peek-accent, #ff6b6b) 12%, transparent),
    0 12px 24px rgba(31, 78, 121, 0.16);
  transform: rotate(-45deg);
}

.peek-pin::first-letter {
  display: inline-block;
  transform: rotate(45deg);
}

.peek-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.peek-copy strong {
  overflow: hidden;
  color: #12375c;
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peek-copy small {
  overflow: hidden;
  color: rgba(31, 78, 121, 0.68);
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peek-copy em {
  overflow: hidden;
  color: rgba(18, 55, 92, 0.66);
  font-size: 0.76rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .memory-peek-card {
    bottom: 92px;
    width: min(340px, calc(100vw - 24px));
  }

  .memory-marker-detail {
    display: none;
  }
}

/* Living map atmosphere: the map mood shifts with the time of day. */
.map-stage.map-focus.map-sunrise {
  background:
    radial-gradient(circle at 72% 8%, rgba(255, 183, 77, 0.28), transparent 31%),
    radial-gradient(circle at 18% 0%, rgba(255, 111, 97, 0.16), transparent 28%),
    linear-gradient(180deg, #f9d6a2 0%, #f7e8ce 44%, #dcecf5 100%) !important;
}

.map-stage.map-focus.map-morning {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 200, 87, 0.2), transparent 28%),
    linear-gradient(180deg, #f8ead9 0%, #edf6fb 48%, #d8ebf6 100%) !important;
}

.map-stage.map-focus.map-day {
  background:
    radial-gradient(circle at 82% 12%, rgba(80, 164, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #edf8ff 0%, #e9f2ed 52%, #dcecf5 100%) !important;
}

.map-stage.map-focus.map-sunset {
  background:
    radial-gradient(circle at 72% 10%, rgba(255, 107, 107, 0.24), transparent 32%),
    linear-gradient(180deg, #f8d79a 0%, #f2b98c 44%, #dceaf4 100%) !important;
}

.map-stage.map-focus.map-night {
  background:
    radial-gradient(circle at 20% 8%, rgba(79, 134, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #07111e 0%, #0b1c32 52%, #06101c 100%) !important;
}

.map-stage.map-focus.map-cloudy {
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #dfeaf2 0%, #e8eef2 50%, #d6e4ec 100%) !important;
}

.map-stage.map-focus.map-snow {
  background:
    radial-gradient(circle at 20% 8%, rgba(214, 239, 255, 0.24), transparent 31%),
    linear-gradient(180deg, #e8f5ff 0%, #f4f8fb 46%, #dcecf8 100%) !important;
}

.map-stage.map-focus.map-clear.map-day {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 200, 87, 0.16), transparent 26%),
    linear-gradient(180deg, #eefaff 0%, #eaf4ee 52%, #dcecf5 100%) !important;
}

.map-stage.map-focus.map-sunrise .leaflet-tile,
.map-stage.map-focus.map-sunrise .maplibregl-canvas {
  filter: sepia(0.2) saturate(1.14) brightness(1.05) hue-rotate(-6deg) !important;
}

.map-stage.map-focus.map-morning .leaflet-tile,
.map-stage.map-focus.map-morning .maplibregl-canvas {
  filter: sepia(0.18) saturate(1.08) brightness(1.05) !important;
}

.map-stage.map-focus.map-day .leaflet-tile,
.map-stage.map-focus.map-day .maplibregl-canvas {
  filter: saturate(1.04) brightness(1.02) contrast(1.01) !important;
}

.map-stage.map-focus.map-sunset .leaflet-tile,
.map-stage.map-focus.map-sunset .maplibregl-canvas {
  filter: sepia(0.26) saturate(1.2) brightness(1.03) hue-rotate(-8deg) !important;
}

.map-stage.map-focus.map-night .leaflet-tile,
.map-stage.map-focus.map-night .maplibregl-canvas {
  filter: brightness(0.62) saturate(0.92) contrast(1.1) hue-rotate(8deg) !important;
}

.map-stage.map-focus.map-rain .leaflet-tile,
.map-stage.map-focus.map-rain .maplibregl-canvas {
  filter: saturate(0.86) brightness(0.94) contrast(1.04) !important;
}

.map-stage.map-focus.map-cloudy .leaflet-tile,
.map-stage.map-focus.map-cloudy .maplibregl-canvas {
  filter: saturate(0.92) brightness(0.98) contrast(1.03) !important;
}

.map-stage.map-focus.map-snow .leaflet-tile,
.map-stage.map-focus.map-snow .maplibregl-canvas {
  filter: saturate(0.78) brightness(1.08) contrast(0.98) hue-rotate(7deg) !important;
}

.map-stage.map-focus.map-night .memory-marker {
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--marker-color, #ff6b6b) 72%, white));
}

.map-stage.map-focus.map-night .memory-marker-glow {
  opacity: 0.9;
  filter: blur(24px);
}

.map-stage.map-focus.map-night .memory-cluster-marker.constellation-cluster {
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.08),
    0 0 34px rgba(79, 134, 255, 0.34),
    0 20px 48px rgba(0, 0, 0, 0.28) !important;
}

.map-stage.map-focus .journey-stop-dot {
  animation: journeyStopGlow 3.8s ease-in-out infinite;
}

.map-stage.map-focus .journey-stop-marker:nth-child(2n) .journey-stop-dot {
  animation-delay: 0.8s;
}

.map-stage.map-focus.map-night .journey-stop-dot {
  color: #fffdf8;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.98), rgba(255, 244, 168, 0.92) 30%, rgba(87, 199, 255, 0.86) 100%);
  box-shadow:
    0 0 0 7px rgba(87, 199, 255, 0.18),
    0 0 34px rgba(87, 199, 255, 0.76),
    0 0 46px rgba(255, 244, 168, 0.26),
    0 14px 30px rgba(0, 0, 0, 0.32);
}

.map-stage.map-focus.map-night .journey-stop-label {
  color: #fffdf8;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(7, 17, 30, 0.72);
}

.map-stage.map-focus.map-night .memory-trail-footprint span {
  border-color: rgba(255, 255, 255, 0.9);
  opacity: 0.94;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--trail-color, #57c7ff) 22%, transparent),
    0 0 26px color-mix(in srgb, var(--trail-color, #57c7ff) 70%, transparent),
    0 0 38px rgba(255, 244, 168, 0.2);
}

.map-stage.map-focus.map-night .hidden-discovery-badge {
  color: #fffdf8;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(7, 17, 30, 0.72);
}

.map-stage.map-focus.map-night .life-cloud {
  opacity: 0.12;
  background: rgba(172, 207, 242, 0.48);
  box-shadow:
    18px -9px 0 -2px rgba(172, 207, 242, 0.4),
    36px -3px 0 -7px rgba(172, 207, 242, 0.32),
    0 0 28px rgba(93, 163, 255, 0.12);
}

.map-stage.map-focus.map-cloudy .life-cloud {
  opacity: 0.42;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    18px -9px 0 -2px rgba(255, 255, 255, 0.66),
    36px -3px 0 -7px rgba(233, 241, 248, 0.58),
    0 0 34px rgba(134, 168, 196, 0.2);
}

.map-stage.map-focus.map-snow .season-snow {
  display: block;
  opacity: 0.42;
}

.map-stage.map-focus.map-sunrise .season-sun,
.map-stage.map-focus.map-clear.map-day .season-sun {
  display: block;
}

.map-stage.map-focus.map-night .life-plane::before,
.map-stage.map-focus.map-night .life-plane::after,
.map-stage.map-focus.map-night .life-ship::before {
  background: rgba(186, 220, 255, 0.38);
}

.map-stage.map-focus.map-night .life-ship::after {
  background: rgba(255, 244, 168, 0.46);
}

.map-stage.map-focus.map-night .life-birds::before,
.map-stage.map-focus.map-night .life-birds::after {
  border-top-color: rgba(186, 220, 255, 0.34);
}

.map-stage.map-focus.map-night.map-season-summer .season-sun {
  background: rgba(255, 244, 168, 0.72);
  box-shadow:
    0 0 22px rgba(255, 244, 168, 0.36),
    42px 16px 0 -2px rgba(186, 220, 255, 0.32),
    82px -10px 0 -1px rgba(101, 205, 255, 0.22);
}

.map-stage.map-focus.map-night.map-season-winter .season-snow {
  opacity: 0.28;
}

.map-stage.map-focus.map-night:not(.map-cinematic-intro):not(.memory-camera-shot)::after {
  inset: 0 !important;
  z-index: 7 !important;
  display: block !important;
  opacity: 0.52 !important;
  pointer-events: none !important;
  background-image:
    radial-gradient(circle, rgba(255, 246, 192, 0.95) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(120, 190, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 38%);
  background-position: 22px 36px, 96px 84px, center;
  background-size: 148px 148px, 232px 232px, cover;
  animation: citySparkle 4.8s ease-in-out infinite alternate;
}

.map-stage.map-focus.map-rain:not(.map-cinematic-intro):not(.memory-camera-shot)::before {
  inset: 0 !important;
  z-index: 7 !important;
  display: block !important;
  opacity: 0.3 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px),
    radial-gradient(circle at 18% 10%, rgba(88, 145, 190, 0.16), transparent 34%);
  background-size: 24px 46px, cover;
  animation: rainDrift 0.9s linear infinite;
}

.map-stage.map-focus.map-snow:not(.map-cinematic-intro):not(.memory-camera-shot)::before {
  inset: 0 !important;
  z-index: 7 !important;
  display: block !important;
  opacity: 0.34 !important;
  pointer-events: none !important;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(205, 235, 255, 0.7) 0 1px, transparent 1.7px);
  background-position: 16px 0, 72px 24px;
  background-size: 124px 124px, 190px 190px;
  animation: snowDrift 7.5s linear infinite;
}

@keyframes citySparkle {
  from {
    opacity: 0.34;
    filter: brightness(0.92);
  }

  to {
    opacity: 0.64;
    filter: brightness(1.18);
  }
}

@keyframes rainDrift {
  from {
    background-position: 0 0, center;
  }

  to {
    background-position: -24px 46px, center;
  }
}

@keyframes snowDrift {
  from {
    background-position: 16px -40px, 72px -12px;
  }

  to {
    background-position: 36px 160px, 42px 210px;
  }
}

@keyframes cloudDrift {
  from {
    transform: translate3d(-12vw, 0, 0);
  }

  to {
    transform: translate3d(126vw, -2vh, 0);
  }
}

@keyframes planeCross {
  from {
    transform: translate3d(-8vw, 0, 0) rotate(8deg);
  }

  to {
    transform: translate3d(118vw, 13vh, 0) rotate(8deg);
  }
}

@keyframes planeCrossReverse {
  from {
    transform: translate3d(8vw, 0, 0) rotate(188deg);
  }

  to {
    transform: translate3d(-118vw, -12vh, 0) rotate(188deg);
  }
}

@keyframes shipCross {
  from {
    transform: translate3d(-10vw, 0, 0);
  }

  to {
    transform: translate3d(120vw, 2vh, 0);
  }
}

@keyframes shipCrossReverse {
  from {
    transform: translate3d(10vw, 0, 0) scaleX(-1);
  }

  to {
    transform: translate3d(-120vw, -1vh, 0) scaleX(-1);
  }
}

@keyframes birdsDrift {
  0% {
    transform: translate3d(-7vw, 0, 0);
  }

  50% {
    transform: translate3d(52vw, -5vh, 0);
  }

  100% {
    transform: translate3d(112vw, 2vh, 0);
  }
}

@keyframes birdsDriftReverse {
  0% {
    transform: translate3d(7vw, 0, 0) scaleX(-1);
  }

  50% {
    transform: translate3d(-48vw, 4vh, 0) scaleX(-1);
  }

  100% {
    transform: translate3d(-112vw, -2vh, 0) scaleX(-1);
  }
}

@keyframes northernSnow {
  from {
    transform: translate3d(0, -8vh, 0);
  }

  to {
    transform: translate3d(8vw, 44vh, 0);
  }
}

@keyframes petalFloat {
  0% {
    transform: translate3d(-8vw, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(54vw, 12vh, 0) rotate(140deg);
  }

  100% {
    transform: translate3d(112vw, 6vh, 0) rotate(280deg);
  }
}

@keyframes petalFloatReverse {
  0% {
    transform: translate3d(8vw, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-52vw, -8vh, 0) rotate(-130deg);
  }

  100% {
    transform: translate3d(-112vw, 4vh, 0) rotate(-260deg);
  }
}

@keyframes summerGlint {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.8);
  }

  45% {
    opacity: 0.42;
    transform: scale(1.25);
  }
}

@keyframes autumnLeafFall {
  0% {
    transform: translate3d(-8vw, -4vh, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(52vw, 16vh, 0) rotate(190deg);
  }

  100% {
    transform: translate3d(112vw, 34vh, 0) rotate(360deg);
  }
}

@keyframes autumnLeafFallReverse {
  0% {
    transform: translate3d(8vw, -2vh, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-48vw, 18vh, 0) rotate(-160deg);
  }

  100% {
    transform: translate3d(-112vw, 28vh, 0) rotate(-320deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-life-layer {
    display: none !important;
  }
}

@keyframes journeyStopGlow {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.12);
  }
}

@keyframes memoryTrailBreathe {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(var(--trail-rotate, 0deg));
  }

  50% {
    transform: translateY(-1px) scale(1.12) rotate(var(--trail-rotate, 0deg));
  }
}

@keyframes constellationLabelGlow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.84;
  }

  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

@keyframes hiddenDiscoveryFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes emotionMatchPulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.13);
  }
}

@keyframes livingMemoryWake {
  0%,
  18%,
  100% {
    transform: rotate(-45deg) scale(1);
    filter: brightness(1);
  }

  8% {
    transform: rotate(-45deg) scale(1.055);
    filter: brightness(1.12);
  }
}

@media (max-width: 720px) {
  .map-stage.map-focus .memory-constellation-label,
  .map-stage.map-focus .hidden-discovery-badge,
  .map-stage.map-focus .journey-stop-label {
    display: none !important;
  }

  .map-stage.map-focus .map-life-layer {
    opacity: 0.34;
  }

  .map-stage.map-focus.map-emotion-filter .memory-marker.is-feeling-muted {
    opacity: 0.22;
  }

  .map-stage.map-focus .memory-marker-detail,
  .map-stage.map-focus .pin-hover-preview {
    display: none !important;
  }

  .map-stage.map-focus .memory-marker.is-breathing:not(.is-new),
  .map-stage.map-focus .memory-marker.is-living-awake:not(.is-new),
  .map-stage.map-focus .memory-cluster-marker.constellation-cluster {
    animation-duration: 7s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-life-layer,
  .memory-marker-glow,
  .cluster-stars,
  .home-background,
  .map-stage.map-focus.map-rain::before,
  .map-stage.map-focus.map-snow::before,
  .map-stage.map-focus.map-night::after {
    animation: none !important;
  }

  .memory-marker,
  .memory-marker.is-breathing,
  .memory-marker.is-feeling-match,
  .memory-marker.is-living-awake,
  .memory-marker.pin-heart .memory-marker-face,
  .memory-marker.pin-heart .memory-marker-glow,
  .memory-marker.pin-coffee .memory-marker-face::before,
  .memory-marker.pin-coffee .memory-marker-face::after,
  .memory-marker.pin-adventure .memory-marker-face,
  .memory-marker.pin-music .memory-marker-face,
  .memory-marker.pin-music .memory-marker-glow,
  .memory-cluster-marker,
  .memory-peek-card,
  .memory-bottom-sheet,
  .pin-hover-preview,
  .marker-photo {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Current user location: a separate live avatar marker, never a saved memory pin. */
.user-location-marker.is-current-location {
  position: relative !important;
  display: grid !important;
  width: 50px !important;
  height: 50px !important;
  margin: 0 !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  transform: translateZ(0);
  will-change: transform;
}

.user-location-marker.is-current-location::before {
  position: absolute !important;
  inset: 3px !important;
  width: auto !important;
  height: auto !important;
  content: "" !important;
  border: 2px solid rgba(83, 174, 255, 0.44) !important;
  border-radius: 50% !important;
  background: rgba(36, 120, 255, 0.13) !important;
  filter: none !important;
  animation: userLocationRingPulse 2.2s ease-out infinite !important;
}

.user-location-marker.is-current-location::after {
  position: absolute;
  inset: 9px 10px 5px;
  content: "";
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(4, 24, 58, 0.24), transparent 68%);
  filter: blur(5px);
  transform: translateY(18px) scaleX(0.86);
}

.user-location-marker.is-current-location .user-location-head,
.user-location-marker.is-current-location .user-location-body,
.user-location-marker.is-current-location .user-location-arms,
.user-location-marker.is-current-location .user-location-legs {
  position: absolute !important;
  left: 50% !important;
  z-index: 2 !important;
  display: block !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  animation: none !important;
  transform: translateX(-50%) !important;
}

.user-location-marker.is-current-location .user-location-head {
  top: 16px !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
}

.user-location-marker.is-current-location .user-location-body {
  top: 25px !important;
  width: 16px !important;
  height: 10px !important;
  border-radius: 10px 10px 6px 6px !important;
}

.user-location-marker.is-current-location .user-location-arms,
.user-location-marker.is-current-location .user-location-legs {
  display: none !important;
}

.user-location-marker.is-current-location .user-location-body::before {
  position: absolute;
  z-index: 0;
  inset: -19px -12px -7px;
  content: "";
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(180deg, #77d8ff 0%, #2478ff 62%, #1458d6 100%);
  box-shadow:
    0 0 0 6px rgba(36, 120, 255, 0.16),
    0 0 28px rgba(36, 120, 255, 0.52),
    0 14px 26px rgba(5, 24, 58, 0.28);
}

.user-location-marker.is-current-location .user-location-head {
  z-index: 3 !important;
}

.user-location-marker.is-current-location .user-location-body {
  z-index: 2 !important;
  background: #fff !important;
}

.user-location-marker.is-current-location.is-estimate {
  opacity: 0 !important;
}

@keyframes userLocationRingPulse {
  0% {
    opacity: 0.76;
    transform: scale(0.76);
  }

  72% {
    opacity: 0;
    transform: scale(1.42);
  }

  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-location-marker.is-current-location::before {
    animation: none !important;
    opacity: 0.58;
    transform: scale(1);
  }
}

/* Final live-location marker pass: blue human avatar, above every memory pin. */
.user-location-marker-shell.live-user-location-marker {
  display: grid !important;
  width: 50px !important;
  height: 50px !important;
  place-items: center !important;
  z-index: 10000 !important;
  overflow: visible !important;
  pointer-events: none !important;
  isolation: isolate !important;
}

.user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location {
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

.user-location-marker-shell.is-estimate .user-location-marker.is-current-location {
  opacity: 0 !important;
}

.leaflet-marker-icon.user-location-marker.is-current-location,
.leaflet-marker-icon.user-location-marker.is-current-location.live-user-location-marker {
  z-index: 10000 !important;
  overflow: visible !important;
  pointer-events: none !important;
  isolation: isolate !important;
}

.user-location-marker.is-current-location::before {
  inset: 0 !important;
  z-index: 0 !important;
  border: 2px solid rgba(98, 189, 255, 0.5) !important;
  background: rgba(28, 126, 255, 0.14) !important;
}

.user-location-marker.is-current-location::after {
  z-index: 1 !important;
  inset: 18px 8px 1px !important;
  background: radial-gradient(ellipse at center, rgba(1, 19, 48, 0.34), transparent 70%) !important;
  filter: blur(7px) !important;
}

.user-location-marker.is-current-location .user-location-body::before {
  z-index: -1 !important;
  inset: -20px -13px -8px !important;
  border: 3px solid rgba(255, 255, 255, 0.98) !important;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.6), transparent 17%),
    linear-gradient(180deg, #76dbff 0%, #2883ff 58%, #1059d7 100%) !important;
  box-shadow:
    0 0 0 7px rgba(36, 120, 255, 0.16),
    0 0 30px rgba(36, 120, 255, 0.58),
    0 15px 26px rgba(5, 24, 58, 0.32) !important;
}

.user-location-marker.is-current-location .user-location-head {
  top: 15px !important;
  width: 9px !important;
  height: 9px !important;
  z-index: 4 !important;
}

.user-location-marker.is-current-location .user-location-body {
  top: 25px !important;
  width: 17px !important;
  height: 10px !important;
  z-index: 3 !important;
  border-radius: 11px 11px 7px 7px !important;
}

/* Blue human location pin: the current location is a person-shaped map pin. */
.user-location-marker-shell.live-user-location-marker {
  width: 48px !important;
  height: 58px !important;
}

.user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location {
  width: 48px !important;
  height: 58px !important;
  border-radius: 0 !important;
}

.user-location-marker.is-current-location::before {
  top: 0 !important;
  left: 2px !important;
  width: 44px !important;
  height: 44px !important;
  inset: auto !important;
  border-radius: 50% !important;
  background: rgba(36, 120, 255, 0.14) !important;
  animation: userLocationRingPulse 2.2s ease-out infinite !important;
}

.user-location-marker.is-current-location::after {
  top: 42px !important;
  left: 10px !important;
  width: 28px !important;
  height: 10px !important;
  inset: auto !important;
  border-radius: 50% !important;
  background: radial-gradient(ellipse at center, rgba(1, 19, 48, 0.36), transparent 72%) !important;
  filter: blur(6px) !important;
  transform: none !important;
}

.user-location-marker.is-current-location .user-location-body::before {
  top: -22px !important;
  left: 50% !important;
  width: 34px !important;
  height: 34px !important;
  inset: auto !important;
  border: 3px solid rgba(255, 255, 255, 0.98) !important;
  border-radius: 50% 50% 50% 8px !important;
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.58), transparent 17%),
    linear-gradient(180deg, #78dcff 0%, #2883ff 57%, #1059d7 100%) !important;
  box-shadow:
    0 0 0 6px rgba(36, 120, 255, 0.14),
    0 0 28px rgba(36, 120, 255, 0.55),
    0 14px 24px rgba(5, 24, 58, 0.32) !important;
  transform: translateX(-50%) rotate(-45deg) !important;
}

.user-location-marker.is-current-location .user-location-head {
  top: 11px !important;
  width: 8px !important;
  height: 8px !important;
}

.user-location-marker.is-current-location .user-location-body {
  top: 21px !important;
  width: 16px !important;
  height: 10px !important;
}

/* Make the live-location symbol read clearly as a human inside the blue pin. */
.user-location-marker.is-current-location .user-location-head {
  top: 8px !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

.user-location-marker.is-current-location .user-location-body {
  top: 18px !important;
  width: 12px !important;
  height: 14px !important;
  border-radius: 8px 8px 4px 4px !important;
  background: #fff !important;
}

.user-location-marker.is-current-location .user-location-arms,
.user-location-marker.is-current-location .user-location-legs {
  display: block !important;
  background: #fff !important;
}

.user-location-marker.is-current-location .user-location-arms {
  top: 20px !important;
  width: 22px !important;
  height: 4px !important;
  border-radius: 999px !important;
}

.user-location-marker.is-current-location .user-location-legs {
  top: 30px !important;
  width: 18px !important;
  height: 8px !important;
  border-radius: 0 0 999px 999px !important;
  background:
    linear-gradient(90deg, transparent 0 34%, #fff 34% 45%, transparent 45% 55%, #fff 55% 66%, transparent 66% 100%) !important;
}

.user-location-marker.is-current-location .user-location-ripple {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(82, 181, 255, 0.48);
  border-radius: 50%;
  background: rgba(40, 131, 255, 0.08);
  animation: userLocationSoftRipple 2.8s ease-out infinite;
}

.user-location-marker.is-current-location .ripple-two {
  animation-delay: 1.15s;
}

.you-are-here-message {
  position: absolute;
  z-index: 31;
  top: 112px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(122, 204, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 22, 41, 0.72);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.2),
    0 0 28px rgba(64, 157, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
  backdrop-filter: blur(14px);
}

.you-are-here-message.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.you-are-here-message[hidden] {
  display: none !important;
}

.you-are-here-message strong {
  font-size: 0.9rem;
  letter-spacing: 0;
  white-space: nowrap;
}

@keyframes userLocationSoftRipple {
  0% {
    opacity: 0.66;
    transform: scale(0.55);
  }

  72% {
    opacity: 0;
    transform: scale(1.95);
  }

  100% {
    opacity: 0;
    transform: scale(1.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-location-marker.is-current-location .user-location-ripple {
    animation: none !important;
    opacity: 0.26;
    transform: scale(1);
  }
}

.map-wake-overlay {
  position: absolute;
  z-index: 32;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 42%, rgba(50, 135, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(5, 12, 24, 0.82), rgba(5, 12, 24, 0.54));
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
  backdrop-filter: blur(10px);
}

.map-wake-overlay.is-visible {
  opacity: 1;
}

.map-wake-overlay.is-leaving {
  opacity: 0;
}

.map-wake-overlay[hidden] {
  display: none !important;
}

.map-wake-card {
  width: min(360px, calc(100vw - 42px));
  padding: 24px 24px 22px;
  border: 1px solid rgba(139, 195, 255, 0.28);
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(18, 38, 72, 0.86), rgba(9, 22, 42, 0.78)),
    radial-gradient(circle at 50% 0%, rgba(91, 165, 255, 0.2), transparent 48%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.38),
    0 0 48px rgba(51, 142, 255, 0.18);
  transform: translateY(10px) scale(0.98);
  transition: transform 420ms ease;
}

.map-wake-overlay.is-visible .map-wake-card {
  transform: translateY(0) scale(1);
}

.map-wake-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  margin: -2px auto 8px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.55rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 26px rgba(82, 184, 255, 0.2);
}

.map-wake-mappi,
.map-wake-globe {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  font-size: 2.15rem;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.34), rgba(54, 135, 255, 0.24) 42%, rgba(16, 47, 95, 0.36));
  box-shadow:
    0 0 0 8px rgba(47, 137, 255, 0.1),
    0 0 36px rgba(74, 166, 255, 0.36);
  animation: mapWakeGlobe 2.6s ease-in-out infinite;
}

.map-wake-overlay.is-visible .map-wake-mappi {
  animation: mappiSplashBounce 3.6s ease-in-out infinite;
}

.map-wake-mappi::before {
  position: absolute;
  top: -12px;
  left: -20px;
  z-index: 3;
  content: "👋";
  font-size: 1.15rem;
  opacity: 0;
  transform-origin: 80% 80%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
  animation: mappiSplashWave 4.8s ease-in-out 420ms infinite;
}

.map-wake-mappi::after {
  position: absolute;
  top: 30px;
  left: 24px;
  z-index: 4;
  width: 7px;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: rgba(7, 34, 62, 0.88);
  box-shadow: 17px 0 0 rgba(7, 34, 62, 0.88);
  opacity: 0;
  transform: scaleY(0.7);
  animation: mappiSplashBlink 5.4s ease-in-out 1.3s infinite;
}

.map-wake-mappi img {
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  object-position: center;
}

.map-wake-brand {
  display: block;
  margin: -2px 0 8px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.04rem;
  font-weight: 950;
  letter-spacing: 0.01em;
}

.map-wake-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.map-wake-subtitle {
  margin: 8px 0 0;
  color: rgba(231, 242, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 750;
}

.map-wake-line {
  position: relative;
  overflow: hidden;
  height: 3px;
  margin: 16px auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.map-wake-line::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  border-radius: inherit;
  content: "";
  background: linear-gradient(90deg, #59caff, #6f7cff, #ff6b8a);
  animation: mapWakeLine 1.55s ease-in-out infinite;
}

.map-wake-card p {
  margin: 0 0 13px;
}

.map-wake-card p strong {
  color: #9fdbff;
  font-size: 0.98rem;
}

.map-wake-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: rgba(236, 245, 255, 0.82);
  font-size: 0.92rem;
  list-style: none;
}

.map-wake-card li {
  opacity: 0;
  animation: mapWakeText 1.8s ease forwards;
}

.map-wake-card li:nth-child(2) {
  animation-delay: 180ms;
}

.map-wake-card li:nth-child(3) {
  animation-delay: 360ms;
}

@keyframes mapWakeGlobe {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-4px) rotate(3deg);
  }
}

@keyframes mapWakeLine {
  0% {
    transform: translateX(-105%);
  }

  100% {
    transform: translateX(235%);
  }
}

@keyframes mapWakeText {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mappiSplashBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  12% {
    transform: translateY(-3px) scale(1.015);
  }

  24% {
    transform: translateY(0) scale(1);
  }
}

@keyframes mappiSplashWave {
  0%,
  8%,
  100% {
    opacity: 0;
    transform: translateY(4px) rotate(0deg) scale(0.86);
  }

  12% {
    opacity: 1;
    transform: translateY(0) rotate(-16deg) scale(1);
  }

  17% {
    opacity: 1;
    transform: translateY(0) rotate(18deg) scale(1.04);
  }

  22% {
    opacity: 1;
    transform: translateY(0) rotate(-10deg) scale(1);
  }

  28% {
    opacity: 0;
    transform: translateY(2px) rotate(8deg) scale(0.92);
  }
}

@keyframes mappiSplashBlink {
  0%,
  13%,
  17%,
  100% {
    opacity: 0;
  }

  14%,
  15.5% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-wake-globe,
  .map-wake-mappi,
  .map-wake-mappi::before,
  .map-wake-mappi::after,
  .map-wake-symbol,
  .map-wake-line::before,
  .map-wake-card li {
    animation: none !important;
  }

  .map-wake-card li {
    opacity: 1;
  }
}

/* Memory tab refresh: calmer journal flow, title first, fewer noisy chips. */
.memory-database-page .section-heading h2 {
  letter-spacing: 0;
}

.memory-database-page .section-heading p {
  max-width: 420px;
}

.memory-optional-fields {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(21, 59, 69, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.memory-optional-fields summary {
  cursor: pointer;
  color: #17304e;
  font-size: 0.82rem;
  font-weight: 900;
}

.memory-optional-fields[open] summary {
  margin-bottom: 4px;
}

.title-row-first {
  grid-template-columns: minmax(0, 1fr) 76px;
}

.title-row-first label:first-child input {
  min-height: 48px;
  font-size: 1rem;
  font-weight: 850;
}

.map-stage.memories-focus .memory-database-page {
  background:
    radial-gradient(circle at 14% 0%, rgba(69, 185, 142, 0.14), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(56, 156, 208, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(250, 249, 243, 0.98), rgba(235, 246, 239, 0.98)) !important;
}

.map-stage.memories-focus .panel-section,
.map-stage.memories-focus .tabs {
  background:
    linear-gradient(180deg, rgba(250, 249, 243, 0.98), rgba(250, 249, 243, 0.94));
}

.memory-journal-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  border-color: rgba(30, 120, 88, 0.14);
  background:
    radial-gradient(circle at 14% 0%, rgba(82, 189, 132, 0.16), transparent 42%),
    linear-gradient(180deg, #ffffff, #f6fbf3);
}

.memory-journal-header p {
  grid-column: 1 / -1;
}

.memory-journal-header .primary-button {
  min-height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f8a70, #2478ff);
  box-shadow: 0 12px 24px rgba(31, 138, 112, 0.18);
}

.memory-journal-list {
  gap: 12px;
}

.memory-journal-card {
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 14px;
  border-color: rgba(21, 59, 69, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 250, 243, 0.98));
  box-shadow: 0 14px 34px rgba(22, 54, 48, 0.08);
}

.memory-journal-card .card-media-wrap {
  width: 76px;
  min-height: 76px;
}

.memory-journal-card .card-art {
  min-height: 76px;
}

.memory-journal-card .card-copy {
  gap: 10px;
}

.memory-journal-card .card-copy-head {
  align-items: flex-start;
}

.memory-journal-card .card-title-block strong {
  color: #142135;
  font-size: 1.08rem;
  line-height: 1.12;
}

.memory-journal-card .card-title-block small {
  color: #65758a;
  font-size: 0.78rem;
}

.memory-journal-card .memory-card-note {
  display: -webkit-box;
  overflow: hidden;
  color: #33445c;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.memory-journal-card .memory-card-badges {
  margin-top: 2px;
}

.memory-journal-card .memory-card-badges span {
  color: #315c56;
  background: rgba(31, 138, 112, 0.09);
}

.memory-journal-card .memory-card-actions {
  flex: 0 0 auto;
}

.memory-journal-card .memory-card-action {
  background: rgba(31, 78, 121, 0.08);
}

.memory-journal-card .memory-card-action.danger {
  background: rgba(255, 89, 94, 0.1);
}

@media (max-width: 720px) {
  .memory-journal-header {
    grid-template-columns: 1fr;
  }

  .memory-journal-header .primary-button {
    width: 100%;
  }

  .memory-journal-card {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 12px;
  }

  .memory-journal-card .card-media-wrap,
  .memory-journal-card .card-art {
    width: 58px;
    min-height: 58px;
  }

  .memory-journal-card .card-copy-head {
    display: grid;
  }

  .memory-journal-card .memory-card-actions {
    justify-content: flex-start;
  }
}

/* Premium motion polish: every surface should arrive softly, never pop. */
:root {
  --mappi-ease: cubic-bezier(0.16, 1, 0.28, 1);
  --mappi-spring: cubic-bezier(0.16, 1.16, 0.28, 1);
}

button,
.memory-card,
.notification-card,
.pin-search-result,
.category-swatch,
.memory-card-action,
.text-button,
.primary-button,
.icon-button {
  transition:
    transform 220ms var(--mappi-ease),
    opacity 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

button:active,
.memory-card:active,
.pin-search-result:active,
.notification-card:active {
  transform: translateY(1px) scale(0.985);
}

.category-rail.open,
.account-menu.open,
.notification-hub.open,
.pin-search-panel.open {
  animation: softPanelIn 360ms var(--mappi-spring) both;
}

.category-rail.open .category-button,
.account-menu.open .account-menu-item,
.notification-hub.open .notification-card,
.pin-search-panel.open .pin-search-result {
  animation: softItemIn 440ms var(--mappi-spring) both;
}

.category-rail.open .category-button:nth-child(2),
.account-menu.open .account-menu-item:nth-child(2),
.notification-hub.open .notification-card:nth-child(2),
.pin-search-panel.open .pin-search-result:nth-child(2) {
  animation-delay: 45ms;
}

.category-rail.open .category-button:nth-child(3),
.account-menu.open .account-menu-item:nth-child(3),
.notification-hub.open .notification-card:nth-child(3),
.pin-search-panel.open .pin-search-result:nth-child(3) {
  animation-delay: 90ms;
}

.category-rail.open .category-button:nth-child(4),
.account-menu.open .account-menu-item:nth-child(4),
.notification-hub.open .notification-card:nth-child(4),
.pin-search-panel.open .pin-search-result:nth-child(4) {
  animation-delay: 135ms;
}

.category-rail.open .category-button:nth-child(n + 5),
.account-menu.open .account-menu-item:nth-child(n + 5),
.notification-hub.open .notification-card:nth-child(n + 5),
.pin-search-panel.open .pin-search-result:nth-child(n + 5) {
  animation-delay: 180ms;
}

.memory-editor.open {
  animation: softSheetIn 380ms var(--mappi-spring) both;
}

.memory-bottom-sheet.open {
  animation: softBottomCardIn 420ms var(--mappi-spring) both;
}

.memory-bottom-sheet.closing {
  animation: softBottomCardOut 220ms ease both;
}

.location-banner:not([hidden]),
.you-are-here-message:not([hidden]) {
  animation: softToastIn 360ms var(--mappi-spring) both;
}

.map-stage.map-focus .map-coordinates,
.map-stage.map-focus .map-layer-controls,
.map-stage.map-focus .directions-panel,
.map-stage.map-focus .bottom-nav {
  animation: softFloatIn 460ms var(--mappi-spring) both;
}

.map-stage.home-focus .hero-copy > *,
.map-stage.home-focus .home-action,
.map-stage.home-focus .spotlight-card,
.map-stage.home-focus .memory-stat,
.map-stage.memories-focus .memory-card.rich,
.map-stage.memories-focus .pin-database-header {
  animation: softContentIn 520ms var(--mappi-spring) both;
}

.map-stage.home-focus .hero-copy > *:nth-child(2),
.map-stage.home-focus .home-action:nth-child(2),
.map-stage.home-focus .spotlight-card:nth-child(2),
.map-stage.home-focus .memory-stat:nth-child(2),
.map-stage.memories-focus .memory-card.rich:nth-child(2) {
  animation-delay: 70ms;
}

.map-stage.home-focus .hero-copy > *:nth-child(3),
.map-stage.home-focus .home-action:nth-child(3),
.map-stage.home-focus .spotlight-card:nth-child(3),
.map-stage.home-focus .memory-stat:nth-child(3),
.map-stage.memories-focus .memory-card.rich:nth-child(3) {
  animation-delay: 140ms;
}

.map-stage.home-focus .hero-copy > *:nth-child(n + 4),
.map-stage.home-focus .home-action:nth-child(n + 4),
.map-stage.home-focus .spotlight-card:nth-child(n + 4),
.map-stage.home-focus .memory-stat:nth-child(n + 4),
.map-stage.memories-focus .memory-card.rich:nth-child(n + 4) {
  animation-delay: 210ms;
}

@keyframes softPanelIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.965);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes softItemIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softSheetIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(28px) scale(0.975);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes softBottomCardIn {
  from {
    opacity: 0;
    transform: translateX(50%) translateY(26px) scale(0.975);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateX(50%) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes softBottomCardOut {
  from {
    opacity: 1;
    transform: translateX(50%) translateY(0) scale(1);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateX(50%) translateY(18px) scale(0.98);
    filter: blur(7px);
  }
}

@keyframes softToastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softFloatIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softContentIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Home page refresh: memory-first dashboard */
.map-stage.home-focus .hero-copy {
  top: 72px !important;
  z-index: 38 !important;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.home-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fffdf8;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.home-brand-title span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(9, 22, 41, 0.48);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.map-stage.home-focus .hero-copy .mappi-greeting {
  align-items: center;
  margin: 2px 0 0;
  padding: 10px 16px 10px 10px;
  border-radius: 24px;
}

.home-greeting-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.home-greeting-copy > span {
  color: rgba(246, 250, 255, 0.78);
  font-size: clamp(0.88rem, 2vw, 1.02rem);
  font-weight: 850;
  line-height: 1;
}

.home-greeting-copy > strong {
  color: #fffdf8;
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.map-stage.home-focus .hero-copy h2 {
  margin: 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(1.35rem, 3.8vw, 2.65rem);
  font-weight: 850;
  line-height: 1.05;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  white-space: normal;
}

.map-stage.home-focus .home-memory-pulse {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: min(680px, calc(100vw - 32px));
}

.map-stage.home-focus .home-memory-pulse span {
  display: grid;
  min-width: 132px;
  min-height: 58px;
  place-items: center;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: rgba(246, 250, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  background: rgba(9, 22, 41, 0.5);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.map-stage.home-focus .home-memory-pulse strong {
  display: block;
  color: #fffdf8;
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 1;
  text-transform: none;
}

.home-dashboard {
  top: clamp(390px, 49vh, 500px) !important;
  bottom: 104px;
  display: none;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px;
  width: min(1180px, calc(100vw - 24px));
  padding: 0 0 10px;
}

.map-stage.home-focus .home-dashboard {
  display: grid;
}

.home-spotlight-hero {
  grid-column: 1 !important;
  justify-self: center;
  width: min(1180px, calc(100vw - 24px));
  min-height: clamp(360px, 52vh, 570px);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.42);
}

.spotlight-overlay {
  max-width: 620px;
  padding: clamp(22px, 4vw, 38px);
}

.spotlight-overlay h3 {
  font-size: clamp(2rem, 5vw, 3.9rem);
}

.spotlight-overlay small {
  margin-top: 8px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.93rem;
  font-weight: 850;
}

.home-action-section {
  padding: clamp(14px, 2.4vw, 22px);
}

.home-quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.home-action-card {
  align-content: center;
  min-height: clamp(150px, 16vw, 205px);
  gap: 16px;
  border-radius: 28px;
  color: #1f4e79;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(246, 250, 255, 0.9)),
    radial-gradient(circle at 70% 18%, rgba(36, 120, 255, 0.12), transparent 34%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.home-action-card:hover {
  border-color: rgba(36, 120, 255, 0.28);
  box-shadow: 0 28px 72px rgba(14, 40, 72, 0.22);
  transform: translateY(-3px);
}

.home-action-card span {
  width: clamp(58px, 7vw, 76px);
  height: clamp(58px, 7vw, 76px);
  border-radius: 24px;
  color: #2478ff;
  background: linear-gradient(135deg, rgba(36, 120, 255, 0.16), rgba(33, 197, 122, 0.1));
}

.home-action-card span svg {
  width: clamp(30px, 3.5vw, 38px);
  height: clamp(30px, 3.5vw, 38px);
}

.home-action-card strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  letter-spacing: 0;
}

.home-action-card.primary {
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(135deg, #1f4e79 0%, #2478ff 48%, #ff6b6b 100%);
  box-shadow: 0 26px 74px rgba(36, 120, 255, 0.28);
}

.home-action-card.primary span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08);
}

.home-section {
  gap: 13px;
  border-radius: 22px;
}

.home-section-heading span {
  color: #ff6b6b;
}

.home-section-heading strong {
  max-width: 55%;
}

.home-feeling-card {
  order: 4;
}

#homeJourney {
  order: 5;
}

#homeTimelineStrip {
  order: 6;
}

.on-this-day-card,
.journey-card {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.home-timeline-card {
  min-width: 140px;
}

@media (max-width: 720px) {
  .map-stage.home-focus .hero-copy {
    top: 76px !important;
    width: min(100% - 24px, 560px);
  }

  .home-brand-title {
    font-size: clamp(1.28rem, 6vw, 1.7rem);
  }

  .home-brand-title span {
    width: 36px;
    height: 36px;
  }

  .map-stage.home-focus .hero-copy h2 {
    font-size: clamp(1.1rem, 5vw, 1.55rem);
  }

  .map-stage.home-focus .home-memory-pulse {
    gap: 8px;
  }

  .map-stage.home-focus .home-memory-pulse span {
    min-width: 96px;
    min-height: 50px;
    padding: 8px 10px;
  }

  .map-stage.home-focus .home-memory-pulse strong {
    font-size: 1.05rem;
  }

  .home-dashboard {
    top: 365px !important;
    right: 12px;
    left: 12px;
    width: calc(100vw - 24px);
  }

  .home-spotlight-hero {
    width: calc(100vw - 24px);
    min-height: 360px;
    border-radius: 16px;
  }

  .home-quick-actions {
    grid-template-columns: 1fr;
  }

  .on-this-day-card,
  .journey-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .on-this-day-card small {
    grid-column: 2;
  }
}

/* Daily spotlight: one large, photo-first memory. */
.map-stage.home-focus .home-dashboard {
  top: clamp(380px, 47vh, 480px) !important;
  width: min(1240px, calc(100vw - 20px));
}

.map-stage.home-focus .home-spotlight-hero {
  width: min(1240px, calc(100vw - 20px));
  min-height: clamp(430px, 62vh, 690px);
  overflow: hidden;
  border-radius: 24px;
  background: #142135;
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.16);
}

.map-stage.home-focus .spotlight-visual {
  background:
    linear-gradient(90deg, rgba(5, 12, 26, 0.82) 0%, rgba(5, 12, 26, 0.28) 46%, rgba(5, 12, 26, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 12, 26, 0.04) 0%, rgba(5, 12, 26, 0.72) 100%),
    var(--spotlight-image, radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.3), transparent 17%)),
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--spotlight-accent, #ff6b6b) 72%, white), transparent 28%),
    linear-gradient(135deg, #1f4e79 0%, #1b8fd8 44%, #ff6b6b 100%);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.map-stage.home-focus .spotlight-visual::after {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 18%),
    radial-gradient(circle at 32% 88%, rgba(255, 200, 87, 0.2), transparent 30%),
    linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.34));
}

.map-stage.home-focus .spotlight-overlay {
  max-width: min(680px, 78vw);
  justify-content: flex-end;
  padding: clamp(28px, 5.2vw, 64px);
}

.map-stage.home-focus .spotlight-overlay .home-kicker {
  width: max-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.92);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.map-stage.home-focus .spotlight-overlay h3 {
  max-width: 720px;
  margin-top: 16px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.92;
}

.map-stage.home-focus .spotlight-overlay small {
  margin-top: 14px;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
}

.map-stage.home-focus .spotlight-overlay p {
  max-width: 600px;
  margin-top: 18px;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(1.18rem, 2.4vw, 1.72rem);
  line-height: 1.42;
}

.map-stage.home-focus .spotlight-actions {
  margin-top: 28px;
}

.map-stage.home-focus .spotlight-button {
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  color: #102d4f;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.map-stage.home-focus .spotlight-orb {
  right: clamp(22px, 7vw, 118px);
  bottom: clamp(22px, 5vw, 72px);
  width: clamp(76px, 12vw, 140px);
  height: clamp(76px, 12vw, 140px);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  opacity: 0.92;
}

@media (max-width: 720px) {
  .map-stage.home-focus .home-dashboard {
    top: 350px !important;
    width: calc(100vw - 20px);
  }

  .map-stage.home-focus .home-spotlight-hero {
    width: calc(100vw - 20px);
    min-height: 440px;
    border-radius: 20px;
  }

  .map-stage.home-focus .spotlight-overlay {
    max-width: none;
    padding: 24px;
  }

  .map-stage.home-focus .spotlight-overlay h3 {
    font-size: clamp(2.35rem, 13vw, 3.65rem);
  }

  .map-stage.home-focus .spotlight-orb {
    top: 22px;
    right: 22px;
    bottom: auto;
    width: 72px;
    height: 72px;
    font-size: 2.2rem;
  }
}

/* Home rhythm: let one section lead, then let the smaller moments breathe. */
.map-stage.home-focus .home-dashboard {
  gap: clamp(18px, 3vw, 38px);
}

.map-stage.home-focus .home-action-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.map-stage.home-focus .home-section:not(.home-action-section) {
  justify-self: center;
  width: min(900px, 100%);
  padding: clamp(16px, 2vw, 24px);
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(246, 250, 255, 0.76)),
    radial-gradient(circle at 92% 6%, rgba(255, 200, 87, 0.1), transparent 32%);
  box-shadow: 0 18px 52px rgba(5, 12, 26, 0.16);
}

.map-stage.home-focus .home-section-heading {
  align-items: center;
}

.map-stage.home-focus .home-section-heading span {
  color: rgba(255, 107, 107, 0.9);
  font-size: 0.7rem;
}

.map-stage.home-focus .home-section-heading strong {
  max-width: 60%;
  color: rgba(18, 55, 92, 0.82);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
}

.map-stage.home-focus #homeOnThisDay,
.map-stage.home-focus .home-feeling-card,
.map-stage.home-focus #homeTimelineStrip {
  width: min(780px, 100%);
}

.map-stage.home-focus #homeOnThisDay {
  padding: 14px;
  border-radius: 18px;
}

.map-stage.home-focus .on-this-day-card {
  padding: 10px 12px;
  background: rgba(31, 78, 121, 0.045);
}

.map-stage.home-focus .on-this-day-card > span:first-child {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 1.35rem;
}

.map-stage.home-focus .home-feeling-card {
  padding: 16px;
}

.map-stage.home-focus .feeling-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.map-stage.home-focus .feeling-row button {
  min-height: 46px;
  background: rgba(31, 78, 121, 0.045);
}

.map-stage.home-focus #homeJourney {
  width: min(980px, 100%);
  padding: clamp(20px, 3vw, 30px);
}

.map-stage.home-focus .journey-card {
  min-height: 104px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(31, 78, 121, 0.08), rgba(255, 200, 87, 0.08)),
    rgba(255, 255, 255, 0.42);
}

.map-stage.home-focus #homeTimelineStrip {
  padding: 16px;
  box-shadow: 0 14px 40px rgba(5, 12, 26, 0.12);
}

.map-stage.home-focus .home-timeline-card {
  min-width: 132px;
  background: rgba(31, 78, 121, 0.045);
}

@media (max-width: 720px) {
  .map-stage.home-focus .home-dashboard {
    gap: 18px;
  }

  .map-stage.home-focus .home-section:not(.home-action-section),
  .map-stage.home-focus #homeOnThisDay,
  .map-stage.home-focus .home-feeling-card,
  .map-stage.home-focus #homeJourney,
  .map-stage.home-focus #homeTimelineStrip {
    width: 100%;
  }

  .map-stage.home-focus .feeling-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Premium whitespace: give the homepage room to breathe. */
.map-stage.home-focus .home-dashboard {
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(56px, 10vh, 120px);
}

.map-stage.home-focus .home-spotlight-hero {
  margin-bottom: clamp(2px, 1vw, 10px);
}

.map-stage.home-focus .home-action-section {
  margin-bottom: clamp(6px, 2.4vw, 28px);
}

.map-stage.home-focus .home-quick-actions {
  gap: clamp(18px, 3vw, 32px);
}

.map-stage.home-focus .home-action-card {
  min-height: clamp(168px, 17vw, 220px);
  padding: clamp(22px, 3vw, 34px);
}

.map-stage.home-focus .home-section:not(.home-action-section) {
  margin-block: clamp(2px, 1.1vw, 14px);
}

.map-stage.home-focus #homeJourney {
  margin-block: clamp(12px, 2.6vw, 34px);
}

.map-stage.home-focus .home-section-heading {
  margin-bottom: 4px;
}

.map-stage.home-focus .on-this-day-card,
.map-stage.home-focus .journey-card {
  margin-top: 6px;
}

.map-stage.home-focus .home-timeline-row,
.map-stage.home-focus .feeling-row {
  margin-top: 6px;
}

@media (max-width: 720px) {
  .map-stage.home-focus .home-dashboard {
    gap: 28px;
    padding-bottom: 96px;
  }

  .map-stage.home-focus .home-action-card {
    min-height: 138px;
    padding: 22px;
  }

  .map-stage.home-focus .home-section:not(.home-action-section) {
    margin-block: 0;
  }
}

/* Curated card layouts: each home section gets its own shape. */
.map-stage.home-focus .memory-of-day-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  justify-self: center;
  width: min(1040px, 100%);
  min-height: clamp(310px, 36vh, 430px);
  margin-block: clamp(4px, 1.6vw, 20px);
  overflow: hidden;
  padding: 0 !important;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(244, 249, 255, 0.84)),
    radial-gradient(circle at 12% 16%, rgba(255, 107, 107, 0.14), transparent 34%);
  box-shadow: 0 24px 70px rgba(5, 12, 26, 0.2);
}

.map-stage.home-focus .memory-of-day-card .memory-day-media {
  min-height: clamp(310px, 36vh, 430px);
}

.map-stage.home-focus .memory-of-day-card .memory-day-copy {
  align-content: center;
  gap: 12px;
  padding: clamp(24px, 3.5vw, 40px);
}

.map-stage.home-focus .memory-of-day-card h3 {
  font-size: clamp(2.1rem, 4.2vw, 3.45rem);
  line-height: 1;
}

.map-stage.home-focus .memory-of-day-card p {
  max-width: 540px;
}

.map-stage.home-focus .memory-of-day-card .home-memory-link {
  margin-top: 4px;
}

.map-stage.home-focus #homeOnThisDay {
  border-radius: 999px;
}

.map-stage.home-focus #homeOnThisDay .home-section-heading {
  padding-inline: 8px;
}

.map-stage.home-focus .on-this-day-card {
  border-radius: 999px;
}

.map-stage.home-focus .home-feeling-card {
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(255, 253, 248, 0.66)),
    radial-gradient(circle at 0% 100%, rgba(255, 200, 87, 0.16), transparent 34%);
}

.map-stage.home-focus #homeJourney {
  border-radius: 34px;
}

.map-stage.home-focus #homeTimelineStrip {
  border-radius: 22px;
}

@media (max-width: 720px) {
  .map-stage.home-focus .memory-of-day-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 24px;
  }

  .map-stage.home-focus .memory-of-day-card .memory-day-media {
    min-height: 190px;
  }

  .map-stage.home-focus #homeOnThisDay,
  .map-stage.home-focus .on-this-day-card {
    border-radius: 22px;
  }
}

/* Tighter hero header: keep the greeting, tagline, and stats together. */
.map-stage.home-focus .hero-copy {
  gap: 7px;
}

.map-stage.home-focus .hero-copy .mappi-greeting {
  margin-bottom: 0;
}

.map-stage.home-focus .hero-copy h2 {
  margin-top: -1px;
  margin-bottom: -2px;
}

.map-stage.home-focus .home-memory-pulse {
  margin-top: 0;
}

@media (max-width: 720px) {
  .map-stage.home-focus .hero-copy {
    gap: 6px;
  }
}

/* Bring the Memory Spotlight closer to the header. */
.map-stage.home-focus .home-dashboard {
  top: clamp(264px, 33vh, 336px) !important;
}

@media (max-width: 720px) {
  .map-stage.home-focus .home-dashboard {
    top: 255px !important;
  }
}

/* Slimmer greeting chip. */
.map-stage.home-focus .hero-copy .mappi-greeting {
  gap: 8px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
}

.map-stage.home-focus .mappi-greeting img {
  width: 26px;
  height: 26px;
  border-width: 1px;
}

.map-stage.home-focus .home-greeting-copy {
  gap: 1px;
}

.map-stage.home-focus .home-greeting-copy > span {
  font-size: clamp(0.68rem, 1.4vw, 0.8rem);
  font-weight: 760;
}

.map-stage.home-focus .home-greeting-copy > strong {
  font-size: clamp(0.95rem, 2.2vw, 1.28rem);
  font-weight: 820;
}

@media (max-width: 720px) {
  .map-stage.home-focus .mappi-greeting img {
    width: 24px;
    height: 24px;
  }

  .map-stage.home-focus .home-greeting-copy > strong {
    font-size: 1rem;
  }
}

/* New home atmosphere: cinematic memory sky with warmer, more branded color. */
.map-stage.home-focus {
  background:
    linear-gradient(145deg, rgba(3, 9, 24, 0.98) 0%, rgba(10, 29, 45, 0.98) 42%, rgba(33, 22, 46, 0.98) 100%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 68px);
}

.map-stage.home-focus::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(124, 225, 255, 0.58) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 209, 120, 0.42) 0 1px, transparent 1.8px);
  background-position:
    18px 28px,
    82px 64px,
    132px 18px;
  background-size:
    142px 142px,
    214px 214px,
    288px 288px;
  opacity: 0.58;
}

.map-stage.home-focus::after {
  background:
    linear-gradient(180deg, rgba(3, 9, 24, 0.08) 0%, transparent 28%, rgba(3, 9, 24, 0.68) 100%),
    linear-gradient(90deg, rgba(3, 9, 24, 0.38) 0%, transparent 28%, transparent 72%, rgba(3, 9, 24, 0.42) 100%);
}

.map-stage.home-focus .home-background::before {
  background:
    linear-gradient(116deg, transparent 0 11%, rgba(41, 212, 187, 0.18) 19%, transparent 34%),
    linear-gradient(64deg, transparent 0 20%, rgba(255, 107, 107, 0.14) 31%, transparent 48%),
    linear-gradient(154deg, transparent 0 36%, rgba(255, 200, 87, 0.11) 48%, transparent 64%),
    repeating-linear-gradient(90deg, rgba(180, 232, 255, 0.055) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(180, 232, 255, 0.04) 0 1px, transparent 1px 86px);
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 86%, transparent 100%);
  opacity: 0.9;
  animation: homeAuroraSlide 18s ease-in-out infinite alternate;
}

.map-stage.home-focus .home-background::after {
  background:
    linear-gradient(22deg, transparent 0 28%, rgba(116, 235, 220, 0.16) 39%, transparent 52%),
    linear-gradient(336deg, transparent 0 34%, rgba(255, 138, 105, 0.12) 47%, transparent 61%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 42px);
  opacity: 0.72;
  animation: homeAuroraSlide 24s ease-in-out infinite alternate-reverse;
}

.map-stage.home-focus .home-route-field {
  inset: 4% -8% 2%;
  width: 116%;
  height: 92%;
  opacity: 0.96;
  filter: drop-shadow(0 0 18px rgba(68, 209, 201, 0.34));
}

.map-stage.home-focus .memory-route {
  stroke-dasharray: 2 18;
  stroke-width: 5;
}

.map-stage.home-focus .route-one {
  stroke: rgba(111, 225, 255, 0.76);
}

.map-stage.home-focus .route-two {
  stroke: rgba(255, 111, 126, 0.66);
}

.map-stage.home-focus .route-three {
  stroke: rgba(255, 200, 87, 0.62);
}

.map-stage.home-focus .home-memory-pin {
  width: 52px;
  height: 52px;
  border-width: 2px;
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--pin-color, #477dff) 16%, transparent),
    0 0 28px color-mix(in srgb, var(--pin-color, #477dff) 32%, transparent),
    0 20px 38px rgba(0, 0, 0, 0.32);
}

.map-stage.home-focus .home-pin-one {
  --pin-color: #ff5f7a;
}

.map-stage.home-focus .home-pin-two {
  --pin-color: #41b7ff;
}

.map-stage.home-focus .home-pin-three {
  --pin-color: #26d09b;
}

.map-stage.home-focus .home-pin-four {
  --pin-color: #b385ff;
}

.map-stage.home-focus .home-pin-five {
  --pin-color: #ffc857;
}

.map-stage.home-focus .memory-sticker {
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.16), rgba(255, 253, 248, 0.045)),
    repeating-linear-gradient(135deg, rgba(124, 225, 255, 0.09) 0 7px, transparent 7px 19px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  opacity: 0.44;
}

.story-orbit,
.story-glow,
.story-postcard,
.living-map-field,
.scrapbook-memory {
  position: absolute;
  pointer-events: none;
}

.living-map-field {
  z-index: 0;
  inset: 0 -10% 3%;
  width: 120%;
  height: 96%;
  opacity: 1;
  transform: translate(
    calc(var(--home-shift-x) * -10px),
    calc(var(--home-shift-y) * -7px)
  );
}

.living-region {
  fill: rgba(255, 253, 248, 0.08);
  stroke: rgba(255, 253, 248, 0.24);
  stroke-width: 2.2;
}

.living-region-two {
  fill: rgba(65, 183, 255, 0.09);
  stroke: rgba(65, 183, 255, 0.26);
}

.living-contour {
  fill: none;
  stroke-linecap: round;
  stroke-width: 3.4;
  stroke-dasharray: 2 15;
  opacity: 0.95;
  animation: livingContourFlow 28s linear infinite;
  filter: drop-shadow(0 0 10px rgba(116, 235, 220, 0.16));
}

.contour-one {
  stroke: rgba(116, 235, 220, 0.72);
}

.contour-two {
  stroke: rgba(255, 200, 87, 0.56);
  animation-duration: 34s;
  animation-direction: reverse;
}

.contour-three {
  stroke: rgba(255, 107, 107, 0.58);
  animation-duration: 31s;
}

.contour-four {
  stroke: rgba(65, 183, 255, 0.52);
  animation-duration: 38s;
  animation-direction: reverse;
}

.story-orbit {
  z-index: 1;
  width: min(64vw, 820px);
  height: min(22vw, 260px);
  border: 1px solid rgba(124, 225, 255, 0.22);
  border-radius: 50%;
  opacity: 0.66;
  filter: drop-shadow(0 0 22px rgba(64, 196, 255, 0.18));
}

.story-orbit::before,
.story-orbit::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: #ffc857;
  box-shadow:
    0 0 0 8px rgba(255, 200, 87, 0.1),
    0 0 22px rgba(255, 200, 87, 0.56);
}

.story-orbit::before {
  top: 14%;
  left: 18%;
}

.story-orbit::after {
  right: 22%;
  bottom: 12%;
  background: #45d9d0;
  box-shadow:
    0 0 0 8px rgba(69, 217, 208, 0.1),
    0 0 22px rgba(69, 217, 208, 0.56);
}

.story-orbit-one {
  top: 18%;
  left: 50%;
  transform: translateX(-50%) rotate(-13deg);
  animation: storyOrbitFloat 16s ease-in-out infinite alternate;
}

.story-orbit-two {
  right: -12%;
  bottom: 22%;
  width: min(52vw, 680px);
  height: min(18vw, 220px);
  border-color: rgba(255, 107, 107, 0.2);
  transform: rotate(24deg);
  animation: storyOrbitFloat 21s ease-in-out infinite alternate-reverse;
}

.story-glow {
  z-index: 0;
  border-radius: 999px;
  opacity: 0.54;
  filter: blur(2px);
  mix-blend-mode: screen;
}

.story-glow-one {
  top: 9%;
  right: 7%;
  width: min(30vw, 360px);
  height: min(30vw, 360px);
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 200, 87, 0.26), transparent 28%),
    radial-gradient(circle, rgba(255, 107, 107, 0.18), transparent 66%);
  animation: storyGlowBreathe 8s ease-in-out infinite;
}

.story-glow-two {
  left: 7%;
  bottom: 14%;
  width: min(34vw, 430px);
  height: min(34vw, 430px);
  background:
    radial-gradient(circle at 44% 42%, rgba(69, 217, 208, 0.24), transparent 28%),
    radial-gradient(circle, rgba(65, 183, 255, 0.16), transparent 68%);
  animation: storyGlowBreathe 10s ease-in-out infinite reverse;
}

.story-postcard {
  z-index: 1;
  width: 142px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.14), rgba(255, 253, 248, 0.035)),
    linear-gradient(135deg, rgba(255, 107, 107, 0.18), rgba(65, 183, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 60px rgba(0, 0, 0, 0.2);
  opacity: 0.42;
}

.story-postcard::before {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 2px, transparent 3px),
    linear-gradient(135deg, #ffc857, #ff6b6b);
}

.story-postcard::after {
  position: absolute;
  bottom: 18px;
  left: 18px;
  width: 76px;
  height: 7px;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 -16px 0 rgba(255, 255, 255, 0.14),
    0 -32px 0 rgba(255, 255, 255, 0.1);
}

.story-postcard-one {
  top: 16%;
  left: 23%;
  transform: rotate(-10deg);
  animation: storyPostcardDrift 13s ease-in-out infinite alternate;
}

.story-postcard-two {
  right: 17%;
  bottom: 12%;
  transform: rotate(9deg);
  animation: storyPostcardDrift 16s ease-in-out infinite alternate-reverse;
}

.scrapbook-memory {
  z-index: 1;
  display: block;
  width: clamp(150px, 18vw, 240px);
  height: clamp(170px, 21vw, 285px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.16), rgba(255, 253, 248, 0.04)),
    radial-gradient(circle at 50% 34%, rgba(255, 200, 87, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(65, 183, 255, 0.14), rgba(255, 107, 107, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 26px 72px rgba(0, 0, 0, 0.2);
  opacity: 0.68;
  backdrop-filter: blur(5px);
}

.scrapbook-memory::before {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  height: 56%;
  border-radius: 18px;
  content: "";
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.55) 0 8%, transparent 9%),
    linear-gradient(145deg, rgba(116, 235, 220, 0.42), rgba(65, 183, 255, 0.2) 48%, rgba(255, 107, 107, 0.28));
}

.scrapbook-memory::after {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 -18px 0 rgba(255, 255, 255, 0.14),
    0 -36px 0 rgba(255, 255, 255, 0.1);
}

.scrapbook-memory-one {
  top: 20%;
  left: 3%;
  transform: rotate(-12deg);
  animation: scrapbookFloat 15s ease-in-out infinite alternate;
}

.scrapbook-memory-two {
  top: 22%;
  right: 3%;
  transform: rotate(11deg);
  animation: scrapbookFloat 18s ease-in-out infinite alternate-reverse;
}

.scrapbook-memory-three {
  right: 18%;
  bottom: 2%;
  transform: rotate(-7deg);
  animation: scrapbookFloat 20s ease-in-out infinite alternate;
}

@keyframes homeAuroraSlide {
  from {
    transform: translate(
      calc(var(--home-shift-x) * -12px - 10px),
      calc(var(--home-shift-y) * -8px)
    );
  }

  to {
    transform: translate(
      calc(var(--home-shift-x) * 10px + 10px),
      calc(var(--home-shift-y) * 9px)
    );
  }
}

@keyframes livingContourFlow {
  to {
    stroke-dashoffset: -260;
  }
}

@keyframes storyOrbitFloat {
  from {
    opacity: 0.48;
    translate: 0 0;
  }

  to {
    opacity: 0.76;
    translate: 0 -14px;
  }
}

@keyframes storyGlowBreathe {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.66;
    transform: scale(1.05);
  }
}

@keyframes storyPostcardDrift {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 -12px;
  }
}

@keyframes scrapbookFloat {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 -18px;
  }
}

/* Lower the hero greeting so it connects visually with Memory Spotlight. */
.map-stage.home-focus .hero-copy {
  top: clamp(108px, 14vh, 138px) !important;
}

@media (max-width: 720px) {
  .map-stage.home-focus .hero-copy {
    top: 96px !important;
  }
}

@media (max-width: 820px) {
  .story-orbit-two,
  .story-postcard-two,
  .scrapbook-memory-three {
    display: none;
  }

  .story-postcard {
    width: 112px;
    height: 78px;
  }

  .scrapbook-memory {
    opacity: 0.22;
  }
}

/* Smooth home background: remove the star/speckle texture. */
.map-stage.home-focus::before {
  background:
    radial-gradient(ellipse at 20% 18%, rgba(65, 183, 255, 0.16), transparent 42%),
    radial-gradient(ellipse at 84% 22%, rgba(255, 107, 107, 0.13), transparent 38%),
    radial-gradient(ellipse at 50% 92%, rgba(255, 200, 87, 0.1), transparent 48%) !important;
  background-image: none !important;
  opacity: 0.95;
}

.map-stage.home-focus {
  background:
    radial-gradient(ellipse at 18% 12%, rgba(65, 183, 255, 0.34), transparent 34%),
    radial-gradient(ellipse at 82% 16%, rgba(255, 107, 107, 0.26), transparent 36%),
    radial-gradient(ellipse at 50% 96%, rgba(38, 208, 155, 0.2), transparent 44%),
    linear-gradient(145deg, #020a19 0%, #09243c 44%, #2b1636 100%);
}

.map-stage.home-focus .home-background::before {
  background:
    linear-gradient(116deg, transparent 0 11%, rgba(41, 212, 187, 0.18) 19%, transparent 34%),
    linear-gradient(64deg, transparent 0 20%, rgba(255, 107, 107, 0.14) 31%, transparent 48%),
    linear-gradient(154deg, transparent 0 36%, rgba(255, 200, 87, 0.11) 48%, transparent 64%) !important;
}

.map-stage.home-focus .home-background::after {
  background:
    linear-gradient(22deg, transparent 0 28%, rgba(116, 235, 220, 0.16) 39%, transparent 52%),
    linear-gradient(336deg, transparent 0 34%, rgba(255, 138, 105, 0.12) 47%, transparent 61%) !important;
}

/* Clean home reset: calm, premium, memory-first. */
.map-stage.home-focus {
  background:
    radial-gradient(ellipse at 22% 18%, rgba(60, 180, 255, 0.24), transparent 42%),
    radial-gradient(ellipse at 74% 24%, rgba(72, 210, 132, 0.26), transparent 40%),
    radial-gradient(ellipse at 50% 92%, rgba(92, 180, 100, 0.18), transparent 42%),
    linear-gradient(180deg, #071f2e 0%, #0b3a4a 48%, #123d33 100%);
}

.map-stage.home-focus::before {
  background:
    linear-gradient(135deg, rgba(112, 218, 255, 0.12), transparent 30%),
    linear-gradient(225deg, rgba(78, 216, 137, 0.13), transparent 34%) !important;
  background-image: none !important;
  opacity: 0.82;
}

.map-stage.home-focus .home-background::before,
.map-stage.home-focus .home-background::after {
  opacity: 0.4;
}

.map-stage.home-focus .story-orbit,
.map-stage.home-focus .story-postcard,
.map-stage.home-focus .scrapbook-memory,
.map-stage.home-focus .memory-sticker {
  display: none !important;
}

.map-stage.home-focus .living-map-field {
  opacity: 0.34;
  filter: blur(0.2px);
}

.map-stage.home-focus .living-region {
  fill: rgba(75, 214, 137, 0.045);
  stroke: rgba(174, 240, 209, 0.12);
}

.map-stage.home-focus .living-contour {
  stroke-width: 1.6;
  opacity: 0.34;
  filter: none;
}

.map-stage.home-focus .home-route-field {
  opacity: 0.34;
  filter: none;
}

.map-stage.home-focus .memory-route {
  stroke-width: 2.2;
  stroke-dasharray: 1 20;
}

.map-stage.home-focus .home-memory-pin {
  width: 38px;
  height: 38px;
  opacity: 0.42;
  border-width: 2px;
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--pin-color, #477dff) 10%, transparent),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.map-stage.home-focus .route-one {
  stroke: rgba(112, 218, 255, 0.5);
}

.map-stage.home-focus .route-two {
  stroke: rgba(68, 215, 153, 0.46);
}

.map-stage.home-focus .route-three {
  stroke: rgba(161, 236, 124, 0.4);
}

.map-stage.home-focus .home-pin-one {
  --pin-color: #3bd689;
}

.map-stage.home-focus .home-pin-two {
  --pin-color: #49c1ff;
}

.map-stage.home-focus .home-pin-three {
  --pin-color: #21c57a;
}

.map-stage.home-focus .home-pin-four {
  --pin-color: #2ca7ff;
}

.map-stage.home-focus .home-pin-five {
  --pin-color: #9cec7c;
}

.map-stage.home-focus .home-memory-pin span {
  font-size: 0.9rem;
}

.map-stage.home-focus .hero-copy {
  top: clamp(92px, 12vh, 118px) !important;
}

.map-stage.home-focus .hero-copy h2 {
  font-size: clamp(1.95rem, 5.2vw, 3.7rem);
  font-weight: 900;
}

.map-stage.home-focus .home-dashboard {
  top: clamp(270px, 34vh, 360px) !important;
  gap: clamp(26px, 4vw, 54px);
}

.map-stage.home-focus .memory-of-day-card {
  width: min(980px, 100%);
  min-height: clamp(280px, 32vh, 380px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(235, 250, 244, 0.86)),
    radial-gradient(circle at 85% 18%, rgba(73, 193, 255, 0.18), transparent 34%),
    radial-gradient(circle at 15% 88%, rgba(59, 214, 137, 0.14), transparent 34%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.map-stage.home-focus .memory-of-day-card .memory-day-media {
  min-height: clamp(280px, 32vh, 380px);
}

.map-stage.home-focus .home-action-card {
  min-height: clamp(132px, 14vw, 176px);
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(4, 18, 34, 0.18);
}

.map-stage.home-focus .home-section:not(.home-action-section) {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(237, 250, 244, 0.72));
  box-shadow: 0 18px 50px rgba(4, 18, 34, 0.14);
}

/* Earth-color section accents. */
.map-stage.home-focus .home-action-card {
  color: #0b4b63;
  background:
    linear-gradient(180deg, rgba(245, 255, 250, 0.96), rgba(226, 247, 241, 0.88)),
    radial-gradient(circle at 70% 18%, rgba(73, 193, 255, 0.16), transparent 34%);
}

.map-stage.home-focus .home-action-card span {
  color: #0b7a75;
  background: linear-gradient(135deg, rgba(73, 193, 255, 0.18), rgba(59, 214, 137, 0.16));
}

.map-stage.home-focus .home-action-card.primary {
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #0b6d85 0%, #19a87c 54%, #8adf63 100%);
  box-shadow: 0 26px 74px rgba(25, 168, 124, 0.24);
}

.map-stage.home-focus #homeOnThisDay {
  background:
    linear-gradient(135deg, rgba(232, 249, 255, 0.9), rgba(236, 255, 242, 0.74)),
    radial-gradient(circle at 8% 40%, rgba(73, 193, 255, 0.14), transparent 30%);
}

.map-stage.home-focus .home-feeling-card {
  background:
    linear-gradient(135deg, rgba(236, 255, 242, 0.9), rgba(241, 252, 255, 0.72)),
    radial-gradient(circle at 92% 18%, rgba(59, 214, 137, 0.14), transparent 32%);
}

.map-stage.home-focus #homeJourney {
  background:
    linear-gradient(135deg, rgba(230, 249, 255, 0.9), rgba(232, 255, 240, 0.76)),
    radial-gradient(circle at 12% 12%, rgba(73, 193, 255, 0.18), transparent 32%),
    radial-gradient(circle at 88% 86%, rgba(59, 214, 137, 0.16), transparent 34%);
}

.map-stage.home-focus #homeTimelineStrip {
  background:
    linear-gradient(135deg, rgba(245, 255, 250, 0.88), rgba(228, 244, 255, 0.74)),
    radial-gradient(circle at 50% 0%, rgba(156, 236, 124, 0.13), transparent 34%);
}

.map-stage.home-focus .home-section-heading span {
  color: #12856f;
}

.map-stage.home-focus .home-section-heading strong,
.map-stage.home-focus .memory-day-copy h3,
.map-stage.home-focus .home-timeline-card strong {
  color: #0f4863;
}

.map-stage.home-focus .on-this-day-card,
.map-stage.home-focus .journey-card,
.map-stage.home-focus .home-timeline-card,
.map-stage.home-focus .feeling-row button {
  color: #0f5263;
  background: rgba(18, 133, 111, 0.07);
}

.map-stage.home-focus .feeling-row button.active {
  background: linear-gradient(135deg, #0b6d85, #19a87c);
}

@media (max-width: 720px) {
  .map-stage.home-focus .hero-copy {
    top: 88px !important;
  }

  .map-stage.home-focus .home-dashboard {
    top: 300px !important;
  }

  .map-stage.home-focus .memory-of-day-card {
    min-height: 0;
  }
}

@keyframes mappiMascotIdle {
  0%,
  9%,
  18%,
  44%,
  100% {
    transform: translateY(0) scaleY(1);
    filter: brightness(1);
  }

  5% {
    transform: translateY(-2px) scaleY(1.015);
    filter: brightness(1.03);
  }

  12% {
    transform: translateY(0) scaleY(0.92);
    filter: brightness(0.98);
  }

  14% {
    transform: translateY(0) scaleY(1);
    filter: brightness(1.02);
  }

  38% {
    transform: translateY(-1px) scale(1.015);
  }
}

@keyframes mappiMascotWave {
  0%,
  14%,
  100% {
    opacity: 0;
    transform: translateY(4px) rotate(0deg) scale(0.88);
  }

  4% {
    opacity: 1;
    transform: translateY(0) rotate(-16deg) scale(1);
  }

  7% {
    opacity: 1;
    transform: translateY(0) rotate(18deg) scale(1.04);
  }

  10% {
    opacity: 1;
    transform: translateY(0) rotate(-10deg) scale(1);
  }
}

/* Final earth-only home background: remove the remaining blue/purple/pink cast. */
.map-stage.home-focus {
  background:
    radial-gradient(ellipse at 22% 16%, rgba(64, 178, 235, 0.28), transparent 42%),
    radial-gradient(ellipse at 74% 22%, rgba(70, 205, 132, 0.3), transparent 42%),
    radial-gradient(ellipse at 48% 92%, rgba(95, 175, 92, 0.2), transparent 46%),
    linear-gradient(180deg, #071f2e 0%, #0b3d4a 48%, #123f34 100%) !important;
}

.map-stage.home-focus::before {
  background:
    linear-gradient(135deg, rgba(94, 206, 235, 0.12), transparent 34%),
    linear-gradient(225deg, rgba(78, 216, 137, 0.14), transparent 38%) !important;
  background-image: none !important;
}

.map-stage.home-focus::after {
  background:
    linear-gradient(180deg, rgba(7, 31, 46, 0.04) 0%, transparent 30%, rgba(7, 31, 46, 0.42) 100%),
    linear-gradient(90deg, rgba(7, 31, 46, 0.28) 0%, transparent 32%, transparent 72%, rgba(18, 63, 52, 0.28) 100%) !important;
}

.map-stage.home-focus .home-background {
  display: block !important;
}

.map-stage.home-focus .home-background::before {
  background:
    linear-gradient(116deg, transparent 0 11%, rgba(56, 196, 178, 0.16) 19%, transparent 34%),
    linear-gradient(64deg, transparent 0 20%, rgba(84, 206, 126, 0.12) 31%, transparent 48%),
    linear-gradient(154deg, transparent 0 36%, rgba(82, 181, 255, 0.1) 48%, transparent 64%) !important;
}

.map-stage.home-focus .home-background::after {
  background:
    linear-gradient(22deg, transparent 0 28%, rgba(116, 235, 220, 0.14) 39%, transparent 52%),
    linear-gradient(336deg, transparent 0 34%, rgba(93, 202, 118, 0.12) 47%, transparent 61%) !important;
}

/* Final home direction: Apple Photos meets travel journal. */
.map-stage.home-focus .hero-copy {
  top: clamp(111px, 13.9vh, 136px) !important;
  gap: 13px;
}

.map-stage.home-focus .hero-copy h2 {
  max-width: min(820px, calc(100vw - 34px));
  color: #f8fffb;
  font-size: clamp(2rem, 5.7vw, 4.15rem);
  font-weight: 920;
  line-height: 0.98;
}

.map-stage.home-focus .hero-copy .mappi-greeting {
  padding: 5px 11px 5px 6px;
  background: rgba(4, 27, 38, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.map-stage.home-focus .home-memory-pulse {
  gap: 8px;
  opacity: 0.82;
}

.map-stage.home-focus .home-memory-pulse span {
  min-width: 104px;
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(237, 255, 247, 0.72);
  font-size: 0.64rem;
  background: rgba(5, 35, 48, 0.38);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.map-stage.home-focus .home-memory-pulse strong {
  font-size: 1rem;
}

.map-stage.home-focus .home-dashboard {
  top: clamp(235px, 29vh, 315px) !important;
  gap: clamp(22px, 3.5vw, 46px);
  width: min(1080px, calc(100vw - 24px));
}

.map-stage.home-focus .memory-of-day-card {
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  width: min(1080px, 100%);
  min-height: clamp(360px, 42vh, 520px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.97), rgba(231, 249, 241, 0.9)),
    radial-gradient(circle at 86% 18%, rgba(85, 195, 245, 0.2), transparent 34%),
    radial-gradient(circle at 15% 88%, rgba(78, 216, 137, 0.18), transparent 34%);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.3);
}

.map-stage.home-focus .memory-of-day-card .memory-day-media {
  min-height: clamp(360px, 42vh, 520px);
}

.map-stage.home-focus .memory-of-day-card .memory-day-copy {
  padding: clamp(28px, 4vw, 54px);
}

.map-stage.home-focus .memory-day-greeting {
  width: fit-content;
  margin-top: 2px;
  padding: 7px 11px;
  border: 1px solid rgba(11, 109, 133, 0.12);
  border-radius: 999px;
  color: rgba(9, 61, 84, 0.66);
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  font-weight: 850;
  background: rgba(255, 255, 255, 0.54);
}

.map-stage.home-focus .memory-of-day-card h3 {
  color: #093d54;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 0.96;
}

.map-stage.home-focus .memory-of-day-card p {
  color: rgba(9, 61, 84, 0.74);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.map-stage.home-focus .home-memory-link {
  color: #fff;
  background: linear-gradient(135deg, #0b6d85, #18a978 58%, #79d85c);
  box-shadow: 0 18px 42px rgba(24, 169, 120, 0.26);
}

.map-stage.home-focus .home-action-section {
  width: min(880px, 100%);
  justify-self: center;
}

.map-stage.home-focus .home-action-card {
  min-height: clamp(112px, 12vw, 148px);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 255, 251, 0.92), rgba(228, 247, 240, 0.82)),
    radial-gradient(circle at 78% 18%, rgba(74, 190, 238, 0.14), transparent 34%);
}

.map-stage.home-focus .home-action-card span {
  width: 58px;
  height: 58px;
  border-radius: 20px;
}

.map-stage.home-focus .home-section:not(.home-action-section):not(.memory-of-day-card) {
  width: min(820px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(250, 255, 252, 0.84), rgba(235, 248, 243, 0.68));
}

.map-stage.home-focus #homeOnThisDay {
  border-radius: 24px;
}

.map-stage.home-focus .on-this-day-card {
  border-radius: 18px;
}

.map-stage.home-focus #homeJourney {
  width: min(920px, 100%);
}

.map-stage.home-focus .home-timeline-card {
  min-width: 154px;
}

@media (max-width: 720px) {
  .map-stage.home-focus .hero-copy {
    top: 90px !important;
  }

  .map-stage.home-focus .home-memory-pulse span {
    min-width: 92px;
  }

  .map-stage.home-focus .home-dashboard {
    top: 260px !important;
    width: calc(100vw - 20px);
  }

  .map-stage.home-focus .memory-of-day-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .map-stage.home-focus .memory-of-day-card .memory-day-media {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-rail.open,
  .account-menu.open,
  .notification-hub.open,
  .pin-search-panel.open,
  .category-rail.open .category-button,
  .account-menu.open .account-menu-item,
  .notification-hub.open .notification-card,
  .pin-search-panel.open .pin-search-result,
  .memory-editor.open,
  .memory-bottom-sheet.open,
  .memory-bottom-sheet.closing,
  .location-banner:not([hidden]),
  .you-are-here-message:not([hidden]),
  .map-stage.map-focus .map-coordinates,
  .map-stage.map-focus .map-layer-controls,
  .map-stage.map-focus .directions-panel,
  .map-stage.map-focus .bottom-nav,
  .map-stage.home-focus .hero-copy > *,
  .map-stage.home-focus .home-action,
  .map-stage.home-focus .spotlight-card,
  .map-stage.home-focus .memory-stat,
  .map-stage.memories-focus .memory-card.rich,
  .map-stage.memories-focus .pin-database-header,
  .map-stage.home-focus .avatar-button img,
  .map-stage.home-focus .mappi-greeting img,
  .map-stage.home-focus .mappi-greeting::after,
  .mappi-guide-bubble img,
  .sheet-mappi-helper,
  .map-empty-state img {
    animation: none !important;
  }
}

/* Final mascot header treatment: let Mappi sit on the map, not a white badge. */
.avatar-button {
  border: 1px solid rgba(176, 232, 255, 0.26) !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.16), transparent 38%),
    rgba(7, 31, 46, 0.34) !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px);
}

.avatar-button img {
  width: 116% !important;
  height: 116% !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  background: transparent !important;
  transform: translateY(2%) scale(1.04);
}

.map-stage.home-focus .avatar-button {
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(10, 66, 68, 0.44), rgba(10, 45, 58, 0.32)) !important;
}

.map-stage.map-focus .avatar-button {
  border-color: rgba(143, 217, 255, 0.18) !important;
  background: rgba(12, 24, 38, 0.74) !important;
}

/* One consistent Mappi mascot treatment across the app. */
:root {
  --mappi-mascot-surface:
    radial-gradient(circle at 36% 20%, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(15, 94, 92, 0.38), rgba(12, 43, 62, 0.42));
  --mappi-mascot-ring: rgba(184, 237, 255, 0.28);
}

.avatar-button,
.sheet-mappi-helper,
.map-wake-mappi {
  border-color: var(--mappi-mascot-ring) !important;
  background: var(--mappi-mascot-surface) !important;
  overflow: hidden !important;
}

.avatar-button {
  width: 56px !important;
  height: 56px !important;
  border-radius: 18px !important;
}

.avatar-button img,
.mappi-greeting img,
.location-banner img,
.mappi-guide-bubble img,
.map-empty-state img,
.map-wake-mappi img,
.sheet-mappi-helper img {
  border-color: var(--mappi-mascot-ring) !important;
  background: transparent !important;
  border-radius: inherit !important;
  object-fit: contain !important;
  object-position: center !important;
}

.mappi-greeting img,
.location-banner img,
.mappi-guide-bubble img,
.map-empty-state img {
  border-radius: 14px !important;
}

.empty-state::before,
.notification-heading::before,
.pin-search-heading::before {
  border-radius: 14px !important;
}

.mappi-greeting img,
.location-banner img,
.mappi-guide-bubble img,
.map-empty-state img,
.map-wake-mappi img {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.16),
    0 0 0 7px rgba(64, 188, 235, 0.08) !important;
}

.empty-state::before,
.notification-heading::before,
.pin-search-heading::before {
  border-color: var(--mappi-mascot-ring) !important;
  background:
    url("./mymappi-mascot-wave-v3.png") center / contain no-repeat,
    var(--mappi-mascot-surface) !important;
}

.account-menu::before {
  background:
    url("./mymappi-mascot-wave-v3.png") 10px center / 42px 42px no-repeat,
    linear-gradient(135deg, rgba(13, 63, 72, 0.3), rgba(255, 255, 255, 0.07)) !important;
}

/* Final override: Today's Memories shows the related photo, note, and clean slideshow. */
.map-stage.home-focus .home-dashboard {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: auto !important;
  align-content: start !important;
  justify-items: center !important;
  gap: clamp(22px, 3.2vw, 36px) !important;
  top: clamp(190px, 24vh, 255px) !important;
  width: min(940px, calc(100vw - 24px)) !important;
  padding-bottom: 140px !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
.map-stage.home-focus .home-action-section,
.map-stage.home-focus .home-section:not(.home-action-section):not(.memory-of-day-card) {
  grid-column: 1 !important;
  width: min(760px, 100%) !important;
  justify-self: center !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  display: block !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  display: grid !important;
  gap: 12px !important;
  padding: clamp(18px, 3vw, 24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 26px !important;
  color: #093d54 !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(235, 250, 242, 0.94)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--today-memory-accent, #18a978) 22%, transparent), transparent 38%) !important;
  box-shadow: 0 20px 52px rgba(5, 26, 35, 0.2) !important;
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition:
    opacity 360ms ease,
    transform 480ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 480ms ease !important;
}

.map-stage.home-focus #homeMemoryOfDay.is-traveling-memory .today-memory-card {
  opacity: 0 !important;
  transform: translateY(12px) scale(0.985) !important;
}

.map-stage.home-focus #homeMemoryOfDay.is-arriving-memory .today-memory-card {
  animation: todayMemoryArrive 540ms cubic-bezier(0.16, 1, 0.3, 1);
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: grid !important;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr) !important;
  gap: clamp(14px, 2.5vw, 22px) !important;
  align-items: center !important;
  transform: translateY(-4px) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  position: relative !important;
  min-height: 190px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, var(--today-memory-accent, #18a978), #38aeea) !important;
  box-shadow: 0 16px 34px rgba(5, 26, 35, 0.2) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 190px !important;
  object-fit: cover !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
  align-self: center !important;
  justify-self: center !important;
  display: grid !important;
  width: 96px !important;
  height: 96px !important;
  place-items: center !important;
  border: 4px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 28px 28px 28px 10px !important;
  color: #fff !important;
  font-size: 2.4rem !important;
  background: linear-gradient(135deg, var(--today-memory-accent, #18a978), #38aeea) !important;
  box-shadow: 0 18px 38px color-mix(in srgb, var(--today-memory-accent, #18a978) 30%, transparent) !important;
  transform: rotate(-8deg) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: grid !important;
  align-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: none !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
  color: #093d54 !important;
  font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
  line-height: 1.08 !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(9, 61, 84, 0.62) !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

.map-stage.home-focus #homeMemoryOfDay p {
  display: -webkit-box !important;
  margin: 4px 0 0 !important;
  overflow: hidden !important;
  color: rgba(9, 61, 84, 0.76) !important;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem) !important;
  line-height: 1.5 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

.map-stage.home-focus .home-action-section {
  margin: clamp(4px, 1vw, 10px) 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.map-stage.home-focus .home-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    grid-template-columns: 1fr !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
    min-height: 210px !important;
  }

  .map-stage.home-focus .home-quick-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Final visual-anchor lock: large photo-first Today's Memory spotlight. */
.map-stage.home-focus .home-dashboard {
  top: clamp(300px, 36vh, 392px) !important;
  width: min(1080px, calc(100vw - 28px)) !important;
  gap: clamp(24px, 3.4vw, 42px) !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  width: min(980px, 100%) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  position: relative !important;
  display: grid !important;
  min-height: clamp(360px, 47vh, 530px) !important;
  align-content: end !important;
  gap: 0 !important;
  padding: clamp(22px, 4vw, 42px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 34px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--today-memory-accent, #18a978) 35%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(15, 88, 92, 0.98), rgba(7, 45, 62, 0.98)) !important;
  box-shadow:
    0 32px 86px rgba(3, 21, 31, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  isolation: isolate !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  content: "" !important;
  background:
    linear-gradient(180deg, rgba(3, 18, 28, 0.04) 0%, rgba(3, 18, 28, 0.2) 34%, rgba(3, 18, 28, 0.84) 100%),
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--today-memory-accent, #18a978) 26%, transparent), transparent 48%) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  min-height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  filter: saturate(1.08) contrast(1.02) brightness(0.9) !important;
  transform: scale(1.035) !important;
  transition: transform 8s ease, filter 500ms ease !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card:hover .today-memory-photo img {
  transform: scale(1.065) !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
.map-stage.home-focus #homeMemoryOfDay .today-memory-main,
.map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  position: relative !important;
  z-index: 2 !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  display: flex !important;
  justify-content: space-between !important;
  margin-bottom: auto !important;
}

.map-stage.home-focus #homeMemoryOfDay .home-kicker,
.map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(4, 29, 41, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: min(640px, 100%) !important;
  gap: clamp(14px, 2vw, 18px) !important;
  align-items: end !important;
  margin-top: clamp(92px, 16vh, 170px) !important;
  transform: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: grid !important;
  max-width: 610px !important;
  gap: 10px !important;
}

.map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: 13ch !important;
  color: #ffffff !important;
  font-size: clamp(2.3rem, 5vw, 4.65rem) !important;
  font-weight: 860 !important;
  line-height: 0.94 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 18px 44px rgba(1, 18, 28, 0.46) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: clamp(0.84rem, 1.2vw, 0.98rem) !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
  text-shadow: 0 8px 24px rgba(1, 18, 28, 0.42) !important;
}

.map-stage.home-focus #homeMemoryOfDay p {
  max-width: 580px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem) !important;
  font-weight: 520 !important;
  line-height: 1.48 !important;
  text-shadow: 0 10px 28px rgba(1, 18, 28, 0.48) !important;
  -webkit-line-clamp: 3 !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  margin-top: clamp(18px, 3vw, 30px) !important;
}

.map-stage.home-focus #homeMemoryOfDay .home-memory-link {
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #073749 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    0 16px 36px rgba(2, 20, 30, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-dots button {
  background: rgba(255, 255, 255, 0.46) !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-dots button.active {
  background: #ffffff !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus .home-dashboard {
    top: clamp(278px, 35vh, 346px) !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: clamp(390px, 58vh, 560px) !important;
    padding: 22px !important;
    border-radius: 28px !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    margin-top: clamp(110px, 22vh, 190px) !important;
  }

  .map-stage.home-focus #homeMemoryOfDay h3 {
    max-width: 12ch !important;
    font-size: clamp(2.05rem, 10vw, 3.3rem) !important;
  }
}

/* Editorial home section headers: icon badge plus bold section name. */
.map-stage.home-focus .home-section-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100% !important;
  margin-bottom: clamp(12px, 1.6vw, 18px) !important;
}

.map-stage.home-focus .home-section-title,
.map-stage.home-focus #homeMemoryOfDay .home-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
  color: #ffffff !important;
  font-size: clamp(0.88rem, 1.3vw, 1.02rem) !important;
  font-weight: 920 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

.map-stage.home-focus .home-section-title .section-title-icon,
.map-stage.home-focus #homeMemoryOfDay .home-kicker .section-title-icon {
  display: grid !important;
  flex: 0 0 auto !important;
  width: 28px !important;
  height: 28px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 10px !important;
  font-size: 0.92rem !important;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.24), transparent 36%),
    rgba(4, 29, 41, 0.34) !important;
  box-shadow:
    0 10px 22px rgba(3, 21, 31, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(10px) saturate(1.06) !important;
}

.map-stage.home-focus .home-section-title .section-title-text,
.map-stage.home-focus #homeMemoryOfDay .home-kicker .section-title-text {
  display: inline-block !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.map-stage.home-focus .home-section-heading > strong {
  flex: 0 1 auto !important;
  color: rgba(235, 255, 246, 0.66) !important;
  font-size: clamp(0.78rem, 1vw, 0.9rem) !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.map-stage.home-focus #homeMemoryOfDay .home-kicker {
  padding: 7px 11px 7px 8px !important;
  border-radius: 999px !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus .home-section-heading {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  .map-stage.home-focus .home-section-heading > strong {
    text-align: left !important;
  }
}

/* Premium visual anchor: Today's Memory becomes the emotional centerpiece. */
.map-stage.home-focus .home-dashboard {
  top: clamp(300px, 36vh, 392px) !important;
  width: min(1080px, calc(100vw - 28px)) !important;
  gap: clamp(24px, 3.4vw, 42px) !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  width: min(980px, 100%) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  position: relative !important;
  display: grid !important;
  min-height: clamp(360px, 47vh, 530px) !important;
  align-content: end !important;
  gap: 0 !important;
  padding: clamp(22px, 4vw, 42px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 34px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--today-memory-accent, #18a978) 35%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(15, 88, 92, 0.98), rgba(7, 45, 62, 0.98)) !important;
  box-shadow:
    0 32px 86px rgba(3, 21, 31, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  isolation: isolate !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  content: "" !important;
  background:
    linear-gradient(180deg, rgba(3, 18, 28, 0.04) 0%, rgba(3, 18, 28, 0.18) 36%, rgba(3, 18, 28, 0.82) 100%),
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--today-memory-accent, #18a978) 26%, transparent), transparent 48%) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  min-height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  filter: saturate(1.08) contrast(1.02) brightness(0.9) !important;
  transform: scale(1.035) !important;
  transition: transform 8s ease, filter 500ms ease !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card:hover .today-memory-photo img {
  transform: scale(1.065) !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
.map-stage.home-focus #homeMemoryOfDay .today-memory-main,
.map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  position: relative !important;
  z-index: 2 !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  align-self: start !important;
  display: flex !important;
  justify-content: space-between !important;
  margin-bottom: auto !important;
}

.map-stage.home-focus #homeMemoryOfDay .home-kicker,
.map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(4, 29, 41, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: min(640px, 100%) !important;
  gap: clamp(14px, 2vw, 18px) !important;
  align-items: end !important;
  margin-top: clamp(92px, 16vh, 170px) !important;
  transform: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
  width: 86px !important;
  height: 86px !important;
  margin-bottom: 2px !important;
  border-color: rgba(255, 255, 255, 0.86) !important;
  box-shadow:
    0 18px 38px rgba(3, 21, 31, 0.22),
    0 0 0 8px color-mix(in srgb, var(--today-memory-accent, #18a978) 18%, transparent) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: grid !important;
  max-width: 610px !important;
  gap: 10px !important;
}

.map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: 13ch !important;
  color: #ffffff !important;
  font-size: clamp(2.3rem, 5vw, 4.65rem) !important;
  font-weight: 860 !important;
  line-height: 0.94 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 18px 44px rgba(1, 18, 28, 0.46) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: clamp(0.84rem, 1.2vw, 0.98rem) !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
  text-shadow: 0 8px 24px rgba(1, 18, 28, 0.42) !important;
}

.map-stage.home-focus #homeMemoryOfDay p {
  max-width: 580px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem) !important;
  font-weight: 520 !important;
  line-height: 1.48 !important;
  text-shadow: 0 10px 28px rgba(1, 18, 28, 0.48) !important;
  -webkit-line-clamp: 3 !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  margin-top: clamp(18px, 3vw, 30px) !important;
}

.map-stage.home-focus #homeMemoryOfDay .home-memory-link {
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #073749 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    0 16px 36px rgba(2, 20, 30, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-dots button {
  background: rgba(255, 255, 255, 0.46) !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-dots button.active {
  background: #ffffff !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus .home-dashboard {
    top: clamp(278px, 35vh, 346px) !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: clamp(390px, 58vh, 560px) !important;
    padding: 22px !important;
    border-radius: 28px !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    margin-top: clamp(110px, 22vh, 190px) !important;
  }

  .map-stage.home-focus #homeMemoryOfDay h3 {
    max-width: 12ch !important;
    font-size: clamp(2.05rem, 10vw, 3.3rem) !important;
  }
}

/* Final calm hero lock: keep the opening screen airy and premium. */
.map-stage.home-focus .hero-copy {
  top: clamp(124px, 15.4vh, 156px) !important;
  display: grid !important;
  justify-items: center !important;
  gap: clamp(16px, 2.2vw, 24px) !important;
  width: min(980px, calc(100vw - 32px)) !important;
}

.map-stage.home-focus .hero-copy h2 {
  max-width: min(780px, calc(100vw - 38px)) !important;
  margin: 0 !important;
  color: rgba(248, 255, 251, 0.94) !important;
  font-size: clamp(1.78rem, 4.8vw, 3.62rem) !important;
  font-weight: 760 !important;
  line-height: 1.06 !important;
  text-align: center !important;
  text-wrap: balance !important;
  text-shadow:
    0 18px 42px rgba(1, 22, 31, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.map-stage.home-focus .home-memory-pulse {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: clamp(12px, 1.8vw, 18px) !important;
  width: min(620px, calc(100vw - 42px)) !important;
  margin-top: clamp(2px, 0.8vw, 8px) !important;
  opacity: 1 !important;
}

.map-stage.home-focus .home-memory-pulse span {
  min-width: clamp(104px, 15vw, 132px) !important;
  min-height: 48px !important;
  padding: 10px 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.17) !important;
  border-radius: 18px !important;
  color: rgba(235, 255, 246, 0.7) !important;
  font-size: 0.64rem !important;
  font-weight: 850 !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(4, 31, 42, 0.28) !important;
  box-shadow:
    0 16px 36px rgba(2, 22, 31, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

.map-stage.home-focus .home-memory-pulse strong {
  margin-bottom: 1px !important;
  color: #ffffff !important;
  font-size: clamp(1rem, 1.6vw, 1.18rem) !important;
  font-weight: 860 !important;
  letter-spacing: 0 !important;
}

.map-stage.home-focus .home-dashboard {
  top: clamp(298px, 36vh, 392px) !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus .hero-copy {
    top: clamp(104px, 14vh, 128px) !important;
    gap: 14px !important;
  }

  .map-stage.home-focus .hero-copy h2 {
    font-size: clamp(1.72rem, 9vw, 2.85rem) !important;
  }

  .map-stage.home-focus .home-memory-pulse {
    gap: 10px !important;
    width: min(360px, calc(100vw - 30px)) !important;
  }

  .map-stage.home-focus .home-memory-pulse span {
    flex: 1 1 calc(33.333% - 10px) !important;
    min-width: 92px !important;
    padding: 9px 10px !important;
  }

  .map-stage.home-focus .home-dashboard {
    top: clamp(276px, 34vh, 340px) !important;
  }
}

/* Calm premium home hero: more air, softer hierarchy, quieter stats. */
.map-stage.home-focus .hero-copy {
  top: clamp(124px, 15.4vh, 156px) !important;
  display: grid !important;
  justify-items: center !important;
  gap: clamp(16px, 2.2vw, 24px) !important;
  width: min(980px, calc(100vw - 32px)) !important;
}

.map-stage.home-focus .hero-copy h2 {
  max-width: min(780px, calc(100vw - 38px)) !important;
  margin: 0 !important;
  color: rgba(248, 255, 251, 0.94) !important;
  font-size: clamp(1.78rem, 4.8vw, 3.62rem) !important;
  font-weight: 760 !important;
  line-height: 1.06 !important;
  text-align: center !important;
  text-wrap: balance !important;
  text-shadow:
    0 18px 42px rgba(1, 22, 31, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.map-stage.home-focus .home-memory-pulse {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: clamp(12px, 1.8vw, 18px) !important;
  width: min(620px, calc(100vw - 42px)) !important;
  margin-top: clamp(2px, 0.8vw, 8px) !important;
  opacity: 1 !important;
}

.map-stage.home-focus .home-memory-pulse span {
  min-width: clamp(104px, 15vw, 132px) !important;
  min-height: 48px !important;
  padding: 10px 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.17) !important;
  border-radius: 18px !important;
  color: rgba(235, 255, 246, 0.7) !important;
  font-size: 0.64rem !important;
  font-weight: 850 !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(4, 31, 42, 0.28) !important;
  box-shadow:
    0 16px 36px rgba(2, 22, 31, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

.map-stage.home-focus .home-memory-pulse strong {
  margin-bottom: 1px !important;
  color: #ffffff !important;
  font-size: clamp(1rem, 1.6vw, 1.18rem) !important;
  font-weight: 860 !important;
  letter-spacing: 0 !important;
}

.map-stage.home-focus .home-dashboard {
  top: clamp(298px, 36vh, 392px) !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus .hero-copy {
    top: clamp(104px, 14vh, 128px) !important;
    gap: 14px !important;
  }

  .map-stage.home-focus .hero-copy h2 {
    font-size: clamp(1.72rem, 9vw, 2.85rem) !important;
  }

  .map-stage.home-focus .home-memory-pulse {
    gap: 10px !important;
    width: min(360px, calc(100vw - 30px)) !important;
  }

  .map-stage.home-focus .home-memory-pulse span {
    flex: 1 1 calc(33.333% - 10px) !important;
    min-width: 92px !important;
    padding: 9px 10px !important;
  }

  .map-stage.home-focus .home-dashboard {
    top: clamp(276px, 34vh, 340px) !important;
  }
}

/* True final Explore gadget fix: keep Center on Me, compass, and zoom visible. */
.map-stage.map-focus {
  --map-gadget-right-final: clamp(14px, 3vw, 24px);
  --map-gadget-bottom-final: clamp(104px, 12vh, 122px);
}

.map-stage.map-focus #locateButton.hidden-control {
  display: grid !important;
}

.map-stage.map-focus #locateButton {
  position: fixed !important;
  right: var(--map-gadget-right-final) !important;
  bottom: calc(var(--map-gadget-bottom-final) + 140px) !important;
  z-index: 120 !important;
  display: grid !important;
  width: 54px !important;
  min-width: 54px !important;
  height: 54px !important;
  place-items: center !important;
  gap: 1px !important;
  padding: 6px 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 19px !important;
  color: #0a5268 !important;
  background:
    radial-gradient(circle at 50% 14%, rgba(74, 169, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 250, 242, 0.94)) !important;
  box-shadow:
    0 16px 34px rgba(8, 31, 48, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

.map-stage.map-focus #locateButton [data-icon] {
  width: 22px !important;
  height: 22px !important;
  color: #1578ff !important;
}

.map-stage.map-focus #locateButton .locate-label {
  display: block !important;
  color: #0a5268 !important;
  font-size: 0.62rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.map-stage.map-focus .map-compass {
  right: var(--map-gadget-right-final) !important;
  bottom: calc(var(--map-gadget-bottom-final) + 70px) !important;
  z-index: 119 !important;
  display: grid !important;
  width: 54px !important;
  height: 62px !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 19px !important;
  color: #0a5268 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 250, 242, 0.94)) !important;
  box-shadow:
    0 16px 34px rgba(8, 31, 48, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.map-stage.map-focus .map-compass::after {
  display: none !important;
}

.map-stage.map-focus .map-compass::before {
  inset: 9px 9px 23px !important;
  border-color: rgba(21, 120, 255, 0.16) !important;
}

.map-stage.map-focus .map-compass-needle {
  top: 13px !important;
  height: 19px !important;
}

.map-stage.map-focus .map-compass strong {
  top: 19px !important;
  color: #0a5268 !important;
}

.map-stage.map-focus .leaflet-bottom.leaflet-right {
  right: var(--map-gadget-right-final) !important;
  bottom: var(--map-gadget-bottom-final) !important;
  z-index: 118 !important;
}

.map-stage.map-focus .maplibregl-ctrl-bottom-right {
  right: var(--map-gadget-right-final) !important;
  bottom: var(--map-gadget-bottom-final) !important;
  margin: 0 !important;
  z-index: 118 !important;
}

.map-stage.map-focus .leaflet-right .leaflet-control,
.map-stage.map-focus .leaflet-control-zoom,
.map-stage.map-focus .maplibregl-ctrl-group {
  width: 54px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 19px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 250, 242, 0.94)) !important;
  box-shadow:
    0 16px 34px rgba(8, 31, 48, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

.map-stage.map-focus .leaflet-control-zoom a,
.map-stage.map-focus .maplibregl-ctrl-group button {
  width: 54px !important;
  height: 42px !important;
  color: #0a5268 !important;
  font-size: 1.22rem !important;
  font-weight: 950 !important;
  line-height: 42px !important;
  background: transparent !important;
}

.map-stage.map-focus .leaflet-control-zoom a + a,
.map-stage.map-focus .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(8, 82, 104, 0.12) !important;
}

@media (max-width: 680px) {
  .map-stage.map-focus {
    --map-gadget-right-final: 12px;
    --map-gadget-bottom-final: 104px;
  }
}

/* Final Explore gadget fix: compact, visible, and not clipped. */
.map-stage.map-focus {
  --map-gadget-right: clamp(14px, 3vw, 24px);
  --map-gadget-bottom: clamp(104px, 12vh, 122px);
}

.map-stage.map-focus #locateButton.hidden-control {
  display: grid !important;
}

.map-stage.map-focus #locateButton {
  position: fixed !important;
  right: var(--map-gadget-right) !important;
  bottom: calc(var(--map-gadget-bottom) + 140px) !important;
  z-index: 80 !important;
  width: 54px !important;
  min-width: 54px !important;
  height: 54px !important;
  padding: 6px 0 !important;
  place-items: center !important;
  gap: 1px !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 19px !important;
  color: #0a5268 !important;
  background:
    radial-gradient(circle at 50% 14%, rgba(74, 169, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 250, 242, 0.94)) !important;
  box-shadow:
    0 16px 34px rgba(8, 31, 48, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

.map-stage.map-focus #locateButton [data-icon] {
  width: 22px !important;
  height: 22px !important;
  color: #1578ff !important;
}

.map-stage.map-focus #locateButton .locate-label {
  display: block !important;
  color: #0a5268 !important;
  font-size: 0.62rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.map-stage.map-focus .map-compass {
  right: var(--map-gadget-right) !important;
  bottom: calc(var(--map-gadget-bottom) + 70px) !important;
  z-index: 79 !important;
  width: 54px !important;
  height: 62px !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 19px !important;
  color: #0a5268 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 250, 242, 0.94)) !important;
  box-shadow:
    0 16px 34px rgba(8, 31, 48, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.map-stage.map-focus .map-compass::after {
  display: none !important;
}

.map-stage.map-focus .map-compass::before {
  inset: 9px 9px 23px !important;
  border-color: rgba(21, 120, 255, 0.16) !important;
}

.map-stage.map-focus .map-compass-needle {
  top: 13px !important;
  height: 19px !important;
}

.map-stage.map-focus .map-compass strong {
  top: 19px !important;
  color: #0a5268 !important;
}

.map-stage.map-focus .leaflet-bottom.leaflet-right {
  right: var(--map-gadget-right) !important;
  bottom: var(--map-gadget-bottom) !important;
  z-index: 78 !important;
}

.map-stage.map-focus .maplibregl-ctrl-bottom-right {
  right: var(--map-gadget-right) !important;
  bottom: var(--map-gadget-bottom) !important;
  margin: 0 !important;
  z-index: 78 !important;
}

.map-stage.map-focus .leaflet-right .leaflet-control,
.map-stage.map-focus .leaflet-control-zoom,
.map-stage.map-focus .maplibregl-ctrl-group {
  width: 54px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 19px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 250, 242, 0.94)) !important;
  box-shadow:
    0 16px 34px rgba(8, 31, 48, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

.map-stage.map-focus .leaflet-control-zoom a,
.map-stage.map-focus .maplibregl-ctrl-group button {
  width: 54px !important;
  height: 42px !important;
  color: #0a5268 !important;
  font-size: 1.22rem !important;
  font-weight: 950 !important;
  line-height: 42px !important;
  background: transparent !important;
}

.map-stage.map-focus .leaflet-control-zoom a + a,
.map-stage.map-focus .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(8, 82, 104, 0.12) !important;
}

@media (max-width: 680px) {
  .map-stage.map-focus {
    --map-gadget-right: 12px;
    --map-gadget-bottom: 104px;
  }
}

/* Home section titles: make each memory chapter easier to notice. */
.map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
.map-stage.home-focus .home-section-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
}

.map-stage.home-focus #homeMemoryOfDay .home-kicker,
.map-stage.home-focus .home-section-heading span {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  min-height: 34px !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  color: #073d54 !important;
  font-size: clamp(0.86rem, 1.45vw, 1rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(229, 250, 242, 0.84)),
    radial-gradient(circle at 12% 18%, rgba(255, 107, 107, 0.22), transparent 36%) !important;
  box-shadow:
    0 10px 24px rgba(5, 26, 35, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.map-stage.home-focus .home-section-heading strong,
.map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  max-width: 48% !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(11, 109, 133, 0.12) !important;
  border-radius: 999px !important;
  color: rgba(7, 61, 84, 0.72) !important;
  font-size: clamp(0.74rem, 1.2vw, 0.86rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  background: rgba(255, 255, 255, 0.58) !important;
  white-space: nowrap !important;
}

@media (max-width: 560px) {
  .map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
  .map-stage.home-focus .home-section-heading {
    align-items: flex-start !important;
    flex-direction: column !important;
    margin-bottom: 8px !important;
  }

  .map-stage.home-focus .home-section-heading strong,
  .map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
    max-width: 100% !important;
    white-space: normal !important;
  }
}

/* Premium MyMappi wordmark treatment. */
.map-stage .brand {
  padding: 8px 16px 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(4, 29, 41, 0.22) !important;
  box-shadow:
    0 18px 44px rgba(3, 21, 31, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(16px) saturate(1.16) !important;
}

.map-stage .brand h1 {
  font-size: clamp(2.14rem, 3.65vw, 3.24rem) !important;
  font-weight: 920 !important;
  letter-spacing: 0 !important;
  color: #f7fffb !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 34px rgba(4, 22, 35, 0.3),
    0 0 22px rgba(111, 222, 255, 0.16) !important;
}

.map-stage .brand-my,
.map-stage .brand-i {
  color: #f8fffb !important;
}

.map-stage .brand-mapp {
  background: linear-gradient(90deg, #39e694 0%, #28d4cf 44%, #2d8bff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 8px 18px rgba(42, 169, 224, 0.22));
}

.map-stage .brand-i::before {
  top: 0.07em !important;
  width: 0.19em !important;
  height: 0.19em !important;
  border-width: 0.026em !important;
  box-shadow:
    0 0.06em 0.22em rgba(255, 52, 59, 0.42),
    0 0 0.22em rgba(255, 107, 107, 0.18) !important;
}

@media (max-width: 560px) {
  .map-stage .brand {
    padding: 7px 12px 8px !important;
  }

  .map-stage .brand h1 {
    font-size: clamp(1.62rem, 7.5vw, 2.12rem) !important;
  }
}

/* Explore navigation gadget: Center on Me, compass, and zoom live as one tool. */
.map-stage.map-focus {
  --map-gadget-right: clamp(16px, 3vw, 28px);
  --map-gadget-bottom: clamp(112px, 13vh, 136px);
}

.map-stage.map-focus .leaflet-bottom.leaflet-right {
  right: var(--map-gadget-right) !important;
  bottom: var(--map-gadget-bottom) !important;
  z-index: 32 !important;
}

.map-stage.map-focus .maplibregl-ctrl-bottom-right {
  right: var(--map-gadget-right) !important;
  bottom: var(--map-gadget-bottom) !important;
  margin: 0 !important;
  z-index: 32 !important;
}

.map-stage.map-focus .leaflet-control-zoom,
.map-stage.map-focus .maplibregl-ctrl-group {
  width: 56px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 18px 18px 24px 24px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    0 18px 42px rgba(8, 31, 48, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
}

.map-stage.map-focus .leaflet-control-zoom a,
.map-stage.map-focus .maplibregl-ctrl-group button {
  width: 56px !important;
  height: 44px !important;
  color: #0a5268 !important;
  font-size: 1.25rem !important;
  font-weight: 950 !important;
  line-height: 44px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 250, 242, 0.88)) !important;
}

.map-stage.map-focus .leaflet-control-zoom a + a,
.map-stage.map-focus .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(8, 82, 104, 0.12) !important;
}

.map-stage.map-focus .map-compass {
  right: var(--map-gadget-right) !important;
  bottom: calc(var(--map-gadget-bottom) + 94px) !important;
  z-index: 33 !important;
  display: grid !important;
  width: 56px !important;
  height: 72px !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 18px !important;
  color: #0a5268 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 250, 242, 0.88)) !important;
  box-shadow:
    0 18px 42px rgba(8, 31, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
  overflow: visible !important;
}

.map-stage.map-focus .map-compass::after {
  position: absolute;
  z-index: -1;
  top: -76px;
  right: -7px;
  bottom: -104px;
  left: -7px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 30px;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(226, 249, 242, 0.1)),
    rgba(6, 42, 54, 0.12);
  box-shadow: 0 22px 52px rgba(8, 31, 48, 0.16);
  backdrop-filter: blur(18px) saturate(1.12);
  pointer-events: none;
}

.map-stage.map-focus .map-compass::before {
  inset: 10px 9px 25px !important;
  border-color: rgba(21, 120, 255, 0.16) !important;
}

.map-stage.map-focus .map-compass-needle {
  top: 15px !important;
  height: 20px !important;
}

.map-stage.map-focus .map-compass strong {
  top: 21px !important;
  color: #0a5268 !important;
}

.map-stage.map-focus #locateButton {
  position: fixed !important;
  right: var(--map-gadget-right) !important;
  bottom: calc(var(--map-gadget-bottom) + 174px) !important;
  z-index: 34 !important;
  display: inline-grid !important;
  width: 56px !important;
  min-width: 56px !important;
  height: 58px !important;
  place-items: center !important;
  gap: 1px !important;
  padding: 7px 0 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  border-radius: 24px 24px 18px 18px !important;
  color: #0a5268 !important;
  background:
    radial-gradient(circle at 50% 15%, rgba(88, 180, 255, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 250, 242, 0.9)) !important;
  box-shadow:
    0 18px 42px rgba(8, 31, 48, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
}

.map-stage.map-focus #locateButton [data-icon] {
  width: 22px !important;
  height: 22px !important;
  color: #1578ff !important;
}

.map-stage.map-focus #locateButton .locate-label {
  display: block !important;
  color: #0a5268 !important;
  font-size: 0.62rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.map-stage.map-focus #locateButton:hover,
.map-stage.map-focus .leaflet-control-zoom a:hover,
.map-stage.map-focus .maplibregl-ctrl-group button:hover {
  background:
    linear-gradient(180deg, #ffffff, rgba(217, 247, 240, 0.96)) !important;
  box-shadow:
    0 20px 46px rgba(8, 31, 48, 0.24),
    0 0 0 3px rgba(24, 169, 120, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.map-stage.map-focus #locateButton.needs-location {
  color: #5c3500 !important;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 200, 87, 0.34), transparent 38%),
    linear-gradient(180deg, #fffaf0, #fff1c7) !important;
}

@media (max-width: 680px) {
  .map-stage.map-focus {
    --map-gadget-right: 14px;
    --map-gadget-bottom: 112px;
  }
}

/* Today's Memory compact pass: remove extra height now that Capture Today is below. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  min-height: clamp(225px, 27vw, 324px) !important;
  gap: 13px !important;
  padding: clamp(16px, 2.7vw, 22px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  min-height: 171px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  align-items: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer:empty {
  display: none !important;
}

@media (max-width: 680px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: auto !important;
  }
}

/* True final home-page lock: Today's Memory cannot be covered by quick actions. */
html body .app-shell .map-stage.home-focus .home-dashboard {
  position: absolute !important;
  z-index: 34 !important;
  top: clamp(255px, 32vh, 340px) !important;
  right: 50% !important;
  bottom: 104px !important;
  left: auto !important;
  display: flex !important;
  width: min(940px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(24px, 3.6vw, 42px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 0 140px !important;
  transform: translateX(50%) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  position: relative !important;
  z-index: 4 !important;
  order: 1 !important;
  display: block !important;
  width: min(760px, 100%) !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  position: relative !important;
  z-index: 4 !important;
  min-height: clamp(250px, 30vw, 360px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-section {
  position: relative !important;
  z-index: 2 !important;
  order: 2 !important;
  display: block !important;
  width: min(760px, 100%) !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions,
html body .app-shell .map-stage.home-focus .home-action-card {
  position: relative !important;
  transform: none !important;
}

@media (max-width: 680px) {
  html body .app-shell .map-stage.home-focus .home-dashboard {
    top: clamp(230px, 30vh, 300px) !important;
    width: min(100%, calc(100vw - 20px)) !important;
    gap: 24px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: auto !important;
  }
}

.map-stage.home-focus .home-dashboard {
  position: absolute !important;
  z-index: 34 !important;
  top: clamp(255px, 32vh, 340px) !important;
  right: 50% !important;
  bottom: 104px !important;
  left: auto !important;
  display: flex !important;
  width: min(940px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(24px, 3.6vw, 42px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 0 140px !important;
  transform: translateX(50%) !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  position: relative !important;
  z-index: 4 !important;
  order: 1 !important;
  display: block !important;
  width: min(760px, 100%) !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  transform: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  position: relative !important;
  z-index: 4 !important;
  min-height: clamp(250px, 30vw, 360px) !important;
}

.map-stage.home-focus .home-action-section {
  position: relative !important;
  z-index: 2 !important;
  order: 2 !important;
  display: block !important;
  width: min(760px, 100%) !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  transform: none !important;
}

.map-stage.home-focus .home-quick-actions,
.map-stage.home-focus .home-action-card {
  position: relative !important;
  transform: none !important;
}

.map-stage.home-focus #homeOnThisDay {
  order: 3 !important;
}

.map-stage.home-focus #homeJourney {
  order: 4 !important;
}

.map-stage.home-focus #homeTimelineStrip {
  order: 5 !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus .home-dashboard {
    top: clamp(230px, 30vh, 300px) !important;
    width: min(100%, calc(100vw - 20px)) !important;
    gap: 24px !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: auto !important;
  }
}

/* True final home-page lock: Today's Memory cannot be covered by quick actions. */
.map-stage.home-focus .home-dashboard {
  position: absolute !important;
  z-index: 34 !important;
  top: clamp(255px, 32vh, 340px) !important;
  right: 50% !important;
  bottom: 104px !important;
  left: auto !important;
  display: flex !important;
  width: min(940px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(24px, 3.6vw, 42px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 0 140px !important;
  transform: translateX(50%) !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  position: relative !important;
  z-index: 4 !important;
  order: 1 !important;
  display: block !important;
  width: min(760px, 100%) !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  transform: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  position: relative !important;
  z-index: 4 !important;
  min-height: clamp(250px, 30vw, 360px) !important;
}

.map-stage.home-focus .home-action-section {
  position: relative !important;
  z-index: 2 !important;
  order: 2 !important;
  display: block !important;
  width: min(760px, 100%) !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  transform: none !important;
}

.map-stage.home-focus .home-quick-actions,
.map-stage.home-focus .home-action-card {
  position: relative !important;
  transform: none !important;
}

.map-stage.home-focus #homeOnThisDay {
  order: 3 !important;
}

.map-stage.home-focus #homeJourney {
  order: 4 !important;
}

.map-stage.home-focus #homeTimelineStrip {
  order: 5 !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus .home-dashboard {
    top: clamp(230px, 30vh, 300px) !important;
    width: min(100%, calc(100vw - 20px)) !important;
    gap: 24px !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: auto !important;
  }
}

/* Final home-page lock: Today's Memory owns its row and actions stay below it. */
.map-stage.home-focus .home-dashboard {
  position: absolute !important;
  z-index: 34 !important;
  top: clamp(255px, 32vh, 340px) !important;
  right: 50% !important;
  bottom: 104px !important;
  left: auto !important;
  display: flex !important;
  width: min(940px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(24px, 3.6vw, 42px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 0 140px !important;
  transform: translateX(50%) !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  position: relative !important;
  z-index: 4 !important;
  order: 1 !important;
  display: block !important;
  width: min(760px, 100%) !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  transform: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  position: relative !important;
  z-index: 4 !important;
  min-height: clamp(250px, 30vw, 360px) !important;
}

.map-stage.home-focus .home-action-section {
  position: relative !important;
  z-index: 2 !important;
  order: 2 !important;
  display: block !important;
  width: min(760px, 100%) !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  transform: none !important;
}

.map-stage.home-focus .home-quick-actions,
.map-stage.home-focus .home-action-card {
  position: relative !important;
  transform: none !important;
}

.map-stage.home-focus #homeOnThisDay {
  order: 3 !important;
}

.map-stage.home-focus #homeJourney {
  order: 4 !important;
}

.map-stage.home-focus #homeTimelineStrip {
  order: 5 !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus .home-dashboard {
    top: clamp(230px, 30vh, 300px) !important;
    width: min(100%, calc(100vw - 20px)) !important;
    gap: 24px !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: auto !important;
  }
}

/* Explore control cluster: make the compass belong beside zoom. */
.map-stage.map-focus .map-compass {
  right: 76px !important;
  bottom: 118px !important;
  width: 42px !important;
  height: 84px !important;
  border: 1px solid rgba(8, 31, 48, 0.14) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 14px 32px rgba(8, 31, 48, 0.2) !important;
}

.map-stage.map-focus .map-compass::before {
  inset: 11px 7px 29px !important;
  border-color: rgba(21, 120, 255, 0.14) !important;
}

.map-stage.map-focus .map-compass-needle {
  top: 18px !important;
  height: 22px !important;
}

.map-stage.map-focus .map-compass strong {
  top: 24px !important;
}

@media (max-width: 680px) {
  .map-stage.map-focus .map-compass {
    right: 70px !important;
    bottom: 118px !important;
    width: 42px !important;
    height: 84px !important;
  }
}

@keyframes todayMemoryArrive {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Keep quick actions clearly below Today's Memory. */
.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  margin-bottom: clamp(26px, 4vw, 54px) !important;
}

.map-stage.home-focus .home-action-section {
  margin-top: clamp(6px, 1.5vw, 18px) !important;
}

/* Map controls: brighter zoom buttons and a small live heading compass. */
.map-stage.map-focus {
  --map-gadget-right-active: clamp(42px, 6vw, 52px);
  --map-gadget-bottom-active: clamp(104px, 12vh, 122px);
  --map-gadget-size-active: 82px;
  --map-gadget-cell-active: 41px;
  --map-gadget-gap-active: 0px;
  --map-gadget-cell-bg: linear-gradient(135deg, rgba(12, 70, 86, 0.92), rgba(8, 46, 62, 0.9));
  --map-gadget-cell-hover-bg: linear-gradient(135deg, rgba(30, 142, 150, 0.96), rgba(17, 87, 114, 0.94));
}

.map-stage.map-focus .leaflet-bottom.leaflet-right {
  right: var(--map-gadget-right-active) !important;
  bottom: var(--map-gadget-bottom-active) !important;
  z-index: 78 !important;
}

.map-stage.map-focus .maplibregl-ctrl-bottom-right {
  right: var(--map-gadget-right-active) !important;
  bottom: var(--map-gadget-bottom-active) !important;
  margin: 0 !important;
  z-index: 78 !important;
}

.map-stage.map-focus .maplibregl-ctrl-group,
.map-stage.map-focus .leaflet-control-zoom {
  display: none !important;
}

.map-stage.map-focus .maplibregl-ctrl-group button,
.map-stage.map-focus .leaflet-control-zoom a {
  width: var(--map-gadget-size-active) !important;
  height: 42px !important;
  border: 0 !important;
  color: #0a5268 !important;
  font-size: 1.22rem !important;
  font-weight: 950 !important;
  background: transparent !important;
  line-height: 42px !important;
}

.map-stage.map-focus .maplibregl-ctrl-group button + button,
.map-stage.map-focus .leaflet-control-zoom a + a {
  border-top: 1px solid rgba(8, 31, 48, 0.12) !important;
}

.map-stage.map-focus .maplibregl-ctrl-icon {
  filter: contrast(1.3) brightness(0.45) saturate(1.3) !important;
}

.map-navigation-gadget {
  position: absolute;
  z-index: 79;
  right: var(--map-gadget-right-active);
  bottom: var(--map-gadget-bottom-active);
  display: none;
  width: var(--map-gadget-size-active);
  height: var(--map-gadget-size-active);
  box-sizing: border-box;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--map-gadget-gap-active);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)),
    rgba(4, 29, 41, 0.72);
  box-shadow:
    0 18px 42px rgba(3, 21, 31, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(1.14);
}

.map-stage.map-focus .map-navigation-gadget {
  display: grid;
}

.map-stage.map-focus #locateButton.hidden-control {
  display: grid !important;
}

.map-stage.map-focus #locateButton,
.map-compass,
.map-gadget-zoom-button {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  place-items: center;
  color: #ffffff;
  background: var(--map-gadget-cell-bg);
  overflow: hidden;
}

.map-stage.map-focus #locateButton {
  grid-column: 1;
  grid-row: 1;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  background: var(--map-gadget-cell-bg) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.map-stage.map-focus #locateButton {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  display: grid !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 5px 0 !important;
  gap: 1px !important;
  pointer-events: auto !important;
}

.map-stage.map-focus #locateButton [data-icon] {
  width: 24px !important;
  height: 24px !important;
  color: #ffffff !important;
  filter: drop-shadow(0 4px 8px rgba(56, 210, 255, 0.24)) !important;
}

.map-stage.map-focus #locateButton .locate-label {
  display: block !important;
  color: #ffffff !important;
  font-size: 0.64rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
}

.map-compass {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: auto;
  display: none;
  height: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  pointer-events: none;
}

.map-stage.map-focus .map-compass {
  display: grid;
}

.map-compass::before {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(143, 231, 255, 0.26);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.map-compass-needle {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 0;
  height: 15px;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 14px;
  transition: transform 260ms ease;
}

.map-compass-needle::before {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-bottom: 15px solid #75e8c4;
  border-left: 5px solid transparent;
  content: "";
  transform: translateX(-50%);
}

.map-compass strong {
  position: relative;
  top: 9px;
  font-size: 0.58rem;
  font-weight: 950;
}

.map-compass.has-heading strong {
  color: #8fe7ff;
  font-size: 0.62rem;
}

.map-stage.map-focus .map-navigation-gadget .map-compass {
  position: relative !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-items: center !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 0 !important;
  background: var(--map-gadget-cell-bg) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  overflow: hidden !important;
}

.map-stage.map-focus .map-navigation-gadget .map-compass::before {
  inset: auto !important;
  top: 5px !important;
  left: 50% !important;
  width: 28px !important;
  height: 28px !important;
  border: 1px solid rgba(143, 231, 255, 0.28) !important;
  border-radius: 50% !important;
  background: rgba(143, 231, 255, 0.06) !important;
  transform: translateX(-50%) !important;
}

.map-stage.map-focus .map-navigation-gadget .map-compass-needle {
  top: 8px !important;
  height: 15px !important;
  transform-origin: 50% 14px !important;
}

.map-stage.map-focus .map-navigation-gadget .map-compass-needle::before {
  border-right-width: 5px !important;
  border-bottom-width: 16px !important;
  border-left-width: 5px !important;
  border-bottom-color: #75e8c4 !important;
  filter: drop-shadow(0 4px 7px rgba(117, 232, 196, 0.3));
}

.map-stage.map-focus .map-navigation-gadget .map-compass strong {
  top: 9px !important;
  color: #ffffff !important;
  font-size: 0.58rem !important;
  font-weight: 950 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
}

.map-stage.map-focus .map-navigation-gadget .map-compass.has-heading::after {
  position: absolute !important;
  right: 0 !important;
  bottom: 3px !important;
  left: 0 !important;
  color: rgba(255, 255, 255, 0.74) !important;
  content: attr(data-heading-degree) !important;
  font-size: 0.48rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.24) !important;
}

.map-gadget-zoom-button {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 1.42rem;
  font-weight: 950;
  background: var(--map-gadget-cell-bg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

#mapZoomInButton {
  grid-column: 2;
  grid-row: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

#mapZoomOutButton {
  grid-column: 2;
  grid-row: 2;
}

.map-gadget-zoom-button:hover,
.map-stage.map-focus #locateButton:hover {
  background: var(--map-gadget-cell-hover-bg) !important;
}

@media (max-width: 680px) {
  .map-stage.map-focus {
    --map-gadget-right-active: 36px;
    --map-gadget-bottom-active: 104px;
  }
}

/* Hard layout guard: first home sections are normal stacked blocks, never overlapping. */
.map-stage.home-focus .home-dashboard {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(22px, 3vw, 34px) !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
.map-stage.home-focus .home-action-section,
.map-stage.home-focus #homeOnThisDay,
.map-stage.home-focus #homeJourney,
.map-stage.home-focus #homeTimelineStrip {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: auto !important;
  order: initial !important;
  flex: 0 0 auto !important;
  transform: none !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  order: 1 !important;
  margin-bottom: 0 !important;
}

.map-stage.home-focus .home-action-section {
  order: 2 !important;
  margin-top: 0 !important;
}

.map-stage.home-focus #homeOnThisDay {
  order: 3 !important;
}

.map-stage.home-focus #homeJourney {
  order: 4 !important;
}

.map-stage.home-focus #homeTimelineStrip {
  order: 5 !important;
}

.map-stage.home-focus .home-quick-actions {
  position: relative !important;
  z-index: auto !important;
  transform: none !important;
}

/* Final Today Memories photo layout: picture, note, and 8-second slide controls. */
.map-stage.home-focus .home-dashboard {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: auto !important;
  align-content: start !important;
  justify-items: center !important;
  gap: clamp(22px, 3.2vw, 36px) !important;
  top: clamp(190px, 24vh, 255px) !important;
  width: min(940px, calc(100vw - 24px)) !important;
  padding-bottom: 140px !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
.map-stage.home-focus .home-action-section,
.map-stage.home-focus .home-section:not(.home-action-section):not(.memory-of-day-card) {
  grid-column: 1 !important;
  width: min(760px, 100%) !important;
  justify-self: center !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  display: block !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  display: grid !important;
  gap: 9px !important;
  padding: clamp(18px, 3vw, 24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 26px !important;
  color: #093d54 !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(235, 250, 242, 0.94)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--today-memory-accent, #18a978) 22%, transparent), transparent 38%) !important;
  box-shadow: 0 20px 52px rgba(5, 26, 35, 0.2) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: grid !important;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr) !important;
  gap: clamp(14px, 2.5vw, 22px) !important;
  align-items: center !important;
  transform: translateY(-6px) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  position: relative !important;
  min-height: 190px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, var(--today-memory-accent, #18a978), #38aeea) !important;
  box-shadow: 0 16px 34px rgba(5, 26, 35, 0.2) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 190px !important;
  object-fit: cover !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
  align-self: center !important;
  justify-self: center !important;
  display: grid !important;
  width: 96px !important;
  height: 96px !important;
  place-items: center !important;
  border: 4px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 28px 28px 28px 10px !important;
  color: #fff !important;
  font-size: 2.4rem !important;
  background: linear-gradient(135deg, var(--today-memory-accent, #18a978), #38aeea) !important;
  box-shadow: 0 18px 38px color-mix(in srgb, var(--today-memory-accent, #18a978) 30%, transparent) !important;
  transform: rotate(-8deg) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: grid !important;
  align-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: none !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
  color: #093d54 !important;
  font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
  line-height: 1.08 !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(9, 61, 84, 0.62) !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

.map-stage.home-focus #homeMemoryOfDay p {
  display: -webkit-box !important;
  margin: 4px 0 0 !important;
  overflow: hidden !important;
  color: rgba(9, 61, 84, 0.76) !important;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem) !important;
  line-height: 1.5 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

.map-stage.home-focus .home-action-section {
  margin: clamp(4px, 1vw, 10px) 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.map-stage.home-focus .home-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    grid-template-columns: 1fr !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
    min-height: 210px !important;
  }

  .map-stage.home-focus .home-quick-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Final home layout lock: stack sections vertically so actions never overlap Today's Memories. */
.map-stage.home-focus .home-dashboard {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: auto !important;
  align-content: start !important;
  justify-items: center !important;
  gap: clamp(16px, 2.6vw, 28px) !important;
  top: clamp(220px, 27vh, 300px) !important;
  width: min(920px, calc(100vw - 24px)) !important;
  padding-bottom: 140px !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
.map-stage.home-focus .home-action-section,
.map-stage.home-focus .home-section:not(.home-action-section):not(.memory-of-day-card) {
  grid-column: 1 !important;
  width: min(720px, 100%) !important;
  justify-self: center !important;
}

.map-stage.home-focus .home-action-section {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.map-stage.home-focus .home-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}

.map-stage.home-focus .home-action-card {
  min-height: 96px !important;
}

@media (max-width: 640px) {
  .map-stage.home-focus .home-dashboard {
    top: clamp(205px, 25vh, 270px) !important;
  }

  .map-stage.home-focus .home-quick-actions {
    grid-template-columns: 1fr !important;
  }

  .map-stage.home-focus .home-action-card {
    min-height: 76px !important;
  }
}

/* Today's Memories v2: simple journal-style card, no oversized hero layout. */
.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  display: block !important;
  width: min(720px, 100%) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  display: grid !important;
  gap: 7px !important;
  padding: clamp(14px, 2.5vw, 20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 24px !important;
  color: #093d54 !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(235, 250, 242, 0.94)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--today-memory-accent, #18a978) 22%, transparent), transparent 38%) !important;
  box-shadow: 0 18px 46px rgba(5, 26, 35, 0.18) !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
  display: grid !important;
  width: 58px !important;
  height: 58px !important;
  place-items: center !important;
  border: 3px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 19px 19px 19px 8px !important;
  color: #fff !important;
  font-size: 1.45rem !important;
  background: linear-gradient(135deg, var(--today-memory-accent, #18a978), #38aeea) !important;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--today-memory-accent, #18a978) 28%, transparent) !important;
  transform: rotate(-8deg) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: none !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
  color: #093d54 !important;
  font-size: clamp(1.42rem, 2.6vw, 2rem) !important;
  line-height: 1.08 !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(9, 61, 84, 0.62) !important;
  font-size: 0.84rem !important;
  font-weight: 850 !important;
}

.map-stage.home-focus #homeMemoryOfDay p {
  display: -webkit-box !important;
  margin: 2px 0 0 !important;
  overflow: hidden !important;
  color: rgba(9, 61, 84, 0.76) !important;
  font-size: 0.98rem !important;
  line-height: 1.46 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.map-stage.home-focus #homeMemoryOfDay .home-memory-link {
  justify-self: start !important;
  margin: 0 !important;
  padding: 11px 16px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

@media (max-width: 560px) {
  .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px 16px 16px 7px !important;
    font-size: 1.22rem !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .home-memory-link {
    width: 100% !important;
  }
}

/* Final clean reset for Today's Memory: readable, compact, and slideshow-friendly. */
.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  width: min(760px, 100%) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 14px !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  border-radius: 26px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(231, 249, 241, 0.93)),
    radial-gradient(circle at 92% 10%, rgba(85, 195, 245, 0.16), transparent 32%) !important;
  box-shadow: 0 22px 58px rgba(5, 26, 35, 0.22) !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-media {
  min-height: 148px !important;
  max-height: 190px !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-media::after {
  background: linear-gradient(180deg, transparent 56%, rgba(9, 61, 84, 0.22)) !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-copy {
  display: grid !important;
  gap: 8px !important;
  padding: 18px 8px 4px !important;
  align-content: start !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  align-items: center !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-greeting {
  display: none !important;
}

.map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: none !important;
  margin: 0 !important;
  color: #093d54 !important;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem) !important;
  line-height: 1.08 !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-copy > small:not(.memory-day-greeting):not(.memory-day-slide-count) {
  color: rgba(9, 61, 84, 0.62) !important;
  font-size: 0.84rem !important;
}

.map-stage.home-focus #homeMemoryOfDay p {
  display: -webkit-box !important;
  max-width: none !important;
  margin: 2px 0 0 !important;
  overflow: hidden !important;
  color: rgba(9, 61, 84, 0.74) !important;
  font-size: 0.98rem !important;
  line-height: 1.48 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-dots {
  margin-top: 6px !important;
}

.map-stage.home-focus #homeMemoryOfDay .home-memory-link {
  justify-self: start !important;
  margin-top: 8px !important;
  padding: 12px 18px !important;
  border-radius: 999px !important;
}

/* Keep Explore map geography readable: clearer land, labels, borders, and roads. */
.map-stage.map-focus:not(.map-night) .leaflet-tile,
.map-stage.map-focus:not(.map-night) .maplibregl-canvas {
  filter: saturate(1.08) contrast(1.1) brightness(1.04) !important;
}

.map-stage.map-focus.map-night .leaflet-tile,
.map-stage.map-focus.map-night .maplibregl-canvas {
  filter: brightness(0.78) saturate(1.02) contrast(1.18) !important;
}

/* Today's Memory: stable slideshow card for one or many memories made today. */
.map-stage.home-focus .memory-of-day-card {
  grid-template-columns: minmax(230px, 0.38fr) minmax(0, 1fr) !important;
  min-height: clamp(280px, 34vh, 390px) !important;
  max-height: none;
  border-radius: 30px !important;
}

.map-stage.home-focus .memory-of-day-card .memory-day-media {
  min-height: clamp(280px, 34vh, 390px) !important;
}

.map-stage.home-focus .memory-of-day-card .memory-day-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-stage.home-focus .memory-of-day-card .memory-day-copy {
  align-content: center;
  gap: 10px !important;
  min-width: 0;
  padding: clamp(22px, 3.2vw, 38px) !important;
}

.memory-day-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.memory-day-slide-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(11, 109, 133, 0.12);
  border-radius: 999px;
  color: rgba(9, 61, 84, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.58);
}

.map-stage.home-focus .memory-of-day-card h3 {
  max-width: 11ch;
  color: #093d54;
  font-size: clamp(1.85rem, 4vw, 3.15rem) !important;
  line-height: 0.98 !important;
}

.map-stage.home-focus .memory-of-day-card p {
  display: -webkit-box;
  max-width: 560px;
  margin: 0;
  overflow: hidden;
  color: rgba(9, 61, 84, 0.74);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.memory-day-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.memory-day-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(9, 61, 84, 0.22);
  transition: width 220ms ease, background 220ms ease, transform 220ms ease;
}

.memory-day-dots button.active {
  width: 28px;
  background: linear-gradient(135deg, #0b6d85, #18a978);
  box-shadow: 0 8px 18px rgba(24, 169, 120, 0.24);
}

.memory-day-dots button:focus-visible {
  outline: 3px solid rgba(24, 169, 120, 0.35);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .map-stage.home-focus .memory-of-day-card {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    border-radius: 24px !important;
  }

  .map-stage.home-focus .memory-of-day-card .memory-day-media {
    min-height: 190px !important;
  }

  .map-stage.home-focus .memory-of-day-card h3 {
    max-width: none;
  }
}

/* Show full-body Mappi on the app background instead of a cropped face badge. */
.avatar-button img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

.mappi-greeting img,
.mappi-guide-bubble img,
.location-banner img,
.map-empty-state img,
.map-wake-mappi img,
.sheet-mappi-helper img {
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

.mappi-greeting img,
.mappi-guide-bubble img {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
}

/* Premium header controls: hamburger, Mappi, search, and notifications. */
.map-stage .topbar-left,
.map-stage .topbar-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(4, 29, 41, 0.28) !important;
  box-shadow:
    0 18px 42px rgba(3, 21, 31, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(16px) saturate(1.14) !important;
}

.map-stage .topbar .icon-button {
  position: relative !important;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  color: rgba(248, 255, 251, 0.9) !important;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(8, 36, 48, 0.48) !important;
  box-shadow:
    0 10px 22px rgba(3, 21, 31, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px) !important;
}

.map-stage .topbar .hidden-control {
  display: none !important;
}

.map-stage .topbar .icon-button:hover {
  color: #ffffff !important;
  border-color: rgba(117, 232, 196, 0.4) !important;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(23, 160, 133, 0.48), rgba(28, 120, 190, 0.4)) !important;
  box-shadow:
    0 14px 28px rgba(3, 21, 31, 0.2),
    0 0 0 3px rgba(24, 169, 120, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px);
}

.map-stage .topbar .icon-button [data-icon],
.map-stage .topbar .icon-button svg {
  width: 21px !important;
  height: 21px !important;
  stroke-width: 2.35 !important;
  filter: drop-shadow(0 6px 12px rgba(3, 21, 31, 0.18));
}

.map-stage .avatar-button {
  position: relative !important;
  display: grid !important;
  width: 52px !important;
  height: 52px !important;
  padding: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 38% 20%, rgba(255, 255, 255, 0.32), transparent 36%),
    linear-gradient(145deg, rgba(26, 169, 120, 0.42), rgba(31, 129, 184, 0.38)) !important;
  box-shadow:
    0 16px 36px rgba(3, 21, 31, 0.24),
    0 0 0 5px rgba(255, 255, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
}

.map-stage .avatar-button::before {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.map-stage .avatar-button img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: drop-shadow(0 9px 13px rgba(3, 21, 31, 0.22));
}

.map-stage .avatar-button:hover {
  border-color: rgba(117, 232, 196, 0.48) !important;
  box-shadow:
    0 18px 40px rgba(3, 21, 31, 0.28),
    0 0 0 5px rgba(24, 169, 120, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px);
}

.map-stage .notification-button::after {
  top: 7px !important;
  right: 7px !important;
  width: 8px !important;
  height: 8px !important;
  border: 2px solid rgba(4, 29, 41, 0.86) !important;
  background: #ff5e63 !important;
  box-shadow: 0 0 0 3px rgba(255, 94, 99, 0.16) !important;
}

@media (max-width: 560px) {
  .map-stage .topbar-left,
  .map-stage .topbar-actions {
    gap: 7px !important;
    padding: 5px !important;
  }

  .map-stage .topbar .icon-button {
    width: 40px !important;
    height: 40px !important;
  }

  .map-stage .avatar-button {
    width: 46px !important;
    height: 46px !important;
  }
}

.mappi-greeting img,
.mappi-guide-bubble img,
.location-banner img,
.map-empty-state img {
  transform: none !important;
}

.map-wake-mappi img,
.sheet-mappi-helper img {
  transform: none !important;
}

.empty-state::before,
.notification-heading::before,
.pin-search-heading::before {
  background:
    url("./mymappi-mascot-wave-v3.png") center / contain no-repeat,
    var(--mappi-mascot-surface) !important;
}

.account-menu::before {
  background:
    url("./mymappi-mascot-wave-v3.png") 10px center / 42px 42px no-repeat,
    linear-gradient(135deg, rgba(13, 63, 72, 0.3), rgba(255, 255, 255, 0.07)) !important;
}

/* Final override: Today's Memories shows the related photo, note, and clean slideshow. */
.map-stage.home-focus .home-dashboard {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: auto !important;
  align-content: start !important;
  justify-items: center !important;
  gap: clamp(22px, 3.2vw, 36px) !important;
  top: clamp(190px, 24vh, 255px) !important;
  width: min(940px, calc(100vw - 24px)) !important;
  padding-bottom: 140px !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
.map-stage.home-focus .home-action-section,
.map-stage.home-focus .home-section:not(.home-action-section):not(.memory-of-day-card) {
  grid-column: 1 !important;
  width: min(760px, 100%) !important;
  justify-self: center !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  display: block !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  display: grid !important;
  gap: 16px !important;
  padding: clamp(18px, 3vw, 24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 26px !important;
  color: #093d54 !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(235, 250, 242, 0.94)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--today-memory-accent, #18a978) 22%, transparent), transparent 38%) !important;
  box-shadow: 0 20px 52px rgba(5, 26, 35, 0.2) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: grid !important;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr) !important;
  gap: clamp(14px, 2.5vw, 22px) !important;
  align-items: center !important;
  margin-top: -9px !important;
  transform: translateY(-9px) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  position: relative !important;
  min-height: 190px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, var(--today-memory-accent, #18a978), #38aeea) !important;
  box-shadow: 0 16px 34px rgba(5, 26, 35, 0.2) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 190px !important;
  object-fit: cover !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
  align-self: center !important;
  justify-self: center !important;
  display: grid !important;
  width: 96px !important;
  height: 96px !important;
  place-items: center !important;
  border: 4px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 28px 28px 28px 10px !important;
  color: #fff !important;
  font-size: 2.4rem !important;
  background: linear-gradient(135deg, var(--today-memory-accent, #18a978), #38aeea) !important;
  box-shadow: 0 18px 38px color-mix(in srgb, var(--today-memory-accent, #18a978) 30%, transparent) !important;
  transform: rotate(-8deg) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: grid !important;
  align-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: none !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
  color: #093d54 !important;
  font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
  line-height: 1.08 !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(9, 61, 84, 0.62) !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

.map-stage.home-focus #homeMemoryOfDay p {
  display: -webkit-box !important;
  margin: 4px 0 0 !important;
  overflow: hidden !important;
  color: rgba(9, 61, 84, 0.76) !important;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem) !important;
  line-height: 1.5 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
}

.map-stage.home-focus .home-action-section {
  margin: clamp(4px, 1vw, 10px) 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.map-stage.home-focus .home-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    grid-template-columns: 1fr !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
    min-height: 210px !important;
  }

  .map-stage.home-focus .home-quick-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Final premium home surface system: warm, soft, and less glassy. */
.map-stage.home-focus {
  --home-paper: #fffdf8;
  --home-paper-soft: #f3fbf4;
  --home-ink: #093d54;
  --home-muted: rgba(9, 61, 84, 0.66);
  --home-line: rgba(19, 108, 116, 0.12);
  --home-shadow: 0 18px 46px rgba(5, 36, 45, 0.13);
  --home-shadow-soft: 0 10px 28px rgba(5, 36, 45, 0.1);
}

.map-stage.home-focus .home-dashboard {
  top: clamp(300px, 36vh, 392px) !important;
  width: min(1080px, calc(100vw - 28px)) !important;
  gap: clamp(26px, 3.6vw, 46px) !important;
}

.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  width: min(980px, 100%) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  position: relative !important;
  display: grid !important;
  min-height: clamp(360px, 47vh, 530px) !important;
  align-content: end !important;
  gap: 0 !important;
  padding: clamp(22px, 4vw, 42px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 26px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--today-memory-accent, #18a978) 35%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(15, 88, 92, 0.98), rgba(7, 45, 62, 0.98)) !important;
  box-shadow:
    0 30px 72px rgba(3, 21, 31, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  isolation: isolate !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  content: "" !important;
  background:
    linear-gradient(180deg, rgba(3, 18, 28, 0.04) 0%, rgba(3, 18, 28, 0.2) 34%, rgba(3, 18, 28, 0.84) 100%),
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--today-memory-accent, #18a978) 24%, transparent), transparent 48%) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  min-height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  filter: saturate(1.08) contrast(1.02) brightness(0.9) !important;
  transform: scale(1.035) !important;
  transition: transform 8s ease, filter 500ms ease !important;
}

.map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
.map-stage.home-focus #homeMemoryOfDay .today-memory-main,
.map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  position: relative !important;
  z-index: 2 !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: min(640px, 100%) !important;
  gap: clamp(14px, 2vw, 18px) !important;
  align-items: end !important;
  margin-top: clamp(92px, 16vh, 170px) !important;
  transform: none !important;
}

.map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: 13ch !important;
  color: #ffffff !important;
  font-size: clamp(2.3rem, 5vw, 4.65rem) !important;
  font-weight: 860 !important;
  line-height: 0.94 !important;
  text-shadow: 0 18px 44px rgba(1, 18, 28, 0.46) !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-copy small,
.map-stage.home-focus #homeMemoryOfDay p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 10px 28px rgba(1, 18, 28, 0.48) !important;
}

.map-stage.home-focus #homeOnThisDay,
.map-stage.home-focus #homeJourney,
.map-stage.home-focus #homeTimelineStrip {
  width: min(860px, 100%) !important;
  padding: clamp(20px, 3vw, 28px) !important;
  border: 1px solid var(--home-line) !important;
  border-radius: 22px !important;
  color: var(--home-ink) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(243, 251, 244, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(24, 169, 120, 0.08), transparent 42%) !important;
  box-shadow: var(--home-shadow-soft) !important;
  backdrop-filter: none !important;
}

.map-stage.home-focus .on-this-day-card,
.map-stage.home-focus .journey-card,
.map-stage.home-focus .home-timeline-card,
.map-stage.home-focus .home-action-card {
  border: 1px solid rgba(16, 103, 112, 0.1) !important;
  border-radius: 18px !important;
  color: var(--home-ink) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.96), rgba(250, 255, 250, 0.9)) !important;
  box-shadow: 0 10px 24px rgba(5, 36, 45, 0.09) !important;
  backdrop-filter: none !important;
}

.map-stage.home-focus .on-this-day-card:hover,
.map-stage.home-focus .journey-card:hover,
.map-stage.home-focus .home-timeline-card:hover,
.map-stage.home-focus .home-action-card:hover {
  border-color: rgba(24, 169, 120, 0.18) !important;
  background:
    linear-gradient(180deg, #ffffff, rgba(244, 253, 247, 0.96)) !important;
  box-shadow: 0 14px 34px rgba(5, 36, 45, 0.12) !important;
  transform: translateY(-1px) !important;
}

.map-stage.home-focus .home-action-section {
  margin-top: clamp(2px, 0.8vw, 8px) !important;
}

.map-stage.home-focus .home-quick-actions {
  gap: clamp(12px, 1.8vw, 18px) !important;
}

.map-stage.home-focus .home-section-heading > strong,
.map-stage.home-focus .home-section-heading strong,
.map-stage.home-focus .on-this-day-card small,
.map-stage.home-focus .journey-card small,
.map-stage.home-focus .home-timeline-card small {
  color: var(--home-muted) !important;
}

.map-stage.home-focus .home-section-title,
.map-stage.home-focus .home-section-heading span {
  color: var(--home-ink) !important;
}

.map-stage.home-focus .section-title-icon {
  border-color: rgba(24, 169, 120, 0.14) !important;
  background:
    linear-gradient(135deg, rgba(236, 252, 244, 0.98), rgba(224, 246, 250, 0.88)) !important;
  box-shadow: 0 8px 18px rgba(5, 36, 45, 0.08) !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus .home-dashboard {
    top: clamp(278px, 35vh, 346px) !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: clamp(390px, 58vh, 560px) !important;
    padding: 22px !important;
    border-radius: 24px !important;
  }

  .map-stage.home-focus #homeOnThisDay,
  .map-stage.home-focus #homeJourney,
  .map-stage.home-focus #homeTimelineStrip {
    padding: 18px !important;
    border-radius: 20px !important;
  }
}

/* Final gentle motion: soft entrances, slow photo drift, smooth memory slides. */
.map-stage.home-focus .hero-copy {
  animation: homeHeroSoftIn 720ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.map-stage.home-focus #homeMemoryOfDay,
.map-stage.home-focus .home-action-section,
.map-stage.home-focus #homeOnThisDay,
.map-stage.home-focus #homeJourney,
.map-stage.home-focus #homeTimelineStrip {
  animation: homeSectionSoftIn 780ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.map-stage.home-focus #homeMemoryOfDay {
  animation-delay: 90ms !important;
}

.map-stage.home-focus .home-action-section {
  animation-delay: 170ms !important;
}

.map-stage.home-focus #homeOnThisDay {
  animation-delay: 240ms !important;
}

.map-stage.home-focus #homeJourney {
  animation-delay: 310ms !important;
}

.map-stage.home-focus #homeTimelineStrip {
  animation-delay: 380ms !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  transition:
    opacity 520ms ease,
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 520ms ease !important;
}

.map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  animation: todayMemoryPhotoDrift 16s ease-in-out infinite alternate !important;
  transform-origin: 52% 48% !important;
}

.map-stage.home-focus #homeMemoryOfDay.is-traveling-memory .today-memory-card {
  opacity: 0 !important;
  transform: translate3d(-18px, 10px, 0) scale(0.985) !important;
}

.map-stage.home-focus #homeMemoryOfDay.is-arriving-memory .today-memory-card {
  animation: todayMemorySoftArrive 680ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.map-stage.home-focus #homeMemoryOfDay.is-arriving-memory .today-memory-copy > *,
.map-stage.home-focus #homeMemoryOfDay.is-arriving-memory .memory-day-topline,
.map-stage.home-focus #homeMemoryOfDay.is-arriving-memory .today-memory-footer {
  animation: todayMemoryTextSettle 760ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.map-stage.home-focus #homeMemoryOfDay.is-arriving-memory .today-memory-copy small {
  animation-delay: 70ms !important;
}

.map-stage.home-focus #homeMemoryOfDay.is-arriving-memory .today-memory-copy p {
  animation-delay: 130ms !important;
}

@keyframes homeHeroSoftIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes homeSectionSoftIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes todayMemoryPhotoDrift {
  0% {
    transform: scale(1.035) translate3d(-0.6%, -0.4%, 0);
  }
  100% {
    transform: scale(1.075) translate3d(0.7%, 0.5%, 0);
  }
}

@keyframes todayMemorySoftArrive {
  0% {
    opacity: 0;
    transform: translate3d(20px, 12px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes todayMemoryTextSettle {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-stage.home-focus .hero-copy,
  .map-stage.home-focus #homeMemoryOfDay,
  .map-stage.home-focus .home-action-section,
  .map-stage.home-focus #homeOnThisDay,
  .map-stage.home-focus #homeJourney,
  .map-stage.home-focus #homeTimelineStrip,
  .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img,
  .map-stage.home-focus #homeMemoryOfDay.is-arriving-memory .today-memory-card,
  .map-stage.home-focus #homeMemoryOfDay.is-arriving-memory .today-memory-copy > *,
  .map-stage.home-focus #homeMemoryOfDay.is-arriving-memory .memory-day-topline,
  .map-stage.home-focus #homeMemoryOfDay.is-arriving-memory .today-memory-footer {
    animation: none !important;
  }

  .map-stage.home-focus #homeMemoryOfDay .today-memory-card,
  .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
    transition: none !important;
    transform: none !important;
  }
}

/* Small Mappi moments: friendly empty states without overusing the mascot. */
.empty-state {
  position: relative !important;
  display: grid !important;
  gap: 8px !important;
  align-items: center !important;
  min-height: 84px !important;
  padding: 18px 18px 18px 72px !important;
  border: 1px solid rgba(24, 169, 120, 0.12) !important;
  border-radius: 18px !important;
  color: rgba(9, 61, 84, 0.74) !important;
  font-size: 0.96rem !important;
  font-weight: 760 !important;
  line-height: 1.42 !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(242, 251, 245, 0.94)) !important;
  box-shadow: 0 12px 28px rgba(5, 36, 45, 0.09) !important;
}

.empty-state::before {
  position: absolute !important;
  top: 16px !important;
  left: 18px !important;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(24, 169, 120, 0.12) !important;
  border-radius: 14px !important;
  background:
    url("./mymappi-mascot-wave-v3.png") center / contain no-repeat,
    linear-gradient(135deg, rgba(235, 252, 243, 0.98), rgba(224, 246, 250, 0.92)) !important;
  box-shadow: 0 8px 18px rgba(5, 36, 45, 0.1) !important;
  content: "" !important;
}

.map-empty-state strong {
  letter-spacing: 0 !important;
}

/* Final home hierarchy: promise -> today's memory -> actions -> discovery. */
.map-stage.home-focus .home-dashboard {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  gap: 0 !important;
  top: clamp(300px, 36vh, 392px) !important;
  width: min(1080px, calc(100vw - 28px)) !important;
}

.map-stage.home-focus #homeMemoryOfDay {
  order: 1 !important;
  width: min(980px, 100%) !important;
  margin-bottom: clamp(20px, 3vw, 32px) !important;
}

.map-stage.home-focus .home-action-section {
  order: 2 !important;
  width: min(820px, 100%) !important;
  margin: 0 0 clamp(34px, 5vw, 62px) !important;
}

.map-stage.home-focus #homeOnThisDay {
  order: 3 !important;
}

.map-stage.home-focus #homeJourney {
  order: 4 !important;
}

.map-stage.home-focus #homeTimelineStrip {
  order: 5 !important;
}

.map-stage.home-focus #homeOnThisDay,
.map-stage.home-focus #homeJourney,
.map-stage.home-focus #homeTimelineStrip {
  width: min(820px, 100%) !important;
  margin-bottom: clamp(18px, 2.6vw, 28px) !important;
}

.map-stage.home-focus .home-quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2vw, 20px) !important;
}

.map-stage.home-focus .home-action-card {
  min-height: 104px !important;
  padding: 18px !important;
}

.map-stage.home-focus #homeOnThisDay,
.map-stage.home-focus #homeJourney,
.map-stage.home-focus #homeTimelineStrip {
  transform: scale(0.985) !important;
  transform-origin: top center !important;
}

.map-stage.home-focus #homeOnThisDay .home-section-heading,
.map-stage.home-focus #homeJourney .home-section-heading,
.map-stage.home-focus #homeTimelineStrip .home-section-heading {
  margin-bottom: 14px !important;
}

@media (max-width: 680px) {
  .map-stage.home-focus .home-dashboard {
    top: clamp(278px, 35vh, 346px) !important;
    width: min(100%, calc(100vw - 20px)) !important;
  }

  .map-stage.home-focus .home-action-section {
    margin-bottom: 34px !important;
  }

  .map-stage.home-focus .home-quick-actions {
    grid-template-columns: 1fr !important;
  }

  .map-stage.home-focus .home-action-card {
    min-height: 82px !important;
  }

  .map-stage.home-focus #homeOnThisDay,
  .map-stage.home-focus #homeJourney,
  .map-stage.home-focus #homeTimelineStrip {
    transform: none !important;
  }
}

/* Final Apple Photos polish: Today's Memory leads, the rest supports it quietly. */
html body .app-shell .map-stage.home-focus .home-dashboard {
  top: clamp(324px, 38vh, 430px) !important;
  gap: 0 !important;
  padding-bottom: 150px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  order: 1 !important;
  width: min(1040px, calc(100vw - 32px)) !important;
  margin: 0 auto clamp(34px, 5vw, 62px) !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: clamp(430px, 58vh, 650px) !important;
  padding: clamp(22px, 3.5vw, 34px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: clamp(24px, 4vw, 34px) !important;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.34), transparent 35%),
    linear-gradient(135deg, rgba(20, 118, 109, 0.95), rgba(26, 82, 132, 0.92)) !important;
  box-shadow: 0 34px 92px rgba(7, 45, 55, 0.26), 0 12px 34px rgba(22, 116, 108, 0.12) !important;
  color: #fff !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(180deg, rgba(3, 20, 27, 0.1) 0%, rgba(3, 20, 27, 0.1) 38%, rgba(3, 20, 27, 0.82) 100%),
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(2, 20, 24, 0.2), transparent 58%) !important;
  content: "" !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card::after {
  position: absolute !important;
  inset: 12px !important;
  z-index: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: calc(clamp(24px, 4vw, 34px) - 8px) !important;
  content: "" !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(1.05) contrast(1.04) brightness(0.92) !important;
  transform: scale(1.035) !important;
  transition: transform 8s cubic-bezier(0.16, 1, 0.3, 1), filter 800ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo img {
  transform: scale(1.075) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  position: relative !important;
  z-index: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 auto !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  background: rgba(9, 35, 44, 0.38) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker {
  padding: 9px 13px !important;
  border-radius: 999px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker .section-title-icon {
  width: 27px !important;
  height: 27px !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker .section-title-text {
  color: #fff !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.08em !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: flex !important;
  align-items: flex-end !important;
  width: min(700px, 100%) !important;
  min-height: 0 !important;
  margin: auto 0 0 !important;
  padding-top: clamp(150px, 25vh, 270px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
  display: grid !important;
  place-items: center !important;
  width: clamp(86px, 14vw, 128px) !important;
  height: clamp(86px, 14vw, 128px) !important;
  margin-right: clamp(16px, 3vw, 26px) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 30px !important;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.22)) !important;
  color: #fff !important;
  font-size: clamp(2.3rem, 7vw, 4.5rem) !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(18px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: grid !important;
  gap: 11px !important;
  max-width: 680px !important;
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: 12ch !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(2.65rem, 7vw, 5.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 0.92 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: clamp(0.9rem, 1.7vw, 1.05rem) !important;
  font-weight: 650 !important;
  letter-spacing: 0.01em !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
  max-width: 54ch !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(1rem, 2vw, 1.28rem) !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-top: clamp(20px, 4vw, 34px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-memory-link {
  padding: 12px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #12323e !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-dots button {
  background: rgba(255, 255, 255, 0.45) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-dots button.active {
  background: #fff !important;
}

/* Home v448: clickable Today's Memory switcher. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-switcher,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-switcher {
  display: grid !important;
  width: 100% !important;
  gap: 10px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-label,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-label {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-scroll,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-scroll {
  display: flex !important;
  gap: 8px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  padding: 2px 2px 6px !important;
  scrollbar-width: thin !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-width: 138px !important;
  max-width: 210px !important;
  min-height: 42px !important;
  gap: 8px !important;
  padding: 8px 12px 8px 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  cursor: pointer !important;
  backdrop-filter: blur(12px) !important;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice span,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice span {
  display: inline-grid !important;
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 auto !important;
  place-items: center !important;
  border-radius: 50% !important;
  color: #12323e !important;
  background: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.74rem !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice strong,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice strong {
  display: block !important;
  overflow: hidden !important;
  font-size: 0.82rem !important;
  font-weight: 880 !important;
  letter-spacing: 0 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice:hover,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice:hover {
  border-color: rgba(255, 255, 255, 0.38) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice.active,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice.active {
  border-color: rgba(255, 255, 255, 0.74) !important;
  color: #0d2e39 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice.active span,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice.active span {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0a6170, #1bb58d) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice:focus-visible,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.38) !important;
  outline-offset: 3px !important;
}

@media (max-width: 560px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice {
    min-width: 126px !important;
    max-width: 180px !important;
  }
}

html body .app-shell .map-stage.home-focus .home-action-section {
  order: 2 !important;
  width: min(790px, calc(100vw - 38px)) !important;
  margin: 0 auto clamp(42px, 6vw, 76px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 2vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  min-height: 96px !important;
  padding: 18px !important;
  border: 1px solid rgba(31, 103, 96, 0.1) !important;
  border-radius: 20px !important;
  background: rgba(255, 253, 248, 0.88) !important;
  color: #183840 !important;
  box-shadow: 0 16px 36px rgba(14, 70, 69, 0.1) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary {
  border-color: rgba(30, 151, 118, 0.22) !important;
  background:
    linear-gradient(135deg, rgba(235, 252, 243, 0.94), rgba(225, 247, 250, 0.9)),
    rgba(255, 253, 248, 0.9) !important;
}

html body .app-shell .map-stage.home-focus .home-action-icon {
  width: 44px !important;
  height: 44px !important;
  box-shadow: 0 10px 24px rgba(15, 111, 109, 0.12) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  width: min(760px, calc(100vw - 42px)) !important;
  margin: 0 auto clamp(24px, 4vw, 38px) !important;
  padding: clamp(20px, 3vw, 26px) !important;
  border: 1px solid rgba(31, 103, 96, 0.1) !important;
  border-radius: 22px !important;
  background: rgba(255, 253, 248, 0.8) !important;
  box-shadow: 0 16px 42px rgba(9, 47, 50, 0.09) !important;
  transform: none !important;
  backdrop-filter: blur(18px) saturate(1.06) !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading {
  align-items: center !important;
  margin-bottom: 16px !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading span {
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, rgba(235, 252, 243, 0.98), rgba(225, 247, 250, 0.92)) !important;
  box-shadow: 0 10px 22px rgba(17, 122, 117, 0.1) !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading strong {
  color: #14323b !important;
  font-size: clamp(1.02rem, 2vw, 1.22rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus .home-section-subtitle,
html body .app-shell .map-stage.home-focus .journey-card p,
html body .app-shell .map-stage.home-focus .timeline-card p,
html body .app-shell .map-stage.home-focus .on-this-day-card p {
  color: rgba(31, 58, 64, 0.64) !important;
}

html body .app-shell .map-stage.home-focus .on-this-day-card,
html body .app-shell .map-stage.home-focus .journey-card,
html body .app-shell .map-stage.home-focus .timeline-card {
  border-color: rgba(31, 103, 96, 0.08) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 10px 26px rgba(13, 58, 61, 0.06) !important;
}

@media (prefers-reduced-motion: no-preference) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
    animation: todayMemoryPhotoDrift 16s ease-in-out infinite alternate !important;
  }
}

@media (max-width: 760px) {
  html body .app-shell .map-stage.home-focus .home-dashboard {
    top: clamp(300px, 36vh, 376px) !important;
    padding-bottom: 132px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
    width: min(100%, calc(100vw - 20px)) !important;
    margin-bottom: 28px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: clamp(390px, 62vh, 540px) !important;
    padding: 18px !important;
    border-radius: 26px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    width: 100% !important;
    padding-top: clamp(128px, 30vh, 230px) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
    max-width: 10ch !important;
    font-size: clamp(2.35rem, 11vw, 4.2rem) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
    font-size: 0.98rem !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    min-height: 82px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay,
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip {
    width: min(100%, calc(100vw - 24px)) !important;
  }
}

/* Home layout stabilizer: premium, but back in a clean readable flow. */
html body .app-shell .map-stage.home-focus .hero-copy {
  top: clamp(82px, 11vh, 116px) !important;
  z-index: 38 !important;
  display: grid !important;
  justify-items: center !important;
  gap: clamp(12px, 2vw, 20px) !important;
  width: min(760px, calc(100vw - 28px)) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus .hero-copy h2 {
  margin: 0 !important;
  color: #15343c !important;
  font-size: clamp(1.45rem, 4.2vw, 2.75rem) !important;
  font-weight: 850 !important;
  line-height: 1.02 !important;
  text-align: center !important;
  text-shadow: none !important;
  white-space: normal !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: clamp(10px, 1.7vw, 14px) !important;
  max-width: 720px !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse span {
  min-width: clamp(104px, 15vw, 142px) !important;
  min-height: 54px !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(18, 103, 97, 0.12) !important;
  border-radius: 18px !important;
  color: rgba(28, 62, 67, 0.62) !important;
  background: rgba(255, 253, 248, 0.84) !important;
  box-shadow: 0 12px 30px rgba(19, 89, 87, 0.1) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse strong {
  color: #173c44 !important;
  font-size: clamp(1.05rem, 2vw, 1.28rem) !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard {
  top: clamp(260px, 32vh, 340px) !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  bottom: 108px !important;
  left: max(14px, env(safe-area-inset-left)) !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  gap: clamp(20px, 3vw, 34px) !important;
  width: min(980px, calc(100vw - 28px)) !important;
  margin: 0 auto !important;
  padding: 0 0 120px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  order: 1 !important;
  width: min(900px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.74) !important;
  border-radius: 28px !important;
  background: transparent !important;
  box-shadow: 0 22px 58px rgba(13, 70, 71, 0.18) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  min-height: clamp(330px, 42vh, 460px) !important;
  padding: clamp(18px, 3vw, 28px) !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(180deg, rgba(12, 45, 52, 0.12), rgba(9, 31, 37, 0.82)),
    linear-gradient(135deg, rgba(28, 155, 124, 0.94), rgba(28, 118, 158, 0.94)) !important;
  box-shadow: none !important;
  color: #fff !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(180deg, rgba(3, 20, 24, 0.02) 0%, rgba(3, 20, 24, 0.16) 46%, rgba(3, 20, 24, 0.78) 100%),
    radial-gradient(circle at 76% 20%, rgba(255, 255, 255, 0.2), transparent 32%) !important;
  content: "" !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card::after {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(1.04) contrast(1.02) brightness(0.9) !important;
  transform: scale(1.02) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  position: relative !important;
  z-index: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  align-items: center !important;
  margin: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(8, 37, 43, 0.34) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(14px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: flex !important;
  align-items: flex-end !important;
  width: min(620px, 100%) !important;
  min-height: 0 !important;
  margin: auto 0 0 !important;
  padding-top: clamp(74px, 16vh, 150px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: grid !important;
  gap: 8px !important;
  max-width: 600px !important;
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.26) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: 14ch !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.8rem) !important;
  font-weight: 820 !important;
  line-height: 0.98 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
  max-width: 48ch !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(0.96rem, 1.8vw, 1.16rem) !important;
  line-height: 1.5 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
  width: clamp(70px, 10vw, 96px) !important;
  height: clamp(70px, 10vw, 96px) !important;
  margin-right: 18px !important;
  border-radius: 24px !important;
  font-size: clamp(2rem, 5vw, 3.2rem) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  margin-top: 18px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-memory-link {
  min-height: 42px !important;
  padding: 0 17px !important;
  border-radius: 999px !important;
}

html body .app-shell .map-stage.home-focus .home-action-section {
  order: 2 !important;
  width: min(760px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 2vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  min-height: 92px !important;
  padding: 16px !important;
  border: 1px solid rgba(26, 105, 100, 0.1) !important;
  border-radius: 19px !important;
  background: rgba(255, 253, 248, 0.86) !important;
  color: #173c44 !important;
  box-shadow: 0 14px 32px rgba(12, 71, 72, 0.1) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card span {
  width: 40px !important;
  height: 40px !important;
  border-radius: 15px !important;
}

html body .app-shell .map-stage.home-focus .home-action-card strong {
  font-size: 0.98rem !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay {
  order: 3 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney {
  order: 4 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  order: 5 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  width: min(760px, 100%) !important;
  margin: 0 auto !important;
  padding: 20px !important;
  border: 1px solid rgba(26, 105, 100, 0.1) !important;
  border-radius: 22px !important;
  background: rgba(255, 253, 248, 0.78) !important;
  box-shadow: 0 14px 34px rgba(13, 70, 71, 0.08) !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading {
  margin-bottom: 12px !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading strong {
  color: #173c44 !important;
  font-size: 1.34rem !important
  font-weight: 820 !important;
}

@media (max-width: 760px) {
  html body .app-shell .map-stage.home-focus .hero-copy {
    top: 76px !important;
    gap: 10px !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard {
    top: 292px !important;
    right: 10px !important;
    left: 10px !important;
    width: calc(100vw - 20px) !important;
    gap: 18px !important;
    padding-bottom: 104px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: 330px !important;
    padding: 17px !important;
    border-radius: 24px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    padding-top: 82px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
    font-size: clamp(2rem, 10vw, 3.1rem) !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    min-height: 76px !important;
  }
}

/* Emergency home rebuild: put the page back into one dependable vertical flow. */
html body .app-shell .map-stage.home-focus {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-height: 100vh !important;
  height: 100vh !important;
  padding: 0 0 138px !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(179, 236, 219, 0.62), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(166, 222, 255, 0.52), transparent 28%),
    linear-gradient(180deg, #eaf8f1 0%, #e8f5fa 42%, #f8fbf5 100%) !important;
}

html body .app-shell .map-stage.home-focus::before,
html body .app-shell .map-stage.home-focus::after {
  opacity: 0 !important;
  animation: none !important;
}

html body .app-shell .map-stage.home-focus #map,
html body .app-shell .map-stage.home-focus .earth-globe,
html body .app-shell .map-stage.home-focus .home-background,
html body .app-shell .map-stage.home-focus .spotlight-cards,
html body .app-shell .map-stage.home-focus .favorite-notes,
html body .app-shell .map-stage.home-focus .explore-panel,
html body .app-shell .map-stage.home-focus .pin-network {
  display: none !important;
}

html body .app-shell .map-stage.home-focus .topbar {
  position: sticky !important;
  top: 14px !important;
  right: auto !important;
  left: auto !important;
  z-index: 700 !important;
  width: min(960px, calc(100vw - 24px)) !important;
  margin: 14px auto 0 !important;
  padding: 0 !important;
}

html body .app-shell .map-stage.home-focus .hero-copy {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  z-index: 40 !important;
  display: grid !important;
  width: min(760px, calc(100vw - 28px)) !important;
  margin: clamp(28px, 5vh, 54px) auto 0 !important;
  justify-items: center !important;
  gap: 16px !important;
  text-align: center !important;
  transform: none !important;
  pointer-events: auto !important;
}

html body .app-shell .map-stage.home-focus .hero-copy h2 {
  max-width: 11ch !important;
  margin: 0 !important;
  color: #f8fffb !important;
  font-size: clamp(2rem, 7vw, 4.1rem) !important;
  font-weight: 860 !important;
  line-height: 0.96 !important;
  letter-spacing: 0 !important;
  text-shadow:
    0 2px 12px rgba(15, 83, 83, 0.26),
    0 16px 38px rgba(16, 90, 88, 0.18) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: min(620px, 100%) !important;
  margin: 0 auto !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse span {
  display: grid !important;
  min-width: 0 !important;
  min-height: 60px !important;
  place-items: center !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(21, 97, 92, 0.1) !important;
  border-radius: 18px !important;
  color: rgba(23, 60, 68, 0.58) !important;
  font-size: 0.72rem !important;
  font-weight: 820 !important;
  text-transform: uppercase !important;
  background: rgba(255, 253, 248, 0.82) !important;
  box-shadow: 0 12px 28px rgba(16, 90, 88, 0.1) !important;
  backdrop-filter: blur(14px) !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse strong {
  display: block !important;
  color: #173c44 !important;
  font-size: clamp(1.1rem, 2.4vw, 1.36rem) !important;
  line-height: 1 !important;
  text-transform: none !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 35 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: min(900px, calc(100vw - 28px)) !important;
  margin: clamp(26px, 5vw, 44px) auto 0 !important;
  padding: 0 0 24px !important;
  gap: clamp(18px, 3vw, 28px) !important;
  overflow: visible !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
html body .app-shell .map-stage.home-focus .home-action-section,
html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  order: 1 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 26px !important;
  background: rgba(255, 253, 248, 0.62) !important;
  box-shadow: 0 22px 54px rgba(13, 70, 71, 0.16) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  min-height: clamp(320px, 48vw, 420px) !important;
  padding: clamp(18px, 3vw, 26px) !important;
  border-radius: inherit !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  padding-top: clamp(70px, 16vw, 140px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: 13ch !important;
  font-size: clamp(2rem, 5.8vw, 3.6rem) !important;
}

html body .app-shell .map-stage.home-focus .home-action-section {
  order: 2 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  min-height: 88px !important;
  padding: 15px !important;
  border: 1px solid rgba(21, 97, 92, 0.1) !important;
  border-radius: 18px !important;
  color: #173c44 !important;
  background: rgba(255, 253, 248, 0.84) !important;
  box-shadow: 0 12px 28px rgba(16, 90, 88, 0.08) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary {
  color: #fff !important;
  background: linear-gradient(135deg, #168c73 0%, #237fa9 100%) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay {
  order: 3 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney {
  order: 4 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  order: 5 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  padding: 20px !important;
  border: 1px solid rgba(21, 97, 92, 0.1) !important;
  border-radius: 22px !important;
  background: rgba(255, 253, 248, 0.78) !important;
  box-shadow: 0 14px 34px rgba(16, 90, 88, 0.08) !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading > .home-section-title,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  color: #173c44 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .section-title-icon {
  display: inline-grid !important;
  width: 28px !important;
  height: 28px !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: rgba(22, 140, 115, 0.12) !important;
}

html body .app-shell .map-stage.home-focus .section-title-text {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .bottom-nav {
  position: fixed !important;
  z-index: 800 !important;
  right: 24px !important;
  bottom: 22px !important;
  left: 24px !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus {
    padding-bottom: 120px !important;
  }

  html body .app-shell .map-stage.home-focus .topbar {
    top: 10px !important;
    width: calc(100vw - 20px) !important;
    margin-top: 10px !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy {
    margin-top: 24px !important;
    width: calc(100vw - 24px) !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy h2 {
    max-width: 12ch !important;
    font-size: clamp(2rem, 11vw, 3.2rem) !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse span {
    min-height: 54px !important;
    padding: 8px !important;
    font-size: 0.63rem !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard {
    width: calc(100vw - 20px) !important;
    margin-top: 22px !important;
    gap: 16px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: 320px !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .map-stage.home-focus .bottom-nav {
    right: 10px !important;
    bottom: 12px !important;
    left: 10px !important;
  }
}

/* Home visual correction: keep the stable flow, restore a calmer MyMappi world feel. */
html body .app-shell .map-stage.home-focus {
  background:
    radial-gradient(circle at 18% 12%, rgba(125, 211, 166, 0.34), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(78, 176, 220, 0.28), transparent 32%),
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.68), transparent 44%),
    linear-gradient(180deg, #dff4ea 0%, #e8f7fb 48%, #f9fbf4 100%) !important;
}

html body .app-shell .map-stage.home-focus .topbar {
  margin-top: 12px !important;
}

html body .app-shell .map-stage.home-focus .hero-copy {
  width: min(860px, calc(100vw - 28px)) !important;
  margin-top: clamp(22px, 4vh, 40px) !important;
  padding: clamp(18px, 3vw, 28px) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(245, 252, 247, 0.64)),
    radial-gradient(circle at 12% 0%, rgba(48, 170, 126, 0.12), transparent 34%) !important;
  box-shadow: 0 20px 54px rgba(16, 90, 88, 0.13) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
}

html body .app-shell .map-stage.home-focus .hero-copy h2 {
  max-width: none !important;
  color: #1f8f8a !important;
  font-size: clamp(1.75rem, 4.8vw, 3.35rem) !important;
  line-height: 1.02 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 28px rgba(31, 143, 138, 0.18) !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse {
  width: min(640px, 100%) !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse span {
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 10px 24px rgba(16, 90, 88, 0.08) !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard {
  width: min(860px, calc(100vw - 28px)) !important;
  margin-top: clamp(18px, 3vw, 28px) !important;
  gap: clamp(16px, 2.4vw, 24px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  border-radius: 24px !important;
  box-shadow: 0 18px 46px rgba(13, 70, 71, 0.14) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  min-height: clamp(290px, 38vw, 390px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  padding-top: clamp(56px, 12vw, 116px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
  font-size: clamp(1.85rem, 4.8vw, 3.15rem) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card,
html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  background: rgba(255, 253, 248, 0.72) !important;
  box-shadow: 0 12px 30px rgba(16, 90, 88, 0.08) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .hero-copy {
    margin-top: 18px !important;
    padding: 18px !important;
    border-radius: 24px !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy h2 {
    max-width: 12ch !important;
    font-size: clamp(1.95rem, 10vw, 3rem) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: 300px !important;
  }
}

/* Home centering correction: keep section names centered and calm. */
html body .app-shell .map-stage.home-focus .home-dashboard {
  align-items: center !important;
  justify-items: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
html body .app-shell .map-stage.home-focus .home-action-section,
html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  justify-self: center !important;
  width: min(820px, 100%) !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading > .home-section-title,
html body .app-shell .map-stage.home-focus .home-section-heading > span,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading > strong {
  max-width: 100% !important;
  margin: 0 auto !important;
  color: rgba(20, 58, 66, 0.66) !important;
  font-size: 0.9rem !important;
  font-weight: 760 !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .on-this-day-card,
html body .app-shell .map-stage.home-focus .journey-card {
  margin-inline: auto !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus .home-timeline-row {
  justify-content: center !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
  html body .app-shell .map-stage.home-focus .home-action-section,
  html body .app-shell .map-stage.home-focus #homeOnThisDay,
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip {
    width: 100% !important;
  }
}

/* Hard center rail: all home content shares the same centered axis. */
html body .app-shell .map-stage.home-focus .hero-copy,
html body .app-shell .map-stage.home-focus .home-dashboard,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
html body .app-shell .map-stage.home-focus .home-action-section,
html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  box-sizing: border-box !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

html body .app-shell .map-stage.home-focus .hero-copy,
html body .app-shell .map-stage.home-focus .home-dashboard {
  right: auto !important;
  left: auto !important;
  max-width: calc(100vw - 28px) !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard {
  width: min(760px, calc(100vw - 28px)) !important;
  justify-content: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
html body .app-shell .map-stage.home-focus .home-action-section,
html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  margin-top: 7px !important;
}

html body .app-shell .map-stage.home-focus .on-this-day-card,
html body .app-shell .map-stage.home-focus .journey-card {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  width: min(560px, 100%) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 18px !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .on-this-day-card > span:first-child,
html body .app-shell .map-stage.home-focus .journey-badge {
  margin: 0 auto !important;
}

html body .app-shell .map-stage.home-focus .on-this-day-card > span,
html body .app-shell .map-stage.home-focus .journey-card > span {
  min-width: 0 !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .on-this-day-card small {
  grid-column: auto !important;
  justify-self: center !important;
}

html body .app-shell .map-stage.home-focus .home-timeline-row {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

html body .app-shell .map-stage.home-focus .home-timeline-card {
  text-align: center !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .home-dashboard,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
  html body .app-shell .map-stage.home-focus .home-action-section,
  html body .app-shell .map-stage.home-focus #homeOnThisDay,
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* Center the home header itself so the whole page feels balanced. */
html body .app-shell .map-stage.home-focus .topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 12px !important;
}

html body .app-shell .map-stage.home-focus .topbar-left {
  display: flex !important;
  justify-self: start !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
}

html body .app-shell .map-stage.home-focus .brand {
  grid-column: 2 !important;
  justify-self: center !important;
  margin: 0 auto !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus .topbar-actions {
  display: flex !important;
  justify-self: start !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  margin-left: 0 !important;
}

html body .app-shell .map-stage.home-focus .hero-copy,
html body .app-shell .map-stage.home-focus .home-dashboard {
  position: relative !important;
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus .hero-copy > *,
html body .app-shell .map-stage.home-focus .home-dashboard > * {
  justify-self: center !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .topbar {
    grid-template-columns: minmax(74px, 1fr) auto minmax(74px, 1fr) !important;
    gap: 8px !important;
  }

  html body .app-shell .map-stage.home-focus .topbar-left,
  html body .app-shell .map-stage.home-focus .topbar-actions {
    gap: 8px !important;
  }
}

/* Header repair: keep controls clean while MyMappi stays centered. */
html body .app-shell .map-stage.home-focus .topbar {
  position: sticky !important;
  top: 14px !important;
  right: auto !important;
  left: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(960px, calc(100vw - 24px)) !important;
  min-height: 54px !important;
  margin: 14px auto 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus .topbar-left {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  transform: translateY(-50%) !important;
  pointer-events: auto !important;
}

html body .app-shell .map-stage.home-focus .brand {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  grid-column: auto !important;
  justify-self: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  padding: 8px 14px !important;
  transform: none !important;
  pointer-events: auto !important;
}

html body .app-shell .map-stage.home-focus .topbar-actions {
  position: absolute !important;
  top: 50% !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-width: auto !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  pointer-events: auto !important;
}

html body .app-shell .map-stage.home-focus .topbar .icon-button,
html body .app-shell .map-stage.home-focus .topbar .avatar-button {
  flex: 0 0 auto !important;
}

html body .app-shell .map-stage.home-focus .topbar-actions .hidden-control {
  display: none !important;
}

/* Section header repair: icons and titles stay compact and readable. */
html body .app-shell .map-stage.home-focus .home-section-heading {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .home-section-title,
html body .app-shell .map-stage.home-focus .home-section-heading > .home-section-title,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  color: #173c44 !important;
  font-size: 0.8rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading > span:not(.home-section-title) {
  width: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .section-title-icon,
html body .app-shell .map-stage.home-focus .home-section-title .section-title-icon,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker .section-title-icon {
  display: inline-grid !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: rgba(22, 140, 115, 0.12) !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .section-title-text,
html body .app-shell .map-stage.home-focus .home-section-title .section-title-text,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker .section-title-text {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading > strong {
  display: block !important;
  max-width: min(100%, 540px) !important;
  margin: 0 auto !important;
  color: #234851 !important;
  font-size: 0.92rem !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-title,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-title,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-title {
  color: #12343d !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .section-title-icon,
html body .app-shell .map-stage.home-focus #homeJourney .section-title-icon,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .section-title-icon {
  background: rgba(18, 52, 61, 0.12) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  gap: 7px !important;
  width: 100% !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .topbar {
    width: calc(100vw - 20px) !important;
    min-height: 50px !important;
    margin-top: 10px !important;
  }

  html body .app-shell .map-stage.home-focus .topbar-left,
  html body .app-shell .map-stage.home-focus .topbar-actions {
    gap: 8px !important;
  }

  html body .app-shell .map-stage.home-focus .brand {
    padding: 7px 11px !important;
  }
}

/* Premium Today's Memory card: photo, date, and note become the home centerpiece. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  width: min(860px, 100%) !important;
  max-width: 860px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 32px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  min-height: clamp(420px, 52vw, 560px) !important;
  overflow: hidden !important;
  padding: clamp(20px, 3.4vw, 34px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 32px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--today-memory-accent, #1f8f8a) 84%, #173c44), #1c6c84) !important;
  box-shadow:
    0 30px 80px rgba(15, 74, 76, 0.24),
    0 12px 34px rgba(13, 70, 71, 0.14) !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(180deg, rgba(4, 26, 32, 0.08) 0%, rgba(4, 26, 32, 0.1) 38%, rgba(4, 26, 32, 0.82) 100%),
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.2), transparent 30%) !important;
  content: "" !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(1.06) contrast(1.04) brightness(0.92) !important;
  transform: scale(1.025) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  position: relative !important;
  z-index: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: 100% !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-name-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-date-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 0.74rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  background: rgba(7, 36, 42, 0.34) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-name-pill {
  max-width: min(100%, 420px) !important;
  overflow: hidden !important;
  color: #143a42 !important;
  font-size: clamp(0.9rem, 1.8vw, 1.08rem) !important;
  font-weight: 920 !important;
  letter-spacing: 0 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker {
  font-size: 0.76rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker .section-title-icon {
  background: rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: auto auto 0 !important;
  padding-top: clamp(140px, 24vw, 260px) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: grid !important;
  justify-items: center !important;
  gap: 10px !important;
  width: min(660px, 100%) !important;
  max-width: 660px !important;
  color: #fff !important;
  text-align: center !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: 14ch !important;
  margin: 0 auto !important;
  color: #fff !important;
  font-size: clamp(2.3rem, 6vw, 4.7rem) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 0.94 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-title {
  display: block !important;
  visibility: visible !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: clamp(0.9rem, 1.5vw, 1rem) !important;
  font-weight: 720 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
  display: -webkit-box !important;
  max-width: 52ch !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1rem, 2vw, 1.22rem) !important;
  font-weight: 560 !important;
  line-height: 1.5 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
  display: grid !important;
  width: clamp(88px, 14vw, 128px) !important;
  height: clamp(88px, 14vw, 128px) !important;
  margin: 0 18px 0 0 !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(18px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 22px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-memory-link {
  min-height: 44px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 999px !important;
  color: #143a42 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: 390px !important;
    border-radius: 26px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    padding-top: 120px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
    font-size: clamp(2.05rem, 10vw, 3.45rem) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
    display: none !important;
  }
}

/* Final home title scale: make the discovery section names 15% more prominent. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-title,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-title,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-title {
  font-size: 0.92rem !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading > strong,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading > strong,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading > strong {
  font-size: 1.06rem !important;
}

/* Memories section palette: dark blue and green, no purple-blue cast. */
html body .app-shell .map-stage.memories-focus {
  background:
    radial-gradient(circle at 16% 10%, rgba(35, 197, 122, 0.2), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(35, 194, 221, 0.16), transparent 30%),
    linear-gradient(180deg, #061a26 0%, #082f3c 48%, #0d3d34 100%) !important;
}

html body .app-shell .map-stage.memories-focus::before {
  background:
    linear-gradient(135deg, rgba(95, 225, 184, 0.1), transparent 34%),
    linear-gradient(225deg, rgba(83, 194, 232, 0.09), transparent 38%) !important;
  background-image: none !important;
  opacity: 1 !important;
}

html body .app-shell .map-stage.memories-focus .memory-database-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 197, 122, 0.2), transparent 34%),
    radial-gradient(circle at 92% 14%, rgba(35, 194, 221, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(6, 26, 38, 0.98), rgba(8, 47, 60, 0.96) 50%, rgba(13, 61, 52, 0.98)) !important;
}

html body .app-shell .map-stage.memories-focus .panel-section,
html body .app-shell .map-stage.memories-focus .tabs {
  background: linear-gradient(180deg, rgba(6, 26, 38, 0.96), rgba(8, 47, 60, 0.9)) !important;
}

html body .app-shell .map-stage.memories-focus .memory-hub-heading h2,
html body .app-shell .map-stage.memories-focus .memory-hub-heading p,
html body .app-shell .map-stage.memories-focus #memoryCount {
  color: rgba(246, 255, 251, 0.94) !important;
}

html body .app-shell .map-stage.memories-focus .tab.active {
  color: #06222b !important;
  background: linear-gradient(135deg, #76e4b1, #57d7e9) !important;
}

html body .app-shell .map-stage.memories-focus .tab:not(.active),
html body .app-shell .map-stage.memories-focus .search-wrap {
  color: rgba(235, 255, 248, 0.78) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(180, 245, 225, 0.14) !important;
}

/* Final home polish: remove purple from Today's Memory and make section headliners read clearly. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  border-color: rgba(184, 240, 222, 0.32) !important;
  background:
    linear-gradient(180deg, rgba(8, 55, 63, 0.08), rgba(5, 35, 43, 0.8)),
    linear-gradient(135deg, #0b6d85 0%, #159574 54%, #74c95c 100%) !important;
  box-shadow:
    0 30px 86px rgba(5, 28, 35, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card::before {
  background:
    linear-gradient(180deg, rgba(4, 24, 31, 0.04) 0%, rgba(4, 24, 31, 0.14) 42%, rgba(4, 24, 31, 0.82) 100%),
    linear-gradient(90deg, rgba(4, 38, 39, 0.24), transparent 60%) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-name-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-date-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  border-color: rgba(207, 255, 238, 0.28) !important;
  background: rgba(4, 42, 47, 0.46) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-name-pill {
  color: #0a3c42 !important;
  background: rgba(247, 255, 250, 0.92) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-title,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-title,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 48px !important;
  padding: 10px 18px !important;
  border: 1px solid rgba(12, 87, 82, 0.14) !important;
  border-radius: 999px !important;
  color: #082f3c !important;
  font-size: clamp(1.06rem, 2vw, 1.24rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: linear-gradient(135deg, rgba(247, 255, 250, 0.98), rgba(225, 247, 250, 0.94)) !important;
  box-shadow:
    0 14px 32px rgba(7, 45, 50, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.74) inset !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .section-title-icon,
html body .app-shell .map-stage.home-focus #homeJourney .section-title-icon,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .section-title-icon {
  width: 34px !important;
  height: 34px !important;
  font-size: 1.34rem !important
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .section-title-text,
html body .app-shell .map-stage.home-focus #homeJourney .section-title-text,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .section-title-text {
  font-size: inherit !important;
  line-height: 1.05 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading > strong,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading > strong,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading > strong {
  color: #0c3b43 !important;
  font-size: clamp(1.02rem, 1.9vw, 1.18rem) !important;
  font-weight: 820 !important;
}

/* Lock lower home headline icons in place so emojis never drift inside the title pill. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-title,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-title,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-title {
  display: inline-grid !important;
  grid-template-columns: 34px auto !important;
  column-gap: 10px !important;
  align-items: center !important;
  justify-items: start !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  text-align: left !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-title .section-title-icon,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-title .section-title-icon,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-title .section-title-icon {
  position: static !important;
  display: grid !important;
  place-items: center !important;
  justify-self: center !important;
  align-self: center !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: inherit !important;
  font-size: 1.34rem !important
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-title .section-title-text,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-title .section-title-text,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-title .section-title-text {
  display: block !important;
  min-width: 0 !important;
  line-height: 1.05 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

/* Premium MyMappi wordmark treatment: clean on Home, glass-backed on Explore. */
html body .app-shell .topbar .brand {
  border-radius: 999px !important;
  text-decoration: none !important;
}

html body .app-shell .topbar .brand h1 {
  color: #f5fbff !important;
  font-size: clamp(2.12rem, 3.6vw, 3.18rem) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 0.98 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 30px rgba(4, 28, 38, 0.28),
    0 0 24px rgba(86, 221, 205, 0.16) !important;
}

html body .app-shell .topbar .brand-my,
html body .app-shell .topbar .brand-i {
  color: #f5fbff !important;
}

html body .app-shell .topbar .brand-mapp {
  background: linear-gradient(90deg, #32dc91 0%, #25cfe6 48%, #4e93ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

html body .app-shell .topbar .brand-i::before {
  top: -0.035em !important;
  left: 50% !important;
  width: 0.215em !important;
  height: 0.215em !important;
  border: 0.028em solid rgba(255, 255, 255, 0.96) !important;
  background: radial-gradient(circle at 36% 30%, #ff9087 0 18%, #ff4d48 48%, #e92f34 100%) !important;
  box-shadow:
    0 0.05em 0.16em rgba(255, 49, 56, 0.36),
    0 0 0.24em rgba(255, 90, 94, 0.28) !important;
  transform: translateX(-50%) !important;
}

html body .app-shell .map-stage.home-focus .brand {
  padding: 10px 16px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html body .app-shell .map-stage.home-focus .brand h1 {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24),
    0 18px 38px rgba(4, 39, 44, 0.22),
    0 0 28px rgba(93, 224, 193, 0.14) !important;
}

/* Premium brand promise treatment for the home headline. */
html body .app-shell .map-stage.home-focus .hero-copy h2 {
  max-width: min(92vw, 760px) !important;
  margin: 0 auto !important;
  color: #073f4a !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(2.05rem, 4.8vw, 4.15rem) !important;
  font-style: normal !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.04 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 12px 28px rgba(6, 63, 74, 0.14) !important;
}

html body .app-shell .map-stage.home-focus .hero-copy h2::first-letter {
  color: inherit !important;
}

/* Keep section subtitles quieter than the main headline pill. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading > strong,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading > strong,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading > strong {
  font-size: clamp(0.82rem, 1.5vw, 0.94rem) !important;
}

/* Slightly soften lower home headline size after the title pass. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-title,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-title,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-title {
  min-height: 43px !important;
  padding: 9px 16px !important;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-title .section-title-icon,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-title .section-title-icon,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-title .section-title-icon {
  width: 31px !important;
  min-width: 31px !important;
  height: 31px !important;
  min-height: 31px !important;
  font-size: 1rem !important;
}

/* Full-screen memory photo viewer. */
[data-photo-full] {
  cursor: zoom-in !important;
}

[data-video-full] {
  cursor: pointer !important;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.photo-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(69, 221, 192, 0.16), transparent 34%),
    rgba(2, 10, 16, 0.86);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.photo-lightbox-frame {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(1120px, 100%);
  max-height: 92vh;
  margin: 0;
  justify-items: center;
  transform: translateY(10px) scale(0.985);
  transition: transform 180ms ease;
}

.photo-lightbox.open .photo-lightbox-frame {
  transform: translateY(0) scale(1);
}

.photo-lightbox-frame img,
.photo-lightbox-frame video {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 860px);
  object-fit: contain;
  border: 1px solid rgba(221, 255, 245, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.photo-lightbox-frame video {
  width: min(100%, 1040px);
  min-height: min(52vw, 520px);
  background: #020a10;
}

.photo-lightbox.video-mode .photo-lightbox-frame {
  width: min(1120px, calc(100vw - 28px));
}

.photo-lightbox-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #06343d;
  font-size: 0.95rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(22, 168, 121, 0.24);
  transform: translate(-50%, -50%);
}

.photo-lightbox-play[hidden] {
  display: none !important;
}

.photo-lightbox-play span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.78rem;
  background: linear-gradient(135deg, #0b7285, #16a879);
}

.photo-lightbox-video-actions {
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.photo-lightbox-video-actions[hidden] {
  display: none !important;
}

.photo-lightbox-video-actions button,
.photo-lightbox-video-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #f8fffb;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  background: rgba(8, 37, 46, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.photo-lightbox-video-actions button {
  color: #06343d;
  background: rgba(255, 255, 255, 0.94);
}

.photo-lightbox-video-actions span {
  color: #16a879;
}

.photo-lightbox-caption {
  color: rgba(247, 255, 251, 0.86);
}

.photo-lightbox-frame figcaption {
  max-width: min(760px, 92vw);
  color: rgba(247, 255, 251, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}

.photo-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #08252e;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
  background: rgba(248, 255, 251, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.photo-lightbox-open {
  overflow: hidden;
}

.sheet-photo-gallery,
.memory-card-photo-gallery {
  display: grid;
  gap: 10px;
  width: 100%;
}

.sheet-photo-gallery {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin-top: 12px;
}

.memory-card-photo-gallery {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.sheet-photo-gallery__photo,
.memory-card-photo-gallery__photo {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #07111e;
  box-shadow: 0 12px 24px rgba(7, 25, 34, 0.14);
}

.sheet-photo-gallery__photo {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}

.sheet-photo-gallery__photo:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.memory-card-photo-gallery__photo {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

.memory-card-photo-gallery__photo:first-child {
  aspect-ratio: 16 / 10;
}

/* Give Today's Memory photos a polished framed edge. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  border: 1px solid rgba(232, 255, 246, 0.5) !important;
  box-shadow:
    0 18px 46px rgba(4, 33, 39, 0.22),
    0 0 0 6px rgba(255, 255, 255, 0.12) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.popup-photo-count {
  display: inline-flex;
  margin: 6px 0 0;
  padding: 5px 9px;
  border-radius: 999px;
  color: rgba(247, 255, 251, 0.88);
  font-size: 0.72rem;
  font-weight: 850;
  background: rgba(7, 31, 42, 0.72);
}

@media (max-width: 720px) {
  .photo-lightbox {
    padding: 14px;
  }

  .photo-lightbox-frame img {
    max-height: 78vh;
    border-radius: 18px;
  }

  .photo-lightbox-close {
    top: 8px;
    right: 8px;
  }
}

html body .app-shell .map-stage.map-focus .brand {
  padding: 10px 18px 11px !important;
  border: 1px solid rgba(190, 238, 255, 0.18) !important;
  background:
    linear-gradient(135deg, rgba(8, 25, 37, 0.78), rgba(5, 19, 31, 0.62)) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 28px rgba(46, 209, 203, 0.1) !important;
  backdrop-filter: blur(18px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.16) !important;
}

html body .app-shell .map-stage.map-focus .brand h1 {
  font-size: clamp(1.92rem, 3vw, 2.72rem) !important;
  text-shadow:
    0 10px 26px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(90, 221, 220, 0.12) !important;
}

@media (max-width: 720px) {
  html body .app-shell .topbar .brand h1 {
    font-size: clamp(1.58rem, 7.2vw, 2.12rem) !important;
  }

  html body .app-shell .map-stage.home-focus .brand,
  html body .app-shell .map-stage.map-focus .brand {
    padding: 8px 12px !important;
  }
}

/* MyMappi custom home glyphs: branded memory marks instead of generic emoji. */
html body .app-shell .map-stage.home-focus .mappi-glyph {
  position: relative !important;
  display: inline-grid !important;
  flex: 0 0 auto !important;
  place-items: center !important;
  overflow: visible !important;
  color: inherit !important;
  font-size: 0 !important;
  line-height: 1 !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus .home-section-title .mappi-glyph,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker .mappi-glyph {
  width: 31px !important;
  min-width: 31px !important;
  height: 31px !important;
  min-height: 31px !important;
  border: 1px solid rgba(18, 128, 112, 0.14) !important;
  border-radius: 12px !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(145deg, rgba(236, 255, 246, 0.94), rgba(216, 245, 246, 0.84)) !important;
  box-shadow:
    0 9px 20px rgba(7, 45, 50, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.72) inset !important;
}

html body .app-shell .map-stage.home-focus .home-stat-icon.mappi-glyph {
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  min-height: 25px !important;
  margin: 0 auto !important;
  justify-self: center !important;
  align-self: center !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 8px 18px rgba(7, 45, 50, 0.1) !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mappi-glyph-heart-pin::before,
.mappi-glyph-pin::before {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50% 50% 50% 0;
  content: "";
  background: linear-gradient(180deg, #ff7067 0%, #ef3338 100%);
  box-shadow: 0 0 14px rgba(255, 78, 82, 0.28);
  transform: translateY(-1px) rotate(-45deg);
}

.mappi-glyph-heart-pin::after {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  content: "";
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.mappi-glyph-pin::after {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: #fff;
  transform: translateY(-3px);
}

.mappi-glyph-echo::before {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  content: "";
  background: #1a9f82;
  box-shadow:
    0 0 0 5px rgba(26, 159, 130, 0.14),
    0 0 0 10px rgba(35, 194, 221, 0.1),
    0 0 18px rgba(35, 194, 221, 0.2);
}

.mappi-glyph-echo::after {
  position: absolute;
  width: 17px;
  height: 10px;
  border: 2px solid rgba(15, 111, 122, 0.5);
  border-top: 0;
  border-left-color: transparent;
  border-radius: 0 0 999px 999px;
  content: "";
  transform: translateY(3px);
}

.mappi-glyph-route::before {
  position: absolute;
  width: 20px;
  height: 14px;
  border: 2px solid rgba(17, 120, 126, 0.72);
  border-right: 0;
  border-bottom: 0;
  border-radius: 12px 0 0 0;
  content: "";
  transform: rotate(-13deg);
}

.mappi-glyph-route::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  content: "";
  background: #1a9f82;
  box-shadow:
    13px 8px 0 #2674f0,
    6px 3px 0 rgba(255, 255, 255, 0.92);
  transform: translate(-7px, -4px);
}

.mappi-glyph-cards::before,
.mappi-glyph-cards::after {
  position: absolute;
  width: 17px;
  height: 12px;
  border: 1.5px solid rgba(9, 73, 86, 0.55);
  border-radius: 5px;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(217, 249, 239, 0.9));
}

.mappi-glyph-cards::before {
  transform: translate(-3px, -3px) rotate(-7deg);
}

.mappi-glyph-cards::after {
  box-shadow: 0 0 0 2px rgba(33, 197, 122, 0.14) inset;
  transform: translate(3px, 3px) rotate(5deg);
}

.mappi-glyph-globe::before {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #0c7888;
  border-radius: 999px;
  content: "";
  background:
    linear-gradient(90deg, transparent 43%, rgba(12, 120, 136, 0.58) 45% 55%, transparent 57%),
    linear-gradient(0deg, transparent 43%, rgba(33, 197, 122, 0.44) 45% 55%, transparent 57%);
}

.mappi-glyph-globe::after {
  position: absolute;
  width: 7px;
  height: 15px;
  border: 1.5px solid rgba(12, 120, 136, 0.46);
  border-top: 0;
  border-bottom: 0;
  border-radius: 999px;
  content: "";
}

.mappi-glyph-city::before {
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 11px;
  border-radius: 2px 2px 0 0;
  content: "";
  background: #0c7888;
  box-shadow:
    -7px 3px 0 #21c57a,
    7px -2px 0 #2674f0;
}

.mappi-glyph-city::after {
  position: absolute;
  bottom: 4px;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: rgba(9, 73, 86, 0.42);
}

/* Home v198: calmer brand promise, stronger Today's Memory, warmer Life Chapters. */
html body .app-shell .map-stage.home-focus .hero-copy {
  width: min(760px, calc(100vw - 28px)) !important;
  margin-top: clamp(26px, 4.2vh, 46px) !important;
  padding: clamp(14px, 2vw, 22px) clamp(14px, 2.8vw, 26px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body .app-shell .map-stage.home-focus .hero-copy h2 {
  max-width: min(88vw, 600px) !important;
  color: #083f48 !important;
  font-size: clamp(2.12rem, 5vw, 4.25rem) !important;
  font-weight: 880 !important;
  line-height: 1.02 !important;
  text-wrap: balance !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.54),
    0 16px 34px rgba(8, 63, 72, 0.14) !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse {
  width: min(610px, 100%) !important;
  margin-top: clamp(18px, 2.5vw, 26px) !important;
  gap: 10px !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
  min-height: 46px !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(20, 116, 111, 0.12) !important;
  border-radius: 999px !important;
  color: rgba(8, 47, 60, 0.78) !important;
  font-size: 0.84rem !important;
  font-weight: 760 !important;
  background: rgba(255, 253, 248, 0.74) !important;
  box-shadow:
    0 12px 28px rgba(15, 92, 89, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.74) inset !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat strong {
  color: #073f4a !important;
  font-size: 1rem !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-moment {
  width: fit-content !important;
  max-width: min(92vw, 520px) !important;
  margin: clamp(12px, 2vw, 18px) auto 0 !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(20, 116, 111, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(10, 61, 68, 0.72) !important;
  font-size: clamp(0.86rem, 1.4vw, 0.98rem) !important;
  font-weight: 720 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  background: rgba(255, 253, 248, 0.56) !important;
  box-shadow: 0 10px 24px rgba(15, 92, 89, 0.06) !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard {
  width: min(900px, calc(100vw - 28px)) !important;
  margin-top: clamp(22px, 3vw, 34px) !important;
  gap: clamp(24px, 3.5vw, 38px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  width: min(880px, 100%) !important;
  max-width: 880px !important;
  border-radius: 34px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  min-height: clamp(460px, 58vw, 640px) !important;
  padding: clamp(22px, 3.8vw, 38px) !important;
  border: 1px solid rgba(226, 255, 244, 0.46) !important;
  border-radius: 34px !important;
  background:
    linear-gradient(180deg, rgba(8, 48, 56, 0.04), rgba(5, 29, 38, 0.86)),
    linear-gradient(135deg, #0c7186 0%, #169a79 58%, #8fd264 100%) !important;
  box-shadow:
    0 34px 94px rgba(5, 35, 43, 0.28),
    0 12px 32px rgba(15, 92, 89, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.13) inset !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card::before {
  background:
    linear-gradient(180deg, rgba(2, 20, 26, 0.04) 0%, rgba(2, 20, 26, 0.14) 38%, rgba(2, 20, 26, 0.82) 100%),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(3, 46, 48, 0.24), transparent 62%) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  border: 1px solid rgba(232, 255, 246, 0.58) !important;
  border-radius: inherit !important;
  box-shadow:
    0 20px 54px rgba(4, 33, 39, 0.24),
    0 0 0 7px rgba(255, 255, 255, 0.1) inset !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img {
  filter: saturate(1.07) contrast(1.05) brightness(0.94) !important;
  transform: scale(1.03) !important;
  transition: transform 8s ease, filter 600ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo img {
  transform: scale(1.065) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  justify-items: center !important;
  gap: 10px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker {
  padding: 10px 15px !important;
  border-color: rgba(225, 255, 246, 0.36) !important;
  color: rgba(255, 255, 255, 0.96) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.075em !important;
  background: rgba(4, 40, 47, 0.48) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-name-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-date-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  background: rgba(250, 255, 252, 0.88) !important;
  color: #083f48 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  padding-top: clamp(170px, 26vw, 320px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  gap: 11px !important;
  max-width: min(680px, 100%) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: 16ch !important;
  font-size: clamp(2.45rem, 6.6vw, 5.25rem) !important;
  font-weight: 880 !important;
  line-height: 0.95 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: clamp(0.95rem, 1.65vw, 1.08rem) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
  max-width: 48ch !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: clamp(1.02rem, 2.1vw, 1.28rem) !important;
}

html body .app-shell .map-stage.home-focus .home-action-section {
  width: min(780px, 100%) !important;
  max-width: 780px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions {
  gap: 13px !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  min-height: 86px !important;
  border: 1px solid rgba(20, 116, 111, 0.13) !important;
  border-radius: 24px !important;
  color: #083f48 !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(238, 251, 244, 0.78)) !important;
  box-shadow:
    0 14px 34px rgba(15, 92, 89, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.78) inset !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary {
  color: #f7fffb !important;
  background: linear-gradient(135deg, #0b7285, #16a879) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .section-title-text {
  font-size: inherit !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .journey-card {
  border: 1px solid rgba(20, 116, 111, 0.12) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(93, 224, 193, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(238, 251, 244, 0.72)) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-row {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(150px, 184px) !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 2px 4px 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x proximity !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(17, 122, 117, 0.35) transparent !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-row::-webkit-scrollbar {
  display: block !important;
  height: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-row::-webkit-scrollbar-track {
  background: rgba(10, 78, 80, 0.06) !important;
  border-radius: 999px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-row::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(17, 122, 117, 0.35) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-card {
  width: auto !important;
  min-width: 0 !important;
  scroll-snap-align: start !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  cursor: pointer !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay [data-photo-full],
html body .app-shell .map-stage.home-focus #homeMemoryOfDay [data-today-slide],
html body .app-shell .map-stage.home-focus #homeMemoryOfDay [data-today-photo-slide],
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-memory-link {
  cursor: pointer !important;
}

/* Keep the lower home memory sections present after account/memory refreshes. */
html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 28 !important;
  min-height: 128px !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .hero-copy {
    margin-top: 18px !important;
    padding-inline: 12px !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse {
    grid-template-columns: 1fr !important;
    width: min(360px, 100%) !important;
  }

  html body .app-shell .map-stage.home-focus .home-mappi-moment {
    border-radius: 20px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: 430px !important;
    padding: 19px !important;
    border-radius: 28px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    padding-top: 148px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
    font-size: clamp(2.15rem, 11vw, 3.65rem) !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Home v199: make Capture Today, Explore, and Journal feel like clear primary actions. */
html body .app-shell .map-stage.home-focus .home-action-section {
  width: min(840px, 100%) !important;
  max-width: 840px !important;
  margin-top: clamp(-4px, -0.4vw, 0px) !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2.2vw, 18px) !important;
  width: 100% !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto auto !important;
  justify-items: center !important;
  align-content: center !important;
  gap: 12px !important;
  min-height: clamp(118px, 15vw, 144px) !important;
  padding: clamp(18px, 2.8vw, 24px) 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(10, 105, 103, 0.2) !important;
  border-radius: 28px !important;
  color: #073f4a !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.88), transparent 52%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(230, 250, 242, 0.84)) !important;
  box-shadow:
    0 22px 46px rgba(15, 92, 89, 0.15),
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 0 0 1px rgba(255, 255, 255, 0.28) inset !important;
  transform: translateY(0) !important;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease !important;
}

html body .app-shell .map-stage.home-focus .home-action-card::before {
  position: absolute !important;
  inset: 0 !important;
  content: "" !important;
  background:
    linear-gradient(135deg, rgba(24, 169, 120, 0.1), transparent 42%),
    linear-gradient(315deg, rgba(37, 153, 240, 0.09), transparent 44%) !important;
  opacity: 0.85 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus .home-action-card > * {
  position: relative !important;
  z-index: 1 !important;
}

html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] {
  display: grid !important;
  width: clamp(48px, 6vw, 58px) !important;
  height: clamp(48px, 6vw, 58px) !important;
  place-items: center !important;
  border: 1px solid rgba(14, 116, 124, 0.18) !important;
  border-radius: 20px !important;
  color: #0a7583 !important;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(135deg, rgba(218, 250, 239, 0.96), rgba(206, 242, 250, 0.9)) !important;
  box-shadow:
    0 14px 28px rgba(7, 68, 76, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.82) inset !important;
}

html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] svg {
  width: 25px !important;
  height: 25px !important;
  stroke-width: 2.35 !important;
}

html body .app-shell .map-stage.home-focus .home-action-card strong {
  color: inherit !important;
  font-size: clamp(1rem, 1.8vw, 1.18rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.08 !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary {
  border-color: rgba(199, 255, 237, 0.34) !important;
  color: #f7fffb !important;
  background:
    radial-gradient(circle at 45% 0%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(135deg, #075d72 0%, #0c8c83 48%, #1bb777 100%) !important;
  box-shadow:
    0 26px 56px rgba(8, 112, 113, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary span[data-icon] {
  color: #075d72 !important;
  border-color: rgba(255, 255, 255, 0.48) !important;
  background: rgba(250, 255, 252, 0.94) !important;
  box-shadow:
    0 16px 34px rgba(2, 31, 38, 0.24),
    0 0 0 5px rgba(255, 255, 255, 0.1) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card:hover,
html body .app-shell .map-stage.home-focus .home-action-card:focus-visible {
  border-color: rgba(10, 105, 103, 0.32) !important;
  box-shadow:
    0 28px 58px rgba(15, 92, 89, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(255, 255, 255, 0.32) inset !important;
  transform: translateY(-3px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary:hover,
html body .app-shell .map-stage.home-focus .home-action-card.primary:focus-visible {
  box-shadow:
    0 30px 64px rgba(8, 112, 113, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .home-quick-actions {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    grid-template-columns: auto 1fr !important;
    grid-template-rows: 1fr !important;
    justify-items: start !important;
    min-height: 82px !important;
    padding: 14px 18px !important;
    text-align: left !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] {
    width: 48px !important;
    height: 48px !important;
    border-radius: 18px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card strong {
    text-align: left !important;
  }
}

/* Account + cloud storage panel. */
html body .app-shell .account-menu {
  width: min(360px, calc(100vw - 28px)) !important;
  gap: 10px !important;
  padding: 14px !important;
  border: 1px solid rgba(202, 245, 232, 0.18) !important;
  border-radius: 24px !important;
  color: rgba(246, 255, 251, 0.94) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 197, 122, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(5, 31, 41, 0.94), rgba(5, 20, 31, 0.92)) !important;
  box-shadow:
    0 26px 72px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
  backdrop-filter: blur(22px) saturate(1.14) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.14) !important;
}

html body .app-shell .account-menu::before {
  display: none !important;
}

.account-cloud-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(207, 255, 238, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
}

.account-cloud-kicker {
  color: #75e5bf;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-cloud-card strong {
  color: #f7fffb;
  font-size: 1.08rem;
}

.account-cloud-card p,
.account-auth-message {
  margin: 0;
  color: rgba(230, 255, 247, 0.72);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.account-auth-form {
  display: grid;
  gap: 10px;
}

.account-auth-form.hidden,
.account-menu-item.hidden {
  display: none !important;
}

.account-auth-form label {
  display: grid;
  gap: 6px;
  color: rgba(230, 255, 247, 0.72);
  font-size: 0.74rem;
  font-weight: 850;
}

.account-auth-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(207, 255, 238, 0.16);
  border-radius: 14px;
  outline: 0;
  color: #f7fffb;
  background: rgba(255, 255, 255, 0.08);
}

.account-auth-form input::placeholder {
  color: rgba(230, 255, 247, 0.38);
}

.account-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.account-auth-button {
  min-height: 42px;
  border: 1px solid rgba(207, 255, 238, 0.14);
  border-radius: 14px;
  color: rgba(247, 255, 251, 0.9);
  font-weight: 850;
  background: rgba(255, 255, 255, 0.08);
}

.account-auth-button.primary {
  color: #06242d;
  background: linear-gradient(135deg, #7de8ba, #5bd7e8);
}

.account-auth-message.error {
  color: #ffb4ad;
}

html body .app-shell .account-menu .account-menu-item {
  min-height: 44px !important;
  border: 1px solid rgba(207, 255, 238, 0.1) !important;
  color: rgba(238, 255, 249, 0.78) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

html body .app-shell .account-menu .account-menu-item:hover {
  color: #f7fffb !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

html body .app-shell .account-menu .account-menu-item.needs-cloud {
  opacity: 0.68;
}

html body .app-shell .account-menu .account-menu-item.danger {
  color: #ffcbc6 !important;
}

@media (max-width: 720px) {
  html body .app-shell .account-menu {
    right: 10px !important;
    bottom: 94px !important;
    width: min(350px, calc(100vw - 20px)) !important;
  }
}

/* Login-first experience: users enter their private MyMappi before the app opens. */
body.auth-required {
  overflow: hidden;
}

body.auth-required .app-shell {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
  overflow: hidden;
  color: #073f4a;
  background:
    radial-gradient(circle at 18% 10%, rgba(105, 224, 176, 0.35), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(82, 190, 225, 0.3), transparent 32%),
    linear-gradient(180deg, #dff4ea 0%, #e9f8fb 48%, #fbfbf4 100%);
}

.auth-gate[hidden] {
  display: none !important;
}

.auth-gate-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-memory-path {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border: 1.5px dashed rgba(12, 120, 136, 0.2);
  border-radius: 42% 58% 52% 48%;
  transform: rotate(-18deg);
}

.auth-memory-path.path-one {
  top: -14%;
  left: -8%;
}

.auth-memory-path.path-two {
  right: -12%;
  bottom: -18%;
  transform: rotate(24deg);
}

.auth-memory-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(180deg, #ff7167, #ef3338);
  box-shadow: 0 14px 30px rgba(239, 51, 56, 0.2);
  transform: rotate(-45deg);
}

.auth-memory-dot.dot-one {
  top: 22%;
  left: 18%;
}

.auth-memory-dot.dot-two {
  top: 18%;
  right: 22%;
  background: linear-gradient(180deg, #26d59c, #138b7d);
}

.auth-memory-dot.dot-three {
  right: 18%;
  bottom: 24%;
  background: linear-gradient(180deg, #58c8ff, #2674f0);
}

.auth-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(430px, 100%);
  gap: 18px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 34px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(238, 251, 244, 0.76));
  box-shadow:
    0 32px 90px rgba(10, 85, 88, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  pointer-events: auto;
}

.auth-card.signup-mode {
  width: min(520px, 100%);
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
}

.auth-card.signup-mode .auth-mappi {
  width: clamp(74px, 14vw, 104px);
  height: clamp(74px, 14vw, 104px);
}

.auth-card.signup-mode .auth-brand h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
}

.auth-gate-form,
.auth-gate-form input,
.auth-gate-form button {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.signup-form {
  max-height: min(62vh, 620px);
  overflow: auto;
  padding-right: 4px;
}

.signup-heading {
  display: grid;
  gap: 4px;
  text-align: center;
}

.signup-heading strong {
  color: #073f4a;
  font-size: 1.08rem;
  font-weight: 900;
}

.signup-heading span {
  color: rgba(7, 63, 74, 0.62);
  font-size: 0.86rem;
  font-weight: 720;
}

.auth-mappi {
  justify-self: center;
  width: clamp(92px, 20vw, 132px);
  height: clamp(92px, 20vw, 132px);
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(6, 55, 64, 0.16));
}

.auth-brand {
  display: grid;
  gap: 6px;
}

.auth-brand h1 {
  margin: 0;
  color: #073f4a;
  font-size: clamp(2.3rem, 8vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.auth-brand p {
  margin: 0;
  color: rgba(7, 63, 74, 0.68);
  font-size: 1rem;
  font-weight: 760;
}

.auth-gate-form {
  gap: 12px;
  text-align: left;
}

.auth-gate-form label {
  color: rgba(7, 63, 74, 0.72);
}

.auth-gate-form input {
  color: #073f4a;
  border-color: rgba(10, 105, 103, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.auth-gate-form input::placeholder {
  color: rgba(7, 63, 74, 0.36);
}

.auth-gate-form .account-auth-button:not(.primary) {
  color: #073f4a;
  border-color: rgba(10, 105, 103, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.auth-gate-form .local-device-button {
  width: 100%;
  margin-top: 2px;
  color: #0d5361;
  border-color: rgba(39, 145, 136, 0.18);
  background: rgba(238, 250, 246, 0.82);
}

.auth-gate-form .account-auth-message {
  min-height: 20px;
  color: rgba(7, 63, 74, 0.68);
  text-align: center;
}

.auth-gate-form .account-auth-message.error {
  color: #b42318;
}

@media (max-width: 560px) {
  .auth-card {
    border-radius: 28px;
  }

  .auth-gate-form .account-auth-actions {
    grid-template-columns: 1fr;
  }
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
  position: absolute !important;
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.is-switching-photo .today-memory-photo-frame {
  opacity: 0.3 !important;
  transform: scale(1.075) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo-frame {
  opacity: 1 !important;
  transition:
    opacity 360ms ease,
    transform 8s ease,
    filter 600ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-photo-count {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 3 !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.02em !important;
  background: rgba(2, 30, 38, 0.46) !important;
  box-shadow: 0 10px 24px rgba(4, 34, 42, 0.18) !important;
  backdrop-filter: blur(14px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.1) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-photo-dots {
  position: absolute !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 999px !important;
  background: rgba(2, 30, 38, 0.42) !important;
  box-shadow: 0 10px 24px rgba(4, 34, 42, 0.18) !important;
  backdrop-filter: blur(14px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.1) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-photo-dots button {
  width: 8px !important;
  height: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.52) !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-photo-dots button.active {
  width: 22px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #ffffff, #a9f5e3) !important;
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo-frame {
    transition: none !important;
  }
}

/* Mobile parity guard: phones should keep the same content and controls as desktop. */
@media (max-width: 720px) {
  html body:not(.auth-required) .app-shell,
  html body:not(.auth-required) .map-stage {
    min-height: 100dvh !important;
    overflow-x: hidden !important;
  }

  html body .app-shell .map-stage.home-focus {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy,
  html body .app-shell .map-stage.home-focus .home-dashboard {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: min(100%, calc(100vw - 22px)) !important;
    max-width: calc(100vw - 22px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    transform: none !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy {
    margin-top: 84px !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard {
    display: grid !important;
    gap: 18px !important;
    padding-bottom: 136px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay,
  html body .app-shell .map-stage.home-focus .home-action-section,
  html body .app-shell .map-stage.home-focus #homeOnThisDay,
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-row {
    grid-auto-columns: minmax(142px, 76vw) !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    scroll-snap-type: x proximity !important;
  }

  html body .app-shell .bottom-nav {
    position: fixed !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    z-index: 80 !important;
    width: auto !important;
    max-width: none !important;
    min-height: 68px !important;
  }

  html body .app-shell .memory-editor,
  html body .app-shell .memory-bottom-sheet,
  html body .app-shell .side-panel {
    max-width: calc(100vw - 20px) !important;
  }
}

/* Final home premium polish: keep these visual touches on top of older passes. */
html body .app-shell .map-stage.home-focus .hero-copy > .home-mappi-moment {
  display: none !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse {
  gap: 8px !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
  min-height: 42px !important;
  padding: 8px 13px !important;
  border-color: rgba(20, 116, 111, 0.075) !important;
  color: rgba(8, 47, 60, 0.68) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.58), rgba(241, 251, 246, 0.46)) !important;
  box-shadow:
    0 8px 20px rgba(15, 92, 89, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.62) inset !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat-icon {
  opacity: 0.8 !important;
  transform: scale(0.92) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  position: relative !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card::before {
  content: "" !important;
  position: absolute !important;
  inset: -24px -18px -28px !important;
  z-index: -1 !important;
  border-radius: 46px !important;
  background:
    radial-gradient(circle at 50% 36%, rgba(44, 215, 169, 0.25), transparent 48%),
    radial-gradient(circle at 18% 18%, rgba(255, 199, 87, 0.12), transparent 34%),
    radial-gradient(circle at 82% 84%, rgba(11, 114, 133, 0.13), transparent 42%) !important;
  filter: blur(8px) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-bottom-note {
  width: fit-content !important;
  max-width: min(92vw, 520px) !important;
  margin: 2px auto 0 !important;
  padding: 10px 15px !important;
  border: 1px solid rgba(20, 116, 111, 0.08) !important;
  border-radius: 999px !important;
  color: rgba(7, 63, 74, 0.64) !important;
  font-size: clamp(0.82rem, 1.4vw, 0.94rem) !important;
  font-weight: 740 !important;
  text-align: center !important;
  background: rgba(255, 253, 248, 0.54) !important;
  box-shadow: 0 10px 24px rgba(15, 92, 89, 0.06) !important;
  backdrop-filter: blur(14px) saturate(1.04) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.04) !important;
}

/* Absolute final memory sheet header lock. */
html body .app-shell .memory-sheet-card.memory-capsule-card {
  padding-top: 14px !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 78px !important;
  width: 100% !important;
  margin: -2px -2px 2px !important;
  padding: 12px 54px 12px 12px !important;
  border: 1px solid rgba(201, 255, 238, 0.15) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(42, 215, 156, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(4, 48, 58, 0.96), rgba(5, 32, 48, 0.94)) !important;
  box-shadow:
    0 18px 38px rgba(3, 27, 38, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 5px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3 {
  margin: 0 !important;
  color: #f7fffb !important;
  font-size: clamp(1.32rem, 2.8vw, 1.86rem) !important;
  font-weight: 920 !important;
  line-height: 1.03 !important;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-meta {
  margin: 0 !important;
  color: rgba(232, 255, 247, 0.72) !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker {font-size: 0.58rem !important;
  padding: 4px 8px !important;
  line-height: 1.05 !important;

  width: fit-content !important;
  border-color: rgba(144, 242, 209, 0.22) !important;
  color: #8df1ca !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
  width: 58px !important;
  height: 58px !important;
  margin-top: 0 !important;
  border-color: rgba(151, 244, 212, 0.52) !important;
  background:
    radial-gradient(circle at 32% 18%, rgba(126, 232, 194, 0.34), transparent 36%),
    linear-gradient(145deg, #053040 0%, #0b7285 52%, #18a978 100%) !important;
  box-shadow:
    0 14px 28px rgba(2, 20, 28, 0.24),
    0 0 0 6px rgba(126, 232, 194, 0.12) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi {
  transform: rotate(45deg) scale(1) translate(1px, -1px) !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  top: 21px !important;
  right: 20px !important;
  border-color: rgba(201, 255, 238, 0.22) !important;
  color: #eefdf8 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.14) inset !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    min-height: 72px !important;
    gap: 12px !important;
    padding: 11px 48px 11px 10px !important;
    border-radius: 22px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 52px !important;
    height: 52px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 19px !important;
    right: 17px !important;
  }
}


/* Actual final memory tab touch-up override. */
html body .app-shell .memory-sheet-card .sheet-memory-heading {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 12px 50px 12px 12px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  gap: 3px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker {
  justify-self: start !important;
  max-width: min(100%, 320px) !important;
  margin-top: 2px !important;
  padding: 4px 9px !important;
  border-color: rgba(162, 250, 219, 0.34) !important;
  color: #b6ffe2 !important;
  font-size: 0.56rem !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  text-align: left !important;
  background: rgba(255, 255, 255, 0.11) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
  overflow: hidden !important;
  width: 58px !important;
  height: 58px !important;
  border-color: rgba(162, 250, 219, 0.58) !important;
  background: radial-gradient(circle at 28% 12%, rgba(126, 232, 194, 0.42), transparent 36%), linear-gradient(145deg, #052436 0%, #0b7285 54%, #18a978 100%) !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  transform: none !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi .sheet-mappi-real {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  filter: saturate(1.08) contrast(1.03) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18)) !important;
}

html body .app-shell .memory-sheet-card .sheet-mini-mappi {
  display: none !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  top: 16px !important;
  right: 16px !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(205, 255, 238, 0.5) !important;
  color: #ffffff !important;
  font-size: 1.55rem !important;
  background: radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.22), transparent 42%), rgba(3, 25, 38, 0.72) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(126, 232, 194, 0.08), 0 1px 0 rgba(255, 255, 255, 0.18) inset !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    padding-right: 50px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 54px !important;
    height: 54px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 17px !important;
    right: 15px !important;
    width: 39px !important;
    height: 39px !important;
  }
}


/* Final header alignment: upright Mappi and close button inside title band. */
html body .app-shell .memory-sheet-card .sheet-memory-heading {
  position: relative !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 12px 58px 12px 12px !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
  overflow: hidden !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(162, 250, 219, 0.58) !important;
  background: linear-gradient(135deg, rgba(5, 36, 54, 0.98), rgba(11, 114, 133, 0.94) 54%, rgba(24, 169, 120, 0.95)) !important;
  transform: none !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge::before,
html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge::after {
  display: none !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  transform: none !important;
}

html body .app-shell .memory-sheet-card .sheet-pin-mappi .sheet-mappi-real {
  display: block !important;
  width: 96% !important;
  height: 96% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  filter: saturate(1.06) contrast(1.02) drop-shadow(0 5px 8px rgba(0, 0, 0, 0.18)) !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  padding-right: 2px !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  top: 20px !important;
  right: 20px !important;
  z-index: 7 !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(205, 255, 238, 0.58) !important;
  color: #ffffff !important;
  font-size: 1.38rem !important;
  background: rgba(3, 25, 38, 0.78) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24), 0 1px 0 rgba(255, 255, 255, 0.18) inset !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    padding-right: 52px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 52px !important;
    height: 52px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 19px !important;
    right: 18px !important;
    width: 34px !important;
    height: 34px !important;
  }
}


/* Final memory tab close button integration. */
html body .app-shell .memory-sheet-card .sheet-memory-heading {
  padding-right: 54px !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  top: 21px !important;
  right: 14px !important;
  z-index: 8 !important;
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  place-items: center !important;
  border: 1px solid rgba(205, 255, 238, 0.62) !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  font-size: 1.34rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  background: rgba(3, 25, 38, 0.9) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14), 0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
  backdrop-filter: blur(10px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button:hover {
  color: #ffffff !important;
  border-color: rgba(184, 255, 229, 0.48) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    padding-right: 50px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 20px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.24rem !important;
  }
}


/* Center memory tab title area. */
html body .app-shell .memory-sheet-card .sheet-memory-heading {
  grid-template-columns: 56px minmax(0, 1fr) 34px !important;
  padding-right: 12px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  justify-items: center !important;
  text-align: center !important;
  padding-right: 0 !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3,
html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-meta {
  text-align: center !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker {
  justify-self: center !important;
  text-align: center !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 52px minmax(0, 1fr) 32px !important;
    padding-right: 10px !important;
  }
}

/* Final centered memory tab title layout. */
html body .app-shell .memory-sheet-card .sheet-memory-heading {
  align-items: center !important;
  grid-template-columns: 56px minmax(0, 1fr) 34px !important;
  gap: 10px !important;
  padding: 12px 12px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  justify-items: center !important;
  min-width: 0 !important;
  text-align: center !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3,
html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker,
html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-meta {
  max-width: 100% !important;
  text-align: center !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  position: static !important;
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  width: 34px !important;
  height: 34px !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 52px minmax(0, 1fr) 32px !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Clean rollback: center title text without moving the full memory header. */
html body .app-shell .memory-sheet-card .sheet-memory-heading {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 54px 12px 12px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  justify-items: center !important;
  min-width: 0 !important;
  text-align: center !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3,
html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker,
html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-meta {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  position: absolute !important;
  top: 18px !important;
  right: 14px !important;
  z-index: 12 !important;
  width: 34px !important;
  height: 34px !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 48px 10px 10px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 17px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
  }
}

/* Stable memory tab header: centered as a group, not stretched across the card. */
html body .app-shell .memory-sheet-card .sheet-memory-heading {
  display: inline-grid !important;
  grid-template-columns: 52px minmax(0, 245px) !important;
  align-items: center !important;
  column-gap: 12px !important;
  width: auto !important;
  max-width: calc(100% - 56px) !important;
  margin: 0 auto 12px !important;
  padding: 12px 0 10px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  align-items: start !important;
  justify-items: start !important;
  min-width: 0 !important;
  text-align: left !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3,
html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker,
html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-meta {
  width: auto !important;
  max-width: 100% !important;
  text-align: left !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 12 !important;
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 48px minmax(0, 210px) !important;
    column-gap: 10px !important;
    max-width: calc(100% - 48px) !important;
    margin-bottom: 10px !important;
    padding: 10px 0 8px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
  }
}

/* Restore clean memory tab header. */
html body .app-shell .memory-sheet-card {
  position: relative !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 14px !important;
  padding: 14px 58px 14px 14px !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  display: grid !important;
  justify-items: start !important;
  align-items: center !important;
  min-width: 0 !important;
  text-align: left !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3,
html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-kicker,
html body .app-shell .memory-sheet-card .sheet-heading-copy .sheet-meta {
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  position: absolute !important;
  top: 18px !important;
  right: 16px !important;
  z-index: 20 !important;
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  place-items: center !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    padding: 12px 52px 12px 12px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 16px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
  }
}

/* Fresh visible memory tab hero. */
html body .app-shell .memory-sheet-card .memory-sheet-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) 38px !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 92px !important;
  margin: 0 0 16px !important;
  padding: 16px 14px !important;
  border: 1px solid rgba(171, 246, 219, 0.38) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 14% 12%, rgba(119, 237, 197, 0.34), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(79, 190, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(3, 34, 49, 0.98), rgba(7, 88, 104, 0.96) 54%, rgba(14, 128, 93, 0.94)) !important;
  box-shadow:
    0 20px 42px rgba(1, 23, 34, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.2) inset !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-pin-badge.sheet-mappi-pin-badge {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 58px !important;
  height: 58px !important;
  justify-self: start !important;
  align-self: center !important;
  border: 2px solid rgba(224, 255, 244, 0.68) !important;
  border-radius: 50% !important;
  background: rgba(255, 253, 248, 0.96) !important;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.22),
    0 0 0 5px rgba(160, 244, 215, 0.12) !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-pin-mappi,
html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-mappi-real {
  transform: none !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-mappi-real {
  width: 96% !important;
  height: 96% !important;
  object-fit: contain !important;
  object-position: center !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-heading-copy {
  grid-column: 2 !important;
  display: grid !important;
  gap: 5px !important;
  justify-items: start !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-heading-copy h3 {
  overflow: hidden !important;
  width: 100% !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(1.32rem, 2.7vw, 1.72rem) !important;
  font-weight: 950 !important;
  line-height: 1.04 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 10px 18px rgba(0, 0, 0, 0.22) !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-kicker {
  justify-self: start !important;
  width: fit-content !important;
  max-width: 100% !important;
  color: #c7ffe8 !important;
  text-align: left !important;
  background: rgba(255, 255, 255, 0.13) !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-meta {
  overflow: hidden !important;
  width: 100% !important;
  margin: 0 !important;
  color: rgba(237, 255, 249, 0.82) !important;
  font-size: 0.82rem !important;
  font-weight: 720 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-close-button {
  position: static !important;
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  border: 1px solid rgba(230, 255, 247, 0.7) !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  font-size: 1.42rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  background: rgba(2, 18, 28, 0.72) !important;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.16) inset !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .memory-sheet-hero {
    grid-template-columns: 52px minmax(0, 1fr) 34px !important;
    gap: 10px !important;
    min-height: 84px !important;
    padding: 13px 12px !important;
    border-radius: 22px !important;
  }

  html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 52px !important;
    height: 52px !important;
  }

  html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-heading-copy h3 {
    font-size: 1.18rem !important;
  }

  html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-meta {
    font-size: 0.76rem !important;
  }

  html body .app-shell .memory-sheet-card .memory-sheet-hero .sheet-close-button {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.28rem !important;
  }
}

/* Simple readable memory tab header. */
html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
  position: relative !important;
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;
  margin: 0 0 14px !important;
  padding: 12px 52px 12px 12px !important;
  border: 1px solid rgba(27, 92, 99, 0.12) !important;
  border-radius: 20px !important;
  background: rgba(255, 253, 248, 0.86) !important;
  box-shadow: 0 12px 26px rgba(12, 61, 72, 0.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge {
  width: 52px !important;
  height: 52px !important;
  border: 2px solid rgba(11, 114, 133, 0.2) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 18px rgba(9, 22, 41, 0.12) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-mappi,
html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-mappi-real {
  transform: none !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-mappi-real {
  width: 96% !important;
  height: 96% !important;
  object-fit: contain !important;
  object-position: center !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-heading-copy {
  display: grid !important;
  gap: 4px !important;
  justify-items: start !important;
  min-width: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-heading-copy h3 {
  overflow: hidden !important;
  width: 100% !important;
  margin: 0 !important;
  color: #082f3a !important;
  font-size: clamp(1.12rem, 2.2vw, 1.42rem) !important;
  font-weight: 920 !important;
  line-height: 1.08 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-kicker {
  justify-self: start !important;
  width: fit-content !important;
  max-width: 100% !important;
  color: #08775d !important;
  text-align: left !important;
  background: rgba(19, 158, 113, 0.09) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-meta {
  overflow: hidden !important;
  width: 100% !important;
  margin: 0 !important;
  color: #5c6f76 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 30 !important;
  display: grid !important;
  width: 32px !important;
  height: 32px !important;
  place-items: center !important;
  border: 1px solid rgba(8, 47, 58, 0.12) !important;
  border-radius: 50% !important;
  color: #082f3a !important;
  font-size: 1.28rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 18px rgba(9, 22, 41, 0.14) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    padding: 10px 48px 10px 10px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 48px !important;
    height: 48px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 16px !important;
    right: 16px !important;
    width: 30px !important;
    height: 30px !important;
  }
}

/* Place the memory close button on top of Mappi. */
html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
  padding-right: 12px !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  top: 9px !important;
  right: auto !important;
  left: 50px !important;
  width: 28px !important;
  height: 28px !important;
  border: 2px solid rgba(255, 255, 255, 0.96) !important;
  color: #ffffff !important;
  font-size: 1.12rem !important;
  background: rgba(8, 47, 58, 0.92) !important;
  box-shadow:
    0 8px 18px rgba(9, 22, 41, 0.2),
    0 0 0 3px rgba(10, 119, 133, 0.1) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 8px !important;
    left: 44px !important;
    width: 27px !important;
    height: 27px !important;
    font-size: 1.08rem !important;
  }
}

/* Make the Mappi close badge unmistakably visible. */
html body .app-shell .memory-sheet-card {
  overflow: visible !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button {
  position: absolute !important;
  top: 21px !important;
  right: auto !important;
  left: 59px !important;
  z-index: 999 !important;
  display: grid !important;
  width: 30px !important;
  height: 30px !important;
  place-items: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  color: #082f3a !important;
  font-size: 1.12rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  background: #ffffff !important;
  box-shadow:
    0 8px 18px rgba(9, 22, 41, 0.24),
    0 0 0 3px rgba(8, 47, 58, 0.14) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-close-button {
    top: 19px !important;
    left: 53px !important;
    width: 29px !important;
    height: 29px !important;
    font-size: 1.08rem !important;
  }
}

/* Close button is now attached directly to Mappi. */
html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge {
  position: relative !important;
  overflow: visible !important;
  width: 47px !important;
  height: 47px !important;
  transform: translateY(11px) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close {
  position: absolute !important;
  top: -9px !important;
  right: -9px !important;
  left: auto !important;
  z-index: 10000 !important;
  display: grid !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  place-items: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  font-size: 1.12rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  background: #082f3a !important;
  box-shadow:
    0 9px 20px rgba(9, 22, 41, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.48) !important;
  transform: none !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close:hover {
  color: #ffffff !important;
  background: #0b7285 !important;
  transform: scale(1.03) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close {
    top: -8px !important;
    right: -8px !important;
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    min-height: 27px !important;
    font-size: 1.06rem !important;
  }
}

/* Center the close badge directly above Mappi. */
html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close {
  top: -28px !important;
  right: auto !important;
  left: 52% !important;
  transform: translateX(-50%) !important;
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  min-height: 25px !important;
  font-size: 1rem !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close:hover {
  transform: translateX(-50%) scale(1.03) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close {
    top: -25px !important;
    left: 52% !important;
    transform: translateX(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    font-size: 0.96rem !important;
  }

  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close:hover {
    transform: translateX(-50%) scale(1.03) !important;
  }

  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 43px !important;
    height: 43px !important;
    transform: translateY(10px) !important;
  }
}

/* Center the X glyph inside the small close dot. */
html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close {
  position: absolute !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
  text-align: center !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close::before {
  content: "×" !important;
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close::before {
    font-size: 1rem !important;
  }
}

/* Emotional memory pins: color first, motion only when meaningful. */
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory {
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--marker-color) 12%, transparent),
    0 12px 26px rgba(7, 25, 38, 0.28),
    0 0 18px color-mix(in srgb, var(--marker-color) 26%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.34) inset !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-glow {
  opacity: 0.36 !important;
  filter: blur(15px) saturate(1.1) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory:not(.is-breathing):not(.is-new) {
  animation: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory:not(.is-breathing):not(.is-new) .memory-marker-glow,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory:not(.is-breathing):not(.is-new)::before {
  animation: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new) {
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--marker-color) 18%, transparent),
    0 0 28px color-mix(in srgb, var(--marker-color) 54%, transparent),
    0 15px 30px rgba(7, 25, 38, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.36) inset !important;
  animation: memoryFavoritePulse 4.8s ease-in-out infinite !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new) .memory-marker-glow {
  opacity: 0.7 !important;
  filter: blur(22px) saturate(1.15) !important;
  animation: memoryFavoriteGlow 4.8s ease-in-out infinite !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new):not(.is-favorite-memory) {
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--marker-color) 15%, transparent),
    0 0 22px color-mix(in srgb, var(--marker-color) 42%, transparent),
    0 13px 28px rgba(7, 25, 38, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.32) inset !important;
  animation: memoryRecentPulse 6.2s ease-in-out infinite !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new):not(.is-favorite-memory) .memory-marker-glow {
  opacity: 0.52 !important;
  filter: blur(19px) saturate(1.1) !important;
  animation: memoryRecentGlow 6.2s ease-in-out infinite !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-favorite-memory,
html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-recent-memory,
html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-favorite-memory .memory-marker-glow,
html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-recent-memory .memory-marker-glow {
  animation-play-state: paused !important;
}

@keyframes memoryFavoritePulse {
  0%, 72%, 100% {
    transform: rotate(-45deg) scale(1);
  }
  10% {
    transform: rotate(-45deg) scale(1.055);
  }
  18% {
    transform: rotate(-45deg) scale(0.992);
  }
}

@keyframes memoryFavoriteGlow {
  0%, 72%, 100% {
    opacity: 0.56;
    filter: blur(19px) saturate(1.08);
  }
  10% {
    opacity: 0.78;
    filter: blur(24px) saturate(1.18);
  }
}

@keyframes memoryRecentPulse {
  0%, 78%, 100% {
    transform: rotate(-45deg) scale(1);
  }
  12% {
    transform: rotate(-45deg) scale(1.035);
  }
}

@keyframes memoryRecentGlow {
  0%, 78%, 100% {
    opacity: 0.38;
    filter: blur(16px) saturate(1.04);
  }
  12% {
    opacity: 0.58;
    filter: blur(21px) saturate(1.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory,
  html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory,
  html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory .memory-marker-glow,
  html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory .memory-marker-glow {
    animation: none !important;
  }
}

/* Premium scrapbook memory tab polish. */
html body .app-shell .memory-sheet-card.memory-capsule-card {
  gap: 14px !important;
  padding: 14px !important;
  border-color: rgba(10, 82, 88, 0.12) !important;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--sheet-accent) 13%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 252, 248, 0.94)) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
  margin-bottom: 8px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 251, 246, 0.82)),
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--sheet-accent) 14%, transparent), transparent 54%) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-heading-copy h3 {
  letter-spacing: 0 !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-meta {
  color: rgba(8, 47, 58, 0.68) !important;
}

html body .app-shell .memory-sheet-card .sheet-copy {
  grid-column: 1 / -1 !important;
  display: grid !important;
  gap: 12px !important;
  min-width: 0 !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(78%, 1fr) !important;
  gap: 10px !important;
  overflow-x: auto !important;
  padding: 2px 2px 8px !important;
  scroll-snap-type: x mandatory !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery__photo {
  width: 100% !important;
  min-height: 240px !important;
  max-height: 320px !important;
  border: 1px solid rgba(255, 255, 255, 0.84) !important;
  border-radius: 22px !important;
  box-shadow:
    0 18px 36px rgba(7, 35, 45, 0.16),
    0 0 0 5px rgba(255, 255, 255, 0.42) !important;
  object-fit: cover !important;
  scroll-snap-align: center !important;
}

html body .app-shell .memory-sheet-card .sheet-video-wrap {
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.84) !important;
  border-radius: 22px !important;
  background: #082f3a !important;
  box-shadow: 0 18px 36px rgba(7, 35, 45, 0.16) !important;
}

html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-video-player,
html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video {
  display: block !important;
  width: 100% !important;
  min-height: 240px !important;
  max-height: 320px !important;
  border-radius: 22px !important;
  object-fit: cover !important;
}

html body .app-shell .memory-sheet-card .sheet-note {
  position: relative !important;
  margin: 0 !important;
  padding: 18px 18px 18px 22px !important;
  border: 1px solid rgba(10, 82, 88, 0.1) !important;
  border-radius: 20px !important;
  color: #143c43 !important;
  font-size: clamp(1rem, 1.7vw, 1.12rem) !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 253, 248, 0.76)),
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--sheet-accent) 12%, transparent), transparent 48%) !important;
  box-shadow: 0 14px 30px rgba(7, 35, 45, 0.08) !important;
}

html body .app-shell .memory-sheet-card .sheet-note::before {
  position: absolute !important;
  top: 18px !important;
  left: 11px !important;
  width: 4px !important;
  height: calc(100% - 36px) !important;
  content: "" !important;
  border-radius: 999px !important;
  background: var(--sheet-accent) !important;
  opacity: 0.72 !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-details {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-details span,
html body .app-shell .memory-sheet-card .sheet-coordinates {
  border: 1px solid rgba(10, 82, 88, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(8, 47, 58, 0.72) !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

html body .app-shell .memory-sheet-card .sheet-coordinates {
  width: fit-content !important;
  padding: 6px 10px !important;
  font-size: 0.72rem !important;
}

html body .app-shell .memory-sheet-card .sheet-actions {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 9px !important;
  margin-top: 0 !important;
  padding-top: 2px !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button {
  min-height: 44px !important;
  border: 1px solid rgba(8, 47, 58, 0.1) !important;
  border-radius: 15px !important;
  color: #0c4350 !important;
  font-size: 0.84rem !important;
  font-weight: 880 !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow:
    0 10px 22px rgba(7, 35, 45, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.72) inset !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button[data-sheet-action="edit"] {
  color: #063f46 !important;
  background: linear-gradient(135deg, rgba(216, 255, 240, 0.9), rgba(255, 255, 255, 0.82)) !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button[data-sheet-action="route"] {
  color: #0b5870 !important;
  background: linear-gradient(135deg, rgba(218, 245, 255, 0.9), rgba(255, 255, 255, 0.82)) !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button.danger {
  color: #9f3d3d !important;
  background: linear-gradient(135deg, rgba(255, 238, 235, 0.9), rgba(255, 255, 255, 0.82)) !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button:hover {
  transform: translateY(-1px) !important;
  box-shadow:
    0 14px 26px rgba(7, 35, 45, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card.memory-capsule-card {
    padding: 12px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-photo-gallery {
    grid-auto-columns: 88% !important;
  }

  html body .app-shell .memory-sheet-card .sheet-photo-gallery__photo,
  html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-video-player,
  html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video {
    min-height: 210px !important;
    max-height: 280px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-actions {
    gap: 8px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-actions button {
    min-height: 42px !important;
    font-size: 0.8rem !important;
  }
}

/* Nearby memories layer: a quiet count card while exploring the map. */
html body .app-shell .map-stage.map-focus .memory-peek-card.nearby-count {
  width: min(92vw, 340px) !important;
  border-color: color-mix(in srgb, var(--peek-accent, #0b7285) 20%, rgba(255, 255, 255, 0.64)) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(241, 252, 247, 0.84)),
    radial-gradient(circle at 10% 12%, color-mix(in srgb, var(--peek-accent, #0b7285) 14%, transparent), transparent 48%) !important;
  box-shadow:
    0 18px 42px rgba(6, 25, 36, 0.18),
    0 0 0 6px color-mix(in srgb, var(--peek-accent, #0b7285) 6%, transparent) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.nearby-count .nearby-count-pin {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.48), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--peek-accent, #0b7285) 78%, white), var(--peek-accent, #0b7285)) !important;
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--peek-accent, #0b7285) 10%, transparent),
    0 10px 22px color-mix(in srgb, var(--peek-accent, #0b7285) 18%, transparent) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.nearby-count .peek-copy strong {
  color: #0a3440 !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.nearby-count .peek-copy small {
  color: rgba(8, 47, 58, 0.66) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.nearby-count .peek-copy em {
  color: color-mix(in srgb, var(--peek-accent, #0b7285) 52%, #0a3440) !important;
  font-weight: 850 !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-peek-card.nearby-count {
  opacity: 0 !important;
  transform: translate(-50%, 14px) scale(0.98) !important;
}

/* Premium MyMappi directions polish. */
html body .app-shell .directions-panel {
  border: 1px solid rgba(185, 245, 226, 0.34) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(45, 223, 156, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(7, 38, 52, 0.94), rgba(4, 28, 42, 0.9)) !important;
  box-shadow:
    0 22px 52px rgba(0, 15, 27, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.14) inset !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.1) !important;
}

html body .app-shell .directions-heading span {
  color: #84f5d0 !important;
}

html body .app-shell .directions-heading strong {
  color: #f3fffb !important;
}

html body .app-shell .directions-close {
  color: #ecfffa !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(213, 255, 243, 0.28) !important;
}

html body .app-shell .directions-mode {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 5px !important;
  border: 1px solid rgba(213, 255, 243, 0.16) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html body .app-shell .directions-mode-button {
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: rgba(236, 255, 250, 0.72) !important;
  font-size: 0.88rem !important;
  font-weight: 880 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .directions-mode-button.active {
  color: #063842 !important;
  background: linear-gradient(135deg, #a9f5d0, #70e3ff) !important;
  box-shadow:
    0 10px 22px rgba(44, 217, 184, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.6) inset !important;
}

html body .app-shell .directions-box {
  border-color: rgba(213, 255, 243, 0.18) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

html body .app-shell .directions-box input {
  color: #f3fffb !important;
}

html body .app-shell .directions-box input::placeholder {
  color: rgba(236, 255, 250, 0.56) !important;
}

html body .app-shell .directions-action,
html body .app-shell .popup-route {
  border-color: rgba(213, 255, 243, 0.22) !important;
  color: #063842 !important;
  background: linear-gradient(135deg, #a9f5d0, #70e3ff) !important;
  box-shadow: 0 10px 22px rgba(44, 217, 184, 0.2) !important;
}

html body .app-shell .directions-action.subtle,
html body .app-shell .popup-route.subtle {
  color: #dffdf5 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

html body .app-shell .directions-summary {
  border: 1px solid rgba(213, 255, 243, 0.18) !important;
  color: rgba(236, 255, 250, 0.8) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 223, 156, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.08) !important;
}

html body .app-shell .directions-summary strong {
  color: #ffffff !important;
}

html body .app-shell .directions-summary span {
  color: #a9f5d0 !important;
}

html body .app-shell .directions-result {
  border-color: rgba(213, 255, 243, 0.14) !important;
  color: #f3fffb !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html body .app-shell .directions-result small {
  color: rgba(236, 255, 250, 0.58) !important;
}

html body .app-shell .directions-route-main {
  filter:
    drop-shadow(0 0 6px rgba(112, 227, 255, 0.34))
    drop-shadow(0 3px 6px rgba(2, 24, 36, 0.2)) !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

html body .app-shell .directions-route-glow {
  filter: blur(0.4px) drop-shadow(0 0 12px rgba(112, 227, 255, 0.36)) !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

html body .app-shell .directions-route-walking {
  stroke-dasharray: 1 12 !important;
  stroke-linecap: round !important;
}

html body .app-shell .route-marker {
  border: 1px solid rgba(213, 255, 243, 0.52) !important;
  color: #063842 !important;
  background: linear-gradient(135deg, #a9f5d0, #70e3ff) !important;
  box-shadow:
    0 10px 24px rgba(5, 46, 58, 0.2),
    0 0 0 5px rgba(112, 227, 255, 0.14) !important;
}

html body .app-shell .route-marker.route-marker-end {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0aa7b8, #18c982) !important;
}

/* Unified Explore map gadget: Center, compass, zoom in, zoom out. */
html body .app-shell .map-stage.map-focus {
  --map-gadget-right-active: clamp(34px, 5vw, 46px);
  --map-gadget-bottom-active: clamp(102px, 12vh, 122px);
  --map-gadget-size-active: 80px;
  --map-gadget-cell-active: 40px;
  --map-gadget-glass: rgba(4, 31, 43, 0.76);
  --map-gadget-cell-bg: rgba(255, 255, 255, 0.075);
  --map-gadget-cell-hover-bg: rgba(115, 232, 202, 0.18);
  --map-gadget-line: rgba(218, 255, 246, 0.16);
}

html body .app-shell .map-navigation-gadget {
  position: absolute !important;
  right: var(--map-gadget-right-active) !important;
  bottom: var(--map-gadget-bottom-active) !important;
  z-index: 95 !important;
  display: none !important;
  width: var(--map-gadget-size-active) !important;
  height: var(--map-gadget-size-active) !important;
  grid-template-columns: repeat(2, var(--map-gadget-cell-active)) !important;
  grid-template-rows: repeat(2, var(--map-gadget-cell-active)) !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(218, 255, 246, 0.22) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(115, 232, 202, 0.18), transparent 45%),
    linear-gradient(145deg, rgba(10, 62, 76, 0.82), rgba(3, 24, 36, 0.78)),
    var(--map-gadget-glass) !important;
  box-shadow:
    0 20px 42px rgba(0, 14, 25, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.16) inset !important;
  backdrop-filter: blur(18px) saturate(1.14) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.14) !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget {
  display: grid !important;
}

html body .app-shell .map-stage.map-focus #locateButton.hidden-control {
  display: grid !important;
}

html body .app-shell .map-stage.map-focus #locateButton,
html body .app-shell .map-stage.map-focus .map-compass,
html body .app-shell .map-stage.map-focus .map-gadget-zoom-button {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  width: var(--map-gadget-cell-active) !important;
  height: var(--map-gadget-cell-active) !important;
  min-width: var(--map-gadget-cell-active) !important;
  min-height: var(--map-gadget-cell-active) !important;
  max-width: var(--map-gadget-cell-active) !important;
  max-height: var(--map-gadget-cell-active) !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #f5fffb !important;
  background: var(--map-gadget-cell-bg) !important;
  box-shadow: none !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body .app-shell .map-stage.map-focus #locateButton {
  grid-column: 1 !important;
  grid-row: 1 !important;
  border-right: 1px solid var(--map-gadget-line) !important;
  border-bottom: 1px solid var(--map-gadget-line) !important;
}

html body .app-shell .map-stage.map-focus .map-compass {
  grid-column: 1 !important;
  grid-row: 2 !important;
  border-right: 1px solid var(--map-gadget-line) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus #mapZoomInButton {
  grid-column: 2 !important;
  grid-row: 1 !important;
  border-bottom: 1px solid var(--map-gadget-line) !important;
}

html body .app-shell .map-stage.map-focus #mapZoomOutButton {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

html body .app-shell .map-stage.map-focus #locateButton:hover,
html body .app-shell .map-stage.map-focus .map-gadget-zoom-button:hover {
  background: var(--map-gadget-cell-hover-bg) !important;
}

html body .app-shell .map-stage.map-focus #locateButton:focus-visible,
html body .app-shell .map-stage.map-focus .map-gadget-zoom-button:focus-visible {
  outline: 2px solid rgba(139, 255, 221, 0.88) !important;
  outline-offset: -3px !important;
}

html body .app-shell .map-stage.map-focus #locateButton [data-icon] {
  width: 22px !important;
  height: 22px !important;
  color: #dffdf5 !important;
  filter: drop-shadow(0 0 8px rgba(115, 232, 202, 0.3)) !important;
}

html body .app-shell .map-stage.map-focus #locateButton .locate-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.map-focus .map-gadget-zoom-button {
  cursor: pointer !important;
  font-size: 1.38rem !important;
  font-weight: 920 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass::before {
  top: 6px !important;
  left: 50% !important;
  width: 25px !important;
  height: 25px !important;
  border: 1px solid rgba(218, 255, 246, 0.24) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateX(-50%) !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass-needle {
  top: 8px !important;
  left: 50% !important;
  height: 14px !important;
  transform-origin: 50% 13px !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass-needle::before {
  border-right-width: 4px !important;
  border-bottom-width: 14px !important;
  border-left-width: 4px !important;
  border-bottom-color: #8df1ca !important;
  filter: drop-shadow(0 0 6px rgba(141, 241, 202, 0.42)) !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass strong {
  top: 8px !important;
  color: #f5fffb !important;
  font-size: 0.55rem !important;
  font-weight: 920 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass.has-heading::after {
  display: none !important;
}

@media (max-width: 680px) {
  html body .app-shell .map-stage.map-focus {
    --map-gadget-right-active: 30px;
    --map-gadget-bottom-active: 102px;
    --map-gadget-size-active: 76px;
    --map-gadget-cell-active: 38px;
  }

  html body .app-shell .map-navigation-gadget {
    border-radius: 18px !important;
  }

  html body .app-shell .map-stage.map-focus #locateButton [data-icon] {
    width: 21px !important;
    height: 21px !important;
  }
}

/* Search upgrade: memories first, then places/cities/restaurants. */
html body .app-shell .pin-search-panel {
  border-color: rgba(185, 245, 226, 0.28) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(45, 223, 156, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(7, 38, 52, 0.94), rgba(4, 28, 42, 0.9)) !important;
}

html body .app-shell .pin-search-heading span {
  color: #8df1ca !important;
}

html body .app-shell .pin-search-heading strong {
  color: #f3fffb !important;
}

html body .app-shell .pin-search-box {
  border-color: rgba(213, 255, 243, 0.2) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

html body .app-shell .pin-search-section-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 10px 4px 1px !important;
  color: rgba(236, 255, 250, 0.68) !important;
  letter-spacing: 0.06em !important;
}

html body .app-shell .pin-search-section-label small {
  display: inline-grid !important;
  min-width: 22px !important;
  height: 22px !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #063842 !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  background: linear-gradient(135deg, #a9f5d0, #70e3ff) !important;
}

html body .app-shell .pin-search-subsection {
  display: grid !important;
  gap: 7px !important;
  margin-top: 8px !important;
}

html body .app-shell .pin-search-subsection-label {
  margin: 2px 5px -1px !important;
  color: rgba(215, 255, 244, 0.66) !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html body .app-shell .pin-search-result {
  border-color: rgba(213, 255, 243, 0.16) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease !important;
}

html body .app-shell .pin-search-result:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(141, 241, 202, 0.32) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 24px rgba(0, 18, 30, 0.18) !important;
}

html body .app-shell .memory-search-result {
  border-color: rgba(141, 241, 202, 0.22) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(141, 241, 202, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.08) !important;
}

html body .app-shell .pin-search-result-emoji {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(10, 167, 184, 0.9), rgba(24, 201, 130, 0.88)) !important;
  box-shadow: 0 10px 22px rgba(6, 28, 40, 0.16) !important;
}

html body .app-shell .world-place-result {
  border-color: rgba(112, 227, 255, 0.22) !important;
}

html body .app-shell .world-place-restaurant .pin-search-result-emoji {
  background: linear-gradient(135deg, #ff8f70, #f05a4f) !important;
}

html body .app-shell .world-place-cafe .pin-search-result-emoji {
  background: linear-gradient(135deg, #e8c28f, #9b6a40) !important;
}

html body .app-shell .world-place-hotel .pin-search-result-emoji {
  background: linear-gradient(135deg, #7ea7ff, #5c6bc0) !important;
}

html body .app-shell .world-place-park .pin-search-result-emoji {
  background: linear-gradient(135deg, #8de77f, #25a86b) !important;
}

html body .app-shell .world-place-landmark .pin-search-result-emoji {
  background: linear-gradient(135deg, #c8d1dc, #718096) !important;
}

html body .app-shell .world-place-city .pin-search-result-emoji {
  background: linear-gradient(135deg, #70e3ff, #0aa7b8) !important;
}

html body .app-shell .pin-search-loading {
  border-color: rgba(213, 255, 243, 0.16) !important;
  color: rgba(236, 255, 250, 0.78) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Memory Trails: chapter paths connecting moments from the same trip/place. */
html body .app-shell .map-stage.map-focus .memory-chapter-trail {
  pointer-events: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  transition:
    opacity 220ms ease,
    filter 220ms ease !important;
}

html body .app-shell .map-stage.map-focus .memory-chapter-trail-glow {
  filter: drop-shadow(0 10px 22px rgba(5, 32, 45, 0.24)) !important;
}

html body .app-shell .map-stage.map-focus .memory-chapter-trail-core {
  animation: memoryChapterTrailDrift 7.5s linear infinite !important;
  animation-delay: var(--trail-delay, 0ms) !important;
  filter: drop-shadow(0 0 8px color-mix(in srgb, currentColor 42%, transparent)) !important;
}

html body .app-shell .map-stage.map-focus .memory-chapter-trail-label {
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus .memory-chapter-trail-label span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  max-width: 170px !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(225, 255, 246, 0.34) !important;
  border-radius: 999px !important;
  color: #f6fffb !important;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--trail-color) 24%, transparent), transparent 42%),
    linear-gradient(135deg, rgba(6, 40, 54, 0.92), rgba(7, 78, 78, 0.82)) !important;
  box-shadow:
    0 12px 28px rgba(0, 18, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
  animation: memoryChapterLabelRise 420ms ease both !important;
  animation-delay: var(--trail-delay, 0ms) !important;
}

html body .app-shell .map-stage.map-focus .memory-chapter-trail-label strong {
  overflow: hidden !important;
  color: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.map-focus .memory-chapter-trail-label small {
  flex: 0 0 auto !important;
  color: #062b35 !important;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  background: linear-gradient(135deg, #baf7d5, #85e8ff) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-chapter-trail,
html body .app-shell .map-stage.map-focus.map-interacting .memory-chapter-trail-label,
html body .app-shell .map-stage.map-focus.map-performance-mode .memory-chapter-trail,
html body .app-shell .map-stage.map-focus.map-performance-mode .memory-chapter-trail-label {
  opacity: 0 !important;
}

@keyframes memoryChapterTrailDrift {
  to {
    stroke-dashoffset: -30;
  }
}

@keyframes memoryChapterLabelRise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.map-focus .memory-chapter-trail-core,
  html body .app-shell .map-stage.map-focus .memory-chapter-trail-label span {
    animation: none !important;
  }
}

/* Explore polish: make pins, memory sheets, and search feel more like MyMappi. */
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory {
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.44), transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--marker-color) 88%, #ffffff 12%), color-mix(in srgb, var(--marker-color) 82%, #062a36 18%)) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory::after {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  width: 7px !important;
  height: 7px !important;
  content: "" !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--marker-color) 26%, transparent) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-feeling-muted {
  opacity: 0.38 !important;
  filter: saturate(0.62) brightness(0.9) !important;
}

html body .app-shell .memory-sheet-card.memory-capsule-card {
  overflow: hidden !important;
  border-radius: 30px !important;
  box-shadow:
    0 26px 70px rgba(4, 28, 40, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.64) inset !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
  border: 1px solid rgba(8, 74, 82, 0.1) !important;
  border-radius: 24px !important;
  box-shadow:
    0 14px 32px rgba(7, 35, 45, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .memory-sheet-card .sheet-kicker {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  color: #073947 !important;
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--sheet-accent) 18%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .memory-sheet-card .sheet-copy {
  align-items: stretch !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery,
html body .app-shell .memory-sheet-card .sheet-video-wrap {
  margin-inline: auto !important;
  width: 100% !important;
}

html body .app-shell .memory-sheet-card .sheet-note {
  text-align: left !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button {
  position: relative !important;
  overflow: hidden !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button::before {
  position: absolute !important;
  inset: 0 !important;
  content: "" !important;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 42%) !important;
  opacity: 0 !important;
  transition: opacity 180ms ease !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button:hover::before {
  opacity: 1 !important;
}

html body .app-shell .pin-search-panel {
  box-shadow:
    0 24px 60px rgba(0, 18, 30, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

html body .app-shell .search-empty-state {
  display: grid !important;
  gap: 7px !important;
  padding: 18px !important;
  border: 1px solid rgba(213, 255, 243, 0.16) !important;
  border-radius: 20px !important;
  color: rgba(236, 255, 250, 0.76) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(141, 241, 202, 0.13), transparent 42%),
    rgba(255, 255, 255, 0.075) !important;
}

html body .app-shell .search-empty-state strong {
  color: #ffffff !important;
  font-size: 0.98rem !important;
}

html body .app-shell .search-empty-state span {
  line-height: 1.45 !important;
}

html body .app-shell .memory-search-result {
  border-color: color-mix(in srgb, var(--result-color, #18c982) 34%, rgba(255, 255, 255, 0.1)) !important;
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--result-color, #18c982) 18%, transparent), transparent 45%),
    rgba(255, 255, 255, 0.09) !important;
}

html body .app-shell .pin-search-result-emoji.memory-search-pin {
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .pin-search-result-emoji.memory-search-pin i {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 50% 50% 50% 0 !important;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.58), transparent 25%),
    linear-gradient(135deg, color-mix(in srgb, var(--result-color, #18c982) 84%, #ffffff 16%), var(--result-color, #18c982)) !important;
  box-shadow:
    0 9px 16px rgba(0, 18, 30, 0.2),
    0 0 0 7px color-mix(in srgb, var(--result-color, #18c982) 13%, transparent) !important;
  transform: rotate(-45deg) !important;
}

html body .app-shell .pin-search-result-emoji.memory-search-pin i::after {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 7px !important;
  height: 7px !important;
  content: "" !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  transform: translate(-50%, -50%) !important;
}

/* Living Memories layer: nearby memories gently surface while exploring. */
html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby {
  bottom: 112px !important;
  width: min(370px, calc(100vw - 38px)) !important;
  min-height: 72px !important;
  padding: 11px 13px !important;
  border-color: color-mix(in srgb, var(--peek-accent, #0b7285) 18%, rgba(255, 255, 255, 0.62)) !important;
  background:
    radial-gradient(circle at 13% 20%, color-mix(in srgb, var(--peek-accent, #0b7285) 13%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(239, 252, 246, 0.86)) !important;
  box-shadow:
    0 18px 46px rgba(4, 27, 39, 0.18),
    0 0 0 5px color-mix(in srgb, var(--peek-accent, #0b7285) 5%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin {
  position: relative !important;
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(135deg, rgba(8, 66, 80, 0.96), rgba(9, 105, 92, 0.88)) !important;
  box-shadow:
    0 10px 22px rgba(5, 35, 48, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin::before {
  position: absolute !important;
  inset: -5px !important;
  content: "" !important;
  border: 1px solid color-mix(in srgb, var(--peek-accent, #0b7285) 28%, transparent) !important;
  border-radius: 20px !important;
  opacity: 0.72 !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin i {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 50% 50% 50% 0 !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--peek-accent, #18c982) 80%, white), var(--peek-accent, #18c982)) !important;
  box-shadow: 0 0 18px color-mix(in srgb, var(--peek-accent, #18c982) 34%, transparent) !important;
  transform: rotate(-45deg) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin i::after {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 6px !important;
  height: 6px !important;
  content: "" !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  transform: translate(-50%, -50%) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .peek-copy strong {
  color: #073540 !important;
  font-size: 0.96rem !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .peek-copy small {
  color: rgba(8, 47, 58, 0.62) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .peek-copy em {
  display: inline-flex !important;
  width: fit-content !important;
  margin-top: 2px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--peek-accent, #0b7285) 58%, #073540) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  background: color-mix(in srgb, var(--peek-accent, #0b7285) 10%, rgba(255, 255, 255, 0.74)) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-peek-card.living-nearby {
  opacity: 0 !important;
  transform: translateX(50%) translateY(18px) scale(0.98) !important;
}

/* Saved memories as the star of Explore. */
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory {
  width: 48px !important;
  height: 64px !important;
  border-width: 2.5px !important;
  border-radius: 50% 50% 50% 10px !important;
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--marker-color) 14%, transparent),
    0 16px 34px rgba(6, 25, 38, 0.3),
    0 0 22px color-mix(in srgb, var(--marker-color) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.44) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory::before {
  inset: 7px 8px 23px !important;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.78) 0 13%, transparent 15%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1)) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory::after {
  right: 10px !important;
  bottom: 8px !important;
  width: 8px !important;
  height: 8px !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face {
  width: 28px !important;
  height: 28px !important;
  font-size: 1rem !important;
  box-shadow:
    0 5px 12px rgba(4, 16, 31, 0.18),
    0 0 0 4px rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-glow {
  inset: -1px !important;
  opacity: 0.42 !important;
  filter: blur(18px) saturate(1.12) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new) {
  z-index: 4 !important;
  box-shadow:
    0 0 0 9px color-mix(in srgb, var(--marker-color) 18%, transparent),
    0 0 30px color-mix(in srgb, var(--marker-color) 48%, transparent),
    0 18px 38px rgba(6, 25, 38, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.48) !important;
  animation: savedMemoryFavoriteGlow 5.6s ease-in-out infinite !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new) .memory-marker-glow {
  opacity: 0.68 !important;
  filter: blur(24px) saturate(1.16) !important;
  animation: savedMemoryFavoriteHalo 5.6s ease-in-out infinite !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new):not(.is-favorite-memory) {
  z-index: 3 !important;
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--marker-color) 16%, transparent),
    0 0 24px color-mix(in srgb, var(--marker-color) 36%, transparent),
    0 17px 34px rgba(6, 25, 38, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.46) !important;
  animation: savedMemoryRecentBreath 6.8s ease-in-out infinite !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new):not(.is-favorite-memory) .memory-marker-glow {
  opacity: 0.54 !important;
  filter: blur(21px) saturate(1.12) !important;
  animation: savedMemoryRecentHalo 6.8s ease-in-out infinite !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-old-memory:not(.is-new):not(.is-favorite-memory):not(.is-recent-memory) {
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 250, 228, 0.58), transparent 30%),
    linear-gradient(145deg,
      color-mix(in srgb, var(--marker-color) 64%, #f4c983 36%),
      color-mix(in srgb, var(--marker-color) 54%, #8b5f2b 46%)) !important;
  box-shadow:
    0 0 0 6px rgba(190, 128, 62, 0.14),
    0 14px 30px rgba(76, 44, 18, 0.24),
    0 0 16px rgba(211, 154, 82, 0.2),
    inset 0 1px 0 rgba(255, 249, 231, 0.48) !important;
  filter: saturate(0.92) sepia(0.08) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-old-memory:not(.is-new):not(.is-favorite-memory):not(.is-recent-memory) .memory-marker-glow {
  background: #d59b5a !important;
  opacity: 0.3 !important;
  filter: blur(16px) saturate(0.9) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-old-memory:not(.is-new):not(.is-favorite-memory):not(.is-recent-memory) .memory-marker-face {
  background: #fff7e7 !important;
  color: #5a3518 !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-favorite-memory:not(.is-new),
html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-recent-memory:not(.is-new),
html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-favorite-memory:not(.is-new) .memory-marker-glow,
html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-recent-memory:not(.is-new) .memory-marker-glow {
  animation-play-state: paused !important;
}

@keyframes savedMemoryFavoriteGlow {
  0%, 74%, 100% {
    transform: rotate(-45deg) scale(1);
  }
  12% {
    transform: rotate(-45deg) scale(1.045);
  }
  20% {
    transform: rotate(-45deg) scale(0.996);
  }
}

@keyframes savedMemoryFavoriteHalo {
  0%, 74%, 100% {
    opacity: 0.56;
    filter: blur(21px) saturate(1.1);
  }
  12% {
    opacity: 0.76;
    filter: blur(27px) saturate(1.2);
  }
}

@keyframes savedMemoryRecentBreath {
  0%, 80%, 100% {
    transform: rotate(-45deg) scale(1);
  }
  14% {
    transform: rotate(-45deg) scale(1.026);
  }
}

@keyframes savedMemoryRecentHalo {
  0%, 80%, 100% {
    opacity: 0.42;
    filter: blur(18px) saturate(1.06);
  }
  14% {
    opacity: 0.58;
    filter: blur(23px) saturate(1.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new),
  html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new),
  html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new) .memory-marker-glow,
  html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new) .memory-marker-glow {
    animation: none !important;
  }
}

/* Opened memory tab: mini scrapbook card, not a settings panel. */
html body .app-shell .memory-bottom-sheet.open {
  padding-inline: clamp(12px, 3vw, 22px) !important;
}

html body .app-shell .memory-sheet-card.memory-capsule-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  width: min(94vw, 620px) !important;
  max-height: min(82vh, 780px) !important;
  padding: 13px !important;
  overflow-y: auto !important;
  border: 1px solid rgba(229, 255, 247, 0.72) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--sheet-accent) 12%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(240, 252, 247, 0.94)) !important;
  box-shadow:
    0 30px 84px rgba(4, 28, 40, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 12px 46px 12px 12px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--sheet-accent) 16%, transparent), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 251, 246, 0.86)) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge {
  position: relative !important;
  inset: auto !important;
  width: 54px !important;
  height: 54px !important;
  transform: none !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close {
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  width: 30px !important;
  height: 30px !important;
  border: 1px solid rgba(9, 46, 57, 0.12) !important;
  background: rgba(7, 43, 52, 0.9) !important;
  box-shadow:
    0 8px 18px rgba(4, 28, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  transform: none !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy {
  display: grid !important;
  justify-items: start !important;
  gap: 6px !important;
  min-width: 0 !important;
  text-align: left !important;
}

html body .app-shell .memory-sheet-card .sheet-eyebrow {
  color: color-mix(in srgb, var(--sheet-accent) 55%, #0a3440) !important;
  font-size: 0.66rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3 {
  max-width: 100% !important;
  margin: 0 !important;
  color: #082f3a !important;
  font-size: clamp(1.34rem, 4.6vw, 1.86rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  text-align: left !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-meta-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-meta-row span,
html body .app-shell .memory-sheet-card .sheet-meta {
  width: fit-content !important;
  margin: 0 !important;
  padding: 5px 9px !important;
  border: 1px solid rgba(8, 74, 82, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(7, 54, 64, 0.78) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  background: rgba(255, 255, 255, 0.66) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-meta-row span:first-child {
  color: #062f38 !important;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--sheet-accent) 20%, transparent), transparent 48%),
    rgba(255, 255, 255, 0.82) !important;
}

html body .app-shell .memory-sheet-card .sheet-copy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 11px !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-media {
  display: grid !important;
  gap: 10px !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, rgba(8, 47, 58, 0.08), rgba(255, 255, 255, 0.48)) !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery {
  grid-auto-columns: minmax(92%, 1fr) !important;
  gap: 12px !important;
  padding: 4px 4px 10px !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery__photo,
html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-video-player,
html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video {
  min-height: clamp(285px, 46vh, 430px) !important;
  max-height: 460px !important;
  border-radius: 24px !important;
  box-shadow:
    0 18px 40px rgba(7, 35, 45, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset !important;
}

html body .app-shell .memory-sheet-card .sheet-video-wrap {
  border-radius: 24px !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-media-empty {
  display: grid !important;
  min-height: 210px !important;
  place-items: center !important;
  align-content: center !important;
  gap: 7px !important;
  padding: 24px !important;
  color: rgba(7, 54, 64, 0.66) !important;
  text-align: center !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-media-empty span {
  display: block !important;
  width: 46px !important;
  height: 46px !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% 50% 50% 0 !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sheet-accent) 72%, white), var(--sheet-accent)) !important;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--sheet-accent) 12%, transparent) !important;
  transform: rotate(-45deg) !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-media-empty strong {
  color: #0a3440 !important;
  font-size: 1rem !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-media-empty small {
  color: rgba(8, 47, 58, 0.58) !important;
}

html body .app-shell .memory-sheet-card .sheet-note {
  padding: 16px 17px 16px 20px !important;
  border-radius: 18px !important;
  color: #113c43 !important;
  font-size: clamp(0.98rem, 2.8vw, 1.08rem) !important;
  font-weight: 620 !important;
  line-height: 1.5 !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-details {
  justify-content: flex-start !important;
}

html body .app-shell .memory-sheet-card .sheet-coordinates {
  opacity: 0.72 !important;
}

html body .app-shell .memory-sheet-card .sheet-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  position: sticky !important;
  bottom: -1px !important;
  padding: 8px 0 0 !important;
  background: linear-gradient(180deg, transparent, rgba(247, 252, 248, 0.96) 35%) !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button {
  min-height: 46px !important;
  border-radius: 16px !important;
  font-size: 0.82rem !important;
  font-weight: 920 !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card.memory-capsule-card {
    width: min(96vw, 620px) !important;
    max-height: 84vh !important;
    padding: 11px !important;
    border-radius: 24px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    padding: 10px 42px 10px 10px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 48px !important;
    height: 48px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-photo-gallery {
    grid-auto-columns: 94% !important;
  }

  html body .app-shell .memory-sheet-card .sheet-photo-gallery__photo,
  html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-video-player,
  html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video {
    min-height: 250px !important;
    max-height: 360px !important;
  }
}

/* Branded MyMappi routes: soft blue-green path from you to a memory. */
html body .app-shell .directions-panel {
  border-radius: 24px !important;
}

html body .app-shell .directions-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  padding: 6px !important;
  border-radius: 18px !important;
}

html body .app-shell .directions-mode-button {
  min-height: 43px !important;
  border-radius: 14px !important;
  font-weight: 950 !important;
}

html body .app-shell .directions-mode-button.active {
  color: #043944 !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.48), transparent 36%),
    linear-gradient(135deg, #abf7d3, #75e8ff) !important;
}

html body .app-shell .directions-route-main {
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter:
    drop-shadow(0 0 8px rgba(112, 227, 255, 0.34))
    drop-shadow(0 5px 10px rgba(2, 24, 36, 0.22)) !important;
}

html body .app-shell .directions-route-glow {
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter:
    blur(0.8px)
    drop-shadow(0 0 18px rgba(112, 227, 255, 0.36))
    drop-shadow(0 0 28px rgba(24, 201, 130, 0.16)) !important;
}

html body .app-shell .directions-route-pulse {
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  animation: mymappiRouteFlow 2.8s linear infinite !important;
  filter: drop-shadow(0 0 7px rgba(230, 255, 252, 0.58)) !important;
}

html body .app-shell .directions-route-walking.directions-route-pulse {
  animation-duration: 2.1s !important;
}

html body .app-shell .route-marker {
  display: inline-grid !important;
  min-width: 58px !important;
  height: 30px !important;
  place-items: center !important;
  border: 1px solid rgba(224, 255, 248, 0.58) !important;
  border-radius: 999px !important;
  color: #053743 !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.01em !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.46), transparent 36%),
    linear-gradient(135deg, #b7f8d7, #7beaff) !important;
  box-shadow:
    0 12px 28px rgba(4, 35, 48, 0.22),
    0 0 0 6px rgba(112, 227, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.52) !important;
}

html body .app-shell .route-marker.route-marker-start::before,
html body .app-shell .route-marker.route-marker-end::before {
  display: inline-block !important;
  margin-right: 5px !important;
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .route-marker.route-marker-end {
  min-width: 68px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.3), transparent 36%),
    linear-gradient(135deg, #0aa7b8, #18c982) !important;
  box-shadow:
    0 12px 28px rgba(4, 35, 48, 0.24),
    0 0 0 7px rgba(24, 201, 130, 0.13),
    0 0 24px rgba(24, 201, 130, 0.24) !important;
}

html body .app-shell .directions-summary {
  min-height: 58px !important;
  border-radius: 18px !important;
}

html body .app-shell .directions-summary span {
  line-height: 1.35 !important;
}

@keyframes mymappiRouteFlow {
  to {
    stroke-dashoffset: -46;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .directions-route-pulse {
    animation: none !important;
  }
}

/* Final premium Explore control gadget: one clean 2x2 square. */
html body .app-shell .map-stage.map-focus {
  --explore-gadget-size: 76px;
  --explore-gadget-cell: 38px;
  --explore-gadget-right: clamp(34px, 5vw, 48px);
  --explore-gadget-bottom: clamp(104px, 12vh, 126px);
  --explore-gadget-bg: linear-gradient(145deg, rgba(8, 58, 70, 0.9), rgba(3, 30, 43, 0.86));
  --explore-gadget-cell-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  --explore-gadget-cell-active: linear-gradient(145deg, rgba(142, 244, 210, 0.25), rgba(113, 226, 255, 0.15));
  --explore-gadget-line: rgba(219, 255, 247, 0.17);
  --explore-gadget-icon: #f3fffb;
}

html body .app-shell .map-navigation-gadget {
  position: absolute !important;
  right: var(--explore-gadget-right) !important;
  bottom: var(--explore-gadget-bottom) !important;
  z-index: 110 !important;
  display: none !important;
  width: var(--explore-gadget-size) !important;
  height: var(--explore-gadget-size) !important;
  grid-template-columns: repeat(2, var(--explore-gadget-cell)) !important;
  grid-template-rows: repeat(2, var(--explore-gadget-cell)) !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(221, 255, 247, 0.24) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(141, 241, 202, 0.18), transparent 42%),
    var(--explore-gadget-bg) !important;
  box-shadow:
    0 20px 44px rgba(0, 16, 28, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget {
  display: grid !important;
}

html body .app-shell .map-stage.map-focus #locateButton.hidden-control {
  display: grid !important;
}

html body .app-shell .map-stage.map-focus #locateButton,
html body .app-shell .map-stage.map-focus .map-compass,
html body .app-shell .map-stage.map-focus .map-gadget-zoom-button {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  width: var(--explore-gadget-cell) !important;
  height: var(--explore-gadget-cell) !important;
  min-width: var(--explore-gadget-cell) !important;
  min-height: var(--explore-gadget-cell) !important;
  max-width: var(--explore-gadget-cell) !important;
  max-height: var(--explore-gadget-cell) !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--explore-gadget-icon) !important;
  background: var(--explore-gadget-cell-bg) !important;
  box-shadow: none !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

html body .app-shell .map-stage.map-focus #locateButton {
  grid-column: 1 !important;
  grid-row: 1 !important;
  border-right: 1px solid var(--explore-gadget-line) !important;
  border-bottom: 1px solid var(--explore-gadget-line) !important;
}

html body .app-shell .map-stage.map-focus #mapZoomInButton {
  grid-column: 2 !important;
  grid-row: 1 !important;
  border-bottom: 1px solid var(--explore-gadget-line) !important;
}

html body .app-shell .map-stage.map-focus .map-compass {
  grid-column: 1 !important;
  grid-row: 2 !important;
  border-right: 1px solid var(--explore-gadget-line) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus #mapZoomOutButton {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

html body .app-shell .map-stage.map-focus #locateButton:hover,
html body .app-shell .map-stage.map-focus .map-gadget-zoom-button:hover,
html body .app-shell .map-stage.map-focus #locateButton:focus-visible,
html body .app-shell .map-stage.map-focus .map-gadget-zoom-button:focus-visible {
  background: var(--explore-gadget-cell-active) !important;
}

html body .app-shell .map-stage.map-focus #locateButton [data-icon],
html body .app-shell .map-stage.map-focus #locateButton svg {
  width: 20px !important;
  height: 20px !important;
  color: var(--explore-gadget-icon) !important;
  stroke-width: 2.25 !important;
  filter: drop-shadow(0 0 7px rgba(141, 241, 202, 0.34)) !important;
}

html body .app-shell .map-stage.map-focus #locateButton.needs-location [data-icon],
html body .app-shell .map-stage.map-focus #locateButton.needs-location svg {
  color: #ffd7a8 !important;
  filter: drop-shadow(0 0 8px rgba(255, 184, 99, 0.42)) !important;
}

html body .app-shell .map-stage.map-focus #locateButton .locate-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.map-focus .map-gadget-zoom-button {
  cursor: pointer !important;
  font-size: 1.28rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass::before {
  position: absolute !important;
  top: 7px !important;
  left: 50% !important;
  width: 24px !important;
  height: 24px !important;
  content: "" !important;
  border: 1px solid rgba(226, 255, 248, 0.26) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.065) !important;
  transform: translateX(-50%) !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass::after,
html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass.has-heading::after {
  display: none !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass-needle {
  position: absolute !important;
  top: 9px !important;
  left: 50% !important;
  width: 0 !important;
  height: 14px !important;
  transform-origin: 50% 12px !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass-needle::before {
  border-right-width: 4px !important;
  border-bottom-width: 13px !important;
  border-left-width: 4px !important;
  border-bottom-color: #8df1ca !important;
  filter: drop-shadow(0 0 6px rgba(141, 241, 202, 0.48)) !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass strong {
  position: absolute !important;
  top: 8px !important;
  left: 50% !important;
  color: #ffffff !important;
  font-size: 0.52rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateX(-50%) !important;
}

@media (max-width: 680px) {
  html body .app-shell .map-stage.map-focus {
    --explore-gadget-size: 72px;
    --explore-gadget-cell: 36px;
    --explore-gadget-right: 28px;
    --explore-gadget-bottom: 104px;
  }

  html body .app-shell .map-navigation-gadget {
    border-radius: 17px !important;
  }
}

/* Signature Memory Trails: connected chapters with soft story-stop dots. */
html body .app-shell .map-stage.map-focus .memory-chapter-trail-core {
  stroke-dasharray: 2 13 !important;
  stroke-width: 3px !important;
  opacity: 0.72 !important;
  filter:
    drop-shadow(0 0 8px color-mix(in srgb, currentColor 42%, transparent))
    drop-shadow(0 4px 10px rgba(0, 18, 28, 0.16)) !important;
}

html body .app-shell .map-stage.map-focus .memory-chapter-trail-glow {
  opacity: 0.18 !important;
  stroke-width: 14px !important;
  filter:
    blur(0.4px)
    drop-shadow(0 0 18px color-mix(in srgb, currentColor 24%, transparent)) !important;
}

/* Final compass fix: keep the Explore gadget unified and make the compass fit its square. */
html body .app-shell .map-stage.map-focus .map-navigation-gadget {
  grid-template-columns: repeat(2, var(--explore-gadget-cell)) !important;
  grid-template-rows: repeat(2, var(--explore-gadget-cell)) !important;
}

html body .app-shell .map-stage.map-focus #locateButton,
html body .app-shell .map-stage.map-focus #mapZoomInButton,
html body .app-shell .map-stage.map-focus .map-compass,
html body .app-shell .map-stage.map-focus #mapZoomOutButton {
  width: var(--explore-gadget-cell) !important;
  height: var(--explore-gadget-cell) !important;
  min-width: var(--explore-gadget-cell) !important;
  min-height: var(--explore-gadget-cell) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 42% 22%, rgba(255, 255, 255, 0.13), transparent 36%),
    var(--explore-gadget-cell-bg) !important;
}

html body .app-shell .map-stage.map-focus .map-compass {
  cursor: pointer !important;
  pointer-events: auto !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass::before {
  position: absolute !important;
  inset: 6px !important;
  width: auto !important;
  height: auto !important;
  content: "" !important;
  border: 1px solid rgba(235, 255, 249, 0.34) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(5, 35, 47, 0.78) 0 34%, rgba(255, 255, 255, 0.08) 35% 100%),
    rgba(255, 255, 255, 0.07) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 10px rgba(141, 241, 202, 0.18) !important;
  transform: none !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass::after,
html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass.has-heading::after {
  display: none !important;
  content: none !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass-needle {
  position: absolute !important;
  top: 6px !important;
  left: 50% !important;
  z-index: 3 !important;
  display: block !important;
  width: 3px !important;
  height: 22px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, #ff625d 0 48%, #f8fffb 49% 100%) !important;
  box-shadow:
    0 0 9px rgba(141, 241, 202, 0.2),
    0 2px 6px rgba(0, 18, 28, 0.3) !important;
  transform-origin: 50% 15px !important;
  transition: transform 180ms ease !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass-needle::before {
  position: absolute !important;
  top: -4px !important;
  left: 50% !important;
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  content: "" !important;
  border-right: 5px solid transparent !important;
  border-bottom: 9px solid #ff625d !important;
  border-left: 5px solid transparent !important;
  filter: drop-shadow(0 0 6px rgba(255, 98, 93, 0.42)) !important;
  transform: translateX(-50%) !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass-needle::after {
  position: absolute !important;
  right: -2px !important;
  bottom: -2px !important;
  left: -2px !important;
  height: 6px !important;
  content: "" !important;
  border-radius: 999px !important;
  background: rgba(248, 255, 251, 0.92) !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass strong {
  position: absolute !important;
  bottom: 5px !important;
  left: 50% !important;
  z-index: 4 !important;
  display: grid !important;
  width: 18px !important;
  height: 12px !important;
  place-items: center !important;
  color: rgba(248, 255, 251, 0.95) !important;
  font-size: 0.54rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 7px rgba(0, 15, 25, 0.42) !important;
  transform: translateX(-50%) !important;
}

html body .app-shell .map-stage.map-focus .map-compass:hover,
html body .app-shell .map-stage.map-focus .map-compass:focus-visible {
  background: var(--explore-gadget-cell-active) !important;
}

@media (prefers-reduced-motion: reduce) {
html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass-needle {
    transition: none !important;
  }
}

/* Premium memory video link: make non-embedded videos feel like a real media action. */
html body .app-shell .memory-card-video-link {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  min-height: 86px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(220, 255, 247, 0.42) !important;
  border-radius: 22px !important;
  color: #f6fffb !important;
  text-align: left !important;
  text-decoration: none !important;
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(8, 72, 86, 0.96), rgba(11, 126, 105, 0.92) 54%, rgba(20, 126, 182, 0.9)) !important;
  box-shadow:
    0 18px 42px rgba(2, 22, 34, 0.28),
    0 0 0 6px rgba(112, 227, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  transform: translateZ(0) !important;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    filter 180ms ease !important;
}

html body .app-shell .memory-card-video-link::before {
  position: absolute !important;
  inset: 0 !important;
  content: "" !important;
  pointer-events: none !important;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 44%),
    radial-gradient(circle at 88% 18%, rgba(183, 255, 217, 0.22), transparent 34%) !important;
  opacity: 0.9 !important;
}

html body .app-shell .memory-card-video-link::after {
  position: absolute !important;
  right: 16px !important;
  bottom: 14px !important;
  width: 42px !important;
  height: 6px !important;
  content: "" !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 0 18px rgba(183, 255, 217, 0.22) !important;
}

html body .app-shell .memory-card-video-link:hover,
html body .app-shell .memory-card-video-link:focus-visible {
  border-color: rgba(235, 255, 249, 0.72) !important;
  box-shadow:
    0 22px 52px rgba(2, 22, 34, 0.34),
    0 0 0 7px rgba(112, 227, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
  filter: saturate(1.08) brightness(1.04) !important;
  transform: translateY(-1px) translateZ(0) !important;
}

html body .app-shell .memory-video-link-icon {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 999px !important;
  color: #07313d !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(135deg, #ffffff, #b7ffd9 52%, #70e3ff) !important;
  box-shadow:
    0 13px 26px rgba(0, 18, 30, 0.24),
    0 0 20px rgba(183, 255, 217, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  text-indent: 2px !important;
}

html body .app-shell .memory-video-link-copy {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

html body .app-shell .memory-video-link-copy strong {
  color: #ffffff !important;
  font-size: clamp(1rem, 2.8vw, 1.18rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .memory-video-link-copy small {
  color: rgba(235, 255, 249, 0.78) !important;
  font-size: 0.78rem !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
}

html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video-link {
  min-height: clamp(190px, 30vh, 260px) !important;
  align-content: center !important;
  border-radius: 24px !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-card-video-link {
    min-height: 78px !important;
    gap: 12px !important;
    padding: 14px 15px !important;
    border-radius: 20px !important;
  }

  html body .app-shell .memory-video-link-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
}

html body .app-shell .map-stage.map-focus .memory-chapter-trail-stop {
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus .memory-chapter-trail-stop span {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  border: 2px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 999px !important;
  background: var(--trail-color) !important;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--trail-color) 12%, transparent),
    0 0 16px color-mix(in srgb, var(--trail-color) 36%, transparent),
    0 6px 12px rgba(0, 18, 28, 0.18) !important;
  animation: memoryTrailStopGlow 4.8s ease-in-out infinite !important;
  animation-delay: var(--trail-delay, 0ms) !important;
}

html body .app-shell .map-stage.map-focus .memory-chapter-trail-label span {
  box-shadow:
    0 14px 30px rgba(0, 18, 28, 0.24),
    0 0 0 5px color-mix(in srgb, var(--trail-color) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-chapter-trail-stop,
html body .app-shell .map-stage.map-focus.map-performance-mode .memory-chapter-trail-stop {
  opacity: 0 !important;
}

@keyframes memoryTrailStopGlow {
  0%, 74%, 100% {
    transform: scale(1);
    opacity: 0.86;
  }
  14% {
    transform: scale(1.16);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.map-focus .memory-chapter-trail-stop span {
    animation: none !important;
  }
}

/* Living Memories uses Mappi as the friendly nearby guide. */
html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge {
  width: 46px !important;
  height: 46px !important;
  overflow: hidden !important;
  border: 1px solid rgba(226, 255, 248, 0.58) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 28% 14%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(145deg, #7be35f 0%, #38c981 45%, #21a7f2 100%) !important;
  box-shadow:
    0 11px 24px rgba(5, 35, 48, 0.2),
    0 0 0 6px rgba(33, 167, 242, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge::before {
  inset: -4px !important;
  border-color: rgba(157, 248, 214, 0.34) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge img {
  display: block !important;
  width: 140% !important;
  height: 140% !important;
  object-fit: cover !important;
  object-position: 50% 20% !important;
  transform: translate(-7%, 5%) scale(1.08) !important;
  filter: drop-shadow(0 5px 7px rgba(0, 20, 30, 0.2)) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge i,
html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge i::after {
  display: none !important;
}

/* Search hierarchy: memories first, then world places by type. */
html body .app-shell .pin-search-section-label span {
  line-height: 1.25 !important;
}

html body .app-shell .world-place-country .pin-search-result-emoji {
  background: linear-gradient(135deg, #86e8ff, #1f7af2) !important;
}

html body .app-shell .world-place-region .pin-search-result-emoji {
  background: linear-gradient(135deg, #9fe9c3, #2d9f7f) !important;
}

html body .app-shell .world-place-place .pin-search-result-emoji {
  background: linear-gradient(135deg, #a8c7ff, #4e6fd8) !important;
}

html body .app-shell .pin-search-result small {
  line-height: 1.35 !important;
}

html body .app-shell .pin-search-loading {
  position: relative !important;
  overflow: hidden !important;
}

html body .app-shell .pin-search-loading::after {
  position: absolute !important;
  inset: 0 !important;
  content: "" !important;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.12), transparent) !important;
  animation: searchLoadingSweep 1.7s ease-in-out infinite !important;
}

@keyframes searchLoadingSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

/* Memory card alignment fix: X gets its own corner, Mappi and media stay clean. */
html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
  position: relative !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center !important;
  padding: 12px 48px 12px 12px !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge {
  position: relative !important;
  inset: auto !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 54px !important;
  height: 54px !important;
  margin: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  z-index: 1 !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-mappi,
html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-mappi-real {
  width: 100% !important;
  height: 100% !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-mappi-real {
  object-fit: cover !important;
  object-position: 50% 30% !important;
  transform: scale(1.18) translateY(2px) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close,
html body .app-shell .memory-sheet-card .sheet-close-button.sheet-mappi-close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(229, 255, 247, 0.22) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font-size: 0 !important;
  background: rgba(5, 31, 42, 0.92) !important;
  box-shadow:
    0 9px 20px rgba(4, 28, 40, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  opacity: 1 !important;
  transform: none !important;
  z-index: 4 !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close::before,
html body .app-shell .memory-sheet-card .sheet-close-button.sheet-mappi-close::before {
  position: static !important;
  inset: auto !important;
  content: "×" !important;
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-items: center !important;
  color: #ffffff !important;
  font-size: 1.08rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-media {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 24px !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 100% !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 0 8px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery__photo,
html body .app-shell .memory-sheet-card .sheet-video-wrap,
html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-video-player,
html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  border-radius: 24px !important;
  object-fit: cover !important;
  scroll-snap-align: center !important;
}

html body .app-shell .memory-sheet-card .sheet-video-wrap {
  overflow: hidden !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    padding: 10px 44px 10px 10px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge {
    width: 48px !important;
    height: 48px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-close-button.sheet-mappi-close,
  html body .app-shell .memory-sheet-card .sheet-close-button.sheet-mappi-close {
    top: 9px !important;
    right: 9px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
}

/* Memory card close button: keep the X attached to Mappi like a small badge. */
html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
  padding-right: 12px !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge {
  overflow: visible !important;
  z-index: 5 !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge .sheet-pin-mappi {
  border-radius: inherit !important;
  overflow: hidden !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge .sheet-close-button.sheet-mappi-close {
  position: absolute !important;
  top: -7px !important;
  right: -7px !important;
  left: auto !important;
  bottom: auto !important;
  width: 23px !important;
  height: 23px !important;
  min-width: 23px !important;
  min-height: 23px !important;
  border: 1px solid rgba(229, 255, 247, 0.3) !important;
  border-radius: 999px !important;
  background: rgba(5, 31, 42, 0.94) !important;
  box-shadow:
    0 7px 15px rgba(4, 28, 40, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: none !important;
  z-index: 8 !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge .sheet-close-button.sheet-mappi-close::before {
  font-size: 0.9rem !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
    padding-right: 10px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge .sheet-close-button.sheet-mappi-close {
    top: -6px !important;
    right: -6px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
  }
}

/* Explore search: make typing a city feel like a real map jump. */
html body .app-shell .pin-search-box {
  grid-template-columns: 22px minmax(0, 1fr) auto !important;
}

html body .app-shell .pin-search-go-button {
  display: inline-grid !important;
  min-width: 48px !important;
  height: 34px !important;
  place-items: center !important;
  padding: 0 14px !important;
  border: 1px solid rgba(212, 255, 244, 0.32) !important;
  border-radius: 999px !important;
  color: #053840 !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
  background: linear-gradient(135deg, #a9f5d0, #70e3ff) !important;
  box-shadow:
    0 10px 20px rgba(5, 28, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease !important;
}

html body .app-shell .pin-search-go-button:hover {
  transform: translateY(-1px) !important;
  filter: saturate(1.08) !important;
  box-shadow:
    0 14px 26px rgba(5, 28, 40, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

html body .app-shell .pin-search-go-button[aria-busy="true"] {
  min-width: 72px !important;
  opacity: 0.82 !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  html body .app-shell .pin-search-go-button {
    min-width: 44px !important;
    height: 32px !important;
    padding: 0 12px !important;
  }
}

/* Explore detail layer: museums, parks, venues, landmarks, food, and green areas. */
html body .app-shell .map-stage.map-focus .starter-place-marker,
html body .app-shell .map-stage.map-focus .discovery-marker {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  border: 2px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 15px !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.38), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--place-color, #0aa7b8) 72%, white 28%), var(--place-color, #0aa7b8)) !important;
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--place-color, #0aa7b8) 14%, transparent),
    0 12px 26px rgba(5, 24, 36, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  transform: translateZ(0) !important;
  transition:
    transform 220ms ease,
    filter 220ms ease,
    box-shadow 220ms ease,
    opacity 180ms ease !important;
  will-change: transform, opacity !important;
}

html body .app-shell .map-stage.map-focus .starter-place-marker::before,
html body .app-shell .map-stage.map-focus .discovery-marker::before {
  position: absolute !important;
  inset: -8px !important;
  content: "" !important;
  border: 1px solid color-mix(in srgb, var(--place-color, #0aa7b8) 34%, transparent) !important;
  border-radius: 20px !important;
  opacity: 0.42 !important;
  animation: mymappiPlaceBreath 4.8s ease-in-out infinite !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus .starter-place-marker span,
html body .app-shell .map-stage.map-focus .discovery-marker span {
  position: relative !important;
  z-index: 1 !important;
  filter: drop-shadow(0 2px 4px rgba(0, 10, 18, 0.24)) !important;
}

html body .app-shell .map-stage.map-focus .starter-place-marker:hover,
html body .app-shell .map-stage.map-focus .discovery-marker:hover {
  transform: translateY(-2px) scale(1.04) translateZ(0) !important;
  filter: saturate(1.08) !important;
  box-shadow:
    0 0 0 9px color-mix(in srgb, var(--place-color, #0aa7b8) 18%, transparent),
    0 16px 34px rgba(5, 24, 36, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

html body .app-shell .map-stage.map-focus .starter-place-marker.museum,
html body .app-shell .map-stage.map-focus .discovery-marker.museum {
  border-radius: 13px 13px 18px 18px !important;
}

html body .app-shell .map-stage.map-focus .starter-place-marker.park,
html body .app-shell .map-stage.map-focus .discovery-marker.park {
  border-radius: 50% 50% 46% 46% !important;
}

html body .app-shell .map-stage.map-focus .starter-place-marker.venue,
html body .app-shell .map-stage.map-focus .discovery-marker.venue {
  border-radius: 16px 16px 8px 16px !important;
}

html body .app-shell .map-stage.map-focus .starter-place-marker.event,
html body .app-shell .map-stage.map-focus .discovery-marker.event {
  border-radius: 18px 10px 18px 10px !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .starter-place-marker::before,
html body .app-shell .map-stage.map-focus.map-interacting .discovery-marker::before,
html body .app-shell .map-stage.map-focus.map-performance-mode .starter-place-marker::before,
html body .app-shell .map-stage.map-focus.map-performance-mode .discovery-marker::before {
  animation: none !important;
  opacity: 0.12 !important;
}

html body .app-shell .world-place-museum .pin-search-result-emoji {
  background: linear-gradient(135deg, #b8c2d2, #708094) !important;
}

html body .app-shell .world-place-venue .pin-search-result-emoji {
  background: linear-gradient(135deg, #d978f4, #7847d8) !important;
}

html body .app-shell .world-place-event .pin-search-result-emoji {
  background: linear-gradient(135deg, #ffb057, #ff6b4a) !important;
}

html body .app-shell .world-place-address .pin-search-result-emoji {
  background: linear-gradient(135deg, #a9f5d0, #50c7ff 58%, #2478ff) !important;
}

html body .app-shell .world-place-address {
  border-color: rgba(112, 227, 255, 0.3) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(112, 227, 255, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.085) !important;
}

@keyframes mymappiPlaceBreath {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.54;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.map-focus .starter-place-marker::before,
  html body .app-shell .map-stage.map-focus .discovery-marker::before {
    animation: none !important;
  }
}

/* Keep Mappi straight in every nearby-memory peek card. */
html body .app-shell .map-stage.map-focus .memory-peek-card .peek-pin.nearby-mappi-badge {
  width: 46px !important;
  height: 46px !important;
  overflow: hidden !important;
  border: 1px solid rgba(226, 255, 248, 0.58) !important;
  border-radius: 18px !important;
  color: transparent !important;
  font-size: 0 !important;
  background:
    radial-gradient(circle at 28% 14%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(145deg, #7be35f 0%, #38c981 45%, #21a7f2 100%) !important;
  box-shadow:
    0 11px 24px rgba(5, 35, 48, 0.2),
    0 0 0 6px rgba(33, 167, 242, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: none !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card .peek-pin.nearby-mappi-badge::first-letter {
  transform: none !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card .peek-pin.nearby-mappi-badge img {
  display: block !important;
  width: 140% !important;
  height: 140% !important;
  object-fit: cover !important;
  object-position: 50% 20% !important;
  transform: translate(-7%, 5%) scale(1.08) !important;
  filter: drop-shadow(0 5px 7px rgba(0, 20, 30, 0.2)) !important;
}

/* Search destination marker: a temporary navigation target, not a saved memory. */
html body .app-shell .map-stage.map-focus .search-destination-marker {
  position: relative !important;
  display: grid !important;
  width: 28px !important;
  height: 39px !important;
  place-items: center !important;
  border: 2px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 50% 50% 50% 8px !important;
  color: #0a5f73 !important;
  font-size: 0.78rem !important;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.58), transparent 25%),
    linear-gradient(145deg, #31d6a0 0%, #16a7c9 54%, #1f6ff2 100%) !important;
  box-shadow:
    0 0 0 5px rgba(49, 214, 160, 0.1),
    0 11px 22px rgba(5, 25, 40, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
  transform: rotate(-45deg) translateZ(0) !important;
  animation: searchDestinationDrop 520ms cubic-bezier(0.16, 1.16, 0.28, 1) both !important;
}

html body .app-shell .map-stage.map-focus .search-destination-marker::before {
  position: absolute !important;
  inset: 5px 6px 15px !important;
  content: "" !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: inset 0 -5px 9px rgba(3, 55, 70, 0.12) !important;
}

html body .app-shell .map-stage.map-focus .search-destination-marker span {
  position: relative !important;
  z-index: 1 !important;
  transform: rotate(45deg) !important;
  filter: drop-shadow(0 2px 3px rgba(0, 18, 24, 0.18)) !important;
}

html body .app-shell .map-stage.map-focus .search-destination-marker::after {
  position: absolute !important;
  inset: auto 4px -8px !important;
  height: 9px !important;
  content: "" !important;
  border-radius: 50% !important;
  background: rgba(4, 31, 44, 0.18) !important;
  filter: blur(3px) !important;
  transform: rotate(45deg) !important;
}

@keyframes searchDestinationDrop {
  from {
    opacity: 0;
    transform: rotate(-45deg) translateY(-14px) scale(0.88) translateZ(0);
  }
  to {
    opacity: 1;
    transform: rotate(-45deg) translateY(0) scale(1) translateZ(0);
  }
}

/* Premium live location: slimmer blue human pin with a softer pulse. */
html body .app-shell .user-location-marker-shell.live-user-location-marker {
  width: 44px !important;
  height: 56px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  pointer-events: none !important;
  z-index: 12000 !important;
  isolation: isolate !important;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location {
  position: relative !important;
  width: 44px !important;
  height: 56px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html body .app-shell .user-location-marker.is-current-location::before {
  position: absolute !important;
  top: 5px !important;
  left: 5px !important;
  width: 34px !important;
  height: 34px !important;
  inset: auto !important;
  content: "" !important;
  border: 2px solid rgba(83, 184, 255, 0.36) !important;
  border-radius: 999px !important;
  background: rgba(35, 133, 255, 0.1) !important;
  box-shadow: 0 0 22px rgba(35, 133, 255, 0.25) !important;
  animation: userLocationSoftRipple 2.8s ease-out infinite !important;
  transform: none !important;
}

html body .app-shell .user-location-marker.is-current-location::after {
  position: absolute !important;
  top: 43px !important;
  left: 12px !important;
  width: 20px !important;
  height: 8px !important;
  inset: auto !important;
  content: "" !important;
  border-radius: 999px !important;
  background: radial-gradient(ellipse at center, rgba(1, 19, 48, 0.34), transparent 72%) !important;
  filter: blur(5px) !important;
  transform: none !important;
  z-index: 0 !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-ripple {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  width: 36px !important;
  height: 36px !important;
  border: 1.5px solid rgba(89, 189, 255, 0.34) !important;
  border-radius: 999px !important;
  background: rgba(35, 133, 255, 0.07) !important;
  animation: userLocationSoftRipple 3.1s ease-out infinite !important;
  z-index: 0 !important;
}

html body .app-shell .user-location-marker.is-current-location .ripple-two {
  animation-delay: 1.25s !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-body::before {
  position: absolute !important;
  top: -21px !important;
  left: 50% !important;
  width: 28px !important;
  height: 34px !important;
  inset: auto !important;
  content: "" !important;
  border: 2.5px solid rgba(255, 255, 255, 0.98) !important;
  border-radius: 50% 50% 50% 8px !important;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.62), transparent 17%),
    linear-gradient(180deg, #83e7ff 0%, #2d95ff 52%, #0f61df 100%) !important;
  box-shadow:
    0 0 0 5px rgba(45, 149, 255, 0.13),
    0 0 24px rgba(45, 149, 255, 0.42),
    0 12px 22px rgba(5, 24, 58, 0.26) !important;
  transform: translateX(-50%) rotate(-45deg) !important;
  z-index: -1 !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-head,
html body .app-shell .user-location-marker.is-current-location .user-location-body,
html body .app-shell .user-location-marker.is-current-location .user-location-arms,
html body .app-shell .user-location-marker.is-current-location .user-location-legs {
  position: absolute !important;
  left: 50% !important;
  display: block !important;
  background: #ffffff !important;
  transform: translateX(-50%) !important;
  z-index: 4 !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-head {
  top: 11px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.36) !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-body {
  top: 20px !important;
  width: 10px !important;
  height: 13px !important;
  border-radius: 8px 8px 5px 5px !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-arms {
  top: 22px !important;
  width: 18px !important;
  height: 3px !important;
  border-radius: 999px !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-legs {
  top: 31px !important;
  width: 15px !important;
  height: 7px !important;
  border-radius: 0 0 999px 999px !important;
  background:
    linear-gradient(90deg, transparent 0 31%, #fff 31% 43%, transparent 43% 57%, #fff 57% 69%, transparent 69% 100%) !important;
}

html body .app-shell .user-location-marker-shell.is-estimate .user-location-marker.is-current-location {
  opacity: 0.58 !important;
  filter: saturate(0.82) grayscale(0.1) !important;
}

/* Refined live-location marker: slimmer, lighter, and more premium. */
html body .app-shell .user-location-marker-shell.live-user-location-marker {
  width: 34px !important;
  height: 46px !important;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location {
  width: 34px !important;
  height: 46px !important;
}

html body .app-shell .user-location-marker.is-current-location::before {
  top: 5px !important;
  left: 4px !important;
  width: 26px !important;
  height: 26px !important;
  border-width: 1px !important;
  border-color: rgba(83, 184, 255, 0.28) !important;
  background: rgba(35, 133, 255, 0.06) !important;
  box-shadow: 0 0 16px rgba(35, 133, 255, 0.18) !important;
}

html body .app-shell .user-location-marker.is-current-location::after {
  top: 35px !important;
  left: 9px !important;
  width: 16px !important;
  height: 6px !important;
  opacity: 0.74 !important;
  filter: blur(4px) !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-ripple {
  top: 4px !important;
  left: 3px !important;
  width: 28px !important;
  height: 28px !important;
  border-width: 1px !important;
  border-color: rgba(89, 189, 255, 0.26) !important;
  background: rgba(35, 133, 255, 0.045) !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-body::before {
  top: -17px !important;
  width: 21px !important;
  height: 29px !important;
  border-width: 1.8px !important;
  border-radius: 50% 50% 50% 6px !important;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.58), transparent 16%),
    linear-gradient(180deg, #8ae9ff 0%, #2f9bff 54%, #1265df 100%) !important;
  box-shadow:
    0 0 0 3px rgba(45, 149, 255, 0.1),
    0 0 16px rgba(45, 149, 255, 0.32),
    0 9px 17px rgba(5, 24, 58, 0.22) !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-head {
  top: 10px !important;
  width: 5px !important;
  height: 5px !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-body {
  top: 17px !important;
  width: 7px !important;
  height: 10px !important;
  border-radius: 7px 7px 4px 4px !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-arms {
  top: 19px !important;
  width: 13px !important;
  height: 2px !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-legs {
  top: 26px !important;
  width: 11px !important;
  height: 6px !important;
}

/* Nearby memories: make Mappi's face and red pin easier to see. */
html body .app-shell .map-stage.map-focus .memory-peek-card .peek-pin.nearby-mappi-badge,
html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge {
  width: 48px !important;
  height: 48px !important;
  border-radius: 18px !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card .peek-pin.nearby-mappi-badge img,
html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge img {
  width: 155% !important;
  height: 155% !important;
  object-fit: cover !important;
  object-position: 50% 18% !important;
  transform: translate(-12%, 3%) scale(1) !important;
}

/* Premium search control: make search feel like navigation. */
html body .app-shell #pinSearchButton {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(226, 255, 248, 0.2) !important;
  border-radius: 999px !important;
  color: rgba(248, 255, 251, 0.92) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(8, 36, 48, 0.5) !important;
  box-shadow:
    0 10px 22px rgba(3, 21, 31, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transform: translateZ(0) !important;
}

html body .app-shell #pinSearchButton::before,
html body .app-shell #pinSearchButton::after {
  display: none !important;
  content: none !important;
  pointer-events: none !important;
}

html body .app-shell #pinSearchButton [data-icon],
html body .app-shell #pinSearchButton svg {
  position: relative !important;
  z-index: 1 !important;
  width: 21px !important;
  height: 21px !important;
  stroke-width: 2.35 !important;
  filter: drop-shadow(0 4px 8px rgba(0, 16, 26, 0.28)) !important;
}

html body .app-shell #pinSearchButton:hover,
html body .app-shell #pinSearchButton:focus-visible,
html body .app-shell #pinSearchButton.active {
  border-color: rgba(117, 232, 196, 0.42) !important;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(23, 160, 133, 0.5), rgba(28, 120, 190, 0.4)) !important;
  box-shadow:
    0 14px 28px rgba(3, 21, 31, 0.2),
    0 0 0 3px rgba(24, 169, 120, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px) translateZ(0) !important;
}

html body .app-shell .pin-search-panel {
  top: 92px !important;
  right: 24px !important;
  overflow: hidden !important;
  width: min(420px, calc(100vw - 28px)) !important;
  padding: 16px !important;
  border-radius: 22px !important;
  border-color: rgba(213, 255, 243, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(6, 42, 54, 0.96), rgba(4, 29, 42, 0.94)) !important;
  box-shadow:
    0 22px 54px rgba(0, 16, 30, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .pin-search-heading {
  display: grid !important;
  gap: 3px !important;
  justify-content: stretch !important;
  padding: 0 2px 2px !important;
}

html body .app-shell .pin-search-heading::before {
  display: none !important;
  content: none !important;
}

html body .app-shell .pin-search-heading span {
  color: rgba(169, 245, 208, 0.82) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
}

html body .app-shell .pin-search-heading strong {
  color: #f3fffb !important;
  font-size: 1.08rem !important;
  letter-spacing: 0 !important;
}

html body .app-shell .pin-search-box {
  grid-template-columns: 22px minmax(0, 1fr) auto !important;
  min-height: 54px !important;
  border-radius: 18px !important;
  border-color: rgba(213, 255, 243, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08)) !important;
  box-shadow:
    0 10px 24px rgba(0, 18, 30, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .pin-search-box:focus-within {
  border-color: rgba(169, 245, 208, 0.52) !important;
  box-shadow:
    0 12px 28px rgba(0, 18, 30, 0.2),
    0 0 0 4px rgba(112, 227, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html body .app-shell .pin-search-go-button {
  min-width: 76px !important;
  height: 38px !important;
  border-color: rgba(255, 255, 255, 0.44) !important;
  color: #04313b !important;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.48), transparent 32%),
    linear-gradient(135deg, #b7ffd9, #70e3ff 56%, #5bb8ff) !important;
  box-shadow:
    0 12px 24px rgba(4, 24, 36, 0.24),
    0 0 20px rgba(112, 227, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.54) !important;
}

@media (max-width: 640px) {
  html body .app-shell #pinSearchButton {
    width: 43px !important;
    height: 43px !important;
    border-radius: 16px !important;
  }

  html body .app-shell .pin-search-panel {
    top: 82px !important;
    right: 14px !important;
    left: 14px !important;
    width: auto !important;
  }

  html body .app-shell .pin-search-heading strong {
    font-size: 1.04rem !important;
  }
}

/* Final search simplification: no mascot badges, no glowing search dot, cleaner navigation layout. */
html body .app-shell .pin-search-panel .search-empty-state {
  display: grid !important;
  gap: 6px !important;
  padding: 16px !important;
  border: 1px solid rgba(213, 255, 243, 0.16) !important;
  border-radius: 18px !important;
  color: rgba(236, 255, 250, 0.76) !important;
  background: rgba(255, 255, 255, 0.075) !important;
}

html body .app-shell .pin-search-panel .search-empty-state::before {
  display: none !important;
  content: none !important;
}

/* First-memory Mappi card: only a friendly nudge toward the main + button. */
html body .app-shell .map-empty-state {
  gap: 7px !important;
  padding: 18px 18px 17px !important;
}

html body .app-shell .map-empty-state span {
  max-width: 250px !important;
  margin: 3px 0 0 !important;
  color: #536b7c !important;
  line-height: 1.42 !important;
}

/* Home repair: keep full Mappi visible and make Today's Memory compact again. */
html body .app-shell .topbar .avatar-button {
  width: 54px !important;
  height: 54px !important;
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .app-shell .topbar .avatar-button img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  filter: drop-shadow(0 8px 12px rgba(3, 21, 31, 0.2)) !important;
}

html body .app-shell .topbar .avatar-button::after {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  min-height: clamp(300px, 34vw, 390px) !important;
  padding: clamp(17px, 2.4vw, 24px) !important;
  border-radius: 26px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  align-items: center !important;
  margin: 14px auto 0 !important;
  padding-top: clamp(70px, 12vw, 130px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: 18ch !important;
  font-size: clamp(1.7rem, 4.4vw, 3.15rem) !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
  max-width: 44ch !important;
  font-size: clamp(0.9rem, 1.4vw, 1.02rem) !important;
  line-height: 1.42 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  margin-top: 12px !important;
}

@media (max-width: 720px) {
  html body .app-shell .topbar .avatar-button {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 14px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: 300px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    padding-top: 64px !important;
  }
}

/* Final home-card tuning: Today’s Memory should feel important, not oversized. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  width: min(720px, 100%) !important;
  max-width: 720px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  min-height: clamp(270px, 30vw, 350px) !important;
  padding: clamp(16px, 2vw, 22px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  margin-top: 8px !important;
  padding-top: clamp(34px, 7vw, 76px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  min-height: clamp(145px, 20vw, 220px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  gap: 7px !important;
}

/* Explore and Today’s Memory cleanup. */
html body .app-shell .you-are-here-message {
  left: 50% !important;
  right: auto !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100vw - 32px) !important;
  justify-content: center !important;
  text-align: center !important;
  transform: translateX(-50%) translateY(-8px) !important;
}

html body .app-shell .you-are-here-message.is-visible {
  transform: translateX(-50%) translateY(0) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-pin.today-memory-pin-glyph {
  position: relative !important;
  color: transparent !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-pin.today-memory-pin-glyph::before {
  width: clamp(34px, 5vw, 48px) !important;
  height: clamp(34px, 5vw, 48px) !important;
  border: 4px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 50% 50% 50% 0 !important;
  content: "" !important;
  background: linear-gradient(180deg, #ff7b72 0%, #ef343f 100%) !important;
  box-shadow: 0 14px 30px rgba(238, 52, 63, 0.28) !important;
  transform: rotate(-45deg) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-pin.today-memory-pin-glyph::after {
  position: absolute !important;
  width: clamp(10px, 1.4vw, 14px) !important;
  height: clamp(10px, 1.4vw, 14px) !important;
  border-radius: 999px !important;
  content: "" !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) !important;
}

html body .app-shell .memory-empty-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

html body .app-shell .secondary-button {
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(28, 89, 107, 0.18) !important;
  border-radius: 999px !important;
  color: #184055 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 10px 22px rgba(21, 75, 92, 0.08) !important;
  font: inherit !important;
  font-weight: 780 !important;
  cursor: pointer !important;
}

html body .app-shell .secondary-button.danger-soft {
  border-color: rgba(205, 67, 79, 0.2) !important;
  color: #8f2f3d !important;
  background: rgba(255, 241, 242, 0.82) !important;
}

html body .app-shell .memory-storage-status {
  display: grid !important;
  gap: 6px !important;
  margin: 8px 0 2px !important;
}

html body .app-shell .memory-storage-status span {
  display: inline-flex !important;
  width: fit-content !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(35, 87, 107, 0.12) !important;
  border-radius: 999px !important;
  color: #31586b !important;
  background: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.82rem !important;
  font-weight: 760 !important;
}

html body .app-shell .memory-migration-note {
  max-width: 560px !important;
  margin: 10px 0 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(35, 87, 107, 0.12) !important;
  border-radius: 16px !important;
  color: #31586b !important;
  background: rgba(255, 255, 255, 0.56) !important;
  box-shadow: 0 12px 28px rgba(21, 75, 92, 0.08) !important;
  font-size: 0.88rem !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

html body .app-shell .memory-migration-note span {
  display: block !important;
  margin-top: 7px !important;
  color: #143347 !important;
  font-size: 0.78rem !important;
  font-weight: 820 !important;
  overflow-wrap: anywhere !important;
}

/* Restore Today’s Memory to a clean centered feature card. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-height: clamp(245px, 26vw, 320px) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  position: relative !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-pin,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  justify-self: center !important;
  margin: 0 !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
  width: 62px !important;
  height: 62px !important;
  border-radius: 18px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo {
  width: min(100%, 520px) !important;
  min-height: 180px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  text-align: center !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  align-self: center !important;
  width: min(100%, 580px) !important;
  margin: 2px auto 0 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    gap: 12px !important;
  }
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
  font-size: clamp(1.48rem, 3.7vw, 2.65rem) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: 270px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    padding-top: 34px !important;
  }
}

/* Unified top controls: hamburger, Mappi, search, and notifications. */
html body .app-shell .map-stage .topbar-left,
html body .app-shell .map-stage .topbar-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(6, 31, 43, 0.34) !important;
  box-shadow:
    0 14px 34px rgba(3, 21, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
}

html body .app-shell .map-stage .topbar .icon-button,
html body .app-shell .map-stage .topbar .avatar-button {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  color: rgba(248, 255, 252, 0.92) !important;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(8, 36, 48, 0.48) !important;
  box-shadow:
    0 9px 20px rgba(3, 21, 31, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  overflow: hidden !important;
  transform: none !important;
  backdrop-filter: blur(12px) !important;
}

html body .app-shell .map-stage .topbar .icon-button:hover,
html body .app-shell .map-stage .topbar .avatar-button:hover {
  border-color: rgba(117, 232, 196, 0.42) !important;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(23, 160, 133, 0.48), rgba(28, 120, 190, 0.4)) !important;
  box-shadow:
    0 12px 25px rgba(3, 21, 31, 0.2),
    0 0 0 3px rgba(24, 169, 120, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .map-stage .topbar .icon-button [data-icon],
html body .app-shell .map-stage .topbar .icon-button svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.35 !important;
  filter: drop-shadow(0 5px 10px rgba(3, 21, 31, 0.18)) !important;
}

html body .app-shell .map-stage .topbar .avatar-button::before,
html body .app-shell .map-stage .topbar .avatar-button::after {
  display: none !important;
  content: none !important;
}

html body .app-shell .map-stage .topbar .avatar-button img {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  filter: drop-shadow(0 5px 9px rgba(3, 21, 31, 0.16)) !important;
}

html body .app-shell .map-stage .topbar .hidden-control {
  display: none !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage .topbar-left,
  html body .app-shell .map-stage .topbar-actions {
    gap: 6px !important;
    padding: 4px !important;
  }

  html body .app-shell .map-stage .topbar .icon-button,
  html body .app-shell .map-stage .topbar .avatar-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
}

/* Final Today’s Memory photo polish: keep photos visible, bright, and slideshow-ready. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  max-width: min(720px, 100%) !important;
  gap: clamp(14px, 2.2vw, 22px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
  position: relative !important;
  display: block !important;
  width: min(100%, 660px) !important;
  min-height: clamp(230px, 38vw, 380px) !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  border: 1px solid rgba(235, 255, 248, 0.72) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(135deg, rgba(11, 92, 102, 0.36), rgba(31, 151, 119, 0.3)),
    rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 26px 64px rgba(4, 32, 40, 0.3),
    0 0 0 8px rgba(255, 255, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo::after {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  content: "" !important;
  background:
    linear-gradient(180deg, rgba(2, 20, 26, 0) 46%, rgba(2, 20, 26, 0.2) 100%),
    radial-gradient(circle at 22% 10%, rgba(255, 255, 255, 0.22), transparent 30%) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo-frame {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  filter: saturate(1.13) contrast(1.05) brightness(1.05) !important;
  transform: scale(1.015) !important;
  transition:
    opacity 360ms ease,
    transform 8s ease,
    filter 600ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo img,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo-frame {
  transform: scale(1.045) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
    width: 100% !important;
    min-height: clamp(205px, 58vw, 310px) !important;
    border-radius: 24px !important;
  }
}

/* Final media-size guard: keep memory photos/videos elegant and never oversized. */
html body .app-shell .memory-sheet-card .memory-sheet-media {
  width: 100% !important;
  max-width: 100% !important;
  max-height: min(54vh, 430px) !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  border-radius: 24px !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery {
  width: 100% !important;
  max-width: 100% !important;
  grid-auto-columns: 100% !important;
  align-items: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery__photo,
html body .app-shell .memory-sheet-card .sheet-video-wrap,
html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-video-player,
html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video,
html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video-link {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: min(48vh, 360px) !important;
  margin: 0 auto !important;
  border-radius: 22px !important;
}

html body .app-shell .memory-sheet-card .sheet-photo-gallery__photo,
html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video {
  display: block !important;
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), transparent 42%),
    #06202a !important;
  scroll-snap-align: center !important;
}

html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-video-player {
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background: #06202a !important;
}

html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video-link {
  min-height: 132px !important;
}

html body .app-shell .memory-journal-card .card-media-wrap,
html body .app-shell .memory-journal-card .card-art {
  max-height: 210px !important;
  overflow: hidden !important;
}

html body .app-shell .memory-journal-card .card-art,
html body .app-shell .memory-card-photo,
html body .app-shell .memory-card-video,
html body .app-shell .memory-card-photo-gallery__photo {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 210px !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 18px !important;
}

html body .app-shell .memory-card-gallery {
  display: grid !important;
  gap: 10px !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

html body .app-shell .memory-card-photo-gallery {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(190px, 82%) !important;
  gap: 10px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
}

html body .app-shell .memory-card-photo-gallery__photo {
  scroll-snap-align: start !important;
}

html body .app-shell .memory-card-gallery .memory-video-player,
html body .app-shell .memory-card-gallery .memory-card-video-link {
  width: 100% !important;
  max-height: 220px !important;
  border-radius: 18px !important;
}

html body .app-shell .memory-card-gallery .memory-card-video-link {
  min-height: 86px !important;
}

html body .app-shell .photo-lightbox-frame img,
html body .app-shell .photo-lightbox-frame video {
  max-width: min(92vw, 1180px) !important;
  max-height: 78vh !important;
  object-fit: contain !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .memory-sheet-media {
    max-height: min(52vh, 360px) !important;
  }

  html body .app-shell .memory-sheet-card .sheet-photo-gallery__photo,
  html body .app-shell .memory-sheet-card .sheet-video-wrap,
  html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-video-player,
  html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video,
  html body .app-shell .memory-sheet-card .sheet-video-wrap .memory-card-video-link {
    max-height: min(42vh, 300px) !important;
    border-radius: 20px !important;
  }

  html body .app-shell .memory-journal-card .card-media-wrap,
  html body .app-shell .memory-journal-card .card-art,
  html body .app-shell .memory-card-photo,
  html body .app-shell .memory-card-video,
  html body .app-shell .memory-card-photo-gallery__photo {
    max-height: 185px !important;
    border-radius: 16px !important;
  }

  html body .app-shell .memory-card-photo-gallery {
    grid-auto-columns: minmax(165px, 88%) !important;
  }
}

/* Final memory-card close button placement: clean top-right header control. */
html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
  position: relative !important;
  padding-right: 58px !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge {
  position: relative !important;
  overflow: hidden !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button.sheet-mappi-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 8 !important;
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 999px !important;
  color: #f7fffb !important;
  font-size: 1.22rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(7, 38, 49, 0.92) !important;
  box-shadow:
    0 10px 24px rgba(5, 26, 35, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  transform: none !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button.sheet-mappi-close::before,
html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) .sheet-pin-badge.sheet-mappi-pin-badge .sheet-close-button.sheet-mappi-close::before {
  display: none !important;
  content: none !important;
}

html body .app-shell .memory-sheet-card .sheet-close-button.sheet-mappi-close:hover,
html body .app-shell .memory-sheet-card .sheet-close-button.sheet-mappi-close:focus-visible {
  border-color: rgba(183, 255, 217, 0.68) !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(13, 92, 104, 0.98), rgba(16, 126, 102, 0.94)) !important;
  box-shadow:
    0 12px 26px rgba(5, 26, 35, 0.3),
    0 0 0 4px rgba(112, 227, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
    padding-right: 52px !important;
  }

  html body .app-shell .memory-sheet-card .sheet-close-button.sheet-mappi-close {
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 1.12rem !important;
  }
}

/* Memory capsule upgrade: make opened pins feel like preserved moments. */
html body .app-shell .memory-sheet-card.memory-capsule-card {
  gap: 14px !important;
  padding: clamp(12px, 2vw, 16px) !important;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--sheet-accent) 14%, transparent), transparent 36%),
    radial-gradient(circle at 92% 10%, rgba(112, 227, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(239, 252, 247, 0.95)) !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
  grid-template-columns: 62px minmax(0, 1fr) !important;
  gap: 13px !important;
  min-height: 92px !important;
  border: 1px solid color-mix(in srgb, var(--sheet-accent) 18%, rgba(255, 255, 255, 0.74)) !important;
  background:
    radial-gradient(circle at 9% 5%, color-mix(in srgb, var(--sheet-accent) 18%, transparent), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 252, 247, 0.9)) !important;
}

html body .app-shell .memory-sheet-card .sheet-eyebrow {
  width: fit-content !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--sheet-accent) 64%, #073540) !important;
  background: color-mix(in srgb, var(--sheet-accent) 10%, rgba(255, 255, 255, 0.82)) !important;
}

html body .app-shell .memory-sheet-card .sheet-heading-copy h3 {
  color: #062d38 !important;
  text-wrap: balance !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-media {
  position: relative !important;
  display: grid !important;
  gap: 10px !important;
  padding: 10px !important;
  border: 1px solid rgba(221, 255, 247, 0.54) !important;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--sheet-accent) 12%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(8, 43, 55, 0.08), rgba(255, 255, 255, 0.52)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 14px 34px rgba(5, 36, 46, 0.1) !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-media-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 28px !important;
  padding: 0 3px !important;
  color: rgba(7, 54, 64, 0.68) !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-media-bar span {
  color: #073540 !important;
  font-size: 0.73rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

html body .app-shell .memory-sheet-card .memory-sheet-media-bar small {
  color: rgba(7, 54, 64, 0.58) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

html body .app-shell .memory-sheet-card .sheet-story-block {
  display: grid !important;
  gap: 8px !important;
  padding: 16px 18px !important;
  border: 1px solid color-mix(in srgb, var(--sheet-accent) 14%, rgba(255, 255, 255, 0.82)) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--sheet-accent) 9%, transparent), transparent 40%),
    rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 12px 28px rgba(7, 35, 45, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .memory-sheet-card .sheet-story-block span {
  color: color-mix(in srgb, var(--sheet-accent) 60%, #073540) !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html body .app-shell .memory-sheet-card .sheet-story-block p {
  margin: 0 !important;
  color: #123d45 !important;
  font-size: clamp(1rem, 2.8vw, 1.12rem) !important;
  font-weight: 620 !important;
  line-height: 1.56 !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-details {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

html body .app-shell .memory-sheet-card .sheet-memory-details span {
  border: 1px solid rgba(8, 74, 82, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(7, 54, 64, 0.74) !important;
  font-size: 0.75rem !important;
  font-weight: 850 !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 251, 246, 0.72)) !important;
}

html body .app-shell .memory-sheet-card .sheet-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button {
  min-height: 48px !important;
  border: 1px solid rgba(8, 74, 82, 0.12) !important;
  color: #073540 !important;
  background:
    radial-gradient(circle at 28% 10%, rgba(255, 255, 255, 0.55), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(233, 250, 244, 0.8)) !important;
  box-shadow:
    0 10px 22px rgba(7, 35, 45, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button[data-sheet-action="favorite"],
html body .app-shell .memory-sheet-card .sheet-actions button.is-hearted {
  color: #fff8f5 !important;
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(135deg, #ff7068, color-mix(in srgb, var(--sheet-accent) 58%, #ff7068)) !important;
  box-shadow:
    0 12px 26px rgba(178, 55, 62, 0.18),
    0 0 0 5px rgba(255, 112, 104, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button[data-sheet-action="route"] {
  color: #053944 !important;
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(135deg, #b7ffd9, #70e3ff) !important;
}

html body .app-shell .memory-sheet-card .sheet-actions button.danger {
  color: #9c2b24 !important;
  background:
    linear-gradient(135deg, rgba(255, 245, 242, 0.94), rgba(255, 232, 226, 0.82)) !important;
}

html body .app-shell .memory-sheet-card .sheet-coordinates {
  justify-self: center !important;
  max-width: 100% !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  color: rgba(7, 54, 64, 0.48) !important;
  background: rgba(255, 255, 255, 0.52) !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-sheet-card .sheet-memory-heading:not(.memory-sheet-hero) {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    min-height: 84px !important;
  }

  html body .app-shell .memory-sheet-card .memory-sheet-media-bar {
    display: grid !important;
    justify-content: stretch !important;
    gap: 2px !important;
  }

  html body .app-shell .memory-sheet-card .memory-sheet-media-bar small {
    white-space: normal !important;
  }

  html body .app-shell .memory-sheet-card .sheet-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Explore map premium pass: calmer map, clearer pins, and a more alive memory surface. */
html body .app-shell .map-stage.map-focus {
  background:
    radial-gradient(circle at 18% 8%, rgba(183, 255, 217, 0.28), transparent 28%),
    linear-gradient(180deg, #e8f4ee 0%, #d8ede7 100%) !important;
}

html body .app-shell .map-stage.map-focus #map {
  background: #dcefe8 !important;
}

html body .app-shell .map-stage.map-focus .maplibregl-canvas {
  filter: saturate(1.08) contrast(1.02) brightness(1.02) !important;
}

html body .app-shell .map-stage.map-focus::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  pointer-events: none !important;
  content: "" !important;
  background:
    linear-gradient(180deg, rgba(3, 24, 35, 0.3) 0%, rgba(3, 24, 35, 0.07) 13%, transparent 34%),
    radial-gradient(circle at 12% 14%, rgba(91, 216, 178, 0.18), transparent 27%),
    radial-gradient(circle at 88% 18%, rgba(86, 196, 255, 0.12), transparent 28%) !important;
}

html body .app-shell .map-stage.map-focus::after {
  position: absolute !important;
  inset: auto 0 0 !important;
  z-index: 4 !important;
  height: 34% !important;
  pointer-events: none !important;
  content: "" !important;
  background:
    linear-gradient(180deg, transparent 0%, rgba(4, 29, 42, 0.08) 42%, rgba(4, 29, 42, 0.26) 100%) !important;
}

html body .app-shell .map-stage.map-focus .map-life-layer {
  opacity: 0.45 !important;
  mix-blend-mode: soft-light !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .map-life-layer {
  opacity: 0 !important;
  transform: translateY(8px) scale(0.99) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory {
  width: 46px !important;
  height: 61px !important;
  border-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--marker-color) 12%, transparent),
    0 14px 30px rgba(6, 25, 38, 0.28),
    0 0 18px color-mix(in srgb, var(--marker-color) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-detail {
  min-width: 132px !important;
  max-width: 178px !important;
  border: 1px solid rgba(226, 255, 248, 0.48) !important;
  color: #f6fffb !important;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--marker-color) 22%, transparent), transparent 38%),
    linear-gradient(135deg, rgba(5, 35, 47, 0.92), rgba(6, 73, 72, 0.84)) !important;
  box-shadow:
    0 14px 28px rgba(0, 18, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(14px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-detail strong {
  color: #ffffff !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-detail em {
  color: rgba(235, 255, 249, 0.74) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-marker-detail {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(8px) scale(0.96) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-marker-glow,
html body .app-shell .map-stage.map-focus.map-performance-mode .memory-marker-glow {
  opacity: 0.24 !important;
  filter: blur(12px) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster,
html body .app-shell .map-stage.map-focus .memory-cluster-marker {
  border: 1px solid rgba(228, 255, 248, 0.54) !important;
  color: #f8fffc !important;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(7, 66, 83, 0.96), rgba(14, 134, 111, 0.9)) !important;
  box-shadow:
    0 16px 34px rgba(0, 18, 30, 0.28),
    0 0 0 8px rgba(100, 232, 196, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby,
html body .app-shell .map-stage.map-focus .memory-peek-card.nearby-count {
  left: 50% !important;
  right: auto !important;
  bottom: calc(var(--bottom-nav-height, 84px) + 22px) !important;
  width: min(390px, calc(100vw - 34px)) !important;
  padding: 13px 14px !important;
  border: 1px solid color-mix(in srgb, var(--peek-accent, #0b7285) 20%, rgba(255, 255, 255, 0.72)) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--peek-accent, #0b7285) 15%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(239, 252, 247, 0.9)) !important;
  box-shadow:
    0 22px 54px rgba(4, 27, 39, 0.2),
    0 0 0 6px color-mix(in srgb, var(--peek-accent, #0b7285) 6%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  transform: translateX(-50%) translateY(18px) scale(0.98) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby.show,
html body .app-shell .map-stage.map-focus .memory-peek-card.nearby-count.show {
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card .peek-copy strong {
  color: #073540 !important;
  font-size: 0.98rem !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card .peek-copy small {
  color: rgba(8, 47, 58, 0.62) !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card .peek-copy em {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 3px !important;
  padding: 4px 9px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--peek-accent, #0b7285) 58%, #073540) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  background: color-mix(in srgb, var(--peek-accent, #0b7285) 10%, rgba(255, 255, 255, 0.76)) !important;
}

html body .app-shell .map-stage.map-focus .starter-place-marker,
html body .app-shell .map-stage.map-focus .discovery-marker {
  opacity: 0.9 !important;
  transform: scale(0.94) translateZ(0) !important;
}

html body .app-shell .map-stage.map-focus .starter-place-marker:hover,
html body .app-shell .map-stage.map-focus .discovery-marker:hover {
  opacity: 1 !important;
  transform: translateY(-2px) scale(1.02) translateZ(0) !important;
}

html body .app-shell .map-stage.map-focus .travel-path-core,
html body .app-shell .map-stage.map-focus .memory-chapter-trail-core {
  filter:
    drop-shadow(0 0 8px rgba(87, 199, 255, 0.34))
    drop-shadow(0 8px 16px rgba(3, 30, 45, 0.18)) !important;
}

html body .app-shell .map-stage.map-focus .travel-path-halo,
html body .app-shell .map-stage.map-focus .memory-chapter-trail-glow {
  opacity: 0.22 !important;
}

html body .app-shell .map-stage.map-focus .journey-stop-dot,
html body .app-shell .map-stage.map-focus .memory-chapter-trail-stop span {
  border: 1px solid rgba(229, 255, 247, 0.72) !important;
  color: #073540 !important;
  background: linear-gradient(135deg, #b7ffd9, #70e3ff) !important;
  box-shadow:
    0 9px 18px rgba(4, 28, 40, 0.22),
    0 0 0 5px rgba(112, 227, 255, 0.12) !important;
}

html body .app-shell .map-stage.map-focus .user-location-marker-shell.live-user-location-marker {
  filter:
    drop-shadow(0 12px 22px rgba(0, 45, 90, 0.26))
    drop-shadow(0 0 18px rgba(63, 168, 255, 0.28)) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby,
  html body .app-shell .map-stage.map-focus .memory-peek-card.nearby-count {
    bottom: calc(var(--bottom-nav-height, 84px) + 16px) !important;
    width: min(360px, calc(100vw - 26px)) !important;
    border-radius: 22px !important;
  }

  html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory {
    width: 42px !important;
    height: 57px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby,
  html body .app-shell .map-stage.map-focus .memory-peek-card.nearby-count,
  html body .app-shell .map-stage.map-focus .memory-marker,
  html body .app-shell .map-stage.map-focus .starter-place-marker,
  html body .app-shell .map-stage.map-focus .discovery-marker {
    transition: none !important;
    animation: none !important;
  }
}

/* Final top bar alignment: Home and Explore now share the same control positions. */
html body .app-shell .map-stage.home-focus .topbar,
html body .app-shell .map-stage.map-focus .topbar {
  position: fixed !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  right: auto !important;
  left: 50% !important;
  z-index: 140 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(980px, calc(100vw - 24px)) !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important;
}

html body .app-shell .map-stage.home-focus .topbar-left,
html body .app-shell .map-stage.map-focus .topbar-left,
html body .app-shell .map-stage.home-focus .topbar-actions,
html body .app-shell .map-stage.map-focus .topbar-actions {
  position: absolute !important;
  top: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(6, 31, 43, 0.42) !important;
  box-shadow:
    0 14px 34px rgba(3, 21, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  pointer-events: auto !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1) !important;
  transform: translateY(-50%) !important;
}

html body .app-shell .map-stage.home-focus .topbar-left,
html body .app-shell .map-stage.map-focus .topbar-left {
  left: 0 !important;
}

html body .app-shell .map-stage.home-focus .topbar-actions,
html body .app-shell .map-stage.map-focus .topbar-actions {
  right: 0 !important;
  justify-content: flex-end !important;
}

html body .app-shell .map-stage.home-focus .brand,
html body .app-shell .map-stage.map-focus .brand {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  pointer-events: auto !important;
  transform: none !important;
}

html body .app-shell .map-stage.map-focus .brand {
  border: 1px solid rgba(190, 238, 255, 0.18) !important;
  background:
    linear-gradient(135deg, rgba(8, 25, 37, 0.78), rgba(5, 19, 31, 0.62)) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 28px rgba(46, 209, 203, 0.1) !important;
  backdrop-filter: blur(18px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.16) !important;
}

html body .app-shell .map-stage.home-focus .brand {
  border: 1px solid rgba(28, 125, 111, 0.08) !important;
  background: rgba(255, 253, 248, 0.18) !important;
  box-shadow: 0 12px 30px rgba(4, 46, 56, 0.05) !important;
}

html body .app-shell .map-stage.home-focus .topbar .icon-button,
html body .app-shell .map-stage.map-focus .topbar .icon-button,
html body .app-shell .map-stage.home-focus .topbar .avatar-button,
html body .app-shell .map-stage.map-focus .topbar .avatar-button {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  color: rgba(248, 255, 252, 0.94) !important;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(8, 36, 48, 0.48) !important;
  box-shadow:
    0 9px 20px rgba(3, 21, 31, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  overflow: hidden !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus .topbar .avatar-button img,
html body .app-shell .map-stage.map-focus .topbar .avatar-button img {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  filter: drop-shadow(0 5px 9px rgba(3, 21, 31, 0.16)) !important;
}

html body .app-shell .map-stage.home-focus .topbar .hidden-control,
html body .app-shell .map-stage.map-focus .topbar .hidden-control {
  display: none !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .topbar,
  html body .app-shell .map-stage.map-focus .topbar {
    top: max(10px, env(safe-area-inset-top)) !important;
    width: calc(100vw - 16px) !important;
    min-height: 50px !important;
  }

  html body .app-shell .map-stage.home-focus .topbar-left,
  html body .app-shell .map-stage.map-focus .topbar-left,
  html body .app-shell .map-stage.home-focus .topbar-actions,
  html body .app-shell .map-stage.map-focus .topbar-actions {
    gap: 5px !important;
    padding: 4px !important;
  }

  html body .app-shell .map-stage.home-focus .topbar .icon-button,
  html body .app-shell .map-stage.map-focus .topbar .icon-button,
  html body .app-shell .map-stage.home-focus .topbar .avatar-button,
  html body .app-shell .map-stage.map-focus .topbar .avatar-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  html body .app-shell .map-stage.home-focus .brand,
  html body .app-shell .map-stage.map-focus .brand {
    padding: 7px 10px !important;
  }
}

/* Premium live-location marker: slimmer blue human pin, no memory-path clutter. */
html body .app-shell .map-stage.map-focus .travel-path,
html body .app-shell .map-stage.map-focus .travel-path-halo,
html body .app-shell .map-stage.map-focus .travel-path-core,
html body .app-shell .map-stage.map-focus .travel-path-pulse,
html body .app-shell .map-stage.map-focus .journey-stop-marker,
html body .app-shell .map-stage.map-focus .memory-trail-path,
html body .app-shell .map-stage.map-focus .memory-trail-footprint,
html body .app-shell .map-stage.map-focus .memory-chapter-trail,
html body .app-shell .map-stage.map-focus .memory-chapter-trail-stop,
html body .app-shell .map-stage.map-focus .memory-chapter-trail-label,
html body .app-shell .map-stage.map-focus .memory-constellation-line,
html body .app-shell .map-stage.map-focus .memory-constellation-label {
  display: none !important;
  opacity: 0 !important;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker {
  width: 30px !important;
  height: 44px !important;
  z-index: 10000 !important;
  filter:
    drop-shadow(0 12px 20px rgba(6, 37, 72, 0.24))
    drop-shadow(0 0 14px rgba(56, 163, 255, 0.2)) !important;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location {
  position: relative !important;
  display: block !important;
  width: 30px !important;
  height: 44px !important;
  overflow: visible !important;
  background: transparent !important;
}

html body .app-shell .user-location-marker.is-current-location::before {
  top: 7px !important;
  left: 2px !important;
  width: 26px !important;
  height: 26px !important;
  border: 1px solid rgba(89, 189, 255, 0.24) !important;
  border-radius: 999px !important;
  background: rgba(47, 155, 255, 0.055) !important;
  box-shadow: 0 0 18px rgba(47, 155, 255, 0.16) !important;
  animation: userLocationSoftRipple 3.3s ease-out infinite !important;
}

html body .app-shell .user-location-marker.is-current-location::after {
  top: 37px !important;
  left: 8px !important;
  width: 14px !important;
  height: 5px !important;
  opacity: 0.58 !important;
  border-radius: 999px !important;
  background: radial-gradient(ellipse at center, rgba(1, 19, 48, 0.28), transparent 72%) !important;
  filter: blur(3.5px) !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-ripple {
  top: 6px !important;
  left: 1px !important;
  width: 28px !important;
  height: 28px !important;
  border: 1px solid rgba(89, 189, 255, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(47, 155, 255, 0.04) !important;
  animation: userLocationSoftRipple 3.6s ease-out infinite !important;
}

html body .app-shell .user-location-marker.is-current-location .ripple-two {
  animation-delay: 1.45s !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-body::before {
  top: -15px !important;
  left: 50% !important;
  width: 20px !important;
  height: 28px !important;
  border: 1.7px solid rgba(255, 255, 255, 0.96) !important;
  border-radius: 50% 50% 50% 6px !important;
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.68), transparent 14%),
    linear-gradient(180deg, #9cecff 0%, #38a3ff 50%, #1265df 100%) !important;
  box-shadow:
    0 0 0 3px rgba(56, 163, 255, 0.09),
    0 0 16px rgba(56, 163, 255, 0.28),
    0 10px 18px rgba(4, 24, 58, 0.22) !important;
  transform: translateX(-50%) rotate(-45deg) !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-head,
html body .app-shell .user-location-marker.is-current-location .user-location-body,
html body .app-shell .user-location-marker.is-current-location .user-location-arms,
html body .app-shell .user-location-marker.is-current-location .user-location-legs {
  left: 50% !important;
  background: #ffffff !important;
  transform: translateX(-50%) !important;
  z-index: 5 !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-head {
  top: 12px !important;
  width: 5px !important;
  height: 5px !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-body {
  top: 19px !important;
  width: 7px !important;
  height: 10px !important;
  border-radius: 7px 7px 4px 4px !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-arms {
  top: 21px !important;
  width: 13px !important;
  height: 2px !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-legs {
  top: 28px !important;
  width: 11px !important;
  height: 6px !important;
  background:
    linear-gradient(90deg, transparent 0 31%, #fff 31% 43%, transparent 43% 57%, #fff 57% 69%, transparent 69% 100%) !important;
}

html body .app-shell .user-location-marker-shell.is-estimate .user-location-marker.is-current-location {
  opacity: 0.68 !important;
  filter: saturate(0.88) grayscale(0.04) !important;
}

/* Explore map clarity: remove the heavy dark top fade over the map. */
html body .app-shell .map-stage.map-focus::before {
  z-index: 4 !important;
  opacity: 1 !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.08) 0%, transparent 18%, transparent 100%),
    radial-gradient(circle at 12% 14%, rgba(91, 216, 178, 0.08), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(86, 196, 255, 0.07), transparent 24%) !important;
}

html body .app-shell .map-stage.map-focus::after {
  opacity: 0.55 !important;
  background:
    linear-gradient(180deg, transparent 0%, rgba(4, 29, 42, 0.04) 52%, rgba(4, 29, 42, 0.13) 100%) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting::before,
html body .app-shell .map-stage.map-focus.map-interacting::after {
  opacity: 0.28 !important;
}

/* Absolute map visibility lock: Explore should not have a dark top shade. */
html body .app-shell .map-stage.map-focus::before,
html body .app-shell .map-stage.map-focus::after,
html body .app-shell .map-stage.map-focus.map-night::before,
html body .app-shell .map-stage.map-focus.map-night::after,
html body .app-shell .map-stage.map-focus.map-rain::before,
html body .app-shell .map-stage.map-focus.map-rain::after,
html body .app-shell .map-stage.map-focus.map-snow::before,
html body .app-shell .map-stage.map-focus.map-snow::after,
html body .app-shell .map-stage.map-focus.memory-camera-shot::before,
html body .app-shell .map-stage.map-focus.memory-camera-shot::after,
html body .app-shell .map-stage.map-focus.map-cinematic-intro::before,
html body .app-shell .map-stage.map-focus.map-cinematic-intro::after {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
  animation: none !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus .map-backdrop,
html body .app-shell .map-stage.map-focus #map::before,
html body .app-shell .map-stage.map-focus #map::after {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

html body .app-shell .map-stage.map-focus #map,
html body .app-shell .map-stage.map-focus.globe-mode #map,
html body .app-shell .map-stage.map-focus .leaflet-container,
html body .app-shell .map-stage.map-focus .leaflet-map-pane,
html body .app-shell .map-stage.map-focus .leaflet-pane,
html body .app-shell .map-stage.map-focus .leaflet-tile-pane,
html body .app-shell .map-stage.map-focus .leaflet-tile-container {
  background: #eef6f3 !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .leaflet-tile,
html body .app-shell .map-stage.map-focus .maplibregl-canvas {
  filter: saturate(1.04) contrast(1.01) brightness(1.04) !important;
}

/* Explore cleanup: no generic parks/events/places layer, only personal memories. */
html body .app-shell .map-stage.map-focus .explore-panel,
html body .app-shell .map-stage.map-focus .explore-filters,
html body .app-shell .map-stage.map-focus .explore-cards,
html body .app-shell .map-stage.map-focus .starter-place-marker,
html body .app-shell .map-stage.map-focus .discovery-marker,
html body .app-shell .map-stage.map-focus .hidden-discovery-badge {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Premium memory pins: elegant at street level, map-native when zoomed out. */
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory {
  width: 44px !important;
  height: 58px !important;
  border: 2px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 50% 50% 50% 9px !important;
  background:
    radial-gradient(circle at 33% 22%, rgba(255, 255, 255, 0.58), transparent 24%),
    linear-gradient(150deg,
      color-mix(in srgb, var(--marker-color) 86%, #ffffff 14%) 0%,
      var(--marker-color) 58%,
      color-mix(in srgb, var(--marker-color) 70%, #063040 30%) 100%) !important;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--marker-color) 11%, transparent),
    0 12px 24px rgba(4, 25, 36, 0.24),
    0 0 16px color-mix(in srgb, var(--marker-color) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform: rotate(-45deg) translateZ(0) scale(var(--pin-scale, 1)) !important;
  transform-origin: 50% 86% !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory::before {
  inset: 7px 8px 22px !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.78) 0 13%, transparent 15%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)) !important;
  box-shadow:
    inset 0 -9px 14px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory::after {
  right: 10px !important;
  bottom: 8px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--marker-color) 20%, transparent) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face {
  width: 26px !important;
  height: 26px !important;
  font-size: 0.92rem !important;
  transform: rotate(45deg) translateZ(0) !important;
  background:
    radial-gradient(circle at 34% 25%, #ffffff, rgba(255, 255, 255, 0.82) 48%, rgba(240, 253, 248, 0.92)) !important;
  box-shadow:
    0 4px 10px rgba(4, 25, 36, 0.15),
    0 0 0 3px rgba(255, 255, 255, 0.16) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face img,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .marker-photo {
  border-radius: 999px !important;
  object-fit: cover !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-glow {
  inset: 1px !important;
  opacity: 0.34 !important;
  background: var(--marker-color) !important;
  filter: blur(14px) saturate(1.08) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory {
  --pin-scale: 1;
  border-width: 1.5px !important;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--marker-color) 9%, transparent),
    0 7px 14px rgba(4, 25, 36, 0.18),
    0 0 10px color-mix(in srgb, var(--marker-color) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.44) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-emotion-memory {
  --pin-scale: 1;
}

html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory {
  --pin-scale: 1;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory {
  will-change: auto !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-emotion-memory {
  --pin-scale: 1 !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory .memory-marker-face,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory .memory-marker-face {
  opacity: 0 !important;
  transform: rotate(45deg) scale(0.5) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory::before,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory::before {
  inset: 9px 10px 24px !important;
  opacity: 0.62 !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory .memory-marker-detail,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory .memory-marker-detail,
html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-emotion-memory .memory-marker-detail {
  display: none !important;
  opacity: 0 !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-favorite-memory:not(.is-new),
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-favorite-memory:not(.is-new),
html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-favorite-memory:not(.is-new) {
  animation: none !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster {
  width: 68px !important;
  height: 58px !important;
  border: 1px solid rgba(239, 255, 250, 0.58) !important;
  border-radius: 23px !important;
  color: #f9fffc !important;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 72% 76%, color-mix(in srgb, var(--marker-color) 22%, transparent), transparent 42%),
    linear-gradient(135deg, rgba(5, 42, 52, 0.9), rgba(6, 72, 68, 0.78)) !important;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--marker-color) 9%, transparent),
    0 10px 24px rgba(4, 25, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(10px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.08) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster::before {
  inset: 13px 12px 22px !important;
  opacity: 0.5 !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  margin-top: 2px !important;
  font-size: 1.1rem !important;
  text-shadow: 0 0 12px color-mix(in srgb, var(--marker-color) 60%, transparent) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster small {
  margin-top: -8px !important;
  font-size: 0.56rem !important;
  letter-spacing: 0.04em !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-cluster-marker.constellation-cluster,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-cluster-marker.constellation-cluster {
  transform: scale(0.82) translateZ(0) !important;
}

/* Premium zoomed-out memory pins v331: crisp, tiny, and readable from far away. */
html body .app-shell .map-stage.map-focus .leaflet-marker-icon {
  overflow: visible !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory {
  width: 22px !important;
  height: 30px !important;
  border-width: 1.25px !important;
  border-radius: 50% 50% 50% 6px !important;
  box-shadow:
    0 2px 7px rgba(4, 25, 36, 0.26),
    0 0 0 2px color-mix(in srgb, var(--marker-color) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.44) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory {
  width: 28px !important;
  height: 38px !important;
  border-width: 1.35px !important;
  border-radius: 50% 50% 50% 7px !important;
  box-shadow:
    0 4px 10px rgba(4, 25, 36, 0.24),
    0 0 0 3px color-mix(in srgb, var(--marker-color) 9%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.44) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-emotion-memory {
  width: 36px !important;
  height: 48px !important;
  border-width: 1.65px !important;
  box-shadow:
    0 7px 15px rgba(4, 25, 36, 0.23),
    0 0 0 4px color-mix(in srgb, var(--marker-color) 9%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.48) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory .memory-marker-glow,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory .memory-marker-glow {
  display: none !important;
  opacity: 0 !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-emotion-memory .memory-marker-glow {
  opacity: 0.14 !important;
  filter: blur(9px) saturate(1.04) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory::before,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory::before,
html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-emotion-memory::before {
  opacity: 0.72 !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory::before {
  inset: 5px 6px 14px !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory::before {
  inset: 6px 7px 18px !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-emotion-memory::before {
  inset: 7px 8px 21px !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory::after {
  right: 5px !important;
  bottom: 4px !important;
  width: 4px !important;
  height: 4px !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory::after {
  right: 7px !important;
  bottom: 5px !important;
  width: 5px !important;
  height: 5px !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-emotion-memory::after {
  right: 8px !important;
  bottom: 7px !important;
  width: 6px !important;
  height: 6px !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory .memory-marker-face,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory .memory-marker-face {
  display: none !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-emotion-memory .memory-marker-face {
  width: 20px !important;
  height: 20px !important;
  font-size: 0.75rem !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-favorite-memory:not(.is-new),
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-favorite-memory:not(.is-new),
html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-favorite-memory:not(.is-new),
html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-recent-memory:not(.is-new),
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-recent-memory:not(.is-new),
html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-recent-memory:not(.is-new) {
  animation: none !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-cluster-marker.constellation-cluster {
  width: 52px !important;
  height: 42px !important;
  border-radius: 18px !important;
  box-shadow:
    0 5px 13px rgba(4, 25, 36, 0.2),
    0 0 0 3px color-mix(in srgb, var(--marker-color) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-cluster-marker.constellation-cluster {
  width: 60px !important;
  height: 48px !important;
  border-radius: 19px !important;
  box-shadow:
    0 6px 15px rgba(4, 25, 36, 0.21),
    0 0 0 3px color-mix(in srgb, var(--marker-color) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-cluster-marker.constellation-cluster .cluster-stars,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-cluster-marker.constellation-cluster .cluster-stars {
  opacity: 0.55 !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-cluster-marker.constellation-cluster .cluster-count {
  font-size: 0.95rem !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-cluster-marker.constellation-cluster .cluster-count {
  font-size: 1.02rem !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-cluster-marker.constellation-cluster small,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-cluster-marker.constellation-cluster small {
  margin-top: -7px !important;
  font-size: 0.48rem !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-stacked-memory-pin {
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--marker-color) 14%, transparent),
    0 12px 24px rgba(4, 25, 36, 0.24),
    0 0 18px color-mix(in srgb, var(--marker-color) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-stacked-memory-pin .memory-marker-glow {
  opacity: 0.2 !important;
}

/* Home premium rhythm: centered, calm, and evenly spaced. */
html body .app-shell .map-stage.home-focus {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scroll-behavior: smooth !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(65, 171, 124, 0.18), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(58, 147, 202, 0.14), transparent 28%),
    linear-gradient(180deg, #edf8f1 0%, #e7f4ef 38%, #f8fbf7 100%) !important;
}

html body .app-shell .map-stage.home-focus .topbar {
  top: max(16px, env(safe-area-inset-top)) !important;
}

html body .app-shell .map-stage.home-focus .brand {
  border: 1px solid rgba(222, 255, 247, 0.16) !important;
  background:
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(7, 41, 52, 0.54), rgba(6, 55, 50, 0.38)) !important;
  box-shadow:
    0 14px 34px rgba(4, 36, 47, 0.14),
    0 0 22px rgba(33, 197, 122, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
}

html body .app-shell .map-stage.home-focus .brand h1 {
  font-size: clamp(2.1rem, 4vw, 3.35rem) !important;
}

html body .app-shell .map-stage.home-focus .hero-copy {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: min(900px, calc(100vw - 34px)) !important;
  margin: clamp(86px, 12vh, 118px) auto 0 !important;
  display: grid !important;
  justify-items: center !important;
  gap: clamp(16px, 2.4vw, 24px) !important;
  text-align: center !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus .hero-copy h2 {
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 11px 20px 12px !important;
  border: 1px solid rgba(15, 99, 91, 0.08) !important;
  border-radius: 999px !important;
  color: #123b4a !important;
  font-size: clamp(1.28rem, 2.8vw, 2rem) !important;
  font-weight: 840 !important;
  line-height: 1.08 !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.68), rgba(235, 249, 241, 0.5)) !important;
  box-shadow:
    0 12px 30px rgba(11, 88, 84, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(640px, 100%) !important;
  gap: clamp(10px, 2vw, 14px) !important;
  margin: 0 auto !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
  display: grid !important;
  min-height: 74px !important;
  padding: 13px 14px !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 5px !important;
  border: 1px solid rgba(15, 99, 91, 0.07) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(239, 251, 245, 0.56)) !important;
  box-shadow:
    0 12px 26px rgba(14, 85, 78, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.66) !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat strong {
  color: #0d4450 !important;
  font-size: clamp(1.08rem, 2.2vw, 1.42rem) !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat span,
html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat small {
  color: rgba(20, 58, 70, 0.58) !important;
  font-size: 0.78rem !important;
  font-weight: 820 !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: min(860px, calc(100vw - 34px)) !important;
  max-width: 860px !important;
  margin: clamp(24px, 4vw, 38px) auto calc(var(--bottom-nav-height, 84px) + 42px) !important;
  padding: 0 !important;
  display: grid !important;
  gap: clamp(20px, 3.2vw, 30px) !important;
  overflow: visible !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card::before {
  inset: -18px -14px -20px !important;
  border-radius: 38px !important;
  background:
    radial-gradient(circle at 50% 34%, rgba(39, 189, 145, 0.2), transparent 52%),
    radial-gradient(circle at 20% 18%, rgba(255, 200, 87, 0.1), transparent 36%),
    radial-gradient(circle at 82% 82%, rgba(44, 151, 196, 0.1), transparent 46%) !important;
  filter: blur(10px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  min-height: clamp(360px, 42vw, 450px) !important;
  padding: clamp(19px, 3vw, 28px) !important;
  border: 1px solid rgba(15, 99, 91, 0.1) !important;
  border-radius: 32px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(236, 251, 244, 0.78)),
    radial-gradient(circle at 18% 12%, rgba(39, 189, 145, 0.14), transparent 38%) !important;
  box-shadow:
    0 24px 60px rgba(10, 72, 68, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.62) inset !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  margin: 0 0 clamp(14px, 2.4vw, 22px) !important;
  justify-content: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker,
html body .app-shell .map-stage.home-focus .home-section-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: fit-content !important;
  margin: 0 auto !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(15, 99, 91, 0.08) !important;
  border-radius: 999px !important;
  color: #103f4b !important;
  background: rgba(255, 253, 248, 0.58) !important;
  box-shadow: 0 10px 22px rgba(10, 72, 68, 0.055) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .section-title-text,
html body .app-shell .map-stage.home-focus .home-section-title .section-title-text,
html body .app-shell .map-stage.home-focus .home-section-title strong {
  color: #103f4b !important;
  font-size: clamp(1.05rem, 2vw, 1.32rem) !important;
  font-weight: 940 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  align-content: start !important;
  gap: clamp(14px, 2.8vw, 22px) !important;
  max-width: 740px !important;
  margin: 0 auto !important;
  padding-top: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
  width: min(100%, 720px) !important;
  height: clamp(210px, 36vw, 300px) !important;
  margin: 0 auto !important;
  border-radius: 26px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-pin {
  margin: 4px auto 0 !important;
  transform: scale(0.92) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
  margin: 0 !important;
  color: #0d3948 !important;
  font-size: clamp(1.55rem, 4vw, 2.6rem) !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  margin: 0 !important;
  color: rgba(21, 72, 84, 0.6) !important;
  font-size: clamp(0.82rem, 1.8vw, 0.96rem) !important;
  font-weight: 840 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
  max-width: 560px !important;
  margin: 0 auto !important;
  color: rgba(28, 63, 74, 0.72) !important;
  font-size: clamp(0.96rem, 2vw, 1.12rem) !important;
  line-height: 1.48 !important;
}

html body .app-shell .map-stage.home-focus .home-action-section {
  width: 100% !important;
  margin: 0 auto !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 2.2vw, 18px) !important;
  width: 100% !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  min-height: clamp(104px, 15vw, 130px) !important;
  padding: 18px 14px !important;
  border: 1px solid rgba(15, 99, 91, 0.09) !important;
  border-radius: 26px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(238, 251, 245, 0.64)) !important;
  box-shadow:
    0 15px 34px rgba(10, 72, 68, 0.085),
    inset 0 1px 0 rgba(255, 255, 255, 0.64) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] {
  width: 42px !important;
  height: 42px !important;
  margin: 0 auto 8px !important;
}

html body .app-shell .map-stage.home-focus .home-action-card strong {
  color: #123d49 !important;
  font-size: clamp(0.95rem, 2vw, 1.08rem) !important;
  line-height: 1.12 !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary {
  background:
    radial-gradient(circle at 28% 15%, rgba(255, 255, 255, 0.32), transparent 32%),
    linear-gradient(135deg, #0b7285, #18a978) !important;
  box-shadow:
    0 18px 40px rgba(16, 126, 102, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary strong {
  color: #ffffff !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  width: 100% !important;
  margin: 0 auto !important;
  padding: clamp(18px, 3vw, 24px) !important;
  border: 1px solid rgba(15, 99, 91, 0.08) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(239, 252, 246, 0.58)) !important;
  box-shadow:
    0 14px 34px rgba(10, 72, 68, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading {
  display: grid !important;
  justify-items: center !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-bottom-note {
  order: 6 !important;
  margin: 0 auto !important;
  padding: 11px 17px !important;
  color: rgba(14, 57, 68, 0.72) !important;
  background: rgba(255, 253, 248, 0.62) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .hero-copy {
    width: calc(100vw - 24px) !important;
    margin-top: 74px !important;
    gap: 13px !important;
  }

  html body .app-shell .map-stage.home-focus .brand h1 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
    min-height: 62px !important;
    padding: 10px 6px !important;
    border-radius: 18px !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat strong {
    font-size: 1rem !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat span,
  html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat small {
    font-size: 0.66rem !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard {
    width: calc(100vw - 24px) !important;
    margin-top: 20px !important;
    gap: 18px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: 330px !important;
    padding: 17px !important;
    border-radius: 26px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
    height: 210px !important;
    border-radius: 22px !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-height: 86px !important;
    justify-items: center !important;
    align-content: center !important;
    padding: 12px 6px !important;
    border-radius: 20px !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] {
    width: 34px !important;
    height: 34px !important;
    margin: 0 auto 5px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card strong {
    font-size: 0.78rem !important;
    line-height: 1.08 !important;
  }
}

/* Home premium lock v312: final loaded home layout. */
html body .app-shell .map-stage.home-focus {
  --home-page-width: min(880px, calc(100vw - 32px));
  --home-section-gap: clamp(22px, 3.4vw, 34px);
  --home-card-radius: 30px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background:
    radial-gradient(circle at 14% 4%, rgba(35, 156, 119, 0.2), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(42, 138, 187, 0.17), transparent 30%),
    radial-gradient(circle at 50% 82%, rgba(255, 200, 87, 0.08), transparent 42%),
    linear-gradient(180deg, #eef9f2 0%, #e5f3f0 44%, #fbfcf8 100%) !important;
}

html body .app-shell .map-stage.home-focus .pin-network,
html body .app-shell .map-stage.home-focus .spotlight-cards,
html body .app-shell .map-stage.home-focus .favorite-notes {
  display: none !important;
}

html body .app-shell .map-stage.home-focus .hero-copy,
html body .app-shell .map-stage.home-focus .home-dashboard {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: var(--home-page-width) !important;
  max-width: 880px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .hero-copy {
  margin-top: clamp(94px, 13vh, 126px) !important;
  display: grid !important;
  justify-items: center !important;
  gap: clamp(18px, 2.4vw, 24px) !important;
}

html body .app-shell .map-stage.home-focus .hero-copy h2 {
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px 22px 13px !important;
  border: 1px solid rgba(15, 99, 91, 0.08) !important;
  border-radius: 999px !important;
  color: #174b52 !important;
  font-size: clamp(1.34rem, 2.6vw, 2rem) !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(239, 251, 244, 0.58)) !important;
  box-shadow: 0 12px 30px rgba(11, 88, 84, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-moment {
  display: none !important;
  max-width: 520px !important;
  margin: -3px auto 0 !important;
  color: rgba(18, 66, 74, 0.68) !important;
  font-size: clamp(0.94rem, 1.8vw, 1.08rem) !important;
  font-weight: 720 !important;
  line-height: 1.4 !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(620px, 100%) !important;
  gap: 12px !important;
  margin: 0 auto !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
  display: grid !important;
  min-height: 72px !important;
  padding: 12px 10px !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 5px !important;
  border: 1px solid rgba(15, 99, 91, 0.07) !important;
  border-radius: 21px !important;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(238, 251, 245, 0.52)) !important;
  box-shadow: 0 12px 26px rgba(14, 85, 78, 0.065), inset 0 1px 0 rgba(255, 255, 255, 0.66) !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat strong {
  color: #0d4450 !important;
  font-size: clamp(1.08rem, 2.2vw, 1.42rem) !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat span,
html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat small {
  color: rgba(20, 58, 70, 0.58) !important;
  font-size: 0.78rem !important;
  font-weight: 820 !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: var(--home-section-gap) !important;
  margin-top: clamp(26px, 4.4vw, 44px) !important;
  margin-bottom: calc(var(--bottom-nav-height, 84px) + 56px) !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard > * {
  width: 100% !important;
  max-width: 100% !important;
  justify-self: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  min-height: auto !important;
  padding: clamp(18px, 3vw, 26px) !important;
  border: 1px solid rgba(15, 99, 91, 0.1) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 24% 9%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.93), rgba(234, 250, 243, 0.82)) !important;
  box-shadow: 0 24px 60px rgba(10, 72, 68, 0.13), 0 0 0 1px rgba(255, 255, 255, 0.62) inset !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  margin: 0 0 clamp(15px, 2vw, 20px) !important;
  justify-content: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  align-content: start !important;
  gap: clamp(12px, 2vw, 18px) !important;
  max-width: 740px !important;
  margin: 0 auto !important;
  padding-top: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
  width: min(100%, 720px) !important;
  height: clamp(230px, 33vw, 310px) !important;
  margin: 0 auto !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 26px !important;
  box-shadow: 0 18px 36px rgba(10, 72, 68, 0.12), 0 0 0 1px rgba(14, 86, 80, 0.08) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
  max-width: 680px !important;
  margin: 0 !important;
  color: #0d3948 !important;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem) !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
  max-width: 560px !important;
  margin: 0 auto !important;
  color: rgba(28, 63, 74, 0.72) !important;
  font-size: clamp(0.96rem, 2vw, 1.12rem) !important;
  line-height: 1.48 !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 2vw, 18px) !important;
  width: 100% !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  display: grid !important;
  justify-items: center !important;
  align-content: center !important;
  min-height: clamp(104px, 12vw, 124px) !important;
  padding: 18px 14px !important;
  border: 1px solid rgba(15, 99, 91, 0.09) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(238, 251, 245, 0.64)) !important;
  box-shadow: 0 15px 34px rgba(10, 72, 68, 0.085), inset 0 1px 0 rgba(255, 255, 255, 0.64) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary {
  background: radial-gradient(circle at 28% 15%, rgba(255, 255, 255, 0.32), transparent 32%), linear-gradient(135deg, #0b7285, #18a978) !important;
  box-shadow: 0 18px 40px rgba(16, 126, 102, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card strong {
  color: #123d49 !important;
  font-size: clamp(0.95rem, 2vw, 1.08rem) !important;
  line-height: 1.12 !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary strong {
  color: #fff !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  width: 100% !important;
  margin: 0 auto !important;
  padding: clamp(18px, 2.8vw, 26px) !important;
  border: 1px solid rgba(15, 99, 91, 0.08) !important;
  border-radius: var(--home-card-radius) !important;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(239, 252, 246, 0.6)) !important;
  box-shadow: 0 14px 34px rgba(10, 72, 68, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  margin: 0 0 clamp(14px, 2vw, 18px) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker,
html body .app-shell .map-stage.home-focus .home-section-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: fit-content !important;
  min-height: 40px !important;
  margin: 0 auto !important;
  padding: 9px 15px !important;
  border: 1px solid rgba(15, 99, 91, 0.08) !important;
  border-radius: 999px !important;
  color: #103f4b !important;
  background: rgba(255, 253, 248, 0.68) !important;
  box-shadow: 0 10px 22px rgba(10, 72, 68, 0.055) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .section-title-text,
html body .app-shell .map-stage.home-focus .home-section-title .section-title-text,
html body .app-shell .map-stage.home-focus .home-section-title strong {
  color: #103f4b !important;
  font-size: clamp(1.02rem, 1.9vw, 1.22rem) !important;
  font-weight: 940 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-bottom-note {
  order: 6 !important;
  justify-self: center !important;
  width: fit-content !important;
  max-width: min(520px, 100%) !important;
  margin: 2px auto 0 !important;
  padding: 11px 17px !important;
  border: 1px solid rgba(15, 99, 91, 0.08) !important;
  border-radius: 999px !important;
  color: rgba(14, 57, 68, 0.72) !important;
  background: rgba(255, 253, 248, 0.62) !important;
  box-shadow: 0 12px 24px rgba(10, 72, 68, 0.06) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus {
    --home-page-width: calc(100vw - 24px);
    --home-section-gap: 18px;
  }

  html body .app-shell .map-stage.home-focus .hero-copy {
    margin-top: 80px !important;
    gap: 12px !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy h2 {
    padding: 10px 16px 11px !important;
    font-size: clamp(1.12rem, 5vw, 1.45rem) !important;
  }

  html body .app-shell .map-stage.home-focus .home-mappi-moment {
    font-size: 0.88rem !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse {
    gap: 7px !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
    min-height: 58px !important;
    padding: 9px 5px !important;
    border-radius: 17px !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard {
    margin-top: 18px !important;
    margin-bottom: calc(var(--bottom-nav-height, 84px) + 44px) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    padding: 15px !important;
    border-radius: 25px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
    height: 188px !important;
    border-radius: 20px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay h3 {
    font-size: 1.28rem !important;
    line-height: 1.12 !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
    font-size: 0.88rem !important;
    line-height: 1.38 !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    min-height: 82px !important;
    padding: 11px 5px !important;
    border-radius: 18px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay,
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip {
    padding: 16px 12px !important;
    border-radius: 24px !important;
  }
}

/* True final Home v322: smaller wordmark and refined Today's Memory placement. */
html body .app-shell .map-stage.home-focus .brand {
  padding: 7px 13px !important;
}

html body .app-shell .map-stage.home-focus .brand h1 {
  font-size: clamp(1.78rem, 3.4vw, 2.85rem) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  display: grid !important;
  gap: clamp(14px, 2.2vw, 20px) !important;
  padding: clamp(18px, 2.8vw, 24px) !important;
  border-radius: 32px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 auto 2px !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker {
  min-height: 34px !important;
  padding: 7px 13px !important;
  color: #0f4650 !important;
  background: rgba(255, 253, 248, 0.74) !important;
  box-shadow: 0 9px 18px rgba(10, 72, 68, 0.045) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker .section-title-text {
  font-size: clamp(0.96rem, 1.5vw, 1.08rem) !important;
  font-weight: 940 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-name-pill {
  display: block !important;
  max-width: min(680px, 100%) !important;
  margin: 3px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #0c3745 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: clamp(1.55rem, 3.1vw, 2.28rem) !important;
  font-weight: 950 !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-date-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  margin: 0 auto !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(15, 99, 91, 0.08) !important;
  border-radius: 999px !important;
  color: rgba(19, 70, 82, 0.64) !important;
  background: rgba(255, 253, 248, 0.54) !important;
  box-shadow: 0 8px 15px rgba(10, 72, 68, 0.04) !important;
  font-size: clamp(0.78rem, 1.2vw, 0.9rem) !important;
  font-weight: 860 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  margin-top: 0 !important;
  padding: 5px 10px !important;
  color: rgba(14, 67, 78, 0.66) !important;
  background: rgba(224, 250, 242, 0.6) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  gap: clamp(11px, 1.8vw, 15px) !important;
  max-width: 700px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
  width: min(100%, 680px) !important;
  height: clamp(218px, 31vw, 292px) !important;
  border-radius: 25px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  gap: 7px !important;
  max-width: 560px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-title {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  color: rgba(18, 73, 83, 0.62) !important;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem) !important;
  font-weight: 830 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay p {
  color: rgba(24, 65, 75, 0.76) !important;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem) !important;
  line-height: 1.45 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .brand h1 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    gap: 12px !important;
    padding: 14px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-name-pill {
    font-size: clamp(1.18rem, 5.4vw, 1.55rem) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
    height: 178px !important;
    border-radius: 20px !important;
  }
}

/* Mobile polish v342: keep every main MyMappi flow tappable and readable on phone. */
@media (max-width: 720px) {
  :root {
    --mobile-safe-bottom: max(16px, env(safe-area-inset-bottom));
    --bottom-nav-height: 82px;
  }

  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  html body .app-shell,
  html body .app-shell .map-stage {
    width: 100vw !important;
    min-width: 0 !important;
    min-height: 100svh !important;
    overflow-x: hidden !important;
  }

  html body .app-shell .topbar {
    top: max(10px, env(safe-area-inset-top)) !important;
    left: 10px !important;
    right: 10px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    pointer-events: none !important;
  }

  html body .app-shell .topbar-left,
  html body .app-shell .topbar-actions,
  html body .app-shell .brand {
    pointer-events: auto !important;
  }

  html body .app-shell .topbar-left,
  html body .app-shell .topbar-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
  }

  html body .app-shell .topbar-actions .hidden-control,
  html body .app-shell .topbar-actions .file-button.hidden-control {
    display: none !important;
  }

  html body .app-shell .icon-button,
  html body .app-shell .avatar-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 15px !important;
  }

  html body .app-shell .avatar-button img {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
  }

  html body .app-shell .brand {
    justify-self: center !important;
    max-width: 156px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  html body .app-shell .brand h1 {
    font-size: clamp(1.26rem, 6.1vw, 1.62rem) !important;
    line-height: 1 !important;
  }

  html body .app-shell .hero-copy {
    width: min(100% - 24px, 520px) !important;
    margin: max(104px, calc(env(safe-area-inset-top) + 90px)) auto 14px !important;
    padding: 0 !important;
    text-align: center !important;
  }

  html body .app-shell .hero-copy h2 {
    font-size: clamp(1.28rem, 7vw, 2rem) !important;
    line-height: 1.08 !important;
  }

  html body .app-shell .home-dashboard {
    width: min(100% - 22px, 560px) !important;
    margin: 0 auto calc(var(--bottom-nav-height) + 38px) !important;
    gap: 18px !important;
    padding-bottom: 18px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    padding: 14px !important;
    border-radius: 25px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
    height: clamp(188px, 54vw, 236px) !important;
  }

  html body .app-shell .home-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    min-height: 84px !important;
    padding: 10px 6px !important;
    border-radius: 20px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card strong {
    font-size: clamp(0.76rem, 3.4vw, 0.92rem) !important;
    line-height: 1.12 !important;
  }

  html body .app-shell .bottom-nav {
    left: 10px !important;
    right: 10px !important;
    bottom: var(--mobile-safe-bottom) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 64px 1fr 1fr !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    height: var(--bottom-nav-height) !important;
    padding: 8px 9px !important;
    border-radius: 26px !important;
    z-index: 380 !important;
  }

  html body .app-shell .bottom-nav-item {
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 6px 2px !important;
    border-radius: 18px !important;
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
  }

  html body .app-shell .bottom-nav-item svg {
    width: 20px !important;
    height: 20px !important;
  }

  html body .app-shell .add-memory-button {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    justify-self: center !important;
    align-self: center !important;
    z-index: 2 !important;
  }

  html body .app-shell .memory-editor,
  html body .app-shell .memory-database-page,
  html body .app-shell .pin-search-panel,
  html body .app-shell .directions-panel {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 28px !important;
    z-index: 420 !important;
    box-sizing: border-box !important;
  }

  html body .app-shell .memory-editor {
    top: max(76px, calc(env(safe-area-inset-top) + 64px)) !important;
    bottom: calc(var(--bottom-nav-height) + var(--mobile-safe-bottom) + 12px) !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 14px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .app-shell .memory-editor .editor-header {
    position: sticky !important;
    top: -14px !important;
    z-index: 4 !important;
    margin: -14px -14px 12px !important;
    padding: 14px !important;
    border-radius: 26px 26px 18px 18px !important;
    background: rgba(255, 253, 248, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  html body .app-shell .memory-editor .two-col,
  html body .app-shell .memory-capsule-info-grid {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .memory-editor input,
  html body .app-shell .memory-editor textarea,
  html body .app-shell .memory-editor select {
    min-height: 48px !important;
    font-size: 16px !important;
  }

  html body .app-shell .editor-actions {
    position: sticky !important;
    bottom: -14px !important;
    z-index: 4 !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    margin: 12px -14px -14px !important;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom)) !important;
    border-radius: 18px 18px 26px 26px !important;
    background: rgba(255, 253, 248, 0.97) !important;
    box-shadow: 0 -16px 34px rgba(10, 72, 68, 0.1) !important;
  }

  html body .app-shell .editor-actions .primary-button {
    min-height: 54px !important;
    font-size: 1rem !important;
  }

  html body .app-shell .memory-database-page {
    top: max(76px, calc(env(safe-area-inset-top) + 64px)) !important;
    bottom: calc(var(--bottom-nav-height) + var(--mobile-safe-bottom) + 12px) !important;
    max-height: none !important;
    padding: 14px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .app-shell .memory-hub-heading {
    grid-template-columns: 1fr auto !important;
    align-items: start !important;
    gap: 10px !important;
  }

  html body .app-shell .memory-hub-heading h2 {
    font-size: clamp(1.35rem, 7vw, 2rem) !important;
  }

  html body .app-shell .tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  html body .app-shell .tab {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 6px 4px !important;
    font-size: 0.68rem !important;
  }

  html body .app-shell .drawer-view,
  html body .app-shell #memoryList {
    display: grid !important;
    gap: 14px !important;
    width: 100% !important;
  }

  html body .app-shell .memory-card,
  html body .app-shell .memory-database-card,
  html body .app-shell .saved-memory-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body .app-shell .pin-search-panel,
  html body .app-shell .directions-panel {
    top: max(76px, calc(env(safe-area-inset-top) + 64px)) !important;
    bottom: auto !important;
    max-height: min(72svh, 620px) !important;
    overflow-y: auto !important;
    padding: 13px !important;
  }

  html body .app-shell .pin-search-box,
  html body .app-shell .directions-box {
    grid-template-columns: 22px minmax(0, 1fr) auto !important;
    min-height: 50px !important;
  }

  html body .app-shell .pin-search-go-button,
  html body .app-shell .directions-action {
    min-height: 42px !important;
    padding-inline: 12px !important;
  }

  html body .app-shell .directions-actions,
  html body .app-shell .directions-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .app-shell .account-menu {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(var(--bottom-nav-height) + var(--mobile-safe-bottom) + 12px) !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(58svh, 420px) !important;
    overflow-y: auto !important;
    border-radius: 24px !important;
    z-index: 440 !important;
  }

  html body .app-shell .account-menu .account-menu-item {
    min-height: 48px !important;
    font-size: 0.92rem !important;
  }

  html body .app-shell .map-stage.map-focus #map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  html body .app-shell .map-navigation-gadget {
    right: 14px !important;
    bottom: calc(var(--bottom-nav-height) + var(--mobile-safe-bottom) + 24px) !important;
    transform: none !important;
    z-index: 300 !important;
  }

  html body .app-shell .location-banner {
    left: 12px !important;
    right: 12px !important;
    top: max(82px, calc(env(safe-area-inset-top) + 70px)) !important;
    width: auto !important;
    max-width: none !important;
    z-index: 360 !important;
  }

  html body .app-shell .memory-bottom-sheet.open {
    padding: 10px !important;
    z-index: 650 !important;
  }

  html body .app-shell .memory-bottom-sheet.open #memorySheetContent {
    width: min(100%, calc(100vw - 20px)) !important;
  }

  html body .app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule {
    max-height: calc(100svh - 20px) !important;
    padding: 13px !important;
    border-radius: 26px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-actions button {
    min-height: 48px !important;
  }

  html body .app-shell .photo-lightbox {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
  }

  html body .app-shell .photo-lightbox-frame {
    width: calc(100vw - 20px) !important;
    max-width: none !important;
    max-height: calc(100svh - 20px) !important;
    border-radius: 24px !important;
  }

  html body .app-shell .photo-lightbox-frame img,
  html body .app-shell .photo-lightbox-frame video {
    width: 100% !important;
    max-height: calc(100svh - 150px) !important;
    object-fit: contain !important;
    background: transparent !important;
  }

  html body .app-shell .photo-lightbox-video-actions {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  html body .app-shell .memory-save-confirmation {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(var(--bottom-nav-height) + var(--mobile-safe-bottom) + 12px) !important;
    width: auto !important;
    max-width: none !important;
    z-index: 700 !important;
  }
}

/* Account backup dashboard v343. */
html body .app-shell .account-menu {
  width: min(430px, calc(100vw - 28px)) !important;
  gap: 12px !important;
}

html body .app-shell .account-backup-dashboard {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html body .app-shell .account-backup-stat {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
  padding: 13px !important;
  border: 1px solid rgba(207, 255, 238, 0.13) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(125, 232, 186, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.07) !important;
}

html body .app-shell .account-backup-stat.wide,
html body .app-shell .account-sync-status {
  grid-column: 1 / -1 !important;
}

html body .app-shell .account-backup-stat span {
  color: rgba(222, 255, 245, 0.62) !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

html body .app-shell .account-backup-stat strong {
  overflow: hidden !important;
  color: #f7fffb !important;
  font-size: clamp(1.12rem, 2.2vw, 1.42rem) !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .account-sync-status {
  padding: 11px 12px !important;
  border: 1px solid rgba(91, 215, 232, 0.18) !important;
  border-radius: 17px !important;
  color: rgba(236, 255, 249, 0.82) !important;
  background: rgba(7, 65, 72, 0.34) !important;
  font-size: 0.82rem !important;
  font-weight: 760 !important;
  line-height: 1.38 !important;
}

html body .app-shell .account-menu .account-sync-button {
  min-height: 50px !important;
  justify-content: center !important;
  color: #06242d !important;
  background: linear-gradient(135deg, #7de8ba, #5bd7e8) !important;
  box-shadow: 0 16px 34px rgba(8, 154, 142, 0.2) !important;
}

html body .app-shell .account-menu .account-sync-button.is-syncing span[data-icon] {
  animation: accountSyncSpin 0.9s linear infinite !important;
}

@keyframes accountSyncSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  html body .app-shell .account-menu {
    width: auto !important;
    max-height: min(72svh, 560px) !important;
  }

  html body .app-shell .account-backup-stat {
    padding: 12px !important;
  }
}

/* Current location marker v344: slim blue human dot. */
html body .app-shell .user-location-marker-shell.live-user-location-marker {
  width: 34px !important;
  height: 34px !important;
  z-index: 10020 !important;
  pointer-events: none !important;
  filter:
    drop-shadow(0 10px 18px rgba(5, 32, 72, 0.28))
    drop-shadow(0 0 12px rgba(42, 150, 255, 0.18)) !important;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location {
  position: relative !important;
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  overflow: visible !important;
  border: 2px solid rgba(255, 255, 255, 0.98) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(145deg, #66d8ff 0%, #248bff 48%, #1253d9 100%) !important;
  box-shadow:
    inset 0 -7px 12px rgba(6, 43, 124, 0.22),
    0 0 0 3px rgba(68, 171, 255, 0.12),
    0 0 18px rgba(37, 132, 255, 0.28) !important;
  transform: translateZ(0) !important;
}

html body .app-shell .user-location-marker.is-current-location::before {
  content: "" !important;
  position: absolute !important;
  inset: -8px !important;
  width: auto !important;
  height: auto !important;
  border: 1px solid rgba(69, 168, 255, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(46, 151, 255, 0.08) !important;
  box-shadow: 0 0 20px rgba(38, 144, 255, 0.16) !important;
  animation: userLocationSoftRipple 3.2s ease-out infinite !important;
  z-index: -1 !important;
}

html body .app-shell .user-location-marker.is-current-location::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 33px !important;
  width: 18px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: radial-gradient(ellipse at center, rgba(4, 29, 68, 0.28), transparent 72%) !important;
  filter: blur(3px) !important;
  opacity: 0.7 !important;
  transform: translateX(-50%) !important;
  z-index: -2 !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-ripple {
  position: absolute !important;
  inset: -6px !important;
  width: auto !important;
  height: auto !important;
  border: 1px solid rgba(81, 182, 255, 0.2) !important;
  border-radius: 999px !important;
  background: rgba(57, 163, 255, 0.055) !important;
  animation: userLocationSoftRipple 3.8s ease-out infinite !important;
  z-index: -1 !important;
}

html body .app-shell .user-location-marker.is-current-location .ripple-two {
  animation-delay: 1.55s !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-body::before {
  display: none !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-head,
html body .app-shell .user-location-marker.is-current-location .user-location-body,
html body .app-shell .user-location-marker.is-current-location .user-location-arms,
html body .app-shell .user-location-marker.is-current-location .user-location-legs {
  position: absolute !important;
  left: 50% !important;
  display: block !important;
  background: #ffffff !important;
  box-shadow: none !important;
  opacity: 0.98 !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-head {
  top: 8px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-body {
  top: 17px !important;
  width: 10px !important;
  height: 9px !important;
  border-radius: 9px 9px 5px 5px !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-arms {
  top: 18px !important;
  width: 15px !important;
  height: 3px !important;
  border-radius: 999px !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-legs {
  top: 25px !important;
  width: 13px !important;
  height: 6px !important;
  border-radius: 0 !important;
  background:
    linear-gradient(90deg, transparent 0 24%, #fff 24% 42%, transparent 42% 58%, #fff 58% 76%, transparent 76% 100%) !important;
}

html body .app-shell .user-location-marker-shell.is-estimate .user-location-marker.is-current-location {
  opacity: 0.72 !important;
  filter: saturate(0.9) grayscale(0.04) !important;
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .user-location-marker.is-current-location::before,
  html body .app-shell .user-location-marker.is-current-location .user-location-ripple {
    animation: none !important;
  }
}

/* Memory capsule photo viewing v345. */
html body .app-shell .full-memory-capsule .memory-capsule-media.has-photos {
  overflow: visible !important;
  max-height: none !important;
  padding: 12px !important;
  border: 1px solid rgba(120, 202, 182, 0.18) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 12% 4%, rgba(111, 218, 179, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(246, 255, 249, 0.98), rgba(232, 247, 244, 0.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item {
  position: relative !important;
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(5, 62, 83, 0.1) !important;
  border-radius: 18px !important;
  aspect-ratio: 1 / 1 !important;
  background:
    linear-gradient(145deg, rgba(238, 255, 248, 0.96), rgba(218, 242, 247, 0.86)) !important;
  box-shadow:
    0 12px 26px rgba(8, 62, 75, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  cursor: zoom-in !important;
  appearance: none !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item.is-cover {
  grid-column: 1 / -1 !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 24px !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__photo,
html body .app-shell .full-memory-capsule .sheet-photo-gallery__item img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: inherit !important;
  object-fit: cover !important;
  background: transparent !important;
  transition:
    transform 360ms ease,
    filter 360ms ease !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 0 0 0 !important;
  height: 42% !important;
  opacity: 0.46 !important;
  background: linear-gradient(180deg, transparent, rgba(4, 34, 43, 0.56)) !important;
  pointer-events: none !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__view {
  position: absolute !important;
  right: 12px !important;
  bottom: 10px !important;
  z-index: 2 !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: rgba(4, 31, 45, 0.38) !important;
  box-shadow: 0 8px 18px rgba(2, 18, 34, 0.18) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  opacity: 0 !important;
  transform: translateY(4px) !important;
  transition:
    opacity 220ms ease,
    transform 220ms ease !important;
  backdrop-filter: blur(12px) !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item.is-cover .sheet-photo-gallery__view,
html body .app-shell .full-memory-capsule .sheet-photo-gallery__item:hover .sheet-photo-gallery__view,
html body .app-shell .full-memory-capsule .sheet-photo-gallery__item:focus-visible .sheet-photo-gallery__view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item:hover img,
html body .app-shell .full-memory-capsule .sheet-photo-gallery__item:focus-visible img {
  filter: saturate(1.05) contrast(1.03) !important;
  transform: scale(1.035) !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item:focus-visible {
  outline: 3px solid rgba(64, 181, 255, 0.42) !important;
  outline-offset: 3px !important;
}

html body .app-shell .photo-lightbox {
  z-index: 900 !important;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)) !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(99, 208, 182, 0.2), transparent 36%),
    rgba(5, 22, 35, 0.74) !important;
  backdrop-filter: blur(22px) saturate(1.05) !important;
}

html body .app-shell .photo-lightbox-frame {
  width: min(1180px, calc(100vw - 36px)) !important;
  max-height: calc(100svh - 36px) !important;
  padding: 12px !important;
  border: 1px solid rgba(227, 255, 246, 0.22) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(145deg, rgba(250, 255, 251, 0.98), rgba(228, 244, 242, 0.94)) !important;
  box-shadow:
    0 30px 90px rgba(0, 15, 28, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .photo-lightbox-frame img,
html body .app-shell .photo-lightbox-frame video {
  width: 100% !important;
  max-width: 100% !important;
  max-height: calc(100svh - 150px) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #eefaf4, #dceff2) !important;
  object-fit: contain !important;
}

html body .app-shell .photo-lightbox-frame figcaption,
html body .app-shell #photoLightboxCaption {
  padding: 12px 54px 4px 8px !important;
  color: #17394b !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

html body .app-shell .photo-lightbox-close {
  top: 18px !important;
  right: 18px !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  color: #06232f !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 12px 28px rgba(4, 28, 43, 0.18) !important;
}

@media (max-width: 720px) {
  html body .app-shell .full-memory-capsule .memory-capsule-media.has-photos {
    padding: 10px !important;
    border-radius: 24px !important;
  }

  html body .app-shell .full-memory-capsule .sheet-photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .app-shell .full-memory-capsule .sheet-photo-gallery__item.is-cover {
    aspect-ratio: 4 / 3 !important;
    border-radius: 20px !important;
  }

  html body .app-shell .full-memory-capsule .sheet-photo-gallery__view {
    opacity: 1 !important;
    transform: none !important;
  }

  html body .app-shell .photo-lightbox {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
  }

  html body .app-shell .photo-lightbox-frame {
    width: calc(100vw - 20px) !important;
    max-height: calc(100svh - 20px) !important;
    padding: 9px !important;
    border-radius: 24px !important;
  }

  html body .app-shell .photo-lightbox-frame img,
  html body .app-shell .photo-lightbox-frame video {
    max-height: calc(100svh - 132px) !important;
    border-radius: 18px !important;
  }
}

/* Memory capsule layout guard v346: photos should push content down, never overlap it. */
html body .app-shell .memory-bottom-sheet.open .memory-sheet-card.memory-capsule-card.full-memory-capsule,
html body main.app-shell .memory-bottom-sheet.open .memory-sheet-card.memory-capsule-card.full-memory-capsule {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
  gap: clamp(14px, 2vw, 20px) !important;
  width: min(940px, calc(100vw - 28px)) !important;
  max-height: calc(100svh - 32px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  contain: layout paint !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-topbar,
html body .app-shell .full-memory-capsule .memory-capsule-hero,
html body .app-shell .full-memory-capsule .memory-capsule-body,
html body .app-shell .full-memory-capsule .memory-capsule-actions,
html body main.app-shell .full-memory-capsule .memory-capsule-topbar,
html body main.app-shell .full-memory-capsule .memory-capsule-hero,
html body main.app-shell .full-memory-capsule .memory-capsule-body,
html body main.app-shell .full-memory-capsule .memory-capsule-actions {
  grid-column: 1 / -1 !important;
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-body,
html body main.app-shell .full-memory-capsule .memory-capsule-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
  gap: 14px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-media,
html body main.app-shell .full-memory-capsule .memory-capsule-media {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story,
html body .app-shell .full-memory-capsule .memory-capsule-info-grid,
html body .app-shell .full-memory-capsule .memory-capsule-detail-chips,
html body .app-shell .full-memory-capsule .memory-capsule-coordinates,
html body main.app-shell .full-memory-capsule .memory-capsule-story,
html body main.app-shell .full-memory-capsule .memory-capsule-info-grid,
html body main.app-shell .full-memory-capsule .memory-capsule-detail-chips,
html body main.app-shell .full-memory-capsule .memory-capsule-coordinates {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery,
html body main.app-shell .full-memory-capsule .sheet-photo-gallery {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  gap: 10px !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item,
html body main.app-shell .full-memory-capsule .sheet-photo-gallery__item {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: none !important;
  scroll-snap-align: none !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item.is-cover,
html body main.app-shell .full-memory-capsule .sheet-photo-gallery__item.is-cover {
  grid-column: 1 / -1 !important;
  aspect-ratio: 16 / 9 !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__photo,
html body main.app-shell .full-memory-capsule .sheet-photo-gallery__photo {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
}

@media (max-width: 720px) {
  html body .app-shell .memory-bottom-sheet.open .memory-sheet-card.memory-capsule-card.full-memory-capsule,
  html body main.app-shell .memory-bottom-sheet.open .memory-sheet-card.memory-capsule-card.full-memory-capsule {
    width: calc(100vw - 20px) !important;
    max-height: calc(100svh - 20px) !important;
    padding: 12px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-hero,
  html body main.app-shell .full-memory-capsule .memory-capsule-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }

  html body .app-shell .full-memory-capsule .sheet-photo-gallery,
  html body main.app-shell .full-memory-capsule .sheet-photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .app-shell .full-memory-capsule .sheet-photo-gallery__item.is-cover,
  html body main.app-shell .full-memory-capsule .sheet-photo-gallery__item.is-cover {
    aspect-ratio: 4 / 3 !important;
  }
}

/* Today's Memory image fit v347: show the whole photo instead of cropping Mappi. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo.has-photo-slideshow {
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 38%, rgba(128, 224, 186, 0.22), transparent 45%),
    linear-gradient(145deg, rgba(240, 255, 248, 0.96), rgba(222, 243, 247, 0.92)) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo-frame,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo img,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo-frame {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo img,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo-frame {
  transform: none !important;
}

/* Current location v348: premium exact-location blue dot. */
html body .app-shell .user-location-marker-shell.live-user-location-marker {
  width: 28px !important;
  height: 28px !important;
  z-index: 10030 !important;
  pointer-events: none !important;
  filter:
    drop-shadow(0 8px 14px rgba(3, 34, 76, 0.28))
    drop-shadow(0 0 12px rgba(35, 145, 255, 0.2)) !important;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location {
  position: relative !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 5px !important;
  overflow: visible !important;
  border: 3px solid rgba(255, 255, 255, 0.98) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.82), transparent 18%),
    linear-gradient(145deg, #58d3ff 0%, #248cff 48%, #1056e8 100%) !important;
  box-shadow:
    inset 0 -4px 8px rgba(4, 51, 145, 0.24),
    0 0 0 2px rgba(56, 161, 255, 0.14),
    0 0 18px rgba(36, 140, 255, 0.32) !important;
  transform: translateZ(0) !important;
}

html body .app-shell .user-location-marker.is-current-location::before {
  content: "" !important;
  position: absolute !important;
  inset: -10px !important;
  width: auto !important;
  height: auto !important;
  border: 1px solid rgba(67, 166, 255, 0.3) !important;
  border-radius: 999px !important;
  background: rgba(46, 151, 255, 0.08) !important;
  box-shadow: 0 0 18px rgba(37, 140, 255, 0.16) !important;
  animation: userLocationSoftRipple 3.1s ease-out infinite !important;
  z-index: -1 !important;
}

html body .app-shell .user-location-marker.is-current-location::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 19px !important;
  width: 15px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: radial-gradient(ellipse at center, rgba(4, 29, 68, 0.22), transparent 74%) !important;
  filter: blur(3px) !important;
  opacity: 0.64 !important;
  transform: translateX(-50%) !important;
  z-index: -2 !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-ripple {
  position: absolute !important;
  inset: -8px !important;
  width: auto !important;
  height: auto !important;
  border: 1px solid rgba(81, 182, 255, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(57, 163, 255, 0.055) !important;
  animation: userLocationSoftRipple 3.9s ease-out infinite !important;
  z-index: -1 !important;
}

html body .app-shell .user-location-marker.is-current-location .ripple-two {
  animation-delay: 1.55s !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-head,
html body .app-shell .user-location-marker.is-current-location .user-location-body,
html body .app-shell .user-location-marker.is-current-location .user-location-arms,
html body .app-shell .user-location-marker.is-current-location .user-location-legs,
html body .app-shell .user-location-marker.is-current-location .user-location-body::before {
  display: none !important;
}

html body .app-shell .user-location-marker-shell.is-estimate .user-location-marker.is-current-location {
  opacity: 0.74 !important;
  filter: saturate(0.92) grayscale(0.04) !important;
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .user-location-marker.is-current-location::before,
  html body .app-shell .user-location-marker.is-current-location .user-location-ripple {
    animation: none !important;
  }
}

/* Save confidence toast v349. */
html body .app-shell .memory-save-confirmation {
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  width: min(420px, calc(100vw - 32px)) !important;
  min-height: 72px !important;
  padding: 14px 15px !important;
  border: 1px solid rgba(211, 255, 240, 0.24) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 14% 8%, rgba(117, 235, 184, 0.28), transparent 42%),
    radial-gradient(circle at 96% 0%, rgba(83, 192, 239, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(4, 42, 58, 0.96), rgba(17, 111, 96, 0.94)) !important;
  box-shadow:
    0 24px 52px rgba(2, 24, 38, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html body .app-shell .memory-save-confirmation > span {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 40px !important;
  height: 40px !important;
  color: #063f4b !important;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(135deg, #d8fff2, #84f2c4) !important;
}

html body .app-shell .memory-save-confirmation strong {
  grid-column: 2 !important;
  grid-row: 1 !important;
  color: #f7fffb !important;
  font-size: 0.98rem !important;
  letter-spacing: 0 !important;
}

html body .app-shell .memory-save-confirmation small {
  grid-column: 2 / span 2 !important;
  grid-row: 2 !important;
  color: rgba(235, 255, 248, 0.78) !important;
  font-size: 0.78rem !important;
}

html body .app-shell .memory-confirmation-status {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  padding: 6px 9px !important;
  border: 1px solid rgba(216, 255, 242, 0.22) !important;
  border-radius: 999px !important;
  color: #d8fff2 !important;
  background: rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  font-size: 0.68rem !important;
  font-style: normal !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

html body .app-shell .memory-confirmation-undo {
  grid-column: 2 / span 2 !important;
}

@media (max-width: 520px) {
  html body .app-shell .memory-save-confirmation {
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  html body .app-shell .memory-confirmation-status {
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: start !important;
    margin-top: 6px !important;
  }

  html body .app-shell .memory-save-confirmation small,
  html body .app-shell .memory-confirmation-undo {
    grid-column: 2 !important;
  }
}

/* Memory capsule scrapbook polish v350. */
html body .app-shell .memory-bottom-sheet.open .memory-sheet-card.memory-capsule-card.full-memory-capsule,
html body main.app-shell .memory-bottom-sheet.open .memory-sheet-card.memory-capsule-card.full-memory-capsule {
  width: min(980px, calc(100vw - 28px)) !important;
  padding: clamp(15px, 2.4vw, 24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: clamp(26px, 3.4vw, 36px) !important;
  background:
    radial-gradient(circle at 14% 2%, color-mix(in srgb, var(--sheet-accent) 18%, transparent), transparent 32%),
    radial-gradient(circle at 88% 4%, rgba(95, 205, 221, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.99), rgba(237, 250, 244, 0.97) 58%, rgba(226, 244, 247, 0.96)) !important;
  box-shadow:
    0 34px 84px rgba(3, 28, 39, 0.28),
    0 12px 32px rgba(13, 93, 85, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-topbar {
  align-items: center !important;
  padding: 2px 2px 0 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-brand {
  min-height: 38px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(9, 72, 76, 0.08) !important;
  color: rgba(7, 54, 64, 0.72) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: 0 10px 24px rgba(6, 54, 64, 0.06) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-hero {
  overflow: hidden !important;
  padding: clamp(20px, 3vw, 34px) !important;
  border: 1px solid rgba(194, 255, 236, 0.16) !important;
  border-radius: clamp(22px, 3vw, 32px) !important;
  background:
    radial-gradient(circle at 90% 14%, color-mix(in srgb, var(--sheet-accent) 36%, transparent), transparent 34%),
    radial-gradient(circle at 16% 0%, rgba(138, 239, 199, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(4, 45, 56, 0.98), rgba(10, 95, 86, 0.94) 58%, rgba(12, 87, 126, 0.9)) !important;
  box-shadow:
    0 18px 42px rgba(6, 54, 59, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-title-block h2 {
  max-width: 780px !important;
  color: #ffffff !important;
  font-size: clamp(2rem, 5vw, 4.35rem) !important;
  line-height: 0.96 !important;
  text-wrap: balance !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-title-block p {
  color: rgba(239, 255, 250, 0.84) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-date-block {
  justify-self: end !important;
  min-width: min(190px, 100%) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.13) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(12px) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-media.has-media {
  padding: 12px !important;
  border: 1px solid rgba(7, 78, 79, 0.1) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--sheet-accent) 11%, transparent), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 251, 0.96), rgba(232, 248, 243, 0.92)) !important;
  box-shadow:
    0 18px 38px rgba(7, 58, 67, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .full-memory-capsule .memory-sheet-media-bar {
  min-height: 34px !important;
  padding: 2px 4px 8px !important;
  border-bottom: 1px solid rgba(7, 78, 79, 0.07) !important;
}

html body .app-shell .full-memory-capsule .memory-sheet-media-bar span {
  color: rgba(7, 54, 64, 0.8) !important;
  letter-spacing: 0.09em !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item {
  border: 1px solid rgba(5, 62, 83, 0.09) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(226, 246, 244, 0.9)) !important;
  box-shadow:
    0 12px 26px rgba(7, 58, 67, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item.is-cover {
  aspect-ratio: 16 / 10 !important;
  border-radius: 25px !important;
  box-shadow:
    0 18px 42px rgba(7, 58, 67, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__photo {
  object-fit: cover !important;
  object-position: center center !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story {
  position: relative !important;
  overflow: hidden !important;
  padding: clamp(18px, 2.6vw, 26px) !important;
  border: 1px solid rgba(10, 83, 78, 0.09) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--sheet-accent) 8%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 251, 0.92), rgba(248, 252, 244, 0.82)) !important;
  box-shadow:
    0 14px 30px rgba(7, 58, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story::before {
  content: "“" !important;
  position: absolute !important;
  right: 18px !important;
  top: -12px !important;
  color: color-mix(in srgb, var(--sheet-accent) 18%, transparent) !important;
  font-family: Georgia, serif !important;
  font-size: clamp(4rem, 10vw, 7rem) !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story span {
  color: color-mix(in srgb, var(--sheet-accent) 58%, #073540) !important;
  letter-spacing: 0.12em !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story p {
  position: relative !important;
  z-index: 1 !important;
  max-width: 76ch !important;
  color: #153e47 !important;
  font-size: clamp(1.02rem, 2vw, 1.2rem) !important;
  line-height: 1.7 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-info-grid span {
  padding: 13px 14px !important;
  border: 1px solid rgba(7, 78, 79, 0.08) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.64) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-actions {
  grid-template-columns: 1.1fr 1.35fr 1fr 1fr 0.9fr !important;
  gap: 9px !important;
  padding-top: 2px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-actions button {
  min-height: 52px !important;
  border: 1px solid rgba(7, 78, 79, 0.1) !important;
  border-radius: 18px !important;
  color: #0b3b43 !important;
  background:
    radial-gradient(circle at 28% 10%, rgba(255, 255, 255, 0.58), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(232, 248, 243, 0.78)) !important;
  box-shadow:
    0 10px 24px rgba(7, 58, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-actions button[data-sheet-action="edit"] {
  color: #f8fffb !important;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #0d746c, #1d8ed2) !important;
  box-shadow:
    0 16px 32px rgba(19, 112, 137, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-actions button[data-sheet-action="favorite"],
html body .app-shell .full-memory-capsule .memory-capsule-actions button.is-hearted {
  color: #0d3a44 !important;
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(135deg, #fff5f0, #ffe1d9) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-actions button.is-hearted {
  color: #fff8f5 !important;
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(135deg, #ff6b6b, #e94f77) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-actions button[data-sheet-action="route"] {
  color: #0b4850 !important;
  background:
    linear-gradient(135deg, rgba(222, 255, 244, 0.96), rgba(218, 244, 255, 0.9)) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-actions button.danger {
  color: #a23a32 !important;
  background:
    linear-gradient(135deg, rgba(255, 249, 246, 0.92), rgba(255, 232, 226, 0.72)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
}

@media (max-width: 820px) {
  html body .app-shell .full-memory-capsule .memory-capsule-info-grid,
  html body .app-shell .full-memory-capsule .memory-capsule-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-date-block {
    justify-self: stretch !important;
  }
}

@media (max-width: 560px) {
  html body .app-shell .full-memory-capsule .sheet-photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .app-shell .full-memory-capsule .sheet-photo-gallery__item.is-cover {
    aspect-ratio: 4 / 3 !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-info-grid,
  html body .app-shell .full-memory-capsule .memory-capsule-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Memory capsule header v351: title first, no emotion/category eyebrow. */
html body .app-shell .full-memory-capsule .memory-capsule-title-block,
html body main.app-shell .full-memory-capsule .memory-capsule-title-block {
  display: grid !important;
  gap: 12px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-title-block .sheet-eyebrow,
html body main.app-shell .full-memory-capsule .memory-capsule-title-block .sheet-eyebrow {
  display: none !important;
}

/* Explore search real-map behavior v352. */
html body .app-shell .pin-search-panel {
  width: min(440px, calc(100vw - 28px)) !important;
}

html body .app-shell .pin-search-section-label.saved-memory-results-label span::after {
  content: " saved first" !important;
  margin-left: 6px !important;
  color: rgba(216, 255, 242, 0.48) !important;
  font-size: 0.66rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

html body .app-shell .pin-search-section-label.saved-memory-results-label small {
  min-width: auto !important;
  padding: 0 9px !important;
  color: #05313a !important;
  background: linear-gradient(135deg, #d8fff2, #84f2c4) !important;
}

html body .app-shell .pin-search-result {
  position: relative !important;
  padding-right: 38px !important;
}

html body .app-shell .pin-search-result::after {
  content: "→" !important;
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  color: rgba(231, 255, 249, 0.42) !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  transform: translateY(-50%) !important;
  transition:
    color 180ms ease,
    transform 180ms ease !important;
}

html body .app-shell .pin-search-result:hover::after,
html body .app-shell .pin-search-result:focus-visible::after {
  color: #d8fff2 !important;
  transform: translate(3px, -50%) !important;
}

html body .app-shell .memory-search-result {
  border-color: rgba(132, 242, 196, 0.32) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(132, 242, 196, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.1) !important;
}

html body .app-shell .memory-search-result strong::after {
  content: "Your memory" !important;
  display: inline-grid !important;
  margin-left: 8px !important;
  padding: 4px 7px !important;
  border: 1px solid rgba(216, 255, 242, 0.2) !important;
  border-radius: 999px !important;
  color: #d8fff2 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-size: 0.58rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  vertical-align: middle !important;
}

html body .app-shell .pin-search-loading {
  display: grid !important;
  min-height: 48px !important;
  place-items: center !important;
  border-radius: 16px !important;
}

@media (max-width: 520px) {
  html body .app-shell .memory-search-result strong::after {
    display: none !important;
  }

  html body .app-shell .pin-search-section-label.saved-memory-results-label span::after {
    content: "" !important;
    display: none !important;
  }
}

/* Empty memories v353: Mappi only prompts when the user has no saved memories. */
html body .app-shell .map-stage.home-focus .home-mappi-moment[hidden],
html body .app-shell .map-stage.home-focus .home-mappi-moment:not(.is-first-memory-visible) {
  display: none !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-moment.is-first-memory-visible {
  display: block !important;
  max-width: 520px !important;
  margin: -3px auto 0 !important;
  padding: 10px 18px !important;
  border: 1px solid rgba(26, 138, 120, 0.14) !important;
  border-radius: 999px !important;
  color: #1b5d58 !important;
  background: rgba(255, 253, 248, 0.68) !important;
  box-shadow: 0 12px 28px rgba(11, 88, 84, 0.08) !important;
  font-size: clamp(0.9rem, 1.7vw, 1.02rem) !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
}

html body .app-shell .map-empty-state[hidden] {
  display: none !important;
}

html body .app-shell .map-empty-state.is-visible {
  display: grid !important;
}

/* Mobile polish pass v354: steady phone layouts before the next feature wave. */
@media (max-width: 760px) {
  :root {
    --mobile-safe-top: max(12px, env(safe-area-inset-top));
    --mobile-safe-bottom: max(14px, env(safe-area-inset-bottom));
    --bottom-nav-height: 78px;
  }

  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: none !important;
  }

  html body .app-shell,
  html body .app-shell .map-stage {
    width: 100vw !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
  }

  html body .auth-gate {
    min-height: 100dvh !important;
    padding: calc(var(--mobile-safe-top) + 10px) 14px calc(var(--mobile-safe-bottom) + 12px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .auth-card {
    width: min(100%, 420px) !important;
    max-height: none !important;
    padding: 22px 16px 18px !important;
    border-radius: 28px !important;
  }

  html body .auth-card .auth-mappi {
    width: 104px !important;
    height: 104px !important;
    object-fit: contain !important;
  }

  html body .auth-brand h1 {
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }

  html body .auth-gate-form {
    gap: 11px !important;
  }

  html body .auth-gate-form input,
  html body .auth-gate-form button,
  html body .account-auth-button {
    min-height: 48px !important;
    font-size: 16px !important;
  }

  html body .account-auth-actions {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  html body .app-shell .topbar {
    top: var(--mobile-safe-top) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: auto minmax(104px, 1fr) auto !important;
    align-items: center !important;
    gap: 7px !important;
    pointer-events: none !important;
    z-index: 520 !important;
  }

  html body .app-shell .topbar-left,
  html body .app-shell .topbar-actions,
  html body .app-shell .brand {
    pointer-events: auto !important;
  }

  html body .app-shell .topbar-left,
  html body .app-shell .topbar-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  html body .app-shell .topbar-actions {
    justify-content: end !important;
  }

  html body .app-shell .topbar .icon-button,
  html body .app-shell .topbar .avatar-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 15px !important;
  }

  html body .app-shell .topbar .avatar-button img {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
  }

  html body .app-shell .topbar .hidden-control,
  html body .app-shell .topbar .file-button.hidden-control {
    display: none !important;
  }

  html body .app-shell .brand {
    justify-self: center !important;
    max-width: 136px !important;
    min-width: 0 !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
  }

  html body .app-shell .brand h1 {
    overflow: visible !important;
    font-size: clamp(1.18rem, 5.5vw, 1.52rem) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body .app-shell .hero-copy {
    width: min(100% - 28px, 540px) !important;
    margin: calc(var(--mobile-safe-top) + 76px) auto 18px !important;
    text-align: center !important;
  }

  html body .app-shell .hero-copy h2 {
    font-size: clamp(1.2rem, 6.2vw, 1.72rem) !important;
    line-height: 1.08 !important;
  }

  html body .app-shell .home-memory-pulse {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .app-shell .home-memory-pulse .home-stat {
    min-width: 0 !important;
    min-height: 64px !important;
    padding: 9px 6px !important;
    border-radius: 20px !important;
  }

  html body .app-shell .home-memory-pulse .home-stat strong {
    font-size: clamp(1.18rem, 6vw, 1.55rem) !important;
  }

  html body .app-shell .home-memory-pulse .home-stat span,
  html body .app-shell .home-memory-pulse .home-stat small {
    font-size: 0.66rem !important;
  }

  html body .app-shell .home-dashboard {
    width: min(100% - 24px, 560px) !important;
    margin: 0 auto calc(var(--bottom-nav-height) + var(--mobile-safe-bottom) + 38px) !important;
    gap: 18px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card {
    min-height: auto !important;
    padding: 14px !important;
    border-radius: 26px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
    height: clamp(188px, 56vw, 244px) !important;
    border-radius: 22px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-name-pill {
    font-size: clamp(1.08rem, 5.2vw, 1.45rem) !important;
  }

  html body .app-shell .home-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  html body .app-shell .home-action-card {
    min-width: 0 !important;
    min-height: 82px !important;
    padding: 10px 6px !important;
    border-radius: 20px !important;
  }

  html body .app-shell .home-action-card strong {
    font-size: clamp(0.76rem, 3.4vw, 0.92rem) !important;
    line-height: 1.12 !important;
  }

  html body .app-shell .home-section-heading,
  html body .app-shell .memory-day-topline {
    align-items: center !important;
    gap: 8px !important;
  }

  html body .app-shell .home-section-title,
  html body .app-shell .home-kicker {
    max-width: 100% !important;
    justify-content: center !important;
  }

  html body .app-shell .bottom-nav {
    left: 10px !important;
    right: 10px !important;
    bottom: var(--mobile-safe-bottom) !important;
    width: auto !important;
    height: var(--bottom-nav-height) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 60px 1fr 1fr !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 8px !important;
    border-radius: 25px !important;
    z-index: 700 !important;
  }

  html body .app-shell .bottom-nav-item {
    min-width: 0 !important;
    min-height: 56px !important;
    padding: 6px 2px !important;
    border-radius: 18px !important;
    font-size: 0.66rem !important;
    line-height: 1.08 !important;
  }

  html body .app-shell .bottom-nav-item svg {
    width: 20px !important;
    height: 20px !important;
  }

  html body .app-shell .add-memory-button {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    justify-self: center !important;
  }

  html body .app-shell .map-stage.map-focus #map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  html body .app-shell .map-navigation-gadget {
    right: 18px !important;
    bottom: calc(var(--bottom-nav-height) + var(--mobile-safe-bottom) + 18px) !important;
    width: 106px !important;
    height: 106px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 7px !important;
    padding: 8px !important;
    border-radius: 24px !important;
    z-index: 430 !important;
  }

  html body .app-shell .map-navigation-gadget > *,
  html body .app-shell .map-navigation-gadget .map-gadget-button,
  html body .app-shell .map-navigation-gadget .map-gadget-zoom-button,
  html body .app-shell .map-navigation-gadget .map-compass {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 16px !important;
  }

  html body .app-shell .map-navigation-gadget .locate-label {
    display: none !important;
  }

  html body .app-shell .map-navigation-gadget .map-compass strong {
    font-size: 0.66rem !important;
  }

  html body .app-shell .location-banner,
  html body .app-shell .mappi-guide-bubble,
  html body .app-shell .map-empty-state {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  html body .app-shell .location-banner {
    top: calc(var(--mobile-safe-top) + 58px) !important;
    z-index: 620 !important;
  }

  html body .app-shell .category-rail.open,
  html body .app-shell .notification-hub.open,
  html body .app-shell .pin-search-panel.open,
  html body .app-shell .account-menu.open,
  html body .app-shell .directions-panel:not([hidden]) {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    top: calc(var(--mobile-safe-top) + 56px) !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(72dvh, 600px) !important;
    overflow-y: auto !important;
    padding: 14px !important;
    border-radius: 26px !important;
    z-index: 760 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .app-shell .category-rail:not(.open),
  html body .app-shell .notification-hub:not(.open),
  html body .app-shell .pin-search-panel:not(.open),
  html body .app-shell .account-menu:not(.open) {
    pointer-events: none !important;
  }

  html body .app-shell .pin-search-box,
  html body .app-shell .directions-box,
  html body .app-shell .search-wrap {
    grid-template-columns: 22px minmax(0, 1fr) auto !important;
    min-height: 50px !important;
  }

  html body .app-shell .pin-search-box input,
  html body .app-shell .directions-box input,
  html body .app-shell .search-wrap input {
    min-width: 0 !important;
    font-size: 16px !important;
  }

  html body .app-shell .pin-search-go-button,
  html body .app-shell .directions-action {
    min-height: 42px !important;
    padding-inline: 12px !important;
  }

  html body .app-shell .account-menu.open {
    top: auto !important;
    bottom: calc(var(--bottom-nav-height) + var(--mobile-safe-bottom) + 12px) !important;
    max-height: min(64dvh, 540px) !important;
  }

  html body .app-shell .account-backup-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .app-shell .account-cloud-card,
  html body .app-shell .account-backup-stat,
  html body .app-shell .account-sync-status,
  html body .app-shell .account-menu-item {
    min-width: 0 !important;
  }

  html body .app-shell .map-stage.memories-focus .memory-database-page {
    position: fixed !important;
    inset: calc(var(--mobile-safe-top) + 58px) 10px calc(var(--bottom-nav-height) + var(--mobile-safe-bottom) + 12px) 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 14px !important;
    border-radius: 28px !important;
    z-index: 520 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .app-shell .memory-hub-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: start !important;
  }

  html body .app-shell .memory-hub-heading h2 {
    font-size: clamp(1.42rem, 7vw, 2rem) !important;
  }

  html body .app-shell .memory-hub-heading p {
    font-size: 0.84rem !important;
  }

  html body .app-shell .memory-hub-actions {
    align-self: start !important;
  }

  html body .app-shell .tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  html body .app-shell .tab {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 6px 4px !important;
    font-size: 0.68rem !important;
  }

  html body .app-shell .drawer-view,
  html body .app-shell #memoryList,
  html body .app-shell #timelineView,
  html body .app-shell #statsView,
  html body .app-shell #listsView {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body .app-shell .memory-card,
  html body .app-shell .memory-database-card,
  html body .app-shell .saved-memory-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body .app-shell .memory-editor.open {
    position: fixed !important;
    inset: calc(var(--mobile-safe-top) + 58px) 10px calc(var(--bottom-nav-height) + var(--mobile-safe-bottom) + 12px) 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 14px !important;
    border-radius: 28px !important;
    z-index: 780 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .app-shell .memory-editor .editor-header {
    position: sticky !important;
    top: -14px !important;
    z-index: 5 !important;
    margin: -14px -14px 12px !important;
    padding: 14px !important;
    border-radius: 28px 28px 18px 18px !important;
    background: rgba(255, 253, 248, 0.97) !important;
    box-shadow: 0 12px 26px rgba(7, 64, 68, 0.08) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  html body .app-shell .memory-editor .two-col,
  html body .app-shell .memory-editor .title-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  html body .app-shell .memory-editor input,
  html body .app-shell .memory-editor textarea,
  html body .app-shell .memory-editor select {
    min-height: 48px !important;
    font-size: 16px !important;
  }

  html body .app-shell .category-swatch-rail {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    scroll-snap-type: x proximity !important;
  }

  html body .app-shell .category-swatch {
    min-width: 128px !important;
    scroll-snap-align: start !important;
  }

  html body .app-shell .editor-actions {
    position: sticky !important;
    bottom: -14px !important;
    z-index: 5 !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    margin: 12px -14px -14px !important;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom)) !important;
    border-radius: 18px 18px 28px 28px !important;
    background: rgba(255, 253, 248, 0.98) !important;
    box-shadow: 0 -18px 34px rgba(6, 64, 70, 0.1) !important;
  }

  html body .app-shell .editor-actions button,
  html body .app-shell .editor-actions .primary-button {
    min-height: 52px !important;
    font-size: 1rem !important;
  }

  html body .app-shell .memory-bottom-sheet.open {
    position: fixed !important;
    inset: 0 !important;
    display: grid !important;
    align-items: end !important;
    justify-items: center !important;
    padding: calc(var(--mobile-safe-top) + 6px) 10px calc(var(--mobile-safe-bottom) + 10px) !important;
    overflow: hidden !important;
    z-index: 900 !important;
  }

  html body .app-shell .memory-bottom-sheet.open #memorySheetContent {
    width: 100% !important;
    max-width: 520px !important;
    min-width: 0 !important;
  }

  html body .app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule {
    width: 100% !important;
    max-height: calc(100dvh - var(--mobile-safe-top) - var(--mobile-safe-bottom) - 20px) !important;
    overflow-y: auto !important;
    padding: 12px !important;
    border-radius: 28px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-topbar {
    position: sticky !important;
    top: -12px !important;
    z-index: 8 !important;
    margin: -12px -12px 10px !important;
    padding: 10px 12px !important;
    border-radius: 28px 28px 18px 18px !important;
    background: rgba(255, 253, 248, 0.94) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 14px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 18px !important;
    border-radius: 24px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-title-block h2 {
    font-size: clamp(1.7rem, 10vw, 2.7rem) !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-date-block {
    justify-self: stretch !important;
    width: 100% !important;
  }

  html body .app-shell .full-memory-capsule .sheet-photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .app-shell .full-memory-capsule .sheet-photo-gallery__item.is-cover {
    aspect-ratio: 4 / 3 !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-info-grid,
  html body .app-shell .full-memory-capsule .memory-capsule-actions {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-actions button {
    min-height: 48px !important;
  }

  html body .app-shell .photo-lightbox {
    padding: var(--mobile-safe-top) 10px var(--mobile-safe-bottom) !important;
    z-index: 1100 !important;
  }

  html body .app-shell .photo-lightbox-frame {
    width: calc(100vw - 20px) !important;
    max-width: none !important;
    max-height: calc(100dvh - var(--mobile-safe-top) - var(--mobile-safe-bottom)) !important;
    border-radius: 24px !important;
  }

  html body .app-shell .photo-lightbox-frame img,
  html body .app-shell .photo-lightbox-frame video {
    width: 100% !important;
    max-height: calc(100dvh - 156px) !important;
    object-fit: contain !important;
    background: transparent !important;
  }

  html body .app-shell .photo-lightbox-video-actions {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  html body .app-shell .memory-save-confirmation {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(var(--bottom-nav-height) + var(--mobile-safe-bottom) + 12px) !important;
    width: auto !important;
    max-width: none !important;
    z-index: 1000 !important;
  }
}

@media (max-width: 390px) {
  html body .app-shell .topbar {
    left: 8px !important;
    right: 8px !important;
    gap: 5px !important;
  }

  html body .app-shell .topbar .icon-button,
  html body .app-shell .topbar .avatar-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  html body .app-shell .brand {
    max-width: 126px !important;
    padding-inline: 9px !important;
  }

  html body .app-shell .brand h1 {
    font-size: clamp(1.08rem, 5.2vw, 1.36rem) !important;
  }

  html body .app-shell .bottom-nav {
    grid-template-columns: 1fr 1fr 56px 1fr 1fr !important;
  }

  html body .app-shell .bottom-nav-item {
    font-size: 0.61rem !important;
  }

  html body .app-shell .map-navigation-gadget {
    width: 98px !important;
    height: 98px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell *,
  html body .auth-gate * {
    scroll-behavior: auto !important;
  }
}

/* Memory capsule + save confidence v355: make saving and reliving feel special. */
html body .app-shell .full-memory-capsule .memory-capsule-kicker {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-bottom: 6px !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(232, 255, 249, 0.24) !important;
  border-radius: 999px !important;
  color: rgba(243, 255, 252, 0.86) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.11em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-save-strip {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: -2px 4px 10px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-save-strip span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 32px !important;
  padding: 7px 11px !important;
  border: 1px solid color-mix(in srgb, var(--sheet-accent) 18%, rgba(8, 70, 74, 0.08)) !important;
  border-radius: 999px !important;
  color: #0a4650 !important;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--sheet-accent) 13%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 10px 20px rgba(6, 64, 70, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  font-size: 0.76rem !important;
  font-weight: 860 !important;
  text-transform: capitalize !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-brand {
  color: #073b45 !important;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--sheet-accent) 16%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.74) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-pin {
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--sheet-accent) 12%, transparent),
    0 10px 18px color-mix(in srgb, var(--sheet-accent) 18%, transparent) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-date-block {
  color: #ffffff !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-date-block span {
  color: rgba(238, 255, 250, 0.72) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-date-block strong {
  color: #ffffff !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-media.has-media {
  position: relative !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-media.has-media::before {
  content: "" !important;
  position: absolute !important;
  inset: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 23px !important;
  pointer-events: none !important;
}

html body .app-shell .full-memory-capsule .memory-sheet-media-bar {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery,
html body .app-shell .full-memory-capsule .sheet-video-wrap {
  position: relative !important;
  z-index: 1 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story {
  border-color: color-mix(in srgb, var(--sheet-accent) 16%, rgba(10, 83, 78, 0.08)) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 5 !important;
  margin: 4px -4px -4px !important;
  padding: 10px 4px 4px !important;
  background: linear-gradient(180deg, transparent, rgba(255, 253, 248, 0.96) 34%) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-actions button {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-actions button:hover,
html body .app-shell .full-memory-capsule .memory-capsule-actions button:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow:
    0 16px 30px rgba(7, 58, 67, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
}

html body .app-shell .memory-save-confirmation {
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 78px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 10% 4%, rgba(132, 242, 196, 0.36), transparent 42%),
    radial-gradient(circle at 92% 0%, rgba(91, 215, 232, 0.22), transparent 40%),
    linear-gradient(135deg, rgba(3, 36, 50, 0.97), rgba(9, 91, 83, 0.95) 62%, rgba(14, 94, 129, 0.94)) !important;
  box-shadow:
    0 28px 64px rgba(3, 26, 39, 0.34),
    0 10px 24px rgba(9, 140, 122, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html body .app-shell .memory-save-confirmation > span {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
}

html body .app-shell .memory-save-confirmation strong {
  font-size: 1.02rem !important;
  letter-spacing: -0.01em !important;
}

html body .app-shell .memory-save-confirmation small {
  overflow: hidden !important;
  max-width: 100% !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .memory-confirmation-status {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

html body .app-shell .memory-confirmation-view {
  grid-column: 3 !important;
  grid-row: 2 !important;
  align-self: start !important;
  justify-self: end !important;
  min-height: 30px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(216, 255, 242, 0.22) !important;
  border-radius: 999px !important;
  color: #07343f !important;
  background: linear-gradient(135deg, #d8fff2, #84f2c4) !important;
  box-shadow: 0 10px 20px rgba(4, 30, 44, 0.18) !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

html body .app-shell .memory-save-confirmation.is-error,
html body .app-shell .memory-save-confirmation.is-delete {
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 185, 157, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(51, 24, 22, 0.97), rgba(103, 48, 43, 0.94)) !important;
}

@media (max-width: 760px) {
  html body .app-shell .full-memory-capsule .memory-capsule-save-strip {
    margin: 0 0 10px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-save-strip span {
    min-height: 30px !important;
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-actions {
    margin: 8px -8px -8px !important;
    padding: 18px 8px 8px !important;
  }

  html body .app-shell .memory-save-confirmation {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    min-height: 82px !important;
  }

  html body .app-shell .memory-save-confirmation small {
    white-space: normal !important;
  }

  html body .app-shell .memory-confirmation-status,
  html body .app-shell .memory-confirmation-view {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  html body .app-shell .memory-confirmation-status {
    grid-row: 3 !important;
  }

  html body .app-shell .memory-confirmation-view {
    grid-row: 4 !important;
    margin-top: 6px !important;
  }
}

/* Video upload clarity v356: videos stay videos, with a clear large-view action. */
html body .app-shell .memory-video-player {
  min-height: 190px !important;
  border: 1px solid rgba(214, 255, 244, 0.2) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(126, 233, 194, 0.18), transparent 42%),
    linear-gradient(135deg, #042432, #073f4d) !important;
  box-shadow:
    0 18px 42px rgba(2, 22, 34, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html body .app-shell .memory-card-video {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(190px, 30vh, 280px) !important;
  object-fit: contain !important;
  background: transparent !important;
}

html body .app-shell .memory-video-controls {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: none !important;
}

html body .app-shell .memory-video-controls > button {
  pointer-events: auto !important;
}

html body .app-shell .memory-video-open-large {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: rgba(4, 31, 45, 0.5) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22) !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

html body .app-shell .memory-video-player.is-playing .memory-video-open-large {
  opacity: 0.78 !important;
}

@media (max-width: 640px) {
  html body .app-shell .memory-card-video {
    min-height: 180px !important;
  }

  html body .app-shell .memory-video-open-large {
    right: 10px !important;
    bottom: 10px !important;
    min-height: 34px !important;
    padding-inline: 11px !important;
  }
}

/* Mobile map gadget fix v357: hidden on Home, exact 2x2 on Explore. */
@media (max-width: 760px) {
  html body .app-shell .map-stage:not(.map-focus) .map-navigation-gadget,
  html body .app-shell .map-stage.home-focus .map-navigation-gadget,
  html body .app-shell .map-stage.memories-focus .map-navigation-gadget,
  html body .app-shell .map-stage.profile-focus .map-navigation-gadget {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget {
    --mobile-map-gadget-size: 100px;
    --mobile-map-gadget-cell: 50px;
    position: fixed !important;
    right: 18px !important;
    bottom: calc(var(--bottom-nav-height, 78px) + var(--mobile-safe-bottom, 14px) + 18px) !important;
    display: grid !important;
    grid-template-columns: var(--mobile-map-gadget-cell) var(--mobile-map-gadget-cell) !important;
    grid-template-rows: var(--mobile-map-gadget-cell) var(--mobile-map-gadget-cell) !important;
    gap: 0 !important;
    width: var(--mobile-map-gadget-size) !important;
    height: var(--mobile-map-gadget-size) !important;
    min-width: var(--mobile-map-gadget-size) !important;
    min-height: var(--mobile-map-gadget-size) !important;
    max-width: var(--mobile-map-gadget-size) !important;
    max-height: var(--mobile-map-gadget-size) !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid rgba(218, 255, 246, 0.24) !important;
    border-radius: 22px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 620 !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(115, 232, 202, 0.18), transparent 45%),
      linear-gradient(145deg, rgba(10, 62, 76, 0.86), rgba(3, 24, 36, 0.82)) !important;
    box-shadow:
      0 20px 42px rgba(0, 14, 25, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(18px) saturate(1.14) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.14) !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget > *,
  html body .app-shell .map-stage.map-focus .map-navigation-gadget #locateButton,
  html body .app-shell .map-stage.map-focus .map-navigation-gadget #mapZoomInButton,
  html body .app-shell .map-stage.map-focus .map-navigation-gadget #mapZoomOutButton,
  html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: var(--mobile-map-gadget-cell) !important;
    height: var(--mobile-map-gadget-cell) !important;
    min-width: var(--mobile-map-gadget-cell) !important;
    min-height: var(--mobile-map-gadget-cell) !important;
    max-width: var(--mobile-map-gadget-cell) !important;
    max-height: var(--mobile-map-gadget-cell) !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #f5fffb !important;
    background: rgba(255, 255, 255, 0.075) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget #locateButton {
    grid-column: 1 !important;
    grid-row: 1 !important;
    border-right: 1px solid rgba(218, 255, 246, 0.16) !important;
    border-bottom: 1px solid rgba(218, 255, 246, 0.16) !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget #mapZoomInButton {
    grid-column: 2 !important;
    grid-row: 1 !important;
    border-bottom: 1px solid rgba(218, 255, 246, 0.16) !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass {
    grid-column: 1 !important;
    grid-row: 2 !important;
    border-right: 1px solid rgba(218, 255, 246, 0.16) !important;
    pointer-events: none !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget #mapZoomOutButton {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget #locateButton .locate-label {
    display: none !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget #locateButton [data-icon],
  html body .app-shell .map-stage.map-focus .map-navigation-gadget #locateButton svg {
    width: 21px !important;
    height: 21px !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-gadget-zoom-button {
    font-size: 1.35rem !important;
    font-weight: 920 !important;
    line-height: 1 !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass::before {
    top: 8px !important;
    left: 50% !important;
    width: 28px !important;
    height: 28px !important;
    transform: translateX(-50%) !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass-needle {
    top: 10px !important;
    left: 50% !important;
    height: 15px !important;
    transform-origin: 50% 14px !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass strong {
    top: 10px !important;
    font-size: 0.56rem !important;
  }
}

@media (max-width: 390px) {
  html body .app-shell .map-stage.map-focus .map-navigation-gadget {
    --mobile-map-gadget-size: 94px;
    --mobile-map-gadget-cell: 47px;
    right: 16px !important;
  }
}

/* Memory Lane compact stats v358. */
html body .app-shell .memory-lane-stats {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 12px 0 18px !important;
}

html body .app-shell .memory-lane-stat {
  display: grid !important;
  min-width: 0 !important;
  min-height: 76px !important;
  align-content: center !important;
  gap: 6px !important;
  padding: 12px 13px !important;
  border: 1px solid rgba(23, 95, 92, 0.1) !important;
  border-radius: 18px !important;
  color: #123f49 !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(122, 231, 184, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.82), rgba(231, 249, 244, 0.72)) !important;
  box-shadow:
    0 12px 28px rgba(6, 64, 70, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .memory-lane-stat strong {
  overflow: hidden !important;
  color: #0f5860 !important;
  font-size: clamp(1.05rem, 1.9vw, 1.34rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .memory-lane-stat span {
  color: rgba(24, 71, 82, 0.68) !important;
  font-size: 0.72rem !important;
  font-weight: 830 !important;
  line-height: 1.15 !important;
}

@media (max-width: 1100px) {
  html body .app-shell .memory-lane-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  html body .app-shell .memory-lane-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 10px 0 14px !important;
  }

  html body .app-shell .memory-lane-stat {
    min-height: 68px !important;
    padding: 10px 11px !important;
    border-radius: 16px !important;
  }
}

/* Mobile memories full-list guard v359. */
@media (max-width: 760px) {
  html body .app-shell .map-stage.memories-focus .memory-database-page {
    position: fixed !important;
    inset: calc(var(--mobile-safe-top, env(safe-area-inset-top)) + 58px) 10px calc(var(--bottom-nav-height, 78px) + var(--mobile-safe-bottom, env(safe-area-inset-bottom)) + 12px) 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList,
  html body .app-shell .map-stage.memories-focus .pin-database-list,
  html body .app-shell .map-stage.memories-focus .memory-journal-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    gap: 14px !important;
    overflow: visible !important;
    padding-bottom: calc(var(--bottom-nav-height, 78px) + var(--mobile-safe-bottom, env(safe-area-inset-bottom)) + 24px) !important;
  }

  html body .app-shell .map-stage.memories-focus .memory-card,
  html body .app-shell .map-stage.memories-focus .memory-lane-card {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body .app-shell .memory-storage-status.compact {
    grid-column: 1 / -1 !important;
  }
}

/* Memory Lane header stats integration v360. */
html body .app-shell .memory-lane-summary-header {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.74fr) !important;
  align-items: stretch !important;
  gap: clamp(18px, 3vw, 28px) !important;
}

html body .app-shell .memory-lane-header-copy {
  display: grid !important;
  min-width: 0 !important;
  align-content: start !important;
  gap: 14px !important;
}

html body .app-shell .memory-lane-header-stats {
  display: grid !important;
  min-width: 0 !important;
  align-items: stretch !important;
}

html body .app-shell .memory-lane-header-stats .memory-lane-stats {
  align-self: stretch !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
}

html body .app-shell .memory-lane-header-stats .memory-lane-stat {
  min-height: 62px !important;
  padding: 10px 11px !important;
  border-color: rgba(212, 255, 243, 0.18) !important;
  color: #f5fffb !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(157, 246, 220, 0.2), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08)) !important;
  box-shadow:
    0 12px 28px rgba(0, 15, 24, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

html body .app-shell .memory-lane-header-stats .memory-lane-stat strong {
  color: #f8fffb !important;
  font-size: clamp(0.96rem, 1.45vw, 1.16rem) !important;
}

html body .app-shell .memory-lane-header-stats .memory-lane-stat span {
  color: rgba(224, 255, 247, 0.72) !important;
  font-size: 0.68rem !important;
}

@media (max-width: 960px) {
  html body .app-shell .memory-lane-summary-header {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .app-shell .memory-lane-header-stats .memory-lane-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  html body .app-shell .memory-lane-summary-header {
    gap: 14px !important;
  }

  html body .app-shell .memory-lane-header-stats .memory-lane-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .app-shell .memory-lane-header-stats .memory-lane-stat {
    min-height: 58px !important;
    border-radius: 15px !important;
  }
}

/* Mobile database stale-list fix v361: never cap visible memories. */
@media (max-width: 760px) {
  html body .app-shell .map-stage.memories-focus #memoryList .memory-card,
  html body .app-shell .map-stage.memories-focus #memoryList .memory-card.rich,
  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card,
  html body .app-shell .map-stage.memories-focus #memoryList .memory-journal-card {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    transform: none !important;
  }
}

/* Today Memory image fill v362: cover the whole photo frame. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo.has-photo-slideshow {
  display: block !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #0b4a58, #14946f) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo-frame,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo img,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo-frame {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Memory Lane simplification v364: one calm premium journal header. */
html body .app-shell .map-stage.memories-focus .memory-lane-summary-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr) !important;
  gap: clamp(14px, 2.2vw, 22px) !important;
  align-items: stretch !important;
  padding: clamp(18px, 3vw, 28px) !important;
  border: 1px solid rgba(212, 255, 244, 0.2) !important;
  border-radius: 30px !important;
  color: #f7fffb !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(135, 237, 198, 0.24), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(90, 181, 218, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(4, 49, 61, 0.94), rgba(9, 111, 85, 0.88)) !important;
  box-shadow:
    0 24px 58px rgba(0, 20, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html body .app-shell .memory-lane-hero-main,
html body .app-shell .memory-lane-utility-card {
  display: grid !important;
  min-width: 0 !important;
  gap: 14px !important;
  align-content: start !important;
}

html body .app-shell .memory-lane-kicker {
  width: fit-content !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(213, 255, 244, 0.22) !important;
  border-radius: 999px !important;
  color: rgba(229, 255, 248, 0.78) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-size: 0.72rem !important;
  font-weight: 920 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html body .app-shell .memory-lane-title-row-premium {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: clamp(14px, 2.4vw, 24px) !important;
  align-items: end !important;
}

html body .app-shell .memory-lane-title-row-premium strong {
  display: block !important;
  color: #ffffff !important;
  font-size: clamp(2rem, 4.3vw, 3.55rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 0.96 !important;
}

html body .app-shell .memory-lane-title-row-premium p {
  max-width: 650px !important;
  margin: 8px 0 0 !important;
  color: rgba(230, 255, 248, 0.78) !important;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem) !important;
  font-weight: 560 !important;
  line-height: 1.45 !important;
}

html body .app-shell .memory-lane-create-button {
  min-height: 48px !important;
  padding: 0 22px !important;
  white-space: nowrap !important;
  color: #063844 !important;
  background: linear-gradient(135deg, #d9fff2, #91f0ff) !important;
  box-shadow:
    0 18px 36px rgba(0, 18, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

html body .app-shell .memory-lane-header-stats {
  display: block !important;
}

html body .app-shell .memory-lane-header-stats .memory-lane-stats {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 4px 0 0 !important;
}

html body .app-shell .memory-lane-header-stats .memory-lane-stat {
  min-height: 58px !important;
  padding: 10px 11px !important;
  border-radius: 16px !important;
  border-color: rgba(212, 255, 244, 0.14) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 18, 28, 0.08) !important;
}

html body .app-shell .memory-lane-header-stats .memory-lane-stat strong {
  color: #f9fffc !important;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem) !important;
}

html body .app-shell .memory-lane-header-stats .memory-lane-stat span {
  color: rgba(226, 255, 248, 0.7) !important;
  font-size: 0.66rem !important;
}

html body .app-shell .memory-lane-utility-card {
  align-self: stretch !important;
  padding: 14px !important;
  border: 1px solid rgba(218, 255, 246, 0.18) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html body .app-shell .memory-lane-status-strip {
  display: grid !important;
  gap: 8px !important;
}

html body .app-shell .memory-lane-status-strip span {
  display: block !important;
  min-width: 0 !important;
  padding: 9px 10px !important;
  overflow: hidden !important;
  border: 1px solid rgba(218, 255, 246, 0.14) !important;
  border-radius: 14px !important;
  color: rgba(239, 255, 251, 0.8) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .memory-lane-utility-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

html body .app-shell .memory-lane-utility-actions .secondary-button,
html body .app-shell .memory-lane-tools summary {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(218, 255, 246, 0.18) !important;
  border-radius: 999px !important;
  color: #f4fffb !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  font-size: 0.82rem !important;
  font-weight: 880 !important;
  cursor: pointer !important;
}

html body .app-shell .memory-lane-tools {
  position: relative !important;
}

html body .app-shell .memory-lane-tools summary {
  list-style: none !important;
}

html body .app-shell .memory-lane-tools summary::-webkit-details-marker {
  display: none !important;
}

html body .app-shell .memory-lane-tools-panel {
  position: absolute !important;
  z-index: 20 !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  display: grid !important;
  width: min(260px, 76vw) !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid rgba(10, 85, 85, 0.1) !important;
  border-radius: 20px !important;
  background: rgba(248, 255, 252, 0.96) !important;
  box-shadow: 0 20px 46px rgba(0, 18, 28, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html body .app-shell .memory-lane-tools-panel .secondary-button {
  justify-content: center !important;
  width: 100% !important;
  color: #123f49 !important;
  background: rgba(255, 255, 255, 0.84) !important;
}

html body .app-shell .memory-lane-tools-panel .secondary-button.danger-soft {
  color: #8f2f3d !important;
  background: rgba(255, 241, 242, 0.9) !important;
}

@media (max-width: 1120px) {
  html body .app-shell .memory-lane-header-stats .memory-lane-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  html body .app-shell .map-stage.memories-focus .memory-lane-summary-header {
    grid-template-columns: minmax(0, 1fr) !important;
    border-radius: 24px !important;
    padding: 16px !important;
  }

  html body .app-shell .memory-lane-title-row-premium {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }

  html body .app-shell .memory-lane-create-button {
    width: 100% !important;
    justify-content: center !important;
  }

  html body .app-shell .memory-lane-header-stats .memory-lane-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .app-shell .memory-lane-utility-actions {
    align-items: stretch !important;
  }

  html body .app-shell .memory-lane-utility-actions .secondary-button,
  html body .app-shell .memory-lane-tools,
  html body .app-shell .memory-lane-tools summary {
    flex: 1 1 120px !important;
    justify-content: center !important;
  }

  html body .app-shell .memory-lane-tools-panel {
    right: auto !important;
    left: 0 !important;
  }
}

/* Mobile add-memory editor fix v365: keep the card centered and fully visible. */
@media (max-width: 760px) {
  html body .app-shell .memory-editor,
  html body .app-shell .memory-editor.open {
    position: fixed !important;
    top: max(72px, calc(env(safe-area-inset-top) + 62px)) !important;
    right: 10px !important;
    bottom: calc(var(--bottom-nav-height, 82px) + max(16px, env(safe-area-inset-bottom)) + 12px) !important;
    left: 10px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  html body .app-shell .memory-editor.open {
    display: block !important;
    opacity: 1 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 780 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .app-shell .memory-editor:not(.open) {
    pointer-events: none !important;
  }
}

/* Memory Lane v366: hide unfinished view tabs so the journal stays focused. */
html body .app-shell .map-stage.memories-focus .memory-database-page > .tabs {
  display: none !important;
}

html body .app-shell .map-stage.memories-focus #timelineView,
html body .app-shell .map-stage.memories-focus #statsView,
html body .app-shell .map-stage.memories-focus #listsView {
  display: none !important;
}

/* Explore pins v367: premium SVG MyMappi memory pins. */
html body .app-shell .map-stage.map-focus .leaflet-marker-icon {
  overflow: visible !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--marker-color, #18a978) !important;
  cursor: pointer !important;
  isolation: isolate !important;
  transform: translateZ(0) scale(1) !important;
  transform-origin: 50% 92% !important;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 180ms ease,
    opacity 180ms ease !important;
  will-change: transform !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory::before,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory::after {
  display: none !important;
  content: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-svg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  filter:
    drop-shadow(0 12px 16px rgba(3, 19, 28, 0.22))
    drop-shadow(0 0 8px color-mix(in srgb, var(--marker-color, #18a978) 20%, transparent)) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-shadow {
  fill: rgba(2, 18, 28, 0.26) !important;
  filter: blur(1px) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-body {
  fill: var(--marker-color, #18a978) !important;
  stroke: rgba(255, 255, 255, 0.96) !important;
  stroke-width: 3.4px !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-inner {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 84%, #ffffff 16%) !important;
  opacity: 0.9 !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-shine {
  fill: rgba(255, 255, 255, 0.46) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-center {
  fill: rgba(255, 255, 255, 0.94) !important;
  stroke: rgba(255, 255, 255, 0.68) !important;
  stroke-width: 1.5px !important;
  filter: drop-shadow(0 3px 6px rgba(2, 18, 28, 0.14)) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-symbol {
  display: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-glow {
  position: absolute !important;
  z-index: 0 !important;
  inset: 12% 10% 2% !important;
  display: block !important;
  border-radius: 999px !important;
  background: var(--marker-color, #18a978) !important;
  opacity: 0 !important;
  filter: blur(18px) saturate(1.12) !important;
  transform: translateZ(0) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face {
  position: absolute !important;
  z-index: 4 !important;
  top: 28% !important;
  left: 50% !important;
  display: grid !important;
  width: clamp(12px, 52%, 30px) !important;
  height: clamp(12px, 52%, 30px) !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--marker-color, #18a978) 72%, #06343e 28%) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: clamp(0.62rem, 42%, 1rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translate(-50%, -50%) translateZ(0) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face > span {
  color: color-mix(in srgb, var(--marker-color, #18a978) 72%, #06343e 28%) !important;
  transform: translateY(-1px) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face img,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .marker-photo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 2px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  box-shadow: 0 3px 8px rgba(2, 18, 28, 0.18) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-detail {
  position: absolute !important;
  z-index: 8 !important;
  bottom: calc(100% + 10px) !important;
  left: 50% !important;
  display: grid !important;
  width: max-content !important;
  max-width: 210px !important;
  gap: 2px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(218, 255, 246, 0.26) !important;
  border-radius: 14px !important;
  color: #f8fffc !important;
  background: linear-gradient(145deg, rgba(5, 45, 56, 0.92), rgba(7, 89, 76, 0.86)) !important;
  box-shadow: 0 14px 30px rgba(0, 18, 28, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(6px) scale(0.96) !important;
  transition: opacity 160ms ease, transform 160ms ease !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-detail strong {
  color: #ffffff !important;
  font-size: 0.78rem !important;
  font-weight: 940 !important;
  line-height: 1.12 !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-detail em {
  color: rgba(229, 255, 248, 0.72) !important;
  font-size: 0.66rem !important;
  font-style: normal !important;
  font-weight: 680 !important;
  line-height: 1.2 !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory:hover,
html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory:focus-within {
  transform: translateY(-4px) translateZ(0) scale(1.06) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory:hover .memory-marker-detail,
html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory:focus-within .memory-marker-detail {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory .memory-marker-face,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory .memory-marker-face {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.5) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory .memory-pin-center,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory .memory-pin-center {
  opacity: 0.72 !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory .memory-marker-detail,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory .memory-marker-detail,
html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-emotion-memory .memory-marker-detail {
  display: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new) .memory-marker-glow,
html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new) .memory-marker-glow {
  opacity: 0.46 !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new) {
  animation: myMappiFavoritePinBreath 5.8s ease-in-out infinite !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new):not(.is-favorite-memory) {
  animation: myMappiRecentPinBreath 7.2s ease-in-out infinite !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-emotion-memory,
html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-emotion-memory .memory-marker-glow,
html body .app-shell .map-stage.map-focus.map-performance-mode .memory-marker.is-emotion-memory,
html body .app-shell .map-stage.map-focus.map-performance-mode .memory-marker.is-emotion-memory .memory-marker-glow {
  animation: none !important;
  transition-duration: 0ms !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-emotion-memory .memory-marker-detail,
html body .app-shell .map-stage.map-focus.map-performance-mode .memory-marker.is-emotion-memory .memory-marker-detail {
  display: none !important;
  opacity: 0 !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster,
html body .app-shell .map-stage.map-focus .memory-cluster-marker {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(231, 255, 249, 0.48) !important;
  border-radius: 22px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 74% 76%, color-mix(in srgb, var(--marker-color, #18a978) 26%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(4, 45, 58, 0.92), rgba(5, 87, 76, 0.82)) !important;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--marker-color, #18a978) 10%, transparent),
    0 12px 28px rgba(0, 18, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(12px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.12) !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  color: #ffffff !important;
  font-size: clamp(0.95rem, 40%, 1.2rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-shadow: 0 0 14px color-mix(in srgb, var(--marker-color, #18a978) 62%, transparent) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster small {
  color: rgba(230, 255, 248, 0.74) !important;
  font-size: 0.52rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

@keyframes myMappiFavoritePinBreath {
  0%, 76%, 100% { transform: translateZ(0) scale(1); filter: saturate(1); }
  12% { transform: translateY(-2px) translateZ(0) scale(1.045); filter: saturate(1.1); }
}

@keyframes myMappiRecentPinBreath {
  0%, 80%, 100% { transform: translateZ(0) scale(1); }
  14% { transform: translateY(-1px) translateZ(0) scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory,
  html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new),
  html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new) {
    animation: none !important;
    transition: none !important;
  }
}

/* Explore pins v368: remove the extra shadow around the marker pin. */
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-svg {
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-shadow {
  display: none !important;
  opacity: 0 !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory {
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-center,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face img,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .marker-photo {
  filter: none !important;
  box-shadow: none !important;
}

/* Mobile Memory Lane photos v369: keep photos visible inside the database cards. */
@media (max-width: 760px) {
  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card {
    overflow: hidden !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-cover {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    background:
      radial-gradient(circle at 20% 12%, rgba(141, 238, 196, 0.26), transparent 34%),
      linear-gradient(135deg, rgba(223, 250, 241, 0.98), rgba(214, 240, 255, 0.96)) !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-cover-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background:
      radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.92), transparent 36%),
      linear-gradient(135deg, #e9fff7, #dcefff) !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-cover-shade {
    background: linear-gradient(180deg, transparent 42%, rgba(3, 34, 42, 0.72) 100%) !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-cover-copy {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    max-width: none !important;
    padding: 10px 11px !important;
    border-radius: 16px !important;
    background: rgba(2, 32, 41, 0.62) !important;
    backdrop-filter: blur(12px) saturate(1.1) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.1) !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-cover-copy strong {
    font-size: clamp(1rem, 5vw, 1.22rem) !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-cover-copy small {
    font-size: 0.72rem !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-media {
    overflow: visible !important;
    padding: 14px !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-photo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-photo-tile {
    min-width: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 14px !important;
    background:
      radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.92), transparent 38%),
      linear-gradient(135deg, #effff9, #e4f3ff) !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-photo-tile img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background:
      radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.82), transparent 40%),
      linear-gradient(135deg, #f1fff9, #e2f0ff) !important;
  }
}

/* Explore pins v370: slimmer premium memory markers with no white marker box. */
html body .app-shell .map-stage.map-focus .leaflet-div-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-svg {
  filter:
    drop-shadow(0 7px 10px rgba(2, 18, 28, 0.18))
    drop-shadow(0 0 7px color-mix(in srgb, var(--marker-color, #18a978) 18%, transparent)) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-body {
  stroke: rgba(255, 255, 255, 0.46) !important;
  stroke-width: 1.45px !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-inner {
  opacity: 0.78 !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-center {
  fill: rgba(255, 255, 255, 0.2) !important;
  stroke: rgba(255, 255, 255, 0.42) !important;
  stroke-width: 0.8px !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face {
  top: 28.5% !important;
  width: clamp(10px, 43%, 22px) !important;
  height: clamp(10px, 43%, 22px) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 5px rgba(0, 18, 28, 0.28) !important;
  font-size: clamp(0.52rem, 36%, 0.82rem) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face > span {
  color: #ffffff !important;
  transform: translateY(-0.5px) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face img,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .marker-photo {
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  background: color-mix(in srgb, var(--marker-color, #18a978) 24%, rgba(255, 255, 255, 0.18)) !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory .memory-marker-face,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory .memory-marker-face {
  opacity: 0 !important;
}

/* Mobile Memory Lane media v371: show the full photo set clearly on phones. */
@media (max-width: 760px) {
  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-main,
  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-media {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-media-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-photo-tile {
    aspect-ratio: 4 / 3 !important;
  }

  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-photo-tile:nth-child(1):nth-last-child(n + 3),
  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-lane-photo-tile:nth-child(5n) {
    grid-column: span 2 !important;
    aspect-ratio: 16 / 10 !important;
  }
}

/* Explore pins v372: keep close-zoom pins visible and tappable. */
html body .app-shell .map-stage.map-focus .leaflet-div-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-marker-icon.mymappi-memory-pin-icon {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: max(44px, 112%) !important;
  height: max(48px, 112%) !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 999px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-street .mymappi-memory-pin-icon {
  min-width: 48px !important;
  min-height: 66px !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory {
  width: 100% !important;
  height: 100% !important;
  min-width: 48px !important;
  min-height: 66px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: translateZ(0) scale(1) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory .memory-pin-svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  transform: none !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory .memory-pin-body,
html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory .memory-pin-inner,
html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory .memory-pin-shine,
html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory .memory-pin-center {
  opacity: 1 !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory .memory-marker-face {
  opacity: 1 !important;
  width: clamp(16px, 42%, 22px) !important;
  height: clamp(16px, 42%, 22px) !important;
  pointer-events: none !important;
}

/* Explore pins v373: fully remove white photo/default boxes from memory pins. */
html body .app-shell .map-stage.map-focus .leaflet-marker-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-div-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-marker-icon:has(.memory-marker.is-emotion-memory),
html body .app-shell .map-stage.map-focus .leaflet-div-icon:has(.memory-marker.is-emotion-memory) {
  overflow: visible !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-body {
  stroke: color-mix(in srgb, var(--marker-color, #18a978) 72%, rgba(255, 255, 255, 0.28)) !important;
  stroke-width: 1px !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-center {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 72%, #062c3c 28%) !important;
  stroke: rgba(255, 255, 255, 0.18) !important;
  stroke-width: 0.65px !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face img,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .marker-photo {
  display: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face > span {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

/* Mobile Memory Lane photo loading v374: load images as they scroll into view. */
html body .app-shell .map-stage.memories-focus .memory-lane-lazy-image {
  opacity: 0 !important;
  transition: opacity 220ms ease !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-lazy-image.is-loaded {
  opacity: 1 !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-lazy-image.has-load-error {
  opacity: 0.25 !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-cover:has(.memory-lane-lazy-image:not(.is-loaded)),
html body .app-shell .map-stage.memories-focus .memory-lane-photo-tile:has(.memory-lane-lazy-image:not(.is-loaded)) {
  background:
    radial-gradient(circle at 24% 14%, rgba(255, 255, 255, 0.68), transparent 38%),
    linear-gradient(135deg, #e9fff6, #dcefff) !important;
}

/* Explore pins v375: natural map pins with no halo/shadow artifacts. */
html body .app-shell .map-stage.map-focus .leaflet-marker-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-div-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon {
  overflow: visible !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory,
html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new),
html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new),
html body .app-shell .map-stage.map-focus .memory-marker.is-old-memory:not(.is-new) {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory::before,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory::after,
html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new)::before,
html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new)::after,
html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new)::before,
html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new)::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-svg {
  filter: none !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-shadow,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-glow,
html body .app-shell .map-stage.map-focus .memory-marker.is-favorite-memory:not(.is-new) .memory-marker-glow,
html body .app-shell .map-stage.map-focus .memory-marker.is-recent-memory:not(.is-new) .memory-marker-glow,
html body .app-shell .map-stage.map-focus .memory-marker.is-old-memory:not(.is-new) .memory-marker-glow {
  display: none !important;
  opacity: 0 !important;
  filter: none !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-body {
  stroke: color-mix(in srgb, var(--marker-color, #18a978) 78%, rgba(255, 255, 255, 0.2)) !important;
  stroke-width: 0.8px !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-center,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face > span {
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-emotion-memory {
  transform: translateZ(0) scale(1) !important;
}

/* Explore pins v376: simplified stable location markers. */
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory {
  transform-origin: 50% 96% !important;
  transition: transform 120ms ease, opacity 120ms ease !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-svg {
  overflow: visible !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-body {
  fill: var(--marker-color, #18a978) !important;
  stroke: color-mix(in srgb, var(--marker-color, #18a978) 60%, #073442 40%) !important;
  stroke-width: 1.1px !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-inner {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 88%, #ffffff 12%) !important;
  opacity: 0.92 !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-shine {
  fill: rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-center {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 64%, #083346 36%) !important;
  stroke: rgba(255, 255, 255, 0.14) !important;
  stroke-width: 0.5px !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face {
  top: 28.5% !important;
  width: clamp(13px, 38%, 18px) !important;
  height: clamp(13px, 38%, 18px) !important;
  font-size: clamp(0.56rem, 31%, 0.76rem) !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face > span {
  color: rgba(255, 255, 255, 0.96) !important;
  transform: translateY(-0.5px) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .memory-marker.is-emotion-memory,
html body .app-shell .map-stage.map-focus.map-performance-mode .memory-marker.is-emotion-memory {
  transition: none !important;
}

/* Explore pins v377: make every memory/search/place pin use the same clean marker body. */
html body .app-shell .map-stage.map-focus .mymappi-place-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-marker-icon.mymappi-place-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-div-icon.mymappi-place-pin-icon {
  overflow: visible !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory.pin-heart .memory-marker-face,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory.pin-coffee .memory-marker-face,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory.pin-adventure .memory-marker-face,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory.pin-music .memory-marker-face,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory.pin-memory .memory-marker-face,
html body .app-shell .map-stage.map-focus .mymappi-place-marker .memory-marker-face {
  width: clamp(13px, 38%, 18px) !important;
  height: clamp(13px, 38%, 18px) !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
  transform: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory.pin-coffee .memory-marker-face::before,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory.pin-coffee .memory-marker-face::after,
html body .app-shell .map-stage.map-focus .mymappi-place-marker .memory-marker-face::before,
html body .app-shell .map-stage.map-focus .mymappi-place-marker .memory-marker-face::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  animation: none !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .mymappi-place-marker,
html body .app-shell .map-stage.map-focus .mymappi-place-marker::before,
html body .app-shell .map-stage.map-focus .mymappi-place-marker::after,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory.pin-adventure,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory.pin-music,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory.pin-coffee,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory.pin-heart {
  box-shadow: none !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .mymappi-place-marker::before,
html body .app-shell .map-stage.map-focus .mymappi-place-marker::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

html body .app-shell .map-stage.map-focus .mymappi-place-marker .memory-pin-body {
  fill: var(--marker-color, #18a978) !important;
  stroke: color-mix(in srgb, var(--marker-color, #18a978) 60%, #073442 40%) !important;
  stroke-width: 1.1px !important;
}

html body .app-shell .map-stage.map-focus .mymappi-place-marker .memory-pin-inner {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 88%, #ffffff 12%) !important;
  opacity: 0.92 !important;
}

html body .app-shell .map-stage.map-focus .mymappi-place-marker .memory-pin-shine {
  fill: rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.map-focus .mymappi-place-marker .memory-pin-center {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 64%, #083346 36%) !important;
  stroke: rgba(255, 255, 255, 0.14) !important;
  stroke-width: 0.5px !important;
}

/* Explore pins v378: lock each pin's visual tip to its exact map coordinate while zooming. */
html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-marker-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-div-icon.mymappi-memory-pin-icon {
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: visible !important;
  will-change: auto !important;
}

html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon .memory-marker.is-emotion-memory,
html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory,
html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-emotion-memory,
html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: translateZ(0) scale(1) !important;
  transform-origin: 50% 91.6667% !important;
}

html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon .memory-pin-svg {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  filter: none !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-marker.is-emotion-memory .memory-marker-face,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-marker.is-emotion-memory .memory-marker-face {
  display: none !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-city .memory-marker.is-emotion-memory .memory-marker-face,
html body .app-shell .map-stage.map-focus.memory-zoom-street .memory-marker.is-emotion-memory .memory-marker-face {
  display: grid !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-stacked-memory-pin,
html body .app-shell .map-stage.map-focus .memory-marker.is-stacked-memory-pin .memory-marker-glow {
  box-shadow: none !important;
  filter: none !important;
}

/* Current location v380: thinner white rim on the blue location dot. */
html body .app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location {
  box-sizing: border-box !important;
  border-width: 1.5px !important;
}

/* Current location v381: visibly slimmer, cleaner exact-location dot. */
html body .app-shell .user-location-marker-shell.live-user-location-marker {
  width: 28px !important;
  height: 28px !important;
  filter:
    drop-shadow(0 5px 9px rgba(3, 34, 76, 0.2))
    drop-shadow(0 0 7px rgba(35, 145, 255, 0.16)) !important;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location {
  width: 16px !important;
  height: 16px !important;
  margin: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.96) !important;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.78), transparent 16%),
    linear-gradient(145deg, #5bd8ff 0%, #248cff 50%, #1056e8 100%) !important;
  box-shadow:
    inset 0 -3px 6px rgba(4, 51, 145, 0.22),
    0 0 0 1px rgba(56, 161, 255, 0.1),
    0 0 11px rgba(36, 140, 255, 0.24) !important;
}

html body .app-shell .user-location-marker.is-current-location::before {
  inset: -8px !important;
  border-color: rgba(67, 166, 255, 0.22) !important;
  background: rgba(46, 151, 255, 0.055) !important;
  box-shadow: 0 0 12px rgba(37, 140, 255, 0.12) !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-ripple {
  inset: -7px !important;
  border-color: rgba(81, 182, 255, 0.18) !important;
  background: rgba(57, 163, 255, 0.04) !important;
}

/* Explore pins v382: remove any square shade/halo from marker wrappers. */
html body .app-shell .map-stage.map-focus .maplibregl-marker.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-marker-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-div-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-marker-icon:has(.memory-marker.is-emotion-memory),
html body .app-shell .map-stage.map-focus .leaflet-div-icon:has(.memory-marker.is-emotion-memory) {
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon::before,
html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon::after,
html body .app-shell .map-stage.map-focus .leaflet-marker-icon.mymappi-memory-pin-icon::before,
html body .app-shell .map-stage.map-focus .leaflet-marker-icon.mymappi-memory-pin-icon::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory::before,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory::after,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-svg,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-center,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-face > span {
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-marker-glow,
html body .app-shell .map-stage.map-focus .memory-marker.is-emotion-memory .memory-pin-shadow {
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Explore clusters v383: no square cards around grouped pins. */
html body .app-shell .map-stage.map-focus .memory-cluster-marker,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster,
html body .app-shell .map-stage.map-focus.memory-zoom-world .memory-cluster-marker.constellation-cluster,
html body .app-shell .map-stage.map-focus.memory-zoom-country .memory-cluster-marker.constellation-cluster {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  place-items: center !important;
  border: 1.5px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.68), transparent 18%),
    linear-gradient(145deg,
      color-mix(in srgb, var(--marker-color, #18a978) 86%, #ffffff 14%),
      var(--marker-color, #18a978)) !important;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--marker-color, #18a978) 12%, transparent),
    0 0 12px color-mix(in srgb, var(--marker-color, #18a978) 22%, transparent) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker::before,
html body .app-shell .map-stage.map-focus .memory-cluster-marker::after,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster::before,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-stars,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-stars,
html body .app-shell .map-stage.map-focus .memory-cluster-marker small,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster small {
  display: none !important;
}

/* Explore v433 final: no visible numbers on grouped memory pins. */
html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-count,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  display: none !important;
}

/* Explore v433 final: no visible numbers on grouped memory pins. */
html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-count,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  display: none !important;
}

/* Home v432: calmer Memory Echo hierarchy and wording alignment. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .home-section-heading {
  justify-items: center !important;
  text-align: center !important;
  gap: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading > strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .home-section-heading > strong {
  max-width: min(520px, 100%) !important;
  color: rgba(12, 56, 68, 0.7) !important;
  font-size: clamp(0.86rem, 1.35vw, 1rem) !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid {
  align-items: stretch !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
  min-height: 156px !important;
  padding: 16px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy {
  max-width: 100% !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy small {
  text-transform: none !important;
  color: rgba(8, 77, 84, 0.74) !important;
  background: rgba(235, 251, 246, 0.92) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy strong {
  max-width: 100% !important;
  color: #083642 !important;
  font-size: clamp(1rem, 1.55vw, 1.15rem) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy em,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy em {
  max-width: 27ch !important;
  margin-inline: auto !important;
  color: rgba(12, 62, 74, 0.68) !important;
  font-size: 0.82rem !important;
}

/* Explore v433: keep close-pin grouping, but hide the visible number. */
html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-count,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  display: none !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-count,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(0.72rem, 42%, 0.95rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

/* Explore pins v384: remove cluster squares completely. */
html body .app-shell .map-stage.map-focus .memory-cluster-marker,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster,
html body .app-shell .map-stage.map-focus .maplibregl-marker:has(.memory-cluster-marker) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Explore pins v385: render memory pins as a bare SVG only, no square wrapper. */
html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .maplibregl-marker.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-marker-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-div-icon.mymappi-memory-pin-icon {
  display: block !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: visible !important;
  transform: translateZ(0) !important;
  transform-origin: 50% 91.6667% !important;
  cursor: pointer !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only::before,
html body .app-shell .map-stage.map-focus .mymappi-pin-only::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-svg {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-body {
  fill: var(--marker-color, #18a978) !important;
  stroke: color-mix(in srgb, var(--marker-color, #18a978) 62%, #063442 38%) !important;
  stroke-width: 1.15px !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-inner {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 88%, #ffffff 12%) !important;
  opacity: 0.92 !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-shine {
  fill: rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-center {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 64%, #083346 36%) !important;
  stroke: rgba(255, 255, 255, 0.16) !important;
  stroke-width: 0.55px !important;
  box-shadow: none !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-symbol {
  display: block !important;
  fill: rgba(255, 255, 255, 0.96) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  pointer-events: none !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .mymappi-pin-only .memory-pin-symbol,
html body .app-shell .map-stage.map-focus.memory-zoom-country .mymappi-pin-only .memory-pin-symbol {
  display: none !important;
}

/* Explore pins v386: premium color, scale, and interaction polish for bare pins. */
html body .app-shell .map-stage.map-focus .mymappi-pin-only {
  transition:
    opacity 150ms ease,
    transform 150ms ease !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-body {
  stroke: color-mix(in srgb, var(--marker-color, #18a978) 58%, #042d39 42%) !important;
  stroke-width: 1.25px !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-inner {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 82%, #ffffff 18%) !important;
  opacity: 0.94 !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-shine {
  fill: rgba(255, 255, 255, 0.34) !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-center {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 68%, #062b36 32%) !important;
  stroke: rgba(255, 255, 255, 0.2) !important;
  stroke-width: 0.65px !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-symbol {
  font-size: 13.5px !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .mymappi-pin-only .memory-pin-center {
  opacity: 0.75 !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-country .mymappi-pin-only .memory-pin-center {
  opacity: 0.88 !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-city .mymappi-pin-only .memory-pin-symbol {
  font-size: 12px !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-street .mymappi-pin-only:hover,
html body .app-shell .map-stage.map-focus.memory-zoom-street .mymappi-pin-only:focus-within {
  transform: translateY(-2px) translateZ(0) scale(1.06) !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-feeling-muted {
  opacity: 0.34 !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-feeling-match .memory-pin-body,
html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-favorite-memory .memory-pin-body {
  stroke: color-mix(in srgb, var(--marker-color, #18a978) 52%, #ffffff 48%) !important;
  stroke-width: 1.65px !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-recent-memory:not(.is-favorite-memory) .memory-pin-inner {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 72%, #ffffff 28%) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .mymappi-pin-only,
html body .app-shell .map-stage.map-focus.map-performance-mode .mymappi-pin-only {
  transition: none !important;
  transform: translateZ(0) scale(1) !important;
}

/* Explore pins v387: keep every pin the same visual size. */
html body .app-shell .map-stage.map-focus .mymappi-pin-only,
html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-favorite-memory,
html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-recent-memory,
html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-feeling-match,
html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-stacked-memory-pin,
html body .app-shell .map-stage.map-focus.memory-zoom-street .mymappi-pin-only:hover,
html body .app-shell .map-stage.map-focus.memory-zoom-street .mymappi-pin-only:focus-within {
  transform: translateZ(0) scale(1) !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-body,
html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-favorite-memory .memory-pin-body,
html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-recent-memory .memory-pin-body,
html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-feeling-match .memory-pin-body {
  stroke-width: 1.25px !important;
}

/* Explore pins v388: premium internal details, same pin size. */
html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-rim {
  fill: none !important;
  stroke: rgba(255, 255, 255, 0.55) !important;
  stroke-width: 1.35px !important;
  vector-effect: non-scaling-stroke !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-body {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 94%, #ffffff 6%) !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-inner {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 72%, #ffffff 28%) !important;
  opacity: 0.9 !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-center {
  fill: rgba(255, 255, 255, 0.94) !important;
  stroke: color-mix(in srgb, var(--marker-color, #18a978) 72%, #06313d 28%) !important;
  stroke-width: 0.9px !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-core {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 74%, #06313d 26%) !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-symbol {
  fill: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .mymappi-pin-only .memory-pin-rim,
html body .app-shell .map-stage.map-focus.memory-zoom-country .mymappi-pin-only .memory-pin-rim {
  stroke-width: 1.1px !important;
  stroke: rgba(255, 255, 255, 0.42) !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .mymappi-pin-only .memory-pin-core,
html body .app-shell .map-stage.map-focus.memory-zoom-country .mymappi-pin-only .memory-pin-core {
  display: none !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-favorite-memory .memory-pin-rim,
html body .app-shell .map-stage.map-focus .mymappi-pin-only.is-feeling-match .memory-pin-rim {
  stroke: rgba(255, 255, 255, 0.72) !important;
}

/* Memory journey v389: make opening a pin feel like traveling back to the moment. */
.memory-journey-toast {
  position: absolute;
  z-index: 34;
  left: 50%;
  bottom: 118px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
  width: min(430px, calc(100% - 34px));
  padding: 12px 14px;
  border: 1px solid rgba(175, 230, 215, 0.22);
  border-radius: 22px;
  color: #f7fffb;
  background:
    linear-gradient(135deg, rgba(11, 38, 50, 0.92), rgba(18, 86, 80, 0.82)),
    radial-gradient(circle at 18% 0%, rgba(94, 213, 180, 0.28), transparent 45%);
  box-shadow: 0 22px 56px rgba(0, 16, 28, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px) scale(0.985);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.2, 0.85, 0.22, 1);
  backdrop-filter: blur(20px) saturate(1.25);
}

.memory-journey-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.memory-journey-path {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.memory-journey-path::before {
  content: "";
  position: absolute;
  width: 37px;
  height: 37px;
  border: 1px dashed rgba(232, 255, 248, 0.5);
  border-radius: 50%;
  animation: journeyRouteSpin 4.8s linear infinite;
}

.memory-journey-path span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #86f0d0;
  box-shadow: 0 0 14px rgba(126, 240, 208, 0.75);
}

.memory-journey-path span:nth-child(1) {
  transform: translate(-13px, 10px);
}

.memory-journey-path span:nth-child(2) {
  transform: translate(2px, -2px);
  animation-delay: 160ms;
}

.memory-journey-path span:nth-child(3) {
  transform: translate(14px, -13px);
  animation-delay: 320ms;
}

.memory-journey-copy {
  min-width: 0;
}

.memory-journey-kicker,
.memory-journey-copy small {
  display: block;
  color: rgba(224, 248, 241, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.memory-journey-copy strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-journey-copy small {
  overflow: hidden;
  margin-top: 4px;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.memory-journey-pin {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  font-size: 1.15rem;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.56), transparent 28%),
    color-mix(in srgb, var(--journey-color, #18a978) 84%, #06313d 16%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 24px rgba(0, 0, 0, 0.22);
}

.map-stage.map-focus.memory-camera-shot #map {
  filter: saturate(1.07) contrast(1.02);
}

@keyframes journeyRouteSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .memory-journey-toast {
    bottom: 96px;
    grid-template-columns: 38px minmax(0, 1fr) 40px;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 19px;
  }

  .memory-journey-path,
  .memory-journey-pin {
    width: 38px;
    height: 38px;
  }

  .memory-journey-copy strong {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memory-journey-toast,
  .memory-journey-path::before,
  .memory-journey-path span {
    animation: none !important;
    transition: none !important;
  }
}

/* Memory Lane v390: previews stay clean; Relive becomes the main action. */
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-body {
  padding: clamp(14px, 2.2vw, 22px) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-main {
  padding: clamp(14px, 2vw, 18px) !important;
  border-radius: 24px !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-actions-row {
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-saved-label {
  align-self: center !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-actions {
  display: grid !important;
  grid-template-columns: minmax(170px, 1.25fr) minmax(82px, 0.48fr) minmax(82px, 0.48fr) !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 10px !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action {
  display: inline-grid !important;
  min-height: 48px !important;
  place-items: center !important;
  padding: 10px 14px !important;
  text-align: center !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action {
  position: relative !important;
  isolation: isolate !important;
  min-height: 62px !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  letter-spacing: 0 !important;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.36), transparent 32%),
    linear-gradient(135deg, #063f55 0%, #0b7f87 44%, #19ad78 100%) !important;
  box-shadow:
    0 18px 34px rgba(13, 121, 105, 0.28),
    0 0 0 1px rgba(212, 255, 243, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action::after {
  content: "" !important;
  position: absolute !important;
  inset: -60% -18% !important;
  z-index: -1 !important;
  background: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, 0.28) 42%, transparent 58%) !important;
  transform: translateX(-54%) rotate(6deg) !important;
  transition: transform 560ms ease !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action:hover::after,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action:focus-visible::after {
  transform: translateX(54%) rotate(6deg) !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action span,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action small {
  display: block !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action span {
  color: #ffffff !important;
  font-size: 1.02rem !important;
  font-weight: 980 !important;
  line-height: 1 !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action small {
  margin-top: 5px !important;
  color: rgba(229, 255, 247, 0.76) !important;
  font-size: 0.68rem !important;
  font-weight: 820 !important;
  letter-spacing: 0.02em !important;
}

html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action.needs-location {
  grid-column: 1 / -1 !important;
}

@media (max-width: 760px) {
  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-actions-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-actions {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(74px, 0.42fr)) !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action {
    min-height: 56px !important;
  }
}

@media (max-width: 480px) {
  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action {
    width: 100% !important;
  }
}

/* Memory Lane v391: premium flashcard archive layout. */
html body .app-shell .map-stage.memories-focus .memory-lane-summary-header {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.3fr) !important;
  gap: clamp(12px, 2vw, 18px) !important;
  padding: clamp(16px, 2.4vw, 22px) !important;
  border-radius: 26px !important;
  box-shadow:
    0 18px 46px rgba(0, 20, 28, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-title-row-premium p {
  max-width: 680px !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card {
  display: grid !important;
  gap: 0 !important;
  overflow: hidden !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--memory-accent, #18a978) 10%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 252, 249, 0.96)) !important;
  box-shadow:
    0 18px 42px rgba(0, 22, 28, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-main {
  display: grid !important;
  grid-template-columns: clamp(128px, 18vw, 184px) minmax(0, 1fr) !important;
  gap: clamp(14px, 2.2vw, 22px) !important;
  align-items: center !important;
  padding: clamp(14px, 2.2vw, 20px) !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 25% 15%, color-mix(in srgb, var(--memory-accent, #18a978) 28%, #ffffff 72%), transparent 38%),
    linear-gradient(145deg, #0b4c57, #16a06f) !important;
  box-shadow:
    0 14px 28px rgba(8, 54, 62, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-image,
html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-empty {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-empty {
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-empty span {
  font-size: 2rem !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover-empty strong {
  display: none !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 8px !important;
  align-content: center !important;
  color: #082f3b !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy .memory-lane-feeling {
  width: fit-content !important;
  min-height: 28px !important;
  padding: 6px 10px !important;
  border: 1px solid color-mix(in srgb, var(--memory-accent, #18a978) 22%, transparent) !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--memory-accent, #18a978) 70%, #06343e) !important;
  background: color-mix(in srgb, var(--memory-accent, #18a978) 10%, #ffffff 90%) !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy strong {
  display: block !important;
  overflow: hidden !important;
  color: #082f3b !important;
  font-size: clamp(1.18rem, 2.2vw, 1.7rem) !important;
  font-weight: 950 !important;
  line-height: 1.06 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy small {
  display: block !important;
  overflow: hidden !important;
  color: rgba(8, 48, 59, 0.64) !important;
  font-size: 0.88rem !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy .memory-lane-saved-label {
  margin-top: 4px !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-action-dock {
  padding: 12px clamp(14px, 2.2vw, 20px) clamp(14px, 2.2vw, 20px) !important;
  border-top: 1px solid rgba(8, 75, 76, 0.07) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(238, 250, 246, 0.72)) !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-actions {
  display: grid !important;
  grid-template-columns: minmax(160px, 1fr) minmax(76px, 0.32fr) minmax(76px, 0.32fr) !important;
  gap: 9px !important;
  align-items: stretch !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action {
  min-height: 42px !important;
  border-radius: 15px !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action {
  min-height: 50px !important;
  border-radius: 17px !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action span {
  font-size: 0.98rem !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action small {
  display: none !important;
}

@media (max-width: 680px) {
  html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-main {
    grid-template-columns: 108px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover {
    border-radius: 18px !important;
  }

  html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy strong {
    font-size: 1.08rem !important;
  }

  html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy small {
    font-size: 0.78rem !important;
    white-space: normal !important;
  }

  html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-actions {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(62px, 0.36fr)) !important;
  }
}

/* Memory media uploader v392: drag, drop, preview, save. */
html body .app-shell .memory-media-dropzone {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1.5px dashed color-mix(in srgb, var(--editor-accent, #18a978) 42%, rgba(10, 68, 72, 0.16));
  border-radius: 22px;
  color: #0b3b48;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--editor-accent, #18a978) 14%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 251, 247, 0.74));
  box-shadow:
    0 14px 30px rgba(8, 54, 62, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  cursor: pointer;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

html body .app-shell .memory-media-dropzone:focus-visible,
html body .app-shell .memory-media-dropzone.is-dragging {
  border-color: color-mix(in srgb, var(--editor-accent, #18a978) 72%, #ffffff);
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--editor-accent, #18a978) 24%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(226, 251, 243, 0.86));
  box-shadow:
    0 18px 38px rgba(8, 89, 84, 0.14),
    0 0 0 4px color-mix(in srgb, var(--editor-accent, #18a978) 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transform: translateY(-1px);
}

html body .app-shell .memory-media-dropzone.is-busy {
  opacity: 0.82;
  pointer-events: none;
}

html body .app-shell .memory-media-dropzone.is-dragging .memory-media-dropzone-copy strong {
  color: color-mix(in srgb, var(--editor-accent, #18a978) 72%, #06343e);
}

html body .app-shell .memory-media-dropzone-copy {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
}

html body .app-shell .memory-media-dropzone-copy > span[data-icon] {
  display: grid;
  width: 42px;
  height: 42px;
  grid-row: span 2;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b7285, #18a978);
  box-shadow: 0 12px 24px rgba(12, 122, 113, 0.18);
}

html body .app-shell .memory-media-dropzone-copy strong {
  color: #0b3440;
  font-size: 1rem;
  font-weight: 940;
  line-height: 1.1;
}

html body .app-shell .memory-media-dropzone-copy small {
  color: rgba(11, 52, 64, 0.62);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

html body .app-shell .memory-media-dropzone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html body .app-shell .memory-media-dropzone-actions .secondary-button {
  min-height: 38px;
  border-color: rgba(10, 80, 81, 0.11);
  color: #0b3b48;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(8, 54, 62, 0.07);
}

html body .app-shell .memory-media-preview {
  display: flex;
  min-height: 38px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

html body .app-shell .memory-media-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(10, 80, 81, 0.08);
  border-radius: 999px;
  color: rgba(11, 52, 64, 0.62);
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 820;
}

html body .app-shell .memory-media-thumb,
html body .app-shell .memory-media-video,
html body .app-shell .memory-media-more {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 9px 18px rgba(8, 54, 62, 0.1);
}

html body .app-shell button.memory-media-thumb,
html body .app-shell button.memory-media-video {
  padding: 0;
  cursor: pointer;
}

html body .app-shell .memory-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html body .app-shell .memory-media-broken-label {
  display: none;
  color: #0b3b48;
  font-size: 0.68rem;
  font-weight: 950;
}

html body .app-shell .memory-media-thumb.is-broken img {
  display: none;
}

html body .app-shell .memory-media-thumb.is-broken .memory-media-broken-label {
  display: block;
}

html body .app-shell .memory-media-thumb.is-cover::after,
html body .app-shell .memory-media-thumb small {
  position: absolute;
}

html body .app-shell .memory-media-thumb small {
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(4, 37, 45, 0.74);
  font-size: 0.56rem;
  font-weight: 900;
}

html body .app-shell .memory-media-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 28, 36, 0.78);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24);
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
  opacity: 0.92;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

html body .app-shell .memory-media-thumb:hover .memory-media-remove,
html body .app-shell .memory-media-video:hover .memory-media-remove,
html body .app-shell .memory-media-thumb:focus-visible .memory-media-remove,
html body .app-shell .memory-media-video:focus-visible .memory-media-remove {
  opacity: 1;
  background: rgba(178, 45, 55, 0.9);
  transform: scale(1.05);
}

html body .app-shell .memory-media-video {
  color: #f9fffb;
  background: linear-gradient(135deg, #063f55, #18a978);
}

html body .app-shell .memory-media-video small {
  max-width: 44px;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

html body .app-shell .memory-media-more {
  color: #0b3b48;
  font-size: 0.9rem;
  font-weight: 950;
}

@media (max-width: 560px) {
  html body .app-shell .memory-media-dropzone {
    padding: 13px;
    border-radius: 19px;
  }

  html body .app-shell .memory-media-dropzone-copy {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  html body .app-shell .memory-media-dropzone-copy > span[data-icon] {
    width: 36px;
    height: 36px;
    border-radius: 14px;
  }
}

/* Memory editor save action v393: center the final Save Memory button. */
html body .app-shell .memory-editor .editor-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  gap: 10px !important;
  margin-top: 18px !important;
  text-align: center !important;
}

html body .app-shell .memory-editor .editor-actions .save-step {
  justify-self: center !important;
}

html body .app-shell .memory-editor .editor-actions .primary-button {
  grid-row: 2 !important;
  justify-self: center !important;
  width: min(360px, 100%) !important;
  min-height: 56px !important;
  border-radius: 999px !important;
}

html body .app-shell .memory-editor .editor-actions #deleteButton {
  grid-row: 3 !important;
  justify-self: center !important;
  min-height: 38px !important;
  opacity: 0.82 !important;
}

/* Memory media v394: simple premium media area with advanced links tucked away. */
html body .app-shell .memory-media-hidden-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

html body .app-shell .memory-media-advanced {
  border: 1px solid rgba(10, 80, 81, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html body .app-shell .memory-media-advanced summary {
  min-height: 42px;
  padding: 11px 14px;
  color: rgba(11, 52, 64, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

html body .app-shell .memory-media-advanced[open] summary {
  border-bottom: 1px solid rgba(10, 80, 81, 0.08);
}

html body .app-shell .memory-media-link-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
}

html body .app-shell .memory-flow-media {
  gap: 12px;
}

/* Explore pin click reliability v398: one click/tap opens the memory. */
html body .app-shell .map-stage.map-focus .maplibregl-marker.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-marker-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-div-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .mymappi-pin-only,
html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-svg {
  pointer-events: auto !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
}

/* Memory capsule actions v397: premium action dock, not crowded buttons. */
html body .app-shell .full-memory-capsule .memory-capsule-actions,
html body main.app-shell .full-memory-capsule .memory-capsule-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  margin: 10px -4px -4px !important;
  padding: 14px 4px 4px !important;
  border-top: 1px solid rgba(8, 75, 76, 0.06) !important;
  background:
    linear-gradient(180deg, transparent, rgba(255, 253, 248, 0.98) 34%) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-primary,
html body main.app-shell .full-memory-capsule .memory-capsule-action-primary {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 64px !important;
  padding: 11px 15px !important;
  border: 1px solid rgba(215, 255, 243, 0.28) !important;
  border-radius: 22px !important;
  color: #ffffff !important;
  text-align: left !important;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, #063f55 0%, #0b7f87 45%, #18a978 100%) !important;
  box-shadow:
    0 18px 38px rgba(10, 116, 108, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-primary > span:first-child,
html body main.app-shell .full-memory-capsule .memory-capsule-action-primary > span:first-child {
  display: grid !important;
  width: 46px !important;
  height: 46px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-primary strong,
html body main.app-shell .full-memory-capsule .memory-capsule-action-primary strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 970 !important;
  line-height: 1.05 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-primary small,
html body main.app-shell .full-memory-capsule .memory-capsule-action-primary small {
  display: block !important;
  margin-top: 4px !important;
  color: rgba(229, 255, 247, 0.78) !important;
  font-size: 0.74rem !important;
  font-weight: 760 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-row,
html body main.app-shell .full-memory-capsule .memory-capsule-action-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-pill,
html body main.app-shell .full-memory-capsule .memory-capsule-action-pill {
  display: grid !important;
  grid-template-columns: 18px minmax(0, auto) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 42px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(8, 75, 76, 0.08) !important;
  border-radius: 16px !important;
  color: #0b3b48 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 251, 247, 0.76)) !important;
  box-shadow:
    0 10px 20px rgba(8, 54, 62, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  font-size: 0.78rem !important;
  font-weight: 920 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-pill.is-hearted,
html body main.app-shell .full-memory-capsule .memory-capsule-action-pill.is-hearted {
  color: #a3293d !important;
  border-color: rgba(240, 82, 101, 0.2) !important;
  background: linear-gradient(180deg, rgba(255, 247, 248, 0.96), rgba(255, 224, 229, 0.72)) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-pill.danger,
html body main.app-shell .full-memory-capsule .memory-capsule-action-pill.danger {
  color: #8e332c !important;
  border-color: rgba(177, 56, 42, 0.13) !important;
  background: linear-gradient(180deg, rgba(255, 249, 246, 0.92), rgba(255, 235, 230, 0.7)) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-actions button:hover,
html body .app-shell .full-memory-capsule .memory-capsule-actions button:focus-visible,
html body main.app-shell .full-memory-capsule .memory-capsule-actions button:hover,
html body main.app-shell .full-memory-capsule .memory-capsule-actions button:focus-visible {
  transform: translateY(-1px) !important;
}

@media (max-width: 620px) {
  html body .app-shell .full-memory-capsule .memory-capsule-action-row,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-action-primary,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-primary {
    min-height: 58px !important;
    border-radius: 20px !important;
  }
}

/* Create memory v399: keep Explore's wake screen behind the instant + memory editor. */
html body .app-shell .map-stage.map-focus.create-memory-over-wake .map-wake-overlay {
  z-index: 20 !important;
  opacity: 0.72;
  pointer-events: none !important;
}

html body .app-shell .map-stage.map-focus.create-memory-over-wake .map-wake-card {
  opacity: 0.82;
  transform: translateY(18px) scale(0.965);
  filter: saturate(0.9);
}

html body .app-shell .map-stage.map-focus.create-memory-over-wake .memory-editor.open {
  z-index: 780 !important;
}

/* Memory capsule actions v400: split route actions from memory management. */
html body .app-shell .full-memory-capsule .memory-capsule-action-dock,
html body main.app-shell .full-memory-capsule .memory-capsule-action-dock {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  margin: 12px -2px -4px !important;
  padding: 16px 2px 4px !important;
  border-top: 1px solid rgba(8, 75, 76, 0.07) !important;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 253, 248, 0.98) 28%, rgba(255, 253, 248, 1) 100%) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-group,
html body main.app-shell .full-memory-capsule .memory-capsule-action-group {
  display: grid !important;
  gap: 8px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-label,
html body main.app-shell .full-memory-capsule .memory-capsule-action-label {
  color: #31525b !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-route-selector,
html body main.app-shell .full-memory-capsule .memory-capsule-route-selector {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  padding: 5px !important;
  border: 1px solid rgba(8, 75, 76, 0.08) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(241, 250, 247, 0.94), rgba(230, 244, 239, 0.72)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-route-choice,
html body main.app-shell .full-memory-capsule .memory-capsule-route-choice {
  display: inline-grid !important;
  grid-template-columns: 20px minmax(0, auto) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 48px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(8, 75, 76, 0.08) !important;
  border-radius: 18px !important;
  color: #0a4f5d !important;
  background: rgba(255, 255, 255, 0.66) !important;
  box-shadow: none !important;
  font-size: 0.88rem !important;
  font-weight: 940 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-route-choice.is-selected,
html body main.app-shell .full-memory-capsule .memory-capsule-route-choice.is-selected {
  color: #ffffff !important;
  border-color: rgba(218, 255, 247, 0.32) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.3), transparent 36%),
    linear-gradient(135deg, #063f55 0%, #087d86 48%, #18a978 100%) !important;
  box-shadow:
    0 14px 28px rgba(10, 116, 108, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-memory-controls,
html body main.app-shell .full-memory-capsule .memory-capsule-memory-controls {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-memory-controls .memory-capsule-action-pill,
html body main.app-shell .full-memory-capsule .memory-capsule-memory-controls .memory-capsule-action-pill {
  min-height: 40px !important;
  border-radius: 15px !important;
  font-size: 0.76rem !important;
}

@media (max-width: 420px) {
  html body .app-shell .full-memory-capsule .memory-capsule-route-choice,
  html body main.app-shell .full-memory-capsule .memory-capsule-route-choice {
    min-height: 44px !important;
    padding-inline: 9px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-memory-controls,
  html body main.app-shell .full-memory-capsule .memory-capsule-memory-controls {
    gap: 7px !important;
  }
}

/* Today's Memory v401: cinematic Apple Photos-style hero card. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card {
  position: relative !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card::before,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card::before {
  position: absolute !important;
  z-index: -1 !important;
  inset: 8% 7% -4% !important;
  content: "" !important;
  border-radius: 42px !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(75, 185, 170, 0.18), transparent 42%),
    radial-gradient(circle at 72% 72%, rgba(31, 78, 121, 0.16), transparent 48%) !important;
  filter: blur(18px) !important;
  opacity: 0.9 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-card {
  gap: clamp(10px, 1.7vw, 15px) !important;
  padding: clamp(14px, 2.2vw, 20px) !important;
  border: 1px solid rgba(214, 251, 239, 0.56) !important;
  border-radius: 34px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(244, 252, 248, 0.84)),
    radial-gradient(circle at 14% 0%, rgba(51, 170, 142, 0.12), transparent 38%) !important;
  box-shadow:
    0 24px 58px rgba(7, 64, 68, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.52) inset !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .memory-day-topline {
  margin-bottom: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-name-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-date-pill,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-name-pill,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-date-pill {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .home-kicker {
  color: #0e4f58 !important;
  background: rgba(255, 253, 248, 0.68) !important;
  box-shadow: 0 10px 22px rgba(10, 72, 68, 0.06) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-main {
  position: relative !important;
  display: grid !important;
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, #093f4f, #148b76) !important;
  box-shadow:
    0 18px 42px rgba(10, 72, 68, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo.has-photo-slideshow {
  grid-area: 1 / 1 !important;
  width: 100% !important;
  height: clamp(270px, 38vw, 390px) !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, #093f4f, #148b76) !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo::after,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo::after {
  position: absolute !important;
  inset: 42% 0 0 !important;
  z-index: 2 !important;
  content: "" !important;
  border-radius: 0 0 30px 30px !important;
  background:
    linear-gradient(180deg, rgba(6, 35, 46, 0), rgba(6, 49, 58, 0.56) 46%, rgba(4, 27, 35, 0.9) 100%),
    radial-gradient(circle at 18% 100%, rgba(24, 169, 120, 0.28), transparent 44%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo-frame,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo img,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo-frame {
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.01) !important;
  transition: transform 7s ease, opacity 360ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo img,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo-frame,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card:hover .today-memory-photo img,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card:hover .today-memory-photo-frame {
  transform: scale(1.035) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-copy {
  position: relative !important;
  z-index: 3 !important;
  grid-area: 1 / 1 !important;
  align-self: end !important;
  display: grid !important;
  gap: 7px !important;
  width: min(100%, 660px) !important;
  max-width: none !important;
  padding: clamp(22px, 4vw, 34px) !important;
  color: #ffffff !important;
  text-align: left !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-title,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-title {
  display: block !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(1.55rem, 4vw, 2.62rem) !important;
  font-weight: 970 !important;
  line-height: 1.02 !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy small,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-copy small {
  color: rgba(231, 255, 248, 0.86) !important;
  font-size: clamp(0.82rem, 1.6vw, 0.96rem) !important;
  font-weight: 820 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.36) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy p,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-copy p {
  max-width: 58ch !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: clamp(0.94rem, 1.8vw, 1.1rem) !important;
  font-weight: 620 !important;
  line-height: 1.42 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-photo-count,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-photo-dots {
  z-index: 4 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card,
  html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-card {
    border-radius: 28px !important;
    padding: 12px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow,
  html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-main,
  html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo,
  html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-photo.has-photo-slideshow {
    height: 250px !important;
    border-radius: 24px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy,
  html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-copy {
    padding: 20px !important;
  }
}

/* Home empty states v402: make Memory Echo and Recent Memories feel intentional, not blank. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .on-this-day-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .on-this-day-card {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(198, 245, 232, 0.58) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 164, 135, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.95), rgba(236, 250, 246, 0.86)) !important;
  box-shadow:
    0 18px 38px rgba(7, 64, 68, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .on-this-day-card::after,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .on-this-day-card::after {
  position: absolute !important;
  inset: auto 18px 14px auto !important;
  width: 74px !important;
  height: 74px !important;
  content: "" !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgba(31, 78, 121, 0.12), transparent 68%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .on-this-day-card.is-empty,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .on-this-day-card.is-empty {
  border-style: solid !important;
  background:
    radial-gradient(circle at 15% 20%, rgba(31, 78, 121, 0.14), transparent 38%),
    radial-gradient(circle at 88% 10%, rgba(24, 169, 120, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(236, 249, 245, 0.9)) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .echo-card-mark,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .echo-card-mark,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .timeline-empty-mark,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .timeline-empty-mark {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  border: 1px solid rgba(31, 78, 121, 0.1) !important;
  border-radius: 16px !important;
  color: #0b5961 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(226, 248, 241, 0.76)) !important;
  box-shadow: 0 10px 20px rgba(7, 64, 68, 0.08) !important;
  font-size: 1.05rem !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .on-this-day-card span strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .on-this-day-card span strong {
  color: #0b3642 !important;
  font-size: clamp(1rem, 1.9vw, 1.22rem) !important;
  font-weight: 960 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .on-this-day-card em,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .on-this-day-card em {
  color: rgba(19, 70, 82, 0.72) !important;
  line-height: 1.45 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .on-this-day-card small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .on-this-day-card small {
  border: 1px solid rgba(24, 169, 120, 0.15) !important;
  color: #0b5961 !important;
  background: rgba(235, 251, 246, 0.82) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-row,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-timeline-row {
  align-items: stretch !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-card.is-empty,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-timeline-card.is-empty {
  display: grid !important;
  grid-template-rows: auto auto auto !important;
  align-content: center !important;
  gap: 8px !important;
  min-width: min(260px, 78vw) !important;
  min-height: 150px !important;
  border: 1px solid rgba(198, 245, 232, 0.55) !important;
  color: #0b3b48 !important;
  background:
    radial-gradient(circle at 20% 4%, rgba(24, 169, 120, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(236, 250, 246, 0.88)) !important;
  box-shadow: 0 16px 34px rgba(7, 64, 68, 0.08) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-card.is-empty.is-guide,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-timeline-card.is-empty.is-guide {
  background:
    radial-gradient(circle at 82% 0%, rgba(31, 78, 121, 0.13), transparent 42%),
    linear-gradient(145deg, rgba(248, 253, 250, 0.96), rgba(230, 246, 247, 0.88)) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-card.is-empty strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-timeline-card.is-empty strong {
  color: #0b3642 !important;
  font-size: 0.98rem !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-card.is-empty small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-timeline-card.is-empty small {
  color: rgba(19, 70, 82, 0.68) !important;
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
}

/* Memory Database v403: cleaner lane header and compact premium flashcards. */
html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header,
html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header {
  display: block !important;
  padding: clamp(18px, 2.7vw, 26px) !important;
  border-radius: 30px !important;
  border: 1px solid rgba(202, 250, 236, 0.22) !important;
  color: #f8fffb !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(119, 235, 193, 0.24), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(88, 174, 209, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(5, 50, 61, 0.96), rgba(6, 104, 94, 0.9)) !important;
  box-shadow:
    0 22px 58px rgba(0, 20, 28, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-hero-main,
html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-hero-main {
  display: grid !important;
  gap: 14px !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-title-row-premium,
html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-title-row-premium {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: end !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-title-row-premium strong,
html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-title-row-premium strong {
  color: #ffffff !important;
  font-size: clamp(1.55rem, 3.2vw, 2.5rem) !important;
  font-weight: 970 !important;
  line-height: 1.02 !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-title-row-premium p,
html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-title-row-premium p {
  max-width: 720px !important;
  color: rgba(234, 255, 249, 0.78) !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-header-stats .memory-lane-stats,
html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-header-stats .memory-lane-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-header-stats .memory-lane-stat,
html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-header-stats .memory-lane-stat {
  min-height: 62px !important;
  padding: 10px !important;
  border-color: rgba(221, 255, 247, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-status-strip,
html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-status-strip {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-status-strip span,
html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-status-strip span {
  width: auto !important;
  min-height: 30px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(221, 255, 247, 0.12) !important;
  border-radius: 999px !important;
  color: rgba(238, 255, 250, 0.82) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-size: 0.72rem !important;
  font-weight: 830 !important;
}

html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-utility-actions,
html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-utility-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card {
  border: 1px solid rgba(10, 92, 83, 0.08) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--memory-accent, #18a978) 9%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(244, 252, 249, 0.97)) !important;
  box-shadow:
    0 14px 32px rgba(0, 22, 28, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-main,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-main {
  display: grid !important;
  grid-template-columns: clamp(104px, 14vw, 142px) minmax(0, 1fr) minmax(190px, 0.32fr) !important;
  gap: clamp(12px, 1.9vw, 18px) !important;
  align-items: center !important;
  padding: clamp(12px, 1.9vw, 16px) !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover {
  border-radius: 20px !important;
  box-shadow:
    0 10px 20px rgba(8, 54, 62, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy {
  gap: 6px !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-mini-meta,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-mini-meta {
  display: block !important;
  overflow: hidden !important;
  color: rgba(8, 48, 59, 0.54) !important;
  font-size: 0.76rem !important;
  font-style: normal !important;
  font-weight: 780 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-action-dock,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-action-dock {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-actions,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .relive-memory-action {
  grid-column: 1 / -1 !important;
  min-height: 48px !important;
  border-radius: 17px !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action {
  min-height: 38px !important;
  padding: 9px 10px !important;
}

html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action.needs-location,
html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-card-action.needs-location {
  grid-column: 1 / -1 !important;
}

@media (max-width: 860px) {
  html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-title-row-premium,
  html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-title-row-premium {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-header-stats .memory-lane-stats,
  html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-header-stats .memory-lane-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-main,
  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-main {
    grid-template-columns: 104px minmax(0, 1fr) !important;
  }

  html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-action-dock,
  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-action-dock {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 520px) {
  html body .app-shell .map-stage.memories-focus .memory-lane-redesign-header .memory-lane-header-stats .memory-lane-stats,
  html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-header-stats .memory-lane-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-main,
  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-flashcard-main {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover,
  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card .memory-lane-cover {
    border-radius: 16px !important;
  }
}

/* Today's Memory v405: remove the pale square holder and let the photo be the hero. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-card {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .memory-day-topline {
  margin: 0 0 12px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-main {
  box-shadow:
    0 24px 54px rgba(7, 64, 68, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card,
  html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card .today-memory-card {
    padding: 0 !important;
  }
}

/* Today's Memory v406: remove every leftover outer square/pseudo frame. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay.home-section,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.home-section,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay.memory-of-day-card {
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay::before,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay::after,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card::before,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card::after,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay::before,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay::after,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay .today-memory-card::before,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay .today-memory-card::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card,
html body main.app-shell section.map-stage.home-focus section#homeMemoryOfDay .today-memory-card {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Memory Database v407: turn saved memories into premium square flashcards. */
html body .app-shell .map-stage.memories-focus #memoryList .pin-database-list.memory-journal-list,
html body main.app-shell section.map-stage.memories-focus #memoryList .pin-database-list.memory-journal-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: clamp(14px, 2vw, 20px) !important;
  align-items: stretch !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  border: 1px solid rgba(9, 78, 78, 0.1) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--memory-accent, #18a978) 13%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(242, 251, 247, 0.97)) !important;
  box-shadow:
    0 18px 38px rgba(0, 26, 31, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-flashcard-main,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-flashcard-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr auto !important;
  gap: 12px !important;
  align-items: stretch !important;
  height: 100% !important;
  padding: 12px !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-cover,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-cover {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 23px !important;
  background:
    radial-gradient(circle at 28% 16%, color-mix(in srgb, var(--memory-accent, #18a978) 28%, #ffffff 72%), transparent 38%),
    linear-gradient(145deg, #0b4c57, #16a06f) !important;
  box-shadow:
    0 14px 26px rgba(8, 54, 62, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-cover-image,
html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-cover-empty,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-cover-image,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-cover-empty {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy {
  align-content: start !important;
  min-height: 132px !important;
  padding: 2px 3px 0 !important;
  text-align: left !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy .memory-lane-feeling,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy .memory-lane-feeling {
  margin-bottom: 2px !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy strong,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: #082f3b !important;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem) !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy small,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-flashcard-copy small,
html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-mini-meta,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-mini-meta {
  white-space: normal !important;
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-action-dock,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-action-dock {
  align-self: stretch !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-card-actions,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-card-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .relive-memory-action,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .relive-memory-action {
  grid-column: 1 / -1 !important;
  min-height: 50px !important;
  border-radius: 18px !important;
}

html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-card-action,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-card-action {
  min-height: 40px !important;
  border-radius: 15px !important;
}

/* Memory Database v418: keep Relive, Edit, and Delete touchable above the flashcard media. */
html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-action-dock,
html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-card-actions,
html body .app-shell .map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-card-action,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-lane-action-dock,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-card-actions,
html body main.app-shell section.map-stage.memories-focus #memoryList article.memory-card.rich.memory-lane-card .memory-card-action {
  position: relative !important;
  z-index: 30 !important;
  pointer-events: auto !important;
}

@media (max-width: 620px) {
  html body .app-shell .map-stage.memories-focus #memoryList .pin-database-list.memory-journal-list,
  html body main.app-shell section.map-stage.memories-focus #memoryList .pin-database-list.memory-journal-list {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)) !important;
  }
}

/* Home v412: premium empty invitation for Today's Memory. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today {
  display: grid !important;
  gap: clamp(12px, 2vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
  position: relative !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: start !important;
  gap: clamp(18px, 3vw, 28px) !important;
  width: min(100%, 760px) !important;
  min-height: clamp(250px, 34vw, 335px) !important;
  margin: 0 auto !important;
  padding: clamp(24px, 4vw, 38px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(225, 255, 246, 0.38) !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(255, 200, 87, 0.13), transparent 30%),
    linear-gradient(135deg, #073845 0%, #0a6f73 54%, #19a978 100%) !important;
  box-shadow:
    0 24px 58px rgba(5, 48, 58, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::before,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::before {
  position: absolute !important;
  inset: auto -18% -38% 22% !important;
  height: 58% !important;
  content: "" !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  width: clamp(96px, 15vw, 132px) !important;
  height: clamp(96px, 15vw, 132px) !important;
  margin: 0 !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.42), transparent 36%),
    rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    0 22px 42px rgba(2, 24, 34, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph::before,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph::before {
  width: clamp(46px, 7vw, 62px) !important;
  height: clamp(46px, 7vw, 62px) !important;
  border: 4px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 50% 50% 50% 0 !important;
  content: "" !important;
  background: linear-gradient(180deg, #ff7b72 0%, #ef343f 100%) !important;
  box-shadow:
    0 16px 28px rgba(239, 52, 63, 0.28),
    0 0 0 9px rgba(255, 255, 255, 0.08) !important;
  transform: rotate(-45deg) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph::after,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph::after {
  width: clamp(12px, 1.7vw, 16px) !important;
  height: clamp(12px, 1.7vw, 16px) !important;
  background: #fff !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  justify-items: start !important;
  gap: 8px !important;
  max-width: 500px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title {
  max-width: 14ch !important;
  color: #ffffff !important;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem) !important;
  font-weight: 920 !important;
  line-height: 0.98 !important;
  text-shadow: 0 16px 38px rgba(0, 17, 25, 0.38) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy small,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy small {
  color: rgba(235, 255, 249, 0.82) !important;
  font-size: clamp(0.82rem, 1.45vw, 0.96rem) !important;
  font-weight: 780 !important;
  text-shadow: 0 8px 22px rgba(0, 17, 25, 0.34) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p {
  max-width: 38ch !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(0.98rem, 1.8vw, 1.16rem) !important;
  font-weight: 560 !important;
  line-height: 1.42 !important;
  text-shadow: 0 10px 28px rgba(0, 17, 25, 0.34) !important;
  -webkit-line-clamp: 3 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 290px !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 14px !important;
    padding: 22px 18px !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph {
    display: grid !important;
    width: 86px !important;
    height: 86px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy {
    justify-items: center !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title {
    max-width: 13ch !important;
    font-size: clamp(1.48rem, 7.5vw, 2.1rem) !important;
  }
}

/* Home v413: give Today's Memory a true hero size without overwhelming Home. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  width: min(100%, 960px) !important;
  margin-inline: auto !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  width: 100% !important;
  max-width: 920px !important;
  min-height: clamp(330px, 42vw, 420px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
  height: clamp(330px, 42vw, 420px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
  width: min(100%, 920px) !important;
  min-height: clamp(330px, 42vw, 410px) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-main,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
    min-height: 0 !important;
    height: clamp(300px, 76vw, 350px) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
    min-height: clamp(300px, 76vw, 350px) !important;
  }
}

/* Explore v415: make Relive feel like a slow journey into the memory. */
html body .app-shell .map-stage.memory-relive-journey .memory-journey-toast,
html body main.app-shell section.map-stage.memory-relive-journey .memory-journey-toast {
  transform: translateX(-50%) translateY(0) scale(1.02) !important;
  border-color: rgba(217, 255, 245, 0.24) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(72, 211, 164, 0.18), transparent 40%),
    linear-gradient(135deg, rgba(4, 36, 48, 0.86), rgba(5, 93, 86, 0.78)) !important;
  box-shadow:
    0 24px 58px rgba(0, 20, 30, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .map-stage.memory-relive-journey .memory-journey-kicker,
html body main.app-shell section.map-stage.memory-relive-journey .memory-journey-kicker {
  color: rgba(226, 255, 248, 0.78) !important;
}

html body .app-shell .map-stage.memory-search-journey .memory-journey-toast,
html body main.app-shell section.map-stage.memory-search-journey .memory-journey-toast {
  transform: translateX(-50%) translateY(0) scale(0.96) !important;
  opacity: 0.94 !important;
}

html body .app-shell .map-stage.memory-search-journey .memory-journey-copy strong,
html body main.app-shell section.map-stage.memory-search-journey .memory-journey-copy strong {
  font-size: 0.92rem !important;
}

html body .app-shell .memory-bottom-sheet.relive-opening.open .memory-sheet-card.full-memory-capsule,
html body main.app-shell .memory-bottom-sheet.relive-opening.open .memory-sheet-card.full-memory-capsule {
  animation: mymappiReliveCapsuleOpen 1150ms cubic-bezier(0.18, 0.82, 0.2, 1) both !important;
  transform-origin: 50% 96% !important;
}

@keyframes mymappiReliveCapsuleOpen {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.965);
    filter: blur(8px);
  }
  54% {
    opacity: 1;
    transform: translateY(-3px) scale(1.006);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .memory-bottom-sheet.relive-opening.open .memory-sheet-card.full-memory-capsule,
  html body main.app-shell .memory-bottom-sheet.relive-opening.open .memory-sheet-card.full-memory-capsule {
    animation: none !important;
  }
}

/* Home v416: align Today's Memory with quick actions and center the empty invitation. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay {
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-main,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: center !important;
  justify-items: center !important;
  gap: clamp(16px, 2.7vw, 24px) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph {
  margin: 0 auto !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy {
  justify-items: center !important;
  max-width: min(560px, 100%) !important;
  margin: 0 auto !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title {
  max-width: 18ch !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p {
  max-width: 42ch !important;
  margin-inline: auto !important;
}

/* Home v419: premium Today's Memory preview card. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay::before,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay::before {
  position: absolute !important;
  z-index: -1 !important;
  inset: 18% 7% -8% !important;
  content: "" !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 28% 50%, rgba(24, 169, 120, 0.18), transparent 52%),
    radial-gradient(circle at 72% 50%, rgba(31, 78, 121, 0.16), transparent 54%) !important;
  filter: blur(24px) !important;
  opacity: 0.78 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  display: grid !important;
  gap: clamp(12px, 1.8vw, 18px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .home-kicker {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #083847 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker .section-title-text,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .home-kicker .section-title-text {
  font-size: clamp(1.02rem, 2vw, 1.32rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .memory-day-slide-count {
  padding: 7px 11px !important;
  border: 1px solid rgba(10, 84, 86, 0.12) !important;
  border-radius: 999px !important;
  background: rgba(255, 253, 248, 0.68) !important;
  color: rgba(8, 49, 59, 0.64) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  box-shadow: 0 10px 22px rgba(7, 64, 68, 0.06) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  position: relative !important;
  display: grid !important;
  width: 100% !important;
  min-height: clamp(350px, 43vw, 455px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(236, 255, 249, 0.5) !important;
  border-radius: clamp(26px, 4vw, 36px) !important;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--today-memory-accent, #18a978) 28%, transparent), transparent 38%),
    linear-gradient(135deg, #073947 0%, #0b6f73 54%, #168d70 100%) !important;
  box-shadow:
    0 28px 62px rgba(5, 48, 58, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
  cursor: pointer !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
  position: relative !important;
  grid-area: 1 / 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: inherit !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo::after,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo::after {
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  content: "" !important;
  border-radius: inherit !important;
  background:
    linear-gradient(180deg, rgba(2, 24, 34, 0.05) 0%, rgba(2, 24, 34, 0.08) 40%, rgba(2, 24, 34, 0.78) 100%),
    radial-gradient(circle at 18% 88%, rgba(24, 169, 120, 0.34), transparent 44%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo-frame,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo img,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo-frame {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: inherit !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  transform: scale(1.012) translateZ(0) !important;
  transition:
    transform 7200ms cubic-bezier(0.18, 0.82, 0.2, 1),
    opacity 520ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo img,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo-frame,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo img,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay:hover .today-memory-photo-frame {
  transform: scale(1.04) translateZ(0) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  position: relative !important;
  z-index: 4 !important;
  grid-area: 1 / 1 !important;
  align-self: end !important;
  display: grid !important;
  gap: 8px !important;
  width: min(100%, 680px) !important;
  max-width: none !important;
  padding: clamp(24px, 4.4vw, 42px) !important;
  color: #ffffff !important;
  text-align: left !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-title,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-title {
  display: block !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(1.75rem, 4.2vw, 3.05rem) !important;
  font-weight: 980 !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.42) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy small,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-copy small {
  width: fit-content !important;
  max-width: 100% !important;
  padding: 7px 11px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.17) !important;
  border-radius: 999px !important;
  background: rgba(2, 25, 33, 0.28) !important;
  color: rgba(235, 255, 249, 0.92) !important;
  font-size: clamp(0.76rem, 1.45vw, 0.92rem) !important;
  font-weight: 820 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy p,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-copy p {
  display: -webkit-box !important;
  max-width: 54ch !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(0.96rem, 1.85vw, 1.16rem) !important;
  font-weight: 610 !important;
  line-height: 1.44 !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34) !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-photo-count,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-photo-count {
  position: absolute !important;
  z-index: 5 !important;
  top: 16px !important;
  right: 16px !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(3, 28, 36, 0.38) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.74rem !important;
  font-weight: 850 !important;
  backdrop-filter: blur(14px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.12) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-photo-dots,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-photo-dots {
  position: absolute !important;
  z-index: 5 !important;
  right: 18px !important;
  bottom: 18px !important;
  display: flex !important;
  gap: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-photo-dots button,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-dots button,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-photo-dots button,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .memory-day-dots button {
  width: 7px !important;
  height: 7px !important;
  min-width: 7px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(8, 57, 71, 0.24) !important;
  opacity: 1 !important;
  transition: width 240ms ease, background 240ms ease, transform 240ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-photo-dots button.active,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-dots button.active,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-photo-dots button.active,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .memory-day-dots button.active {
  width: 22px !important;
  background: linear-gradient(135deg, #18a978, #1f8bd1) !important;
  transform: translateY(-1px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-dots,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .memory-day-dots {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-memory-link,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .home-memory-link {
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(11, 106, 102, 0.12) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.38), transparent 36%),
    linear-gradient(135deg, #073f52, #0c8b7c 58%, #18a978) !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 920 !important;
  box-shadow:
    0 14px 28px rgba(10, 111, 115, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
  border-radius: clamp(26px, 4vw, 36px) !important;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.2), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(255, 200, 87, 0.15), transparent 30%),
    linear-gradient(135deg, #073947 0%, #0b6f73 52%, #18a978 100%) !important;
  box-shadow:
    0 28px 62px rgba(5, 48, 58, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p {
  -webkit-line-clamp: initial !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .memory-day-topline {
    align-items: flex-start !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    min-height: clamp(340px, 82vw, 410px) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
    padding: 22px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-title,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-title {
    font-size: clamp(1.55rem, 8vw, 2.15rem) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy p,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-copy p {
    -webkit-line-clamp: 2 !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
    justify-content: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo img,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo-frame,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo img,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo-frame {
    transition: none !important;
    transform: none !important;
  }
}

/* Media v420: keep memory photos centered, fully visible, and framed consistently. */
html body .app-shell {
  --mymappi-media-frame:
    radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.24), transparent 34%),
    radial-gradient(circle at 84% 82%, rgba(24, 169, 120, 0.22), transparent 42%),
    linear-gradient(135deg, #073947 0%, #0b6f73 52%, #18a978 100%);
}

html body .app-shell img[data-photo-full],
html body .app-shell .today-memory-photo img,
html body .app-shell .today-memory-photo-frame,
html body .app-shell .memory-lane-cover-image,
html body .app-shell .memory-lane-photo-grid img,
html body .app-shell .sheet-photo-gallery__photo,
html body .app-shell .sheet-photo-gallery__photo img,
html body .app-shell .popup-photo,
html body .app-shell .memory-media-thumb img {
  object-fit: contain !important;
  object-position: center center !important;
  background: var(--mymappi-media-frame) !important;
}

html body .app-shell .today-memory-photo,
html body .app-shell .today-memory-photo.has-photo-slideshow,
html body .app-shell .memory-lane-cover,
html body .app-shell .memory-lane-photo-grid,
html body .app-shell .sheet-photo-gallery,
html body .app-shell .sheet-photo-gallery__photo,
html body .app-shell .memory-sheet-media,
html body .app-shell .memory-media-thumb,
html body .app-shell .photo-lightbox-frame {
  background: var(--mymappi-media-frame) !important;
}

html body .app-shell .photo-lightbox-frame img,
html body .app-shell .photo-lightbox-frame video,
html body .app-shell video[data-video-full],
html body .app-shell .memory-card-video,
html body .app-shell .memory-video-player {
  object-fit: contain !important;
  object-position: center center !important;
  background: #051f2a !important;
}

html body .app-shell .today-memory-photo img,
html body .app-shell .today-memory-photo-frame {
  transform: none !important;
}

html body .app-shell #homeMemoryOfDay:hover .today-memory-photo img,
html body .app-shell #homeMemoryOfDay:hover .today-memory-photo-frame {
  transform: none !important;
}

/* Home v421: Today's Memory opens by tapping the card, no loud action button. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main {
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main:hover,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main:hover {
  border-color: rgba(230, 255, 248, 0.72) !important;
  box-shadow:
    0 32px 72px rgba(5, 48, 58, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
  transform: translateY(-2px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-open-hint,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-open-hint {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 5px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(238, 255, 250, 0.88) !important;
  font-size: clamp(0.74rem, 1.35vw, 0.86rem) !important;
  font-style: normal !important;
  font-weight: 840 !important;
  letter-spacing: 0 !important;
  backdrop-filter: blur(14px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.12) !important;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.26) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-relive-button,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-relive-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-height: 42px !important;
  margin-top: 6px !important;
  padding: 0 20px !important;
  border: 1px solid rgba(231, 255, 248, 0.24) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(135deg, rgba(7, 63, 82, 0.96), rgba(12, 139, 124, 0.96) 58%, rgba(24, 169, 120, 0.96)) !important;
  color: #ffffff !important;
  font-size: clamp(0.78rem, 1.45vw, 0.92rem) !important;
  font-weight: 980 !important;
  letter-spacing: 0.11em !important;
  line-height: 1 !important;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25) !important;
  box-shadow:
    0 16px 30px rgba(4, 51, 62, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-mood-chip,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-mood-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 25px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(236, 255, 249, 0.76) !important;
  font-size: clamp(0.66rem, 1.08vw, 0.76rem) !important;
  font-weight: 760 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) saturate(1.03) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.03) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-chip-row,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-chip-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  max-width: 100% !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-media-hint,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-media-hint {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(4, 32, 42, 0.24) !important;
  color: rgba(239, 255, 250, 0.82) !important;
  font-size: clamp(0.7rem, 1.18vw, 0.82rem) !important;
  font-weight: 780 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(12px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-media-badge,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-media-badge {
  position: absolute !important;
  z-index: 5 !important;
  top: 16px !important;
  left: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  max-width: calc(100% - 32px) !important;
  padding: 0 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(3, 28, 36, 0.38) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.74rem !important;
  font-style: normal !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 20px rgba(0, 18, 24, 0.16) !important;
  backdrop-filter: blur(14px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.12) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-relive-button:hover,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-relive-button:focus-visible,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-relive-button:hover,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-relive-button:focus-visible {
  filter: brightness(1.04) saturate(1.04) !important;
  box-shadow:
    0 20px 38px rgba(4, 51, 62, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-open-hint::after,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-open-hint::after {
  content: "→" !important;
  margin-left: 8px !important;
  font-size: 0.95em !important;
  transform: translateY(-0.5px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-footer,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-footer {
  justify-content: center !important;
  min-height: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-memory-link,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .home-memory-link {
  display: none !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-open-hint,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-open-hint {
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-relive-button,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-relive-button {
    min-height: 38px !important;
    padding: 0 16px !important;
    font-size: 0.76rem !important;
  }
}

/* Home v422: final alignment and spacing pass. */
html body .app-shell .map-stage.home-focus {
  --home-content-width: min(880px, calc(100vw - 32px));
  --home-rhythm: clamp(20px, 3vw, 32px);
  --home-inner-gap: clamp(12px, 1.8vw, 18px);
  scroll-padding-top: 92px !important;
}

html body .app-shell .map-stage.home-focus .topbar {
  width: min(960px, calc(100vw - 24px)) !important;
  margin-inline: auto !important;
}

html body .app-shell .map-stage.home-focus .hero-copy,
html body .app-shell .map-stage.home-focus .home-dashboard,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay,
html body .app-shell .map-stage.home-focus .home-action-section,
html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip,
html body main.app-shell section.map-stage.home-focus .hero-copy,
html body main.app-shell section.map-stage.home-focus .home-dashboard,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay,
html body main.app-shell section.map-stage.home-focus .home-action-section,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay,
html body main.app-shell section.map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
  box-sizing: border-box !important;
  width: var(--home-content-width) !important;
  max-width: var(--home-content-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-self: center !important;
}

html body .app-shell .map-stage.home-focus .hero-copy,
html body main.app-shell section.map-stage.home-focus .hero-copy {
  margin-top: clamp(86px, 12vh, 116px) !important;
  gap: clamp(14px, 2vw, 20px) !important;
  padding-inline: 0 !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard,
html body main.app-shell section.map-stage.home-focus .home-dashboard {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: var(--home-rhythm) !important;
  margin-top: clamp(24px, 3.6vw, 38px) !important;
  padding: 0 !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard > *,
html body main.app-shell section.map-stage.home-focus .home-dashboard > * {
  min-width: 0 !important;
}

html body .app-shell .map-stage.home-focus .hero-copy h2,
html body main.app-shell section.map-stage.home-focus .hero-copy h2 {
  margin: 0 auto !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse,
html body main.app-shell section.map-stage.home-focus .home-memory-pulse {
  width: min(640px, 100%) !important;
  margin: 0 auto !important;
  gap: clamp(8px, 1.4vw, 12px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card {
  display: grid !important;
  gap: var(--home-inner-gap) !important;
  width: 100% !important;
  padding: clamp(14px, 2.3vw, 22px) !important;
  border-radius: clamp(24px, 3.5vw, 32px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .memory-day-topline,
html body .app-shell .map-stage.home-focus .home-section-heading,
html body main.app-shell section.map-stage.home-focus .home-section-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  margin: 0 0 clamp(12px, 1.8vw, 16px) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .home-kicker,
html body .app-shell .map-stage.home-focus .home-section-title,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .home-kicker,
html body main.app-shell section.map-stage.home-focus .home-section-title {
  max-width: 100% !important;
  margin-inline: auto !important;
  white-space: normal !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading > strong,
html body main.app-shell section.map-stage.home-focus .home-section-heading > strong {
  max-width: min(540px, 100%) !important;
  margin-inline: auto !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
  width: 100% !important;
  max-width: 100% !important;
  min-height: clamp(330px, 42vw, 430px) !important;
  margin: 0 auto !important;
  border-radius: clamp(22px, 3vw, 30px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-photo.has-photo-slideshow {
  width: 100% !important;
  height: 100% !important;
  min-height: inherit !important;
  margin: 0 auto !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
  width: min(100%, 650px) !important;
  margin-inline: auto !important;
  padding: clamp(22px, 4vw, 36px) !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions,
html body main.app-shell section.map-stage.home-focus .home-quick-actions {
  width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.8vw, 16px) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body .app-shell .map-stage.home-focus #homeJourney,
html body .app-shell .map-stage.home-focus #homeTimelineStrip,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay,
html body main.app-shell section.map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
  padding: clamp(18px, 2.5vw, 24px) !important;
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-timeline-row,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-timeline-row {
  width: 100% !important;
  margin-inline: auto !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus {
    --home-content-width: calc(100vw - 24px);
    --home-rhythm: 18px;
    --home-inner-gap: 12px;
  }

  html body .app-shell .map-stage.home-focus .hero-copy,
  html body main.app-shell section.map-stage.home-focus .hero-copy {
    margin-top: 78px !important;
    gap: 12px !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard,
  html body main.app-shell section.map-stage.home-focus .home-dashboard {
    margin-top: 18px !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse,
  html body main.app-shell section.map-stage.home-focus .home-memory-pulse {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-main,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-main {
    min-height: clamp(300px, 78vw, 370px) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-copy,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-copy {
    padding: 20px !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions,
  html body main.app-shell section.map-stage.home-focus .home-quick-actions {
    gap: 10px !important;
  }
}

@media (max-width: 430px) {
  html body .app-shell .map-stage.home-focus {
    --home-content-width: calc(100vw - 18px);
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions,
  html body main.app-shell section.map-stage.home-focus .home-quick-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat,
  html body main.app-shell section.map-stage.home-focus .home-memory-pulse .home-stat {
    padding-inline: 4px !important;
  }
}

/* Home v428: Memory Echo becomes a small interactive echo set. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.6vw, 14px) !important;
  width: 100% !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  grid-template-rows: 1fr auto !important;
  align-items: start !important;
  gap: 10px 12px !important;
  min-height: 168px !important;
  padding: 15px !important;
  text-align: left !important;
  border-radius: 24px !important;
  border: 1px solid rgba(189, 242, 229, 0.7) !important;
  color: #0b3440 !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(48, 189, 151, 0.22), transparent 40%),
    radial-gradient(circle at 100% 10%, rgba(34, 132, 180, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(234, 250, 245, 0.92)) !important;
  box-shadow: 0 18px 42px rgba(7, 64, 68, 0.1) !important;
  transform: translateZ(0) !important;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card::before,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card::before {
  position: absolute !important;
  right: 14px !important;
  top: 14px !important;
  width: 40px !important;
  height: 40px !important;
  content: "" !important;
  border: 1px solid rgba(31, 78, 121, 0.1) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgba(24, 169, 120, 0.18) 0 24%, transparent 25%),
    radial-gradient(circle, transparent 36%, rgba(31, 78, 121, 0.1) 37% 39%, transparent 40%),
    radial-gradient(circle, transparent 58%, rgba(31, 78, 121, 0.08) 59% 61%, transparent 62%) !important;
  opacity: 0.9 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card:hover,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card:focus-visible,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card:hover,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card:focus-visible {
  transform: translateY(-3px) !important;
  border-color: rgba(35, 168, 139, 0.62) !important;
  box-shadow: 0 22px 48px rgba(7, 64, 68, 0.14) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card .echo-card-mark,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card .echo-card-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 16px !important;
  color: #073a45 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(218, 248, 239, 0.82)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 18px rgba(7, 64, 68, 0.08) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy small {
  width: fit-content !important;
  max-width: 100% !important;
  padding: 4px 8px !important;
  border: 1px solid rgba(24, 169, 120, 0.18) !important;
  border-radius: 999px !important;
  color: rgba(11, 62, 72, 0.72) !important;
  background: rgba(236, 252, 246, 0.82) !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy strong {
  display: block !important;
  color: #0a3340 !important;
  font-size: clamp(0.98rem, 1.6vw, 1.18rem) !important;
  font-weight: 970 !important;
  line-height: 1.08 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy em,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy em {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  color: rgba(12, 62, 74, 0.74) !important;
  font-size: 0.84rem !important;
  font-style: normal !important;
  line-height: 1.38 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-action,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-action {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  min-width: min(142px, 100%) !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  color: #f7fffb !important;
  background: linear-gradient(135deg, #0b6f77, #18a978) !important;
  box-shadow: 0 10px 20px rgba(7, 85, 87, 0.16) !important;
  font-size: 0.78rem !important;
  font-weight: 920 !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card.is-empty .memory-echo-action,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card.is-empty .memory-echo-action {
  color: #0b5961 !important;
  background: rgba(235, 251, 246, 0.88) !important;
  box-shadow: none !important;
}

@media (max-width: 860px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
    min-height: 138px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
    transition: none !important;
  }
}

/* Home v430: center Memory Echo card content and remove the top-left marks. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  justify-items: center !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card .echo-card-mark,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card .echo-card-mark {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy {
  justify-items: center !important;
  align-content: center !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy small {
  justify-self: center !important;
}

/* Explore v431: nearby pins group into clean numbered memory dots when zoomed out. */
html body .app-shell .map-stage.map-focus .memory-cluster-marker,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster,
html body .app-shell .map-stage.map-focus .maplibregl-marker:has(.memory-cluster-marker),
html body .app-shell .map-stage.map-focus .leaflet-marker-icon:has(.memory-cluster-marker),
html body .app-shell .map-stage.map-focus .leaflet-div-icon:has(.memory-cluster-marker) {
  display: grid !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

html body .app-shell .map-stage.map-focus .maplibregl-marker:has(.memory-cluster-marker),
html body .app-shell .map-stage.map-focus .leaflet-marker-icon:has(.memory-cluster-marker),
html body .app-shell .map-stage.map-focus .leaflet-div-icon:has(.memory-cluster-marker) {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  place-items: center !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.62), transparent 18%),
    linear-gradient(145deg,
      color-mix(in srgb, var(--marker-color, #18a978) 76%, #1f4e79 24%),
      var(--marker-color, #18a978)) !important;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--marker-color, #18a978) 16%, transparent),
    0 10px 20px rgba(6, 46, 58, 0.2) !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-count,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  color: #ffffff !important;
  font-size: clamp(0.82rem, 46%, 1.08rem) !important;
  font-weight: 980 !important;
  line-height: 1 !important;
  text-shadow: 0 1px 4px rgba(0, 25, 34, 0.22) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-stars,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-stars,
html body .app-shell .map-stage.map-focus .memory-cluster-marker small,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster small {
  display: none !important;
}

/* Explore v433 final: no visible numbers on grouped memory pins. */
html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-count,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  display: none !important;
}

/* Home v434: lock Memory Echo cards into clean, even squares. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(12px, 1.7vw, 16px) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  justify-items: center !important;
  min-height: 170px !important;
  height: 100% !important;
  padding: 18px 16px !important;
  gap: 12px !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card::before,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card::before {
  display: none !important;
  content: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy {
  display: grid !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 0 !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy small {
  margin-inline: auto !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy em,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy em {
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-action,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-action {
  align-self: end !important;
}

@media (max-width: 860px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
    min-height: 150px !important;
  }
}

/* Home v435: Memory Echo adapts to one, two, or three cards without awkward empty space. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid {
  width: 100% !important;
  margin-inline: auto !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1 {
  grid-template-columns: minmax(0, min(430px, 100%)) !important;
  justify-content: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2 {
  grid-template-columns: repeat(2, minmax(0, min(360px, 1fr))) !important;
  justify-content: center !important;
  max-width: 760px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 100% !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
  min-height: 148px !important;
  border-radius: 22px !important;
  padding: 17px 16px !important;
}

@media (max-width: 860px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1,
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2,
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3 {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 100% !important;
  }
}

/* Home v436: turn Memory Echo into one clean premium echo list instead of offset boxes. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 760px !important;
  margin-inline: auto !important;
  padding: 12px !important;
  border: 1px solid rgba(185, 238, 225, 0.62) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(45, 177, 148, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.95), rgba(235, 250, 246, 0.9)) !important;
  box-shadow: 0 18px 42px rgba(7, 64, 68, 0.08) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  justify-items: stretch !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 13px 14px !important;
  gap: 12px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(191, 239, 226, 0.56) !important;
  text-align: left !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy {
  display: grid !important;
  align-content: center !important;
  justify-items: start !important;
  gap: 5px !important;
  width: 100% !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy small {
  justify-self: start !important;
  margin-inline: 0 !important;
  padding: 3px 8px !important;
  font-size: 0.66rem !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy strong {
  display: block !important;
  overflow: hidden !important;
  max-width: 100% !important;
  color: #083642 !important;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem) !important;
  font-weight: 950 !important;
  line-height: 1.14 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy em,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy em {
  display: block !important;
  overflow: hidden !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  color: rgba(12, 62, 74, 0.66) !important;
  font-size: 0.8rem !important;
  font-style: normal !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-action,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-action {
  align-self: center !important;
  justify-self: end !important;
  min-width: 88px !important;
  padding: 8px 12px !important;
  white-space: nowrap !important;
}

@media (max-width: 560px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
    grid-template-columns: minmax(0, 1fr) !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy,
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy small,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy small {
    justify-items: center !important;
    justify-self: center !important;
    text-align: center !important;
    margin-inline: auto !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-action,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-action {
    justify-self: center !important;
  }
}

/* Home v437: make Memory Echo rows more visible, premium, and touchable. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid {
  padding: clamp(14px, 2vw, 18px) !important;
  border-color: rgba(136, 220, 198, 0.72) !important;
  background:
    radial-gradient(circle at 4% 0%, rgba(35, 168, 139, 0.18), transparent 36%),
    radial-gradient(circle at 100% 6%, rgba(31, 78, 121, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(227, 247, 242, 0.94)) !important;
  box-shadow:
    0 20px 48px rgba(7, 64, 68, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
  position: relative !important;
  overflow: hidden !important;
  min-height: 82px !important;
  padding: 15px 16px 15px 20px !important;
  border-color: rgba(154, 227, 208, 0.76) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 253, 249, 0.88)) !important;
  box-shadow:
    0 12px 24px rgba(7, 64, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card::after,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card::after {
  position: absolute !important;
  inset: 14px auto 14px 0 !important;
  width: 5px !important;
  content: "" !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #1f9f8b, #1f4e79) !important;
  opacity: 0.88 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card:hover,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card:focus-visible,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card:hover,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card:focus-visible {
  transform: translateY(-2px) !important;
  border-color: rgba(31, 159, 139, 0.7) !important;
  box-shadow:
    0 16px 32px rgba(7, 64, 68, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy small {
  color: #0a6670 !important;
  background: rgba(223, 250, 242, 0.96) !important;
  border-color: rgba(31, 159, 139, 0.22) !important;
  font-weight: 940 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy strong {
  color: #062f3b !important;
  font-size: clamp(1.02rem, 1.55vw, 1.18rem) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy em,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy em {
  color: rgba(8, 55, 68, 0.76) !important;
  font-size: 0.84rem !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-action,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-action {
  min-width: 96px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0b6370, #18a978) !important;
  box-shadow: 0 10px 20px rgba(7, 85, 87, 0.18) !important;
  font-weight: 950 !important;
}

/* Home v438: give Memory Echo names and info room to breathe. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid {
  gap: 14px !important;
  padding: clamp(16px, 2.4vw, 22px) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  min-height: 118px !important;
  padding: 20px 20px 18px 24px !important;
  gap: 14px !important;
  align-items: start !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy {
  gap: 9px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy small {
  padding: 5px 10px !important;
  font-size: 0.68rem !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  font-size: clamp(1.08rem, 1.75vw, 1.26rem) !important;
  line-height: 1.12 !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy em,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy em {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  max-width: min(100%, 58ch) !important;
  font-size: 0.88rem !important;
  line-height: 1.42 !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-action,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-action {
  justify-self: start !important;
  min-width: 118px !important;
  padding: 9px 16px !important;
}

@media (max-width: 560px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
    padding: 18px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-action,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-action {
    justify-self: center !important;
  }
}

/* Home v439: simplify Memory Echo so it breathes instead of feeling boxed-in. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3 {
  max-width: 680px !important;
  padding: 0 !important;
  gap: 12px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto !important;
  min-height: 88px !important;
  padding: 17px 18px 17px 22px !important;
  gap: 16px !important;
  align-items: center !important;
  border: 1px solid rgba(157, 226, 209, 0.6) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 252, 248, 0.76)) !important;
  box-shadow:
    0 14px 30px rgba(7, 64, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card::after,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card::after {
  inset: 18px auto 18px 0 !important;
  width: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy {
  gap: 6px !important;
  align-content: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy small {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(8, 91, 95, 0.72) !important;
  background: transparent !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy strong {
  display: block !important;
  overflow: hidden !important;
  max-width: 100% !important;
  color: #062f3b !important;
  font-size: clamp(1.02rem, 1.45vw, 1.16rem) !important;
  line-height: 1.16 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy em,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy em {
  display: block !important;
  overflow: hidden !important;
  color: rgba(8, 55, 68, 0.7) !important;
  font-size: 0.82rem !important;
  line-height: 1.28 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-action,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-action {
  justify-self: end !important;
  align-self: center !important;
  min-width: auto !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
  font-size: 0.76rem !important;
}

@media (max-width: 560px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 112px !important;
    padding: 18px !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy {
    justify-items: center !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy strong,
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy em,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy strong,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy em {
    white-space: normal !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-action,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-action {
    justify-self: center !important;
  }
}

/* Home v440: premium Memory Echo glow, whisper, and memory-slip polish. */
html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay {
  position: relative !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay::before,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay::before {
  position: absolute !important;
  inset: 6% 8% auto 8% !important;
  height: 54% !important;
  content: "" !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgba(30, 174, 145, 0.16), rgba(31, 78, 121, 0.05) 45%, transparent 72%) !important;
  filter: blur(18px) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay > *,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay > * {
  position: relative !important;
  z-index: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .home-section-heading {
  position: relative !important;
  padding-top: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading::after,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .home-section-heading::after {
  display: block !important;
  width: 34px !important;
  height: 10px !important;
  margin: 8px auto 0 !important;
  content: "" !important;
  border-top: 2px solid rgba(31, 159, 139, 0.38) !important;
  border-bottom: 2px solid rgba(31, 78, 121, 0.18) !important;
  border-radius: 999px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-whisper,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-whisper {
  display: block !important;
  max-width: 420px !important;
  margin: 4px auto 0 !important;
  color: rgba(8, 55, 68, 0.58) !important;
  font-size: clamp(0.78rem, 1.2vw, 0.9rem) !important;
  font-weight: 680 !important;
  line-height: 1.35 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3 {
  margin-top: 16px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
  border-color: rgba(143, 220, 201, 0.62) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 254, 251, 0.84)) !important;
  box-shadow:
    0 14px 30px rgba(7, 64, 68, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card::after,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card::after {
  background: linear-gradient(180deg, #24b08f, #206c85) !important;
  box-shadow: 0 0 14px rgba(36, 176, 143, 0.22) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-action,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-action {
  background: linear-gradient(135deg, #0c6571, #1aae88) !important;
  box-shadow:
    0 10px 20px rgba(7, 85, 87, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

/* Home v441: make Memory Echo more compact on the page. */
html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay {
  padding: clamp(14px, 1.8vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay::before,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay::before {
  inset: 12% 18% auto 18% !important;
  height: 36% !important;
  opacity: 0.72 !important;
  filter: blur(14px) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .home-section-heading {
  gap: 4px !important;
  padding-top: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading::after,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .home-section-heading::after {
  width: 28px !important;
  height: 7px !important;
  margin-top: 5px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-whisper,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-whisper {
  max-width: 360px !important;
  margin-top: 2px !important;
  font-size: clamp(0.72rem, 1vw, 0.8rem) !important;
  line-height: 1.25 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-1,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-2,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-grid.memory-echo-count-3 {
  max-width: 600px !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
  min-height: 70px !important;
  padding: 12px 14px 12px 18px !important;
  border-radius: 18px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card::after,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card::after {
  inset: 14px auto 14px 0 !important;
  width: 3px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy {
  gap: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy strong {
  font-size: clamp(0.96rem, 1.25vw, 1.05rem) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy em,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy em {
  font-size: 0.76rem !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-action,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-action {
  padding: 7px 11px !important;
  font-size: 0.72rem !important;
}

@media (max-width: 560px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-card {
    min-height: 96px !important;
    padding: 14px !important;
  }
}

/* Home v442: one featured Memory Echo instead of multiple rows. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature {
  width: 100% !important;
  max-width: 560px !important;
  margin: 12px auto 0 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card {
  position: relative !important;
  display: grid !important;
  width: 100% !important;
  min-height: 150px !important;
  padding: clamp(20px, 3vw, 28px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(132, 211, 194, 0.58) !important;
  border-radius: 28px !important;
  color: #07323f !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(36, 176, 143, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 253, 249, 0.9) 48%, rgba(229, 245, 250, 0.86)) !important;
  box-shadow:
    0 18px 44px rgba(6, 67, 76, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  cursor: default !important;
  gap: 10px !important;
  justify-items: center !important;
  text-align: center !important;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card::before,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card::before {
  position: absolute !important;
  inset: auto 16% -44% 16% !important;
  height: 74% !important;
  content: "" !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(18, 109, 123, 0.2), transparent 68%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card:hover,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card:hover {
  border-color: rgba(30, 174, 145, 0.78) !important;
  box-shadow:
    0 22px 52px rgba(6, 67, 76, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
  transform: translateY(-2px) !important;
}

/* Home v446: calm Memory Echo rotation. */
html body .app-shell .map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card {
  opacity: 0 !important;
  transform: translateY(8px) scale(0.985) !important;
  transition:
    opacity 360ms ease,
    transform 360ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card {
  animation: memoryEchoArrive 620ms ease both !important;
}

@keyframes memoryEchoArrive {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card,
  html body .app-shell .map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Home v473: final override for the empty Today's Memory preview. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today {
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-name-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-name-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline {
  justify-content: center !important;
  position: relative !important;
  z-index: 4 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-date-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-date-pill {
  color: rgba(7, 50, 63, 0.58) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(20, 116, 111, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  place-items: center !important;
  min-height: clamp(270px, 33vw, 350px) !important;
  padding: clamp(30px, 4vw, 46px) !important;
  border: 1px solid rgba(135, 218, 194, 0.26) !important;
  border-radius: clamp(28px, 4vw, 38px) !important;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.94), transparent 25%),
    radial-gradient(circle at 86% 18%, rgba(110, 226, 186, 0.34), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(45, 156, 219, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(251, 255, 250, 0.98), rgba(229, 249, 241, 0.94) 52%, rgba(215, 241, 245, 0.92)) !important;
  box-shadow:
    0 24px 58px rgba(7, 70, 78, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::before,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::before {
  content: "" !important;
  position: absolute !important;
  inset: auto 12% -42% 12% !important;
  height: 62% !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(24, 169, 120, 0.16), transparent 66%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::after,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background:
    repeating-linear-gradient(0deg, rgba(7, 72, 82, 0.02) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 60% 62%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.4px) !important;
  background-size: auto, 20px 20px !important;
  opacity: 0.5 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy {
  display: grid !important;
  justify-items: center !important;
  max-width: min(540px, 100%) !important;
  gap: 10px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: #07323f !important;
  position: relative !important;
  text-align: center !important;
  z-index: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title {
  max-width: 18ch !important;
  color: #07323f !important;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem) !important;
  font-weight: 940 !important;
  letter-spacing: 0 !important;
  line-height: 0.98 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy small,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy small {
  width: fit-content !important;
  padding: 6px 11px !important;
  border: 1px solid rgba(20, 116, 111, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(7, 50, 63, 0.62) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(0.74rem, 1vw, 0.84rem) !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p {
  max-width: 39ch !important;
  margin: 0 auto !important;
  color: rgba(7, 50, 63, 0.68) !important;
  font-size: clamp(1rem, 1.7vw, 1.16rem) !important;
  font-weight: 650 !important;
  line-height: 1.46 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-mappi-note,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-empty-mappi-note {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  margin-top: 2px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(24, 169, 120, 0.12) !important;
  border-radius: 999px !important;
  color: rgba(7, 83, 83, 0.7) !important;
  background: rgba(255, 255, 255, 0.52) !important;
  box-shadow: 0 10px 22px rgba(7, 70, 78, 0.06) !important;
  font-size: clamp(0.74rem, 1vw, 0.84rem) !important;
  font-weight: 820 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
    min-height: 255px !important;
    padding: 28px 18px !important;
    border-radius: 28px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title {
    max-width: 14ch !important;
    font-size: clamp(1.75rem, 9vw, 2.55rem) !important;
  }
}

/* Home v476: final guardrails for the premium Recent Memories shelf. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  display: grid !important;
  grid-template-columns: clamp(116px, 19vw, 168px) minmax(0, 1fr) !important;
  gap: clamp(14px, 2.2vw, 22px) !important;
  align-items: stretch !important;
  width: 100% !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(230px, 280px) !important;
  gap: 12px !important;
  overflow-x: auto !important;
  scroll-snap-type: inline proximity !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card {
  display: grid !important;
  grid-template-columns: 70px minmax(0, 1fr) !important;
  gap: 11px !important;
  align-items: center !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    grid-template-columns: 92px minmax(0, 1fr) !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
    grid-auto-columns: minmax(210px, 78vw) !important;
  }
}

/* Mobile v542: final cascade lock for the current phone experience. */
@media (max-width: 720px) {
  html body .app-shell .topbar,
  html body main.app-shell .topbar {
    position: fixed !important;
    inset: 0 0 auto !important;
    z-index: 1300 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    width: 100% !important;
    padding: calc(env(safe-area-inset-top) + 9px) 10px 7px !important;
  }

  html body .app-shell .topbar .topbar-left,
  html body .app-shell .topbar .topbar-actions,
  html body main.app-shell .topbar .topbar-left,
  html body main.app-shell .topbar .topbar-actions {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: auto !important;
    min-width: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  html body .app-shell .topbar .brand,
  html body main.app-shell .topbar .brand {
    position: static !important;
    display: flex !important;
    place-self: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  html body .app-shell .topbar #categoryMenuButton,
  html body .app-shell .topbar #logoHomeButton,
  html body .app-shell .topbar #pinSearchButton,
  html body .app-shell .topbar #notificationButton,
  html body main.app-shell .topbar #categoryMenuButton,
  html body main.app-shell .topbar #logoHomeButton,
  html body main.app-shell .topbar #pinSearchButton,
  html body main.app-shell .topbar #notificationButton {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  html body .app-shell .map-stage.home-focus,
  html body main.app-shell section.map-stage.home-focus {
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: calc(env(safe-area-inset-top) + 76px) 0 calc(78px + env(safe-area-inset-bottom) + 34px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy,
  html body main.app-shell section.map-stage.home-focus .hero-copy,
  html body .app-shell .map-stage.home-focus .home-dashboard,
  html body main.app-shell section.map-stage.home-focus .home-dashboard {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy {
    margin-top: 0 !important;
    margin-bottom: 22px !important;
    gap: 10px !important;
  }

  html body .app-shell .map-stage.home-focus .first-memory-journey,
  html body main.app-shell section.map-stage.home-focus .first-memory-journey {
    display: none !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard,
  html body main.app-shell section.map-stage.home-focus .home-dashboard {
    display: grid !important;
    gap: 26px !important;
    padding: 0 0 20px !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard > .home-section,
  html body main.app-shell section.map-stage.home-focus .home-dashboard > .home-section,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay,
  html body .app-shell .map-stage.home-focus #homeOnThisDay,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay,
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body main.app-shell section.map-stage.home-focus #homeJourney,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-section,
  html body main.app-shell section.map-stage.home-focus .home-action-section {
    padding: 0 !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions,
  html body main.app-shell section.map-stage.home-focus .home-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card,
  html body main.app-shell section.map-stage.home-focus .home-action-card {
    display: grid !important;
    grid-template-rows: 28px auto !important;
    place-items: center !important;
    min-width: 0 !important;
    min-height: 84px !important;
    padding: 10px 5px !important;
    gap: 6px !important;
    border-radius: 21px !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card strong,
  html body main.app-shell section.map-stage.home-focus .home-action-card strong {
    font-size: clamp(0.67rem, 3vw, 0.8rem) !important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }

  html body .app-shell .map-stage.map-focus,
  html body main.app-shell section.map-stage.map-focus,
  html body .app-shell .map-stage.map-focus #map,
  html body main.app-shell section.map-stage.map-focus #map {
    height: 100dvh !important;
    min-height: 100dvh !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget,
  html body main.app-shell section.map-stage.map-focus .map-navigation-gadget {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: calc(78px + env(safe-area-inset-bottom) + 20px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, 42px) !important;
    grid-template-rows: repeat(2, 42px) !important;
    width: 92px !important;
    height: 92px !important;
    gap: 1px !important;
    padding: 3px !important;
    overflow: hidden !important;
    border: 1px solid rgba(213, 248, 240, 0.34) !important;
    border-radius: 22px !important;
    background: rgba(5, 46, 59, 0.9) !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget > *,
  html body main.app-shell section.map-stage.map-focus .map-navigation-gadget > * {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.075) !important;
    box-shadow: none !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget #locateButton { grid-area: 1 / 1 !important; }
  html body .app-shell .map-stage.map-focus .map-navigation-gadget #mapZoomInButton { grid-area: 1 / 2 !important; }
  html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass { grid-area: 2 / 1 !important; }
  html body .app-shell .map-stage.map-focus .map-navigation-gadget #mapZoomOutButton { grid-area: 2 / 2 !important; }

  html body .app-shell .map-stage.map-focus .map-empty-state,
  html body main.app-shell section.map-stage.map-focus .map-empty-state {
    right: 118px !important;
    bottom: calc(78px + env(safe-area-inset-bottom) + 20px) !important;
    left: 14px !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    width: auto !important;
    min-height: 92px !important;
    padding: 12px !important;
    gap: 2px 10px !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    text-align: left !important;
    transform: none !important;
  }

  html body .app-shell .map-stage.map-focus .map-empty-state[hidden],
  html body main.app-shell section.map-stage.map-focus .map-empty-state[hidden] {
    display: none !important;
  }

  html body .app-shell .map-stage.map-focus .map-empty-state img {
    grid-row: 1 / span 2 !important;
    width: 48px !important;
    height: 64px !important;
    object-fit: contain !important;
  }

  html body .app-shell .map-stage.map-focus .map-empty-state strong { font-size: 0.84rem !important; }
  html body .app-shell .map-stage.map-focus .map-empty-state span { font-size: 0.67rem !important; line-height: 1.25 !important; }

  html body .app-shell .map-stage.map-focus .you-are-here-message {
    top: calc(env(safe-area-inset-top) + 76px) !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  html body .app-shell .map-stage.memories-focus,
  html body main.app-shell section.map-stage.memories-focus {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  html body .app-shell .map-stage.memories-focus .memory-database-page.side-panel,
  html body main.app-shell section.map-stage.memories-focus .memory-database-page.side-panel,
  html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: calc(env(safe-area-inset-top) + 78px) 12px calc(78px + env(safe-area-inset-bottom) + 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body .app-shell .account-menu,
  html body main.app-shell .account-menu,
  html body .app-shell .account-menu.open,
  html body main.app-shell .account-menu.open {
    top: auto !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(78px + env(safe-area-inset-bottom) + 12px) !important;
    left: auto !important;
    width: min(350px, calc(100vw - 24px)) !important;
    max-height: min(68dvh, 560px) !important;
    padding-bottom: 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body .app-shell .memory-editor,
  html body main.app-shell .memory-editor {
    inset: calc(env(safe-area-inset-top) + 10px) 8px calc(78px + env(safe-area-inset-bottom) + 8px) 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body .app-shell .bottom-nav,
  html body main.app-shell .bottom-nav {
    right: 10px !important;
    bottom: calc(env(safe-area-inset-bottom) + 8px) !important;
    left: 10px !important;
    z-index: 1250 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 56px minmax(0, 1fr) minmax(0, 1fr) !important;
    width: auto !important;
    height: 78px !important;
    min-height: 78px !important;
    padding: 8px !important;
    gap: 3px !important;
  }

  html body .app-shell .bottom-nav-item,
  html body main.app-shell .bottom-nav-item {
    min-width: 0 !important;
    min-height: 50px !important;
    padding: 7px 2px !important;
    font-size: 0.6rem !important;
  }
}

/* Memory Lane v500 final: keep Relive, Edit, and Delete visible and dependable. */
html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-card-actions,
html body main.app-shell section.map-stage.memories-focus #memoryList .memory-lane-card .memory-card-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-card-action,
html body main.app-shell section.map-stage.memories-focus #memoryList .memory-lane-card .memory-card-action {
  position: relative !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(8, 62, 68, 0.12) !important;
  border-radius: 14px !important;
  color: #123f49 !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 8px 18px rgba(4, 40, 47, 0.07) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-card-action svg,
html body main.app-shell section.map-stage.memories-focus #memoryList .memory-lane-card .memory-card-action svg {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.2 !important;
}

html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .relive-memory-action,
html body main.app-shell section.map-stage.memories-focus #memoryList .memory-lane-card .relive-memory-action {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: auto auto !important;
  column-gap: 8px !important;
  min-height: 54px !important;
  border-color: rgba(197, 255, 239, 0.22) !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(135deg, #064b5c, #0b8587 48%, #18a977) !important;
  box-shadow: 0 14px 28px rgba(8, 110, 101, 0.22) !important;
}

html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .relive-memory-action svg,
html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .relive-memory-action .memory-action-label,
html body main.app-shell section.map-stage.memories-focus #memoryList .memory-lane-card .relive-memory-action svg,
html body main.app-shell section.map-stage.memories-focus #memoryList .memory-lane-card .relive-memory-action .memory-action-label {
  align-self: end !important;
  color: #ffffff !important;
}

html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .relive-memory-action small,
html body main.app-shell section.map-stage.memories-focus #memoryList .memory-lane-card .relive-memory-action small {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  color: rgba(232, 255, 249, 0.78) !important;
  font-size: 0.67rem !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .delete-memory-action,
html body main.app-shell section.map-stage.memories-focus #memoryList .memory-lane-card .delete-memory-action {
  color: #9a3442 !important;
  background: rgba(255, 246, 246, 0.92) !important;
}

html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-card-action:hover,
html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-card-action:focus-visible,
html body main.app-shell section.map-stage.memories-focus #memoryList .memory-lane-card .memory-card-action:hover,
html body main.app-shell section.map-stage.memories-focus #memoryList .memory-lane-card .memory-card-action:focus-visible {
  transform: translateY(-1px) !important;
  outline: none !important;
  box-shadow: 0 12px 24px rgba(4, 51, 57, 0.12) !important;
}

@media (max-width: 520px) {
  html body .app-shell .map-stage.memories-focus #memoryList .memory-lane-card .memory-card-action,
  html body main.app-shell section.map-stage.memories-focus #memoryList .memory-lane-card .memory-card-action {
    width: 100% !important;
    min-height: 46px !important;
  }
}

/* Home v551: intentional zero-memory art for Echo and Recent Memories. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-mappi,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-mappi {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 92px !important;
  height: 92px !important;
  min-width: 92px !important;
  padding: 6px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  border-radius: 26px !important;
  background: linear-gradient(145deg, #083f52, #159b7a) !important;
  box-shadow: 0 14px 30px rgba(9, 74, 79, 0.16) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-mappi img,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-mappi img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 20px !important;
  filter: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-empty-guidance,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-empty-guidance {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-height: 66px !important;
  padding: 10px 16px !important;
  border: 1px dashed rgba(18, 97, 111, 0.14) !important;
  border-radius: 20px !important;
  color: rgba(7, 54, 66, 0.68) !important;
  text-align: left !important;
  background: rgba(255, 253, 248, 0.52) !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-guidance-icon,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-guidance-icon {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  border-radius: 13px !important;
  color: #0d776d !important;
  background: linear-gradient(145deg, rgba(223, 248, 239, 0.92), rgba(224, 241, 249, 0.86)) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-empty-guidance > span:last-child,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-empty-guidance > span:last-child {
  display: grid !important;
  gap: 3px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-empty-guidance strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-empty-guidance strong {
  color: #073f52 !important;
  font-size: 0.9rem !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-empty-guidance small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-empty-guidance small {
  color: rgba(7, 54, 66, 0.58) !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-mappi,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-mappi {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-empty-guidance,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-empty-guidance {
    justify-content: flex-start !important;
    padding: 10px 12px !important;
  }
}

/* Home v478: redesigned empty Today's Memory preview as a clean blank memory page. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today {
  gap: 12px !important;
  padding: clamp(12px, 2vw, 16px) !important;
  border: 1px solid rgba(211, 247, 235, 0.48) !important;
  border-radius: 34px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.84), rgba(245, 252, 248, 0.72)),
    radial-gradient(circle at 16% 0%, rgba(24, 169, 120, 0.1), transparent 36%) !important;
  box-shadow:
    0 20px 48px rgba(7, 64, 68, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline {
  justify-content: flex-start !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-name-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-date-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-name-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-date-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  min-height: clamp(235px, 29vw, 315px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(117, 202, 187, 0.24) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.72), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(51, 190, 142, 0.2), transparent 34%),
    radial-gradient(circle at 10% 100%, rgba(31, 78, 121, 0.1), transparent 40%),
    linear-gradient(145deg, #fbfff9 0%, #ecfaf3 56%, #e6f5f8 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 34px rgba(7, 64, 68, 0.08) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::before,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::before {
  content: "" !important;
  position: absolute !important;
  inset: 14px !important;
  border: 1px dashed rgba(7, 90, 85, 0.14) !important;
  border-radius: 22px !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::after,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::after {
  content: "" !important;
  position: absolute !important;
  inset: auto -8% -42% -8% !important;
  height: 70% !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(24, 169, 120, 0.12), transparent 62%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  justify-items: center !important;
  width: min(100%, 520px) !important;
  gap: 10px !important;
  padding: clamp(22px, 4vw, 36px) !important;
  color: #07323f !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card .today-empty-date,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card .today-empty-date {
  width: fit-content !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(20, 116, 111, 0.12) !important;
  border-radius: 999px !important;
  color: rgba(7, 50, 63, 0.62) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card .today-memory-title,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card .today-memory-title {
  max-width: 17ch !important;
  margin: 0 !important;
  color: #063846 !important;
  font-size: clamp(1.72rem, 4vw, 2.82rem) !important;
  font-weight: 960 !important;
  letter-spacing: 0 !important;
  line-height: 1.02 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card p,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card p {
  max-width: 34ch !important;
  margin: 0 auto !important;
  color: rgba(7, 50, 63, 0.68) !important;
  font-size: clamp(0.96rem, 1.6vw, 1.08rem) !important;
  font-weight: 660 !important;
  line-height: 1.42 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card .today-empty-mappi-note,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card .today-empty-mappi-note {
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 4px !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(24, 169, 120, 0.14) !important;
  border-radius: 999px !important;
  color: rgba(7, 83, 83, 0.74) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: 0 10px 22px rgba(7, 70, 78, 0.06) !important;
  font-size: 0.8rem !important;
  font-weight: 880 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today {
    border-radius: 28px !important;
    padding: 11px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
    min-height: 230px !important;
    border-radius: 23px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card {
    padding: 24px 18px !important;
  }
}

/* Home v475: premium Recent Memories shelf. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
  display: grid !important;
  gap: 14px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  position: relative !important;
  display: grid !important;
  grid-template-columns: clamp(116px, 19vw, 168px) minmax(0, 1fr) !important;
  gap: clamp(14px, 2.2vw, 22px) !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 168px !important;
  padding: clamp(12px, 1.9vw, 16px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(161, 223, 203, 0.34) !important;
  border-radius: 30px !important;
  color: #07323f !important;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--recent-accent, #18a978) 18%, transparent), transparent 42%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(236, 250, 245, 0.9)) !important;
  box-shadow:
    0 20px 48px rgba(7, 64, 68, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  cursor: pointer !important;
  text-align: left !important;
  transform: translateZ(0) !important;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature:hover,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature:hover {
  border-color: color-mix(in srgb, var(--recent-accent, #18a978) 38%, rgba(255, 255, 255, 0.35)) !important;
  box-shadow:
    0 24px 58px rgba(7, 64, 68, 0.14),
    0 0 0 5px color-mix(in srgb, var(--recent-accent, #18a978) 9%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  min-height: 142px !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.36), transparent 38%),
    linear-gradient(135deg, #0b5362, #18a978) !important;
  box-shadow:
    0 14px 30px rgba(5, 49, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art img,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art::after,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(180deg, transparent 42%, rgba(5, 45, 55, 0.18)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art-fallback,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art-fallback {
  display: grid !important;
  width: 54px !important;
  height: 54px !important;
  place-items: center !important;
  border-radius: 18px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
  font-size: 1.6rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body {
  display: grid !important;
  align-content: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 4px 4px 4px 0 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-kicker,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-kicker {
  width: fit-content !important;
  max-width: 100% !important;
  padding: 6px 10px !important;
  overflow: hidden !important;
  border: 1px solid rgba(20, 116, 111, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(7, 73, 80, 0.72) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: #07323f !important;
  font-size: clamp(1.12rem, 2vw, 1.52rem) !important;
  font-weight: 960 !important;
  line-height: 1.05 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body em {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: rgba(7, 50, 63, 0.66) !important;
  font-size: 0.86rem !important;
  font-style: normal !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-relive,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-relive {
  width: fit-content !important;
  margin-top: 3px !important;
  padding: 9px 13px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(135deg, #063f55, color-mix(in srgb, var(--recent-accent, #18a978) 72%, #087d86)) !important;
  box-shadow:
    0 12px 24px color-mix(in srgb, var(--recent-accent, #18a978) 22%, rgba(7, 64, 68, 0.16)),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
  font-size: 0.8rem !important;
  font-weight: 940 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(230px, 280px) !important;
  gap: 12px !important;
  margin-inline: -2px !important;
  padding: 2px 2px 8px !important;
  overflow-x: auto !important;
  overscroll-behavior-inline: contain !important;
  scroll-snap-type: inline proximity !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip::-webkit-scrollbar {
  height: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip::-webkit-scrollbar-track {
  background: rgba(8, 75, 76, 0.04) !important;
  border-radius: 999px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip::-webkit-scrollbar-thumb {
  background: rgba(8, 75, 76, 0.16) !important;
  border-radius: 999px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card {
  display: grid !important;
  grid-template-columns: 70px minmax(0, 1fr) !important;
  gap: 11px !important;
  align-items: center !important;
  min-height: 94px !important;
  padding: 10px !important;
  border: 1px solid rgba(161, 223, 203, 0.28) !important;
  border-radius: 23px !important;
  color: #07323f !important;
  background: rgba(255, 253, 248, 0.78) !important;
  box-shadow:
    0 13px 28px rgba(7, 64, 68, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
  scroll-snap-align: start !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art {
  display: grid !important;
  width: 70px !important;
  height: 70px !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0b5362, color-mix(in srgb, var(--recent-accent, #18a978) 72%, #159b8c)) !important;
  font-size: 1.32rem !important;
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong {
  color: #07323f !important;
  font-size: 0.94rem !important;
  font-weight: 930 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small {
  color: rgba(7, 50, 63, 0.6) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note {
  display: grid !important;
  gap: 10px !important;
  justify-items: center !important;
  min-height: 154px !important;
  padding: 24px !important;
  border: 1px solid rgba(161, 223, 203, 0.3) !important;
  border-radius: 28px !important;
  color: #07323f !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(24, 169, 120, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(236, 250, 245, 0.88)) !important;
  box-shadow: 0 16px 34px rgba(7, 64, 68, 0.08) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty img {
  width: 68px !important;
  height: 68px !important;
  object-fit: contain !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty span,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty span,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note {
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty strong,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note strong {
  display: block !important;
  color: #07323f !important;
  font-size: 1.02rem !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note small {
  display: block !important;
  margin-top: 4px !important;
  color: rgba(7, 50, 63, 0.64) !important;
  font-size: 0.84rem !important;
  font-weight: 650 !important;
  line-height: 1.36 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    min-height: 134px !important;
    gap: 12px !important;
    padding: 10px !important;
    border-radius: 25px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
    min-height: 112px !important;
    border-radius: 19px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body {
    gap: 5px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body em,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body em {
    display: none !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
    grid-auto-columns: minmax(210px, 78vw) !important;
  }
}

/* Home v472: calmer premium empty preview for Today's Memory. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today {
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-name-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-name-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline {
  position: relative !important;
  z-index: 3 !important;
  justify-content: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-date-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-date-pill {
  color: rgba(7, 50, 63, 0.58) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(20, 116, 111, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  place-items: center !important;
  width: 100% !important;
  min-height: clamp(270px, 33vw, 350px) !important;
  padding: clamp(30px, 4vw, 46px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(135, 218, 194, 0.26) !important;
  border-radius: clamp(28px, 4vw, 38px) !important;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.94), transparent 25%),
    radial-gradient(circle at 86% 18%, rgba(110, 226, 186, 0.34), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(45, 156, 219, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(251, 255, 250, 0.98), rgba(229, 249, 241, 0.94) 52%, rgba(215, 241, 245, 0.92)) !important;
  box-shadow:
    0 24px 58px rgba(7, 70, 78, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::before,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::before {
  content: "" !important;
  position: absolute !important;
  inset: auto 12% -42% 12% !important;
  height: 62% !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(24, 169, 120, 0.16), transparent 66%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::after,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background:
    repeating-linear-gradient(0deg, rgba(7, 72, 82, 0.02) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 60% 62%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.4px) !important;
  background-size: auto, 20px 20px !important;
  opacity: 0.5 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  justify-items: center !important;
  max-width: min(540px, 100%) !important;
  gap: 10px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: #07323f !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title {
  max-width: 18ch !important;
  color: #07323f !important;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem) !important;
  font-weight: 940 !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy small,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy small {
  width: fit-content !important;
  padding: 6px 11px !important;
  border: 1px solid rgba(20, 116, 111, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(7, 50, 63, 0.62) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(0.74rem, 1vw, 0.84rem) !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p {
  max-width: 39ch !important;
  margin: 0 auto !important;
  color: rgba(7, 50, 63, 0.68) !important;
  font-size: clamp(1rem, 1.7vw, 1.16rem) !important;
  font-weight: 650 !important;
  line-height: 1.46 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-mappi-note,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-empty-mappi-note {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  margin-top: 2px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(24, 169, 120, 0.12) !important;
  border-radius: 999px !important;
  color: rgba(7, 83, 83, 0.7) !important;
  background: rgba(255, 255, 255, 0.52) !important;
  box-shadow: 0 10px 22px rgba(7, 70, 78, 0.06) !important;
  font-size: clamp(0.74rem, 1vw, 0.84rem) !important;
  font-weight: 820 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
    min-height: 255px !important;
    padding: 28px 18px !important;
    border-radius: 28px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title {
    max-width: 14ch !important;
    font-size: clamp(1.75rem, 9vw, 2.55rem) !important;
  }
}

/* Home v471: calm scrapbook invitation when Today has no memory yet. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today {
  position: relative !important;
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline {
  position: relative !important;
  z-index: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-name-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-name-pill {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-date-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-date-pill {
  color: rgba(7, 50, 63, 0.58) !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
  min-height: clamp(245px, 31vw, 330px) !important;
  padding: clamp(26px, 4vw, 42px) !important;
  border: 1px solid rgba(135, 218, 194, 0.26) !important;
  border-radius: clamp(28px, 4vw, 38px) !important;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.88), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(110, 226, 186, 0.34), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(45, 156, 219, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(251, 255, 250, 0.96), rgba(229, 249, 241, 0.92) 52%, rgba(215, 241, 245, 0.9)) !important;
  box-shadow:
    0 24px 58px rgba(7, 70, 78, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::after,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite::after {
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background:
    repeating-linear-gradient(0deg, rgba(7, 72, 82, 0.02) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 60% 62%, rgba(255, 255, 255, 0.26) 0 1px, transparent 1.3px) !important;
  background-size: auto, 20px 20px !important;
  content: "" !important;
  opacity: 0.52 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  justify-items: center !important;
  max-width: min(540px, 100%) !important;
  gap: 10px !important;
  color: #07323f !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title {
  max-width: 18ch !important;
  color: #07323f !important;
  font-size: clamp(1.85rem, 4.2vw, 3.2rem) !important;
  font-weight: 940 !important;
  line-height: 0.98 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy small,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy small {
  width: fit-content !important;
  padding: 6px 11px !important;
  border: 1px solid rgba(20, 116, 111, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(7, 50, 63, 0.62) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(0.74rem, 1vw, 0.84rem) !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p {
  max-width: 39ch !important;
  color: rgba(7, 50, 63, 0.68) !important;
  font-size: clamp(1rem, 1.7vw, 1.16rem) !important;
  font-weight: 650 !important;
  line-height: 1.46 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-mappi-note,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-empty-mappi-note {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  margin-top: 2px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(24, 169, 120, 0.12) !important;
  border-radius: 999px !important;
  color: rgba(7, 83, 83, 0.7) !important;
  background: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 10px 22px rgba(7, 70, 78, 0.06) !important;
  font-size: clamp(0.74rem, 1vw, 0.84rem) !important;
  font-weight: 820 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
    min-height: 280px !important;
    padding: 24px 18px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title {
    font-size: clamp(1.6rem, 8vw, 2.35rem) !important;
  }
}

/* Home v463: Memory Echo thumbnail can also relive the memory. */
html body .app-shell .map-stage.home-focus #homeOnThisDay button.memory-echo-thumb,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay button.memory-echo-thumb {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    filter 220ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay button.memory-echo-thumb:hover,
html body .app-shell .map-stage.home-focus #homeOnThisDay button.memory-echo-thumb:focus-visible,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay button.memory-echo-thumb:hover,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay button.memory-echo-thumb:focus-visible {
  filter: saturate(1.06) brightness(1.02) !important;
  outline: none !important;
  transform: translateY(-2px) scale(1.015) !important;
  box-shadow:
    0 20px 38px rgba(6, 67, 76, 0.2),
    0 0 0 8px color-mix(in srgb, var(--echo-accent, #1bb58d) 14%, rgba(255, 255, 255, 0.38)),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay button.memory-echo-thumb,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay button.memory-echo-thumb {
    transition: none !important;
  }
}

/* Home v462: barely-there paper texture for Memory Echo. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card::after,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card::after {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.2), transparent 34%, rgba(9, 84, 92, 0.025) 66%, transparent),
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.2px),
    radial-gradient(circle at 72% 68%, rgba(7, 72, 82, 0.045) 0 0.8px, transparent 1.1px),
    repeating-linear-gradient(0deg, rgba(7, 72, 82, 0.022) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 6px) !important;
  background-size: auto, 18px 18px, 22px 22px, auto, auto !important;
  content: "" !important;
  mix-blend-mode: soft-light !important;
  opacity: 0.42 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-reason-stack,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-progress,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-reason-stack,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-body,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-progress {
  position: relative !important;
  z-index: 1 !important;
}

/* Home v447: Mappi voice for Memory Echo. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading > strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .home-section-heading > strong {
  max-width: 520px !important;
  color: #063542 !important;
  font-size: clamp(1.08rem, 1.7vw, 1.38rem) !important;
  line-height: 1.12 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-whisper,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-whisper {
  max-width: 430px !important;
  color: rgba(6, 53, 66, 0.66) !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-reason,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-reason {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(33, 135, 137, 0.16) !important;
  border-radius: 999px !important;
  color: #0b6572 !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

/* Home v443: clear Memory Echo reason labels. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-reason-stack,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-reason-stack {
  position: relative !important;
  display: grid !important;
  gap: 6px !important;
  justify-items: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-why,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-why {
  display: block !important;
  max-width: min(100%, 360px) !important;
  color: rgba(7, 50, 63, 0.58) !important;
  font-size: clamp(0.78rem, 1.05vw, 0.88rem) !important;
  font-weight: 780 !important;
  line-height: 1.25 !important;
}

/* Home v464: tiny smart "why now" note for Memory Echo. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-why-now,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-why-now {
  display: block !important;
  max-width: min(100%, 390px) !important;
  margin-top: -2px !important;
  color: rgba(7, 50, 63, 0.48) !important;
  font-size: clamp(0.7rem, 0.95vw, 0.8rem) !important;
  font-weight: 740 !important;
  letter-spacing: 0 !important;
  line-height: 1.28 !important;
}

/* Home v465: Life Chapters as premium mini storybooks. */
html body .app-shell .map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeJourney {
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(285px, 360px) !important;
  gap: 14px !important;
  width: 100% !important;
  overflow-x: auto !important;
  padding: 2px 2px 10px !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row::-webkit-scrollbar,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row::-webkit-scrollbar {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 108px minmax(0, 1fr) !important;
  gap: 14px !important;
  min-height: 178px !important;
  padding: 12px !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--chapter-accent, #1bb58d) 18%, rgba(255, 255, 255, 0.62)) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--chapter-accent, #1bb58d) 17%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 253, 249, 0.88)) !important;
  box-shadow:
    0 18px 40px rgba(7, 70, 78, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  scroll-snap-align: start !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::after {
  position: absolute !important;
  inset: auto -20% -42% 34% !important;
  height: 78% !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, color-mix(in srgb, var(--chapter-accent, #1bb58d) 16%, transparent), transparent 68%) !important;
  content: "" !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  position: relative !important;
  display: grid !important;
  min-height: 154px !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--chapter-accent, #1bb58d) 18%, #0b6572), #f4fdfb) !important;
  box-shadow: 0 14px 28px rgba(7, 70, 78, 0.14) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover::after {
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(180deg, rgba(2, 27, 38, 0.02), rgba(2, 27, 38, 0.34)),
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.22), transparent 34%) !important;
  content: "" !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-fallback,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-fallback {
  display: grid !important;
  place-items: center !important;
  min-height: 154px !important;
  color: rgba(255, 255, 255, 0.96) !important;
  font-size: 2rem !important;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-type,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-type {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 10px !important;
  z-index: 1 !important;
  padding: 6px 8px !important;
  border-radius: 999px !important;
  color: #f8fffb !important;
  background: rgba(3, 36, 48, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  align-content: center !important;
  gap: 7px !important;
  min-width: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-kicker,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-kicker {
  width: fit-content !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--chapter-accent, #0b6572) 72%, #063542) !important;
  background: color-mix(in srgb, var(--chapter-accent, #1bb58d) 10%, rgba(255, 255, 255, 0.72)) !important;
  font-size: 0.67rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy strong {
  overflow: hidden !important;
  color: #07323f !important;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem) !important;
  font-weight: 940 !important;
  line-height: 1.04 !important;
  text-overflow: ellipsis !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy small {
  color: rgba(7, 50, 63, 0.58) !important;
  font-size: 0.76rem !important;
  font-weight: 760 !important;
  line-height: 1.32 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 32px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-more {
  display: grid !important;
  width: 30px !important;
  height: 30px !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 2px solid rgba(255, 255, 255, 0.82) !important;
  border-radius: 10px !important;
  color: #07323f !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 8px 16px rgba(7, 70, 78, 0.1) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin-top: 2px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
  min-height: 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  font: inherit !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive {
  padding: 0 13px !important;
  color: #fff !important;
  background:
    linear-gradient(135deg, #073f52, color-mix(in srgb, var(--chapter-accent, #1bb58d) 70%, #0b7285)) !important;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--chapter-accent, #1bb58d) 24%, rgba(7, 70, 78, 0.14)) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-open {
  padding: 0 12px !important;
  color: rgba(7, 50, 63, 0.68) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty {
  display: grid !important;
  justify-items: center !important;
  gap: 8px !important;
  padding: 22px !important;
  border: 1px solid rgba(20, 116, 111, 0.11) !important;
  border-radius: 26px !important;
  color: rgba(7, 50, 63, 0.66) !important;
  background: rgba(255, 253, 248, 0.62) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty img {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty strong {
  color: #07323f !important;
  font-size: 1rem !important;
}

@media (max-width: 620px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
    grid-auto-columns: minmax(82vw, 1fr) !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    min-height: 168px !important;
  }
}

/* Home v466: elevate Life Chapters into richer storybook cards. */
html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeJourney .home-section-heading {
  margin-bottom: 2px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
  grid-auto-columns: minmax(320px, 390px) !important;
  gap: 16px !important;
  padding: 4px 3px 12px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  grid-template-columns: 122px minmax(0, 1fr) !important;
  min-height: 204px !important;
  padding: 14px !important;
  border-color: color-mix(in srgb, var(--chapter-accent, #1bb58d) 24%, rgba(255, 255, 255, 0.66)) !important;
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--chapter-accent, #1bb58d) 20%, transparent), transparent 42%),
    radial-gradient(circle at 92% 90%, rgba(255, 255, 255, 0.72), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.965), color-mix(in srgb, var(--chapter-accent, #1bb58d) 7%, #f8fffb) 55%, rgba(237, 250, 248, 0.9)) !important;
  box-shadow:
    0 22px 52px rgba(7, 70, 78, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.74) inset !important;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease,
    border-color 240ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::before,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  background:
    repeating-linear-gradient(0deg, rgba(7, 72, 82, 0.018) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.3px) !important;
  background-size: auto, 18px 18px !important;
  content: "" !important;
  opacity: 0.54 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card:hover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card:hover {
  border-color: color-mix(in srgb, var(--chapter-accent, #1bb58d) 36%, rgba(255, 255, 255, 0.7)) !important;
  box-shadow:
    0 26px 62px rgba(7, 70, 78, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
  transform: translateY(-2px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  position: relative !important;
  z-index: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  min-height: 176px !important;
  border-radius: 22px !important;
  box-shadow:
    0 18px 34px rgba(7, 70, 78, 0.17),
    0 0 0 6px color-mix(in srgb, var(--chapter-accent, #1bb58d) 9%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-count-badge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 2 !important;
  display: grid !important;
  min-width: 30px !important;
  height: 30px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 999px !important;
  color: #f8fffb !important;
  background: rgba(3, 36, 48, 0.62) !important;
  box-shadow:
    0 10px 18px rgba(2, 28, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  font-size: 0.76rem !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  gap: 8px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-route,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-route {
  display: grid !important;
  grid-template-columns: 9px 1fr 9px auto !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  color: rgba(7, 50, 63, 0.52) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-route span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-route span {
  display: block !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-route span:nth-child(1),
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-route span:nth-child(3),
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-route span:nth-child(1),
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-route span:nth-child(3) {
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--chapter-accent, #1bb58d) 62%, #ffffff) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--chapter-accent, #1bb58d) 10%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-route span:nth-child(2),
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-route span:nth-child(2) {
  height: 2px !important;
  border-radius: 999px !important;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--chapter-accent, #1bb58d) 48%, rgba(7, 50, 63, 0.2)) 0 7px, transparent 7px 12px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-route em,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-route em {
  overflow: hidden !important;
  max-width: 92px !important;
  color: rgba(7, 50, 63, 0.52) !important;
  font-size: 0.68rem !important;
  font-style: normal !important;
  font-weight: 820 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
  min-width: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 620px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
    grid-auto-columns: minmax(86vw, 1fr) !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
    grid-template-columns: 108px minmax(0, 1fr) !important;
    min-height: 190px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
    min-height: 162px !important;
  }
}

/* Home v467: make Life Chapters clearly browsable and cleaner. */
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-shelf,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-shelf {
  position: relative !important;
  display: grid !important;
  width: 100% !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-shelf::before,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-shelf::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-shelf::before,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-shelf::after {
  position: absolute !important;
  top: 8px !important;
  bottom: 14px !important;
  z-index: 2 !important;
  width: 42px !important;
  content: "" !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-shelf::before,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-shelf::before {
  left: 0 !important;
  background: linear-gradient(90deg, rgba(246, 253, 248, 0.96), transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-shelf::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-shelf::after {
  right: 0 !important;
  background: linear-gradient(270deg, rgba(246, 253, 248, 0.96), transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-scroll,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-scroll {
  position: absolute !important;
  top: 50% !important;
  z-index: 5 !important;
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  border: 1px solid rgba(13, 112, 122, 0.14) !important;
  border-radius: 999px !important;
  color: #063542 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(235, 249, 245, 0.82)) !important;
  box-shadow:
    0 14px 28px rgba(7, 70, 78, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  cursor: pointer !important;
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-scroll:hover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-scroll:hover {
  background: #ffffff !important;
  box-shadow: 0 18px 34px rgba(7, 70, 78, 0.18) !important;
  transform: translateY(-50%) scale(1.04) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-scroll.prev,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-scroll.prev {
  left: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-scroll.next,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-scroll.next {
  right: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
  scroll-padding-inline: 46px !important;
  padding-inline: 48px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  grid-template-columns: 132px minmax(0, 1fr) !important;
  min-height: 214px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  min-height: 184px !important;
  aspect-ratio: 0.78 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover img {
  filter: saturate(1.04) contrast(1.02) !important;
  transform: scale(1.01) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
  display: grid !important;
  gap: 3px !important;
  color: rgba(7, 50, 63, 0.6) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta span {
  overflow: hidden !important;
  color: rgba(7, 50, 63, 0.72) !important;
  font-size: 0.78rem !important;
  font-weight: 860 !important;
  line-height: 1.18 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta small {
  color: rgba(7, 50, 63, 0.48) !important;
  font-size: 0.7rem !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  margin-top: 1px !important;
}

@media (max-width: 620px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-scroll,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-scroll {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.4rem !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
    grid-auto-columns: minmax(88vw, 1fr) !important;
    padding-inline: 34px !important;
    scroll-padding-inline: 34px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
    grid-template-columns: 116px minmax(0, 1fr) !important;
    min-height: 198px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
    min-height: 170px !important;
  }
}

/* Home v468: make Life Chapter actions feel intentional. */
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  margin-top: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  width: 100% !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  font: inherit !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive {
  gap: 7px !important;
  padding: 0 14px !important;
  color: #f8fffb !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #073542, color-mix(in srgb, var(--chapter-accent, #1bb58d) 74%, #0a6170)) !important;
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--chapter-accent, #1bb58d) 28%, rgba(7, 70, 78, 0.16)),
    0 0 0 5px color-mix(in srgb, var(--chapter-accent, #1bb58d) 9%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive span {
  display: grid !important;
  width: 22px !important;
  height: 22px !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  font-size: 0.9rem !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive em,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive em {
  display: inline-block !important;
  font-style: normal !important;
  transition: transform 180ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-open {
  min-height: 30px !important;
  padding: 0 12px !important;
  color: rgba(7, 50, 63, 0.58) !important;
  background: rgba(255, 255, 255, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 16px rgba(7, 70, 78, 0.05) !important;
  font-size: 0.7rem !important;
  font-weight: 880 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive:hover,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive:focus-visible,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive:hover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive:focus-visible {
  outline: none !important;
  transform: translateY(-1px) !important;
  box-shadow:
    0 18px 34px color-mix(in srgb, var(--chapter-accent, #1bb58d) 32%, rgba(7, 70, 78, 0.18)),
    0 0 0 6px color-mix(in srgb, var(--chapter-accent, #1bb58d) 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive:hover em,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive:focus-visible em,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive:hover em,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive:focus-visible em {
  transform: translateX(3px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open:hover,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open:focus-visible,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-open:hover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-open:focus-visible {
  outline: none !important;
  color: #07323f !important;
  background: rgba(255, 255, 255, 0.76) !important;
}

@media (max-width: 620px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive {
    min-height: 36px !important;
    font-size: 0.73rem !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive span,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive span {
    width: 20px !important;
    height: 20px !important;
  }
}

/* Home v469: shorter Life Chapter cards with side-by-side actions. */
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
  grid-auto-columns: minmax(315px, 380px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  grid-template-columns: 118px minmax(0, 1fr) !important;
  min-height: 178px !important;
  padding: 12px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  min-height: 152px !important;
  aspect-ratio: 0.82 !important;
  border-radius: 20px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-type,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-type {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  gap: 6px !important;
  align-content: center !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) !important;
  gap: 7px !important;
  margin-top: 2px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
  min-height: 34px !important;
  padding-inline: 9px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive {
  gap: 5px !important;
  font-size: 0.69rem !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive span {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-open {
  min-height: 34px !important;
  font-size: 0.68rem !important;
}

@media (max-width: 620px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
    grid-auto-columns: minmax(88vw, 1fr) !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    min-height: 166px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
    min-height: 142px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
    gap: 6px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
    min-height: 32px !important;
    font-size: 0.64rem !important;
  }
}

/* Home v470: center and balance Life Chapter action buttons. */
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  align-self: center !important;
  justify-self: center !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: min(100%, 188px) !important;
  margin: 4px auto 0 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
  min-height: 34px !important;
  width: 100% !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: clamp(0.66rem, 0.78vw, 0.74rem) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive {
  gap: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive em,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive em {
  margin-left: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-open {
  color: rgba(7, 50, 63, 0.7) !important;
  background: rgba(255, 255, 255, 0.68) !important;
}

@media (max-width: 620px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
    width: min(100%, 174px) !important;
    gap: 6px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
    min-height: 31px !important;
    padding: 0 8px !important;
    font-size: 0.64rem !important;
  }
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card > strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card > strong {
  position: relative !important;
  max-width: min(100%, 460px) !important;
  color: #062f3b !important;
  font-size: clamp(1.25rem, 2.3vw, 1.72rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1.05 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card > small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card > small {
  position: relative !important;
  max-width: min(100%, 430px) !important;
  color: rgba(7, 50, 63, 0.7) !important;
  font-size: clamp(0.88rem, 1.3vw, 0.98rem) !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
}

/* Home v444: Memory Echo thumbnail preview. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-body {
  position: relative !important;
  display: grid !important;
  width: min(100%, 460px) !important;
  grid-template-columns: 74px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  justify-self: center !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
  display: grid !important;
  width: 74px !important;
  height: 74px !important;
  overflow: hidden !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.78), transparent 30%),
    linear-gradient(145deg, #1aae88, #0a6170) !important;
  box-shadow:
    0 12px 22px rgba(6, 67, 76, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.35rem !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb img,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy-main {
  display: grid !important;
  min-width: 0 !important;
  gap: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy-main strong {
  display: block !important;
  overflow: hidden !important;
  color: #062f3b !important;
  font-size: clamp(1.16rem, 2vw, 1.52rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1.06 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy-main small {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: rgba(7, 50, 63, 0.7) !important;
  font-size: clamp(0.84rem, 1.1vw, 0.94rem) !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 118px !important;
  min-height: 40px !important;
  margin-top: 2px !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0a6170, #1bb58d) !important;
  box-shadow:
    0 12px 24px rgba(7, 85, 87, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  font-size: 0.82rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  appearance: none !important;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive:hover,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive:hover {
  box-shadow:
    0 16px 30px rgba(7, 85, 87, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
  filter: saturate(1.08) !important;
  transform: translateY(-1px) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive:focus-visible,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive:focus-visible {
  outline: 3px solid rgba(27, 181, 141, 0.32) !important;
  outline-offset: 3px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 200, 87, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 253, 249, 0.9)) !important;
}

@media (max-width: 560px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature {
    margin-top: 10px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card {
    min-height: 140px !important;
    padding: 18px !important;
    border-radius: 24px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-body {
    width: 100% !important;
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
    width: 62px !important;
    height: 62px !important;
    border-radius: 16px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main strong,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy-main strong {
    white-space: normal !important;
  }
}

/* Home v449: let Today's Memory photo breathe. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main {
  min-height: clamp(380px, 48vw, 500px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy {
  position: absolute !important;
  right: clamp(14px, 2.2vw, 24px) !important;
  bottom: clamp(14px, 2.2vw, 24px) !important;
  left: clamp(14px, 2.2vw, 24px) !important;
  z-index: 7 !important;
  display: grid !important;
  width: auto !important;
  max-width: min(620px, calc(100% - 28px)) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: clamp(15px, 2.2vw, 22px) !important;
  border: 1px solid rgba(230, 255, 248, 0.18) !important;
  border-radius: clamp(18px, 2.5vw, 24px) !important;
  background:
    linear-gradient(135deg, rgba(4, 45, 55, 0.72), rgba(8, 91, 95, 0.58) 58%, rgba(26, 174, 136, 0.42)) !important;
  box-shadow:
    0 18px 42px rgba(0, 19, 26, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  gap: clamp(7px, 1vw, 10px) !important;
  justify-items: start !important;
  text-align: left !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-photo::after,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-photo::after {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  height: 46% !important;
  content: "" !important;
  background: linear-gradient(180deg, transparent, rgba(1, 20, 27, 0.46) 76%, rgba(1, 20, 27, 0.64)) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-title,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-title {
  font-size: clamp(1.35rem, 2.8vw, 2.15rem) !important;
  line-height: 1.02 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy small,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy small {
  font-size: clamp(0.78rem, 1.25vw, 0.92rem) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy p,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy p {
  display: -webkit-box !important;
  overflow: hidden !important;
  max-width: 52ch !important;
  margin: 0 !important;
  font-size: clamp(0.9rem, 1.45vw, 1.05rem) !important;
  line-height: 1.38 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-chip-row,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-chip-row {
  gap: 7px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button {
  min-height: 38px !important;
  margin-top: 2px !important;
  padding-inline: 18px !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main {
    min-height: clamp(360px, 88vw, 470px) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy {
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    max-width: calc(100% - 24px) !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }
}

/* Home v450: cleaner premium Today's Memory manual slider. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-switcher,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-switcher {
  justify-items: center !important;
  gap: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-label,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-label {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-scroll,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-scroll {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  gap: 8px !important;
  margin-inline: auto !important;
  padding: 8px !important;
  overflow-x: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(3, 28, 36, 0.28) !important;
  box-shadow:
    0 14px 34px rgba(0, 19, 26, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
  scrollbar-width: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-scroll::-webkit-scrollbar,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-scroll::-webkit-scrollbar {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice {
  display: grid !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  overflow: hidden !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 50% !important;
  color: rgba(255, 255, 255, 0.86) !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 34%),
    rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 8px 18px rgba(0, 18, 24, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  cursor: pointer !important;
  opacity: 0.82 !important;
  transform: none !important;
  transition:
    width 240ms ease,
    min-width 240ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease,
    transform 220ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice img,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice span,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice span {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-items: center !important;
  color: rgba(255, 255, 255, 0.92) !important;
  background: transparent !important;
  font-size: 0.76rem !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice strong,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice strong {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice:hover,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice:hover {
  border-color: rgba(255, 255, 255, 0.52) !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice.active,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice.active {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  border-color: rgba(255, 255, 255, 0.86) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(10, 97, 112, 0.94), rgba(27, 181, 141, 0.94)) !important;
  box-shadow:
    0 12px 26px rgba(0, 25, 31, 0.22),
    0 0 0 4px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  opacity: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice.active img,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice.active img {
  filter: saturate(1.04) contrast(1.02) !important;
}

@media (max-width: 560px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-scroll,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-switcher-scroll {
    gap: 7px !important;
    padding: 7px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice {
    width: 31px !important;
    min-width: 31px !important;
    max-width: 31px !important;
    height: 31px !important;
    min-height: 31px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-choice.active,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-choice.active {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
  }
}

/* Home v451: balance Today's Memory slider with the photo panel. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory {
  gap: clamp(10px, 1.4vw, 14px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-topline,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-topline {
  margin-bottom: clamp(8px, 1.2vw, 12px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main {
  overflow: hidden !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-footer,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-footer {
  position: absolute !important;
  right: clamp(16px, 2.4vw, 26px) !important;
  bottom: calc(clamp(14px, 2.2vw, 24px) + clamp(126px, 15vw, 176px)) !important;
  left: clamp(16px, 2.4vw, 26px) !important;
  z-index: 9 !important;
  display: flex !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-switcher,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-switcher,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-switcher-scroll,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-switcher-scroll,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-choice,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-choice {
  pointer-events: auto !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-switcher-scroll,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-switcher-scroll {
  padding: 6px !important;
  gap: 7px !important;
  background: rgba(3, 28, 36, 0.34) !important;
  box-shadow:
    0 10px 24px rgba(0, 19, 26, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-choice,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-choice {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-choice.active,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-choice.active {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-footer,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-footer {
    right: 12px !important;
    bottom: calc(12px + clamp(132px, 42vw, 176px)) !important;
    left: 12px !important;
  }
}

@media (max-width: 430px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-footer,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-footer {
    bottom: calc(12px + clamp(150px, 48vw, 190px)) !important;
  }
}

/* Home v452: place Today's Memory slider cleanly inside the photo. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-slide-count,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-slide-count {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main {
  position: relative !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-footer,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-footer {
  position: absolute !important;
  top: clamp(12px, 1.8vw, 18px) !important;
  right: clamp(12px, 1.8vw, 18px) !important;
  bottom: auto !important;
  left: clamp(12px, 1.8vw, 18px) !important;
  z-index: 10 !important;
  display: flex !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-switcher-scroll,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-switcher-scroll {
  padding: 5px !important;
  gap: 6px !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(3, 28, 36, 0.26) !important;
  box-shadow:
    0 10px 24px rgba(0, 19, 26, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-choice,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-choice {
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-choice.active,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-choice.active {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
}

@media (max-width: 560px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-footer,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-footer {
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
  }
}

/* Home v453: center Today's Memory wording box. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy {
  right: 50% !important;
  left: auto !important;
  width: min(620px, calc(100% - clamp(28px, 4.4vw, 48px))) !important;
  max-width: min(620px, calc(100% - clamp(28px, 4.4vw, 48px))) !important;
  transform: translateX(50%) !important;
  justify-items: center !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy p,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy p {
  margin-inline: auto !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-chip-row,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-chip-row {
  justify-content: center !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }
}

/* Home v454: slimmer Today's Memory wording box with emotion in metadata. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy {
  width: min(560px, calc(100% - clamp(36px, 6vw, 72px))) !important;
  max-width: min(560px, calc(100% - clamp(36px, 6vw, 72px))) !important;
  padding: clamp(13px, 1.8vw, 18px) !important;
  gap: clamp(5px, 0.75vw, 8px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-title,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-title {
  font-size: clamp(1.24rem, 2.45vw, 1.9rem) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy small,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy small {
  max-width: min(100%, 46ch) !important;
  margin-inline: auto !important;
  color: rgba(238, 255, 250, 0.82) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-chip-row:empty,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-chip-row:empty {
  display: none !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    padding: 13px !important;
  }
}

/* Home v455: more cinematic Memory Echo thumbnail. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-body {
  width: min(100%, 500px) !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  gap: 16px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
  position: relative !important;
  width: 88px !important;
  height: 88px !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 24px !important;
  box-shadow:
    0 18px 34px rgba(6, 67, 76, 0.18),
    0 0 0 7px rgba(255, 255, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transform: rotate(-1.5deg) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb::after,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb::after {
  position: absolute !important;
  inset: 0 !important;
  content: "" !important;
  border-radius: inherit !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(0deg, rgba(2, 26, 34, 0.2), transparent 44%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb img,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb img {
  transform: scale(1.035) !important;
  transition: transform 7000ms ease, filter 420ms ease !important;
  filter: saturate(1.06) contrast(1.03) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card:hover .memory-echo-thumb img,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card:hover .memory-echo-thumb img {
  transform: scale(1.09) !important;
}

@media (max-width: 560px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-body {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 13px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
    width: 76px !important;
    height: 76px !important;
    border-radius: 21px !important;
  }
}

/* Home v456: calm Memory Echo rotation progress. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-progress,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-progress {
  position: relative !important;
  display: block !important;
  width: min(180px, 58%) !important;
  height: 3px !important;
  margin-top: 2px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(8, 91, 95, 0.12) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-progress span,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-progress span {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, rgba(10, 97, 112, 0.34), rgba(27, 181, 141, 0.76)) !important;
  box-shadow: 0 0 12px rgba(27, 181, 141, 0.2) !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  animation: memoryEchoProgress 9s linear both !important;
}

@keyframes memoryEchoProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-progress span,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-progress span {
    animation: none !important;
    transform: scaleX(1) !important;
  }
}

/* Home v457: make Memory Echo Relive feel like the action. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive {
  min-width: 132px !important;
  min-height: 42px !important;
  gap: 8px !important;
  padding: 11px 20px !important;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.36), transparent 36%),
    linear-gradient(135deg, #073f52, #0d8b7c 56%, #1bb58d) !important;
  box-shadow:
    0 14px 28px rgba(7, 85, 87, 0.24),
    0 0 0 5px rgba(27, 181, 141, 0.1),
    0 0 26px rgba(27, 181, 141, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive span,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive span {
  display: inline-block !important;
  font-size: 1.05em !important;
  line-height: 1 !important;
  transform: translateX(0) !important;
  transition: transform 220ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive:hover,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive:focus-visible,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive:hover,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive:focus-visible {
  box-shadow:
    0 18px 34px rgba(7, 85, 87, 0.3),
    0 0 0 6px rgba(27, 181, 141, 0.13),
    0 0 34px rgba(27, 181, 141, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive:hover span,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive:focus-visible span,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive:hover span,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive:focus-visible span {
  transform: translateX(3px) !important;
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive span,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive span {
    transition: none !important;
    transform: none !important;
  }
}

/* Home v458: tiny Mappi line for Memory Echo. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-mappi-line,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-mappi-line {
  display: block !important;
  width: fit-content !important;
  max-width: min(100%, 420px) !important;
  margin: 10px auto 0 !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(31, 159, 139, 0.14) !important;
  border-radius: 999px !important;
  color: rgba(7, 65, 72, 0.7) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
  font-size: clamp(0.72rem, 1vw, 0.82rem) !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature {
  margin-top: 10px !important;
}

/* Home v459: Memory Echo softly follows the memory emotion. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card {
  background:
    radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--echo-accent, #1bb58d) 20%, transparent), transparent 38%),
    radial-gradient(circle at 84% 88%, color-mix(in srgb, var(--echo-accent, #1bb58d) 12%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), color-mix(in srgb, var(--echo-accent, #1bb58d) 8%, #f4fdfb) 48%, rgba(229, 245, 250, 0.86)) !important;
  border-color: color-mix(in srgb, var(--echo-accent, #1bb58d) 34%, rgba(255, 255, 255, 0.66)) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-reason,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-reason {
  color: color-mix(in srgb, var(--echo-accent, #0b6572) 70%, #063542) !important;
  border-color: color-mix(in srgb, var(--echo-accent, #1bb58d) 20%, rgba(255, 255, 255, 0.55)) !important;
  background: color-mix(in srgb, var(--echo-accent, #1bb58d) 9%, rgba(255, 255, 255, 0.78)) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-progress,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-progress {
  background: color-mix(in srgb, var(--echo-accent, #1bb58d) 13%, rgba(255, 255, 255, 0.68)) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-progress span,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-progress span {
  background: linear-gradient(90deg, color-mix(in srgb, var(--echo-accent, #1bb58d) 36%, rgba(10, 97, 112, 0.3)), var(--echo-accent, #1bb58d)) !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--echo-accent, #1bb58d) 28%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive {
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.36), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--echo-accent, #1bb58d) 35%, #073f52), color-mix(in srgb, var(--echo-accent, #1bb58d) 48%, #0d8b7c) 56%, var(--echo-accent, #1bb58d)) !important;
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--echo-accent, #1bb58d) 24%, rgba(7, 85, 87, 0.18)),
    0 0 0 5px color-mix(in srgb, var(--echo-accent, #1bb58d) 10%, transparent),
    0 0 26px color-mix(in srgb, var(--echo-accent, #1bb58d) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
  box-shadow:
    0 18px 34px rgba(6, 67, 76, 0.18),
    0 0 0 7px color-mix(in srgb, var(--echo-accent, #1bb58d) 12%, rgba(255, 255, 255, 0.34)),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Home v460: tighten Memory Echo voice spacing. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .home-section-heading {
  margin-bottom: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-mappi-line,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-mappi-line {
  margin-top: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature {
  margin-top: 8px !important;
}

/* Home v461: softer Memory Echo card entrance during rotation. */
html body .app-shell .map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card {
  opacity: 0 !important;
  filter: blur(1.5px) saturate(0.98) !important;
  transform: translateY(6px) scale(0.992) !important;
  transition:
    opacity 300ms ease,
    filter 300ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card {
  animation: memoryEchoArriveSoftly 820ms cubic-bezier(0.19, 1, 0.22, 1) both !important;
}

@keyframes memoryEchoArriveSoftly {
  0% {
    opacity: 0;
    filter: blur(2px) saturate(0.98);
    transform: translateY(14px) scale(0.988);
  }
  58% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateY(-1px) scale(1.002);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card,
  html body .app-shell .map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card {
    animation: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Home v474: last-pass empty Today's Memory preview polish. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today {
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-name-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-name-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin.today-memory-pin-glyph {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline {
  justify-content: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
  display: grid !important;
  place-items: center !important;
  min-height: clamp(270px, 33vw, 350px) !important;
  padding: clamp(30px, 4vw, 46px) !important;
  border: 1px solid rgba(135, 218, 194, 0.26) !important;
  border-radius: clamp(28px, 4vw, 38px) !important;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.94), transparent 25%),
    radial-gradient(circle at 86% 18%, rgba(110, 226, 186, 0.34), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(45, 156, 219, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(251, 255, 250, 0.98), rgba(229, 249, 241, 0.94) 52%, rgba(215, 241, 245, 0.92)) !important;
  box-shadow:
    0 24px 58px rgba(7, 70, 78, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy {
  display: grid !important;
  justify-items: center !important;
  max-width: min(540px, 100%) !important;
  gap: 10px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: #07323f !important;
  position: relative !important;
  text-align: center !important;
  z-index: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title {
  max-width: 18ch !important;
  color: #07323f !important;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem) !important;
  font-weight: 940 !important;
  letter-spacing: 0 !important;
  line-height: 0.98 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy small,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy small,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-mappi-note,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-empty-mappi-note {
  width: fit-content !important;
  border: 1px solid rgba(20, 116, 111, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(7, 50, 63, 0.64) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(0.74rem, 1vw, 0.84rem) !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-copy p {
  max-width: 39ch !important;
  margin: 0 auto !important;
  color: rgba(7, 50, 63, 0.68) !important;
  font-size: clamp(1rem, 1.7vw, 1.16rem) !important;
  font-weight: 650 !important;
  line-height: 1.46 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-mappi-note,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-empty-mappi-note {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 2px !important;
  padding: 7px 12px !important;
  color: rgba(7, 83, 83, 0.7) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
    min-height: 255px !important;
    padding: 28px 18px !important;
    border-radius: 28px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-title {
    max-width: 14ch !important;
    font-size: clamp(1.75rem, 9vw, 2.55rem) !important;
  }
}
/* Home v477: EOF guardrails for the premium Recent Memories shelf. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  display: grid !important;
  grid-template-columns: clamp(116px, 19vw, 168px) minmax(0, 1fr) !important;
  gap: clamp(14px, 2.2vw, 22px) !important;
  align-items: stretch !important;
  width: 100% !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(230px, 280px) !important;
  gap: 12px !important;
  overflow-x: auto !important;
  scroll-snap-type: inline proximity !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card {
  display: grid !important;
  grid-template-columns: 70px minmax(0, 1fr) !important;
  gap: 11px !important;
  align-items: center !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    grid-template-columns: 92px minmax(0, 1fr) !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
    grid-auto-columns: minmax(210px, 78vw) !important;
  }
}
/* Home v479: EOF final look for the empty Today's Memory preview. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today {
  padding: clamp(12px, 2vw, 16px) !important;
  border-radius: 34px !important;
  background: linear-gradient(180deg, rgba(255,253,248,.84), rgba(245,252,248,.72)) !important;
  box-shadow: 0 20px 48px rgba(7,64,68,.10), inset 0 1px 0 rgba(255,255,255,.74) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-name-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-date-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-pin {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .empty-memory-invite {
  display: grid !important;
  place-items: center !important;
  min-height: clamp(235px, 29vw, 315px) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.72), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(51,190,142,.20), transparent 34%),
    radial-gradient(circle at 10% 100%, rgba(31,78,121,.10), transparent 40%),
    linear-gradient(145deg, #fbfff9 0%, #ecfaf3 56%, #e6f5f8 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 16px 34px rgba(7,64,68,.08) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card {
  display: grid !important;
  justify-items: center !important;
  gap: 10px !important;
  width: min(100%, 520px) !important;
  padding: clamp(22px, 4vw, 36px) !important;
  color: #07323f !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card .today-memory-title {
  max-width: 17ch !important;
  margin: 0 !important;
  color: #063846 !important;
  font-size: clamp(1.72rem, 4vw, 2.82rem) !important;
  font-weight: 960 !important;
  line-height: 1.02 !important;
  text-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-empty-preview-card p {
  max-width: 34ch !important;
  margin: 0 auto !important;
  color: rgba(7,50,63,.68) !important;
  font-size: clamp(.96rem, 1.6vw, 1.08rem) !important;
  font-weight: 660 !important;
  line-height: 1.42 !important;
  text-shadow: none !important;
}

/* Home v480: functional, polished Recent Memories filters and metadata. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row {
  display: flex !important;
  gap: 8px !important;
  width: 100% !important;
  margin: -2px 0 2px !important;
  padding: 2px 2px 4px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row::-webkit-scrollbar {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(7, 83, 83, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(7, 50, 63, 0.66) !important;
  background: rgba(255, 253, 248, 0.62) !important;
  box-shadow:
    0 8px 18px rgba(7, 64, 68, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-size: 0.78rem !important;
  font-weight: 880 !important;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter:hover {
  transform: translateY(-1px) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter.active {
  color: #ffffff !important;
  border-color: rgba(218, 255, 247, 0.28) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(135deg, #063f55, #0c7d7e 54%, #18a978) !important;
  box-shadow:
    0 12px 26px rgba(7, 108, 97, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 1px 0 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span {
  max-width: 100% !important;
  padding: 5px 9px !important;
  overflow: hidden !important;
  border: 1px solid rgba(20, 116, 111, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(7, 50, 63, 0.62) !important;
  background: rgba(255, 255, 255, 0.48) !important;
  font-size: 0.7rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  min-height: 178px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-kicker {
  color: rgba(5, 62, 68, 0.74) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(232, 249, 242, 0.68)) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body small {
  -webkit-line-clamp: 1 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row {
    margin-bottom: 0 !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter {
    min-height: 32px !important;
    padding: 7px 11px !important;
    font-size: 0.74rem !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    min-height: 142px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row {
    gap: 5px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span {
    padding: 5px 8px !important;
    font-size: 0.66rem !important;
  }
}

/* Home v482: calmer premium hierarchy for hero, actions, and section roles. */
html body .app-shell .map-stage.home-focus .hero-copy {
  display: grid !important;
  justify-items: center !important;
  gap: clamp(10px, 1.8vw, 16px) !important;
  margin-bottom: clamp(18px, 3vw, 34px) !important;
}

html body .app-shell .map-stage.home-focus .hero-copy h2 {
  margin-bottom: 0 !important;
}

html body .app-shell .map-stage.home-focus .home-hero-tagline {
  width: fit-content !important;
  max-width: min(92vw, 520px) !important;
  margin: -2px auto 2px !important;
  padding: 9px 16px !important;
  border: 1px solid rgba(24, 169, 120, 0.14) !important;
  border-radius: 999px !important;
  color: rgba(6, 55, 67, 0.78) !important;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.66), rgba(232, 249, 242, 0.54)) !important;
  box-shadow:
    0 12px 26px rgba(7, 64, 68, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
  font-size: clamp(0.86rem, 1.35vw, 1rem) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-moment {
  margin-top: 0 !important;
  color: rgba(6, 55, 67, 0.58) !important;
  font-size: clamp(0.84rem, 1.2vw, 0.95rem) !important;
  font-weight: 700 !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard {
  gap: clamp(24px, 4.2vw, 42px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  margin-bottom: clamp(2px, 1vw, 8px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card::before {
  opacity: 1 !important;
  filter: blur(22px) !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(75, 185, 170, 0.22), transparent 42%),
    radial-gradient(circle at 72% 72%, rgba(31, 78, 121, 0.2), transparent 48%) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-relive-button,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-relive-button {
  width: fit-content !important;
  min-height: 42px !important;
  margin-top: 4px !important;
  padding: 11px 17px !important;
  border: 1px solid rgba(220, 255, 247, 0.32) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.32), transparent 38%),
    linear-gradient(135deg, #063f55, #0c7d7e 54%, #18a978) !important;
  box-shadow:
    0 14px 28px rgba(6, 97, 91, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  font-size: 0.82rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  pointer-events: auto !important;
}

html body .app-shell .map-stage.home-focus .home-action-section {
  margin-top: clamp(-2px, -0.4vw, 0px) !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions {
  gap: clamp(10px, 2vw, 15px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  position: relative !important;
  overflow: hidden !important;
  min-height: clamp(94px, 11vw, 118px) !important;
  border: 1px solid rgba(151, 219, 201, 0.24) !important;
  border-radius: 28px !important;
  color: #07323f !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.8), transparent 36%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.82), rgba(237, 250, 246, 0.68)) !important;
  box-shadow:
    0 16px 34px rgba(7, 64, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(135deg, #073f52, #0b857c 54%, #19aa78) !important;
  box-shadow:
    0 18px 38px rgba(7, 101, 96, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] {
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  place-items: center !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary span[data-icon] {
  background: rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card strong {
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading {
  margin-bottom: clamp(10px, 1.8vw, 16px) !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading > strong {
  color: rgba(7, 50, 63, 0.62) !important;
  font-size: clamp(0.78rem, 1.1vw, 0.9rem) !important;
  font-weight: 850 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card {
  box-shadow:
    0 22px 52px rgba(7, 64, 68, 0.11),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover {
  box-shadow:
    0 18px 36px rgba(5, 49, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip {
  opacity: 0.96 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  min-height: 152px !important;
  box-shadow:
    0 14px 34px rgba(7, 64, 68, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-relive {
  padding: 8px 12px !important;
  font-size: 0.76rem !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-bottom-note {
  width: fit-content !important;
  max-width: min(92vw, 520px) !important;
  margin: 0 auto !important;
  color: rgba(7, 50, 63, 0.56) !important;
  background: rgba(255, 255, 255, 0.34) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .home-hero-tagline {
    padding: 8px 13px !important;
    font-size: 0.82rem !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard {
    gap: 24px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    min-height: 82px !important;
    border-radius: 22px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] {
    width: 30px !important;
    height: 30px !important;
    border-radius: 12px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    min-height: 132px !important;
  }
}

/* Mobile v481: keep the full web app complete and clean on phone. */
@media (max-width: 720px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  html body .app-shell,
  html body main.app-shell,
  html body .app-shell .map-stage {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
  }

  html body .auth-gate {
    padding: calc(env(safe-area-inset-top) + 18px) 14px calc(env(safe-area-inset-bottom) + 18px) !important;
  }

  html body .auth-card {
    width: min(100%, 390px) !important;
    max-height: calc(100dvh - 28px) !important;
    overflow-y: auto !important;
    padding: 22px 18px !important;
    border-radius: 30px !important;
  }

  html body .auth-mappi {
    width: 86px !important;
    height: 86px !important;
    object-fit: contain !important;
  }

  html body .app-shell .map-stage:not(.map-focus) #map,
  html body .app-shell .map-stage:not(.map-focus) .map-navigation-gadget,
  html body .app-shell .map-stage:not(.map-focus) .map-coordinates,
  html body .app-shell .map-stage:not(.map-focus) .map-life-layer,
  html body .app-shell .map-stage:not(.map-focus) .memory-peek-card,
  html body .app-shell .map-stage:not(.map-focus) .directions-panel,
  html body .app-shell .map-stage:not(.map-focus) .location-banner,
  html body .app-shell .map-stage:not(.map-focus) .you-are-here-message,
  html body .app-shell .map-stage:not(.map-focus) .explore-panel {
    display: none !important;
    pointer-events: none !important;
  }

  html body .app-shell .topbar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 120 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: calc(env(safe-area-inset-top) + 9px) 12px 9px !important;
    background: linear-gradient(180deg, rgba(5, 33, 43, 0.2), rgba(5, 33, 43, 0)) !important;
    pointer-events: none !important;
  }

  html body .app-shell .topbar-left,
  html body .app-shell .topbar-actions,
  html body .app-shell .brand {
    pointer-events: auto !important;
  }

  html body .app-shell .topbar-left,
  html body .app-shell .topbar-actions {
    display: flex !important;
    gap: 7px !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  html body .app-shell .topbar-actions .hidden-control {
    display: none !important;
  }

  html body .app-shell .icon-button,
  html body .app-shell .avatar-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 15px !important;
  }

  html body .app-shell .avatar-button img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  html body .app-shell .brand {
    justify-self: center !important;
    max-width: 168px !important;
    min-width: 0 !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
  }

  html body .app-shell .brand h1 {
    max-width: 100% !important;
    overflow: visible !important;
    font-size: clamp(1.22rem, 6.3vw, 1.58rem) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body .app-shell .map-stage.home-focus {
    padding: calc(env(safe-area-inset-top) + 74px) 0 calc(var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom) + 18px) !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy,
  html body .app-shell .map-stage.home-focus .home-dashboard {
    width: min(100%, calc(100vw - 24px)) !important;
    max-width: 720px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy {
    padding: 0 !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy h2 {
    font-size: clamp(1.35rem, 7vw, 2rem) !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
    min-width: 0 !important;
    padding: 10px 7px !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard {
    display: grid !important;
    gap: 22px !important;
    padding-bottom: 12px !important;
  }

  html body .app-shell .map-stage.home-focus .home-section,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay,
  html body .app-shell .map-stage.home-focus #homeOnThisDay,
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    min-width: 0 !important;
    min-height: 76px !important;
    padding: 12px 8px !important;
    border-radius: 22px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card strong {
    font-size: clamp(0.72rem, 3.4vw, 0.86rem) !important;
    line-height: 1.1 !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-shelf,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(268px, 84vw) !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: inline proximity !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-scroll {
    display: none !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 138px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art {
    min-height: 116px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3) {
    display: none !important;
  }

  html body .app-shell .map-stage.map-focus {
    height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html body .app-shell .map-stage.map-focus #map {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100dvh !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: calc(var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom) + 18px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, 42px) !important;
    grid-template-rows: repeat(2, 42px) !important;
    gap: 7px !important;
    padding: 7px !important;
    border-radius: 22px !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget > *,
  html body .app-shell .map-stage.map-focus .map-gadget-button,
  html body .app-shell .map-stage.map-focus .map-compass,
  html body .app-shell .map-stage.map-focus .map-gadget-zoom-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  html body .app-shell .map-stage.map-focus .pin-search-panel,
  html body .app-shell .map-stage.map-focus .notification-hub,
  html body .app-shell .map-stage.map-focus .category-rail,
  html body .app-shell .map-stage.map-focus .account-menu {
    top: calc(env(safe-area-inset-top) + 64px) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  html body .app-shell .memory-bottom-sheet {
    right: 10px !important;
    bottom: calc(var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom) + 10px) !important;
    left: 10px !important;
    width: auto !important;
    max-height: min(72dvh, 620px) !important;
    overflow-y: auto !important;
    border-radius: 28px !important;
  }

  html body .app-shell .memory-editor {
    position: fixed !important;
    inset: calc(env(safe-area-inset-top) + 12px) 10px calc(var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom) + 10px) 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow-y: auto !important;
    border-radius: 28px !important;
  }

  html body .app-shell .memory-editor .two-col {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .memory-editor .editor-actions {
    position: sticky !important;
    bottom: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    padding-top: 12px !important;
    background: linear-gradient(180deg, transparent, rgba(255, 253, 248, 0.96) 24%) !important;
  }

  html body .app-shell .memory-editor .editor-actions .primary-button,
  html body .app-shell .memory-editor .editor-actions .text-button {
    width: 100% !important;
    justify-content: center !important;
  }

  html body .app-shell .map-stage.memories-focus {
    min-height: 100dvh !important;
    padding: 0 !important;
    overflow-y: auto !important;
  }

  html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh !important;
    padding: calc(env(safe-area-inset-top) + 82px) 12px calc(var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom) + 26px) !important;
    overflow: visible !important;
    border-radius: 0 !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-redesign-header .memory-lane-title-row-premium,
  html body main.app-shell section.map-stage.memories-focus .memory-hub-heading {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: start !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-header-stats .memory-lane-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-card,
  html body main.app-shell section.map-stage.memories-focus .memory-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-flashcard-main {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-cover,
  html body main.app-shell section.map-stage.memories-focus .memory-lane-cover-image,
  html body main.app-shell section.map-stage.memories-focus .memory-lane-cover-empty {
    width: 92px !important;
    height: 92px !important;
    min-height: 92px !important;
    border-radius: 22px !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-action-dock {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-action-dock button {
    min-width: 0 !important;
    justify-content: center !important;
    padding-inline: 8px !important;
    font-size: 0.76rem !important;
  }

  html body .app-shell .bottom-nav {
    right: 10px !important;
    bottom: calc(env(safe-area-inset-bottom) + 8px) !important;
    left: 10px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 58px 1fr 1fr !important;
    gap: 4px !important;
    width: auto !important;
    max-width: none !important;
    min-height: 68px !important;
    padding: 7px !important;
    border-radius: 26px !important;
  }

  html body .app-shell .bottom-nav-item {
    min-width: 0 !important;
    padding: 8px 4px !important;
    font-size: 0.68rem !important;
    line-height: 1.05 !important;
  }

  html body .app-shell .add-memory-button {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    align-self: center !important;
    justify-self: center !important;
  }
}

@media (max-width: 390px) {
  html body .app-shell .brand {
    max-width: 148px !important;
    padding-inline: 10px !important;
  }

  html body .app-shell .icon-button,
  html body .app-shell .avatar-button {
    width: 39px !important;
    height: 39px !important;
    min-width: 39px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card strong,
  html body .app-shell .bottom-nav-item {
    font-size: 0.64rem !important;
  }
}

/* Home v483: final mobile-aware guard for the polished home hierarchy. */
html body .app-shell .map-stage.home-focus .home-hero-tagline {
  width: fit-content !important;
  max-width: min(92vw, 520px) !important;
  margin: -2px auto 2px !important;
  padding: 9px 16px !important;
  border: 1px solid rgba(24, 169, 120, 0.14) !important;
  border-radius: 999px !important;
  color: rgba(6, 55, 67, 0.78) !important;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.66), rgba(232, 249, 242, 0.54)) !important;
  box-shadow: 0 12px 26px rgba(7, 64, 68, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
  font-size: clamp(0.86rem, 1.35vw, 1rem) !important;
  font-weight: 850 !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  border: 1px solid rgba(151, 219, 201, 0.24) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.8), transparent 36%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.82), rgba(237, 250, 246, 0.68)) !important;
  box-shadow: 0 16px 34px rgba(7, 64, 68, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(135deg, #073f52, #0b857c 54%, #19aa78) !important;
}

html body .app-shell .map-stage.home-focus .home-section-heading > strong {
  color: rgba(7, 50, 63, 0.62) !important;
  font-weight: 850 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .home-hero-tagline {
    padding: 8px 13px !important;
    font-size: 0.82rem !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    min-height: 82px !important;
  }
}

/* Home v484: cinematic Today, calmer actions, softer stats, and a quieter recent shelf. */
html body .app-shell .map-stage.home-focus .hero-copy {
  gap: clamp(11px, 1.7vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse {
  gap: clamp(8px, 1.5vw, 12px) !important;
  padding: clamp(7px, 1.2vw, 10px) !important;
  border: 1px solid rgba(128, 205, 190, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(255, 253, 248, 0.32) !important;
  box-shadow:
    0 12px 26px rgba(7, 64, 68, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.46) !important;
  backdrop-filter: blur(14px) !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
  min-height: 34px !important;
  padding: 7px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: rgba(7, 50, 63, 0.66) !important;
  background: rgba(255, 255, 255, 0.34) !important;
  box-shadow: none !important;
  font-size: clamp(0.72rem, 1vw, 0.82rem) !important;
  font-weight: 780 !important;
}

html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat strong {
  color: #07323f !important;
  font-size: 1.04em !important;
  font-weight: 960 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  position: relative !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card::before {
  inset: -18px -12px -20px !important;
  opacity: 0.92 !important;
  filter: blur(28px) !important;
  background:
    radial-gradient(circle at 26% 18%, rgba(47, 189, 166, 0.24), transparent 44%),
    radial-gradient(circle at 76% 74%, rgba(31, 78, 121, 0.22), transparent 52%),
    radial-gradient(circle at 50% 112%, rgba(255, 200, 87, 0.08), transparent 42%) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory {
  padding: clamp(12px, 1.9vw, 16px) !important;
  border: 1px solid rgba(214, 246, 235, 0.42) !important;
  border-radius: clamp(30px, 4vw, 38px) !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.76), rgba(232, 249, 242, 0.54)) !important;
  box-shadow:
    0 24px 62px rgba(7, 64, 68, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-topline {
  margin-bottom: clamp(9px, 1.4vw, 13px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-name-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-date-pill {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main {
  position: relative !important;
  display: block !important;
  min-height: clamp(390px, 49vw, 560px) !important;
  overflow: hidden !important;
  border-radius: clamp(25px, 3.3vw, 31px) !important;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.2), transparent 36%),
    linear-gradient(135deg, #073f52, #118979 54%, #1db77e) !important;
  box-shadow:
    0 18px 40px rgba(5, 49, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-photo {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: inherit !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-photo::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(180deg, rgba(2, 24, 32, 0.06) 0%, rgba(2, 24, 32, 0.03) 42%, rgba(3, 36, 44, 0.72) 100%),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.18), transparent 36%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-photo-frame {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.012) translateZ(0) !important;
  animation: mymappiTodayPhotoDrift 18s ease-in-out infinite alternate !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-pin.today-memory-pin-glyph {
  position: absolute !important;
  inset: 50% auto auto 50% !important;
  z-index: 0 !important;
  transform: translate(-50%, -50%) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy {
  position: absolute !important;
  right: clamp(15px, 2.6vw, 24px) !important;
  bottom: clamp(15px, 2.6vw, 24px) !important;
  left: clamp(15px, 2.6vw, 24px) !important;
  z-index: 3 !important;
  display: grid !important;
  justify-items: center !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: clamp(16px, 2.2vw, 22px) !important;
  border: 1px solid rgba(225, 255, 247, 0.22) !important;
  border-radius: clamp(22px, 3vw, 28px) !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(4, 50, 64, 0.82), rgba(8, 118, 108, 0.72)) !important;
  box-shadow:
    0 16px 38px rgba(1, 21, 28, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  text-align: center !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-title {
  max-width: min(100%, 18ch) !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(1.7rem, 3.8vw, 3.08rem) !important;
  font-weight: 980 !important;
  line-height: 0.98 !important;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy small {
  max-width: min(100%, 54ch) !important;
  margin: 0 auto !important;
  color: rgba(238, 255, 250, 0.88) !important;
  font-size: clamp(0.78rem, 1.08vw, 0.92rem) !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy p {
  max-width: min(100%, 46ch) !important;
  margin: 0 auto !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: clamp(0.9rem, 1.25vw, 1.05rem) !important;
  font-weight: 630 !important;
  line-height: 1.42 !important;
  text-shadow: 0 7px 18px rgba(0, 0, 0, 0.16) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button {
  min-height: 44px !important;
  margin-top: 5px !important;
  padding: 12px 21px !important;
  box-shadow:
    0 16px 32px rgba(1, 30, 38, 0.28),
    0 0 0 5px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-media-badge,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-photo-count,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-photo-dots {
  z-index: 4 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-media-badge {
  top: 14px !important;
  right: 14px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(3, 34, 45, 0.48) !important;
  backdrop-filter: blur(12px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-footer {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 5 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-switcher-scroll {
  padding: 5px !important;
  border-radius: 999px !important;
  background: rgba(3, 34, 45, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(12px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-section {
  margin-top: clamp(-4px, -0.6vw, 0px) !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 2.1vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  display: grid !important;
  align-content: center !important;
  justify-items: start !important;
  gap: 10px !important;
  min-height: clamp(104px, 10.5vw, 126px) !important;
  padding: clamp(16px, 2.2vw, 22px) !important;
  border-radius: 30px !important;
  text-align: left !important;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important;
}

html body .app-shell .map-stage.home-focus .home-action-card:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 20px 42px rgba(7, 64, 68, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary {
  transform: translateY(-1px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary:hover {
  transform: translateY(-3px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card strong {
  max-width: 9ch !important;
  color: inherit !important;
  font-size: clamp(0.95rem, 1.55vw, 1.12rem) !important;
  line-height: 1.04 !important;
}

html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] {
  width: 38px !important;
  height: 38px !important;
  border-radius: 15px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
  padding: clamp(12px, 2vw, 16px) !important;
  border: 1px solid rgba(161, 223, 203, 0.2) !important;
  border-radius: 30px !important;
  background: rgba(255, 253, 248, 0.34) !important;
  box-shadow:
    0 14px 34px rgba(7, 64, 68, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  min-height: 132px !important;
  grid-template-columns: clamp(88px, 14vw, 118px) minmax(0, 1fr) !important;
  border-radius: 25px !important;
  box-shadow:
    0 12px 28px rgba(7, 64, 68, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art {
  min-height: 108px !important;
  border-radius: 19px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body {
  gap: 5px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body strong {
  font-size: clamp(1rem, 1.65vw, 1.28rem) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body em {
  -webkit-line-clamp: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3) {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
  grid-auto-columns: minmax(198px, 240px) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card {
  min-height: 82px !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  border-radius: 21px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art {
  width: 58px !important;
  height: 58px !important;
  border-radius: 16px !important;
}

html body .app-shell .map-stage.home-focus .hero-copy,
html body .app-shell .map-stage.home-focus .home-dashboard > .home-section,
html body .app-shell .map-stage.home-focus .home-mappi-bottom-note {
  animation: mymappiHomeFadeUp 720ms cubic-bezier(0.2, 0.72, 0.22, 1) both !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard > .home-section:nth-child(1) { animation-delay: 80ms !important; }
html body .app-shell .map-stage.home-focus .home-dashboard > .home-section:nth-child(2) { animation-delay: 150ms !important; }
html body .app-shell .map-stage.home-focus .home-dashboard > .home-section:nth-child(3) { animation-delay: 220ms !important; }
html body .app-shell .map-stage.home-focus .home-dashboard > .home-section:nth-child(4) { animation-delay: 290ms !important; }
html body .app-shell .map-stage.home-focus .home-dashboard > .home-section:nth-child(5) { animation-delay: 360ms !important; }

@keyframes mymappiTodayPhotoDrift {
  from {
    transform: scale(1.012) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.052) translate3d(-0.8%, -0.8%, 0);
  }
}

@keyframes mymappiHomeFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus .hero-copy,
  html body .app-shell .map-stage.home-focus .home-dashboard > .home-section,
  html body .app-shell .map-stage.home-focus .home-mappi-bottom-note,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-photo-frame {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .home-memory-pulse {
    width: min(100%, 360px) !important;
    border-radius: 24px !important;
  }

  html body .app-shell .map-stage.home-focus .home-memory-pulse .home-stat {
    justify-content: center !important;
    padding-inline: 9px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory {
    padding: 10px !important;
    border-radius: 28px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main {
    min-height: 420px !important;
    border-radius: 23px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy {
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    padding: 15px !important;
    border-radius: 21px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-title {
    font-size: clamp(1.45rem, 8vw, 2.25rem) !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    min-height: 76px !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: start !important;
    padding: 14px !important;
    border-radius: 22px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card strong {
    max-width: none !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
    padding: 10px !important;
    border-radius: 24px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    min-height: 120px !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 11px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art {
    min-height: 96px !important;
  }
}

/* Home v485: Apple-style balanced quick action shortcuts. */
html body .app-shell .map-stage.home-focus .home-action-section {
  width: 100% !important;
  max-width: min(100%, 900px) !important;
  margin-inline: auto !important;
}

html body .app-shell .map-stage.home-focus .home-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.7vw, 14px) !important;
  align-items: stretch !important;
}

html body .app-shell .map-stage.home-focus .home-action-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;
  align-content: center !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: 11px !important;
  min-height: clamp(92px, 9.2vw, 108px) !important;
  padding: clamp(14px, 1.9vw, 18px) !important;
  border: 1px solid rgba(150, 213, 198, 0.22) !important;
  border-radius: 26px !important;
  color: rgba(7, 50, 63, 0.84) !important;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.82), transparent 42%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.72), rgba(237, 250, 246, 0.58)) !important;
  box-shadow:
    0 12px 28px rgba(7, 64, 68, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  text-align: center !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 20px !important;
  opacity: 0.68 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 50% -16%, rgba(255, 255, 255, 0.34), transparent 42%),
    linear-gradient(135deg, #073f52 0%, #0b857c 58%, #19aa78 100%) !important;
  box-shadow:
    0 15px 34px rgba(7, 101, 96, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.13) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card:hover,
html body .app-shell .map-stage.home-focus .home-action-card:focus-visible {
  border-color: rgba(24, 169, 120, 0.28) !important;
  box-shadow:
    0 16px 34px rgba(7, 64, 68, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
  transform: translateY(-2px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary:hover,
html body .app-shell .map-stage.home-focus .home-action-card.primary:focus-visible {
  box-shadow:
    0 18px 38px rgba(7, 101, 96, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] {
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  border: 1px solid rgba(20, 116, 111, 0.1) !important;
  border-radius: 16px !important;
  color: #087d86 !important;
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.92), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(232, 249, 242, 0.64)) !important;
  box-shadow:
    0 9px 18px rgba(7, 64, 68, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card.primary span[data-icon] {
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 10px 18px rgba(0, 32, 38, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.35 !important;
}

html body .app-shell .map-stage.home-focus .home-action-card strong {
  max-width: none !important;
  color: inherit !important;
  font-size: clamp(0.82rem, 1.25vw, 0.94rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .home-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    min-height: 84px !important;
    padding: 11px 7px !important;
    border-radius: 21px !important;
    gap: 8px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card::after {
    inset: 6px !important;
    border-radius: 16px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] {
    width: 32px !important;
    height: 32px !important;
    border-radius: 13px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card span[data-icon] svg {
    width: 16px !important;
    height: 16px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card strong {
    font-size: clamp(0.68rem, 2.55vw, 0.78rem) !important;
    line-height: 1.04 !important;
  }
}

@media (max-width: 390px) {
  html body .app-shell .map-stage.home-focus .home-quick-actions {
    gap: 6px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card {
    min-height: 78px !important;
    padding-inline: 5px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card strong {
    font-size: 0.64rem !important;
  }
}

/* Home v486: Apple Photos-style refinement for Today's Memory. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card {
  max-width: min(100%, 980px) !important;
  margin-inline: auto !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay.memory-of-day-card::before {
  inset: -24px -18px -28px !important;
  opacity: 0.96 !important;
  filter: blur(34px) !important;
  background:
    radial-gradient(circle at 26% 18%, rgba(25, 170, 120, 0.25), transparent 44%),
    radial-gradient(circle at 72% 72%, rgba(31, 78, 121, 0.23), transparent 54%),
    radial-gradient(circle at 52% 112%, rgba(255, 200, 87, 0.1), transparent 46%) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory {
  position: relative !important;
  padding: clamp(9px, 1.35vw, 12px) !important;
  border: 1px solid rgba(234, 255, 248, 0.5) !important;
  border-radius: clamp(31px, 4vw, 40px) !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.58), rgba(232, 249, 242, 0.38)) !important;
  box-shadow:
    0 28px 70px rgba(7, 64, 68, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.56) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-topline {
  position: absolute !important;
  top: clamp(20px, 2.2vw, 26px) !important;
  left: clamp(20px, 2.2vw, 26px) !important;
  z-index: 6 !important;
  display: flex !important;
  width: auto !important;
  margin: 0 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .home-kicker {
  min-height: 34px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.94) !important;
  background: rgba(3, 34, 45, 0.38) !important;
  box-shadow:
    0 12px 24px rgba(0, 23, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(14px) saturate(1.1) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .home-kicker .section-title-text {
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main {
  min-height: clamp(430px, 50vw, 620px) !important;
  border-radius: clamp(26px, 3.4vw, 34px) !important;
  box-shadow:
    0 20px 48px rgba(5, 49, 61, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(180deg, rgba(1, 18, 26, 0.04) 0%, rgba(1, 18, 26, 0.02) 45%, rgba(1, 24, 33, 0.7) 100%),
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.12), transparent 36%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-photo::after {
  background:
    linear-gradient(180deg, rgba(2, 24, 32, 0.02) 0%, rgba(2, 24, 32, 0.02) 48%, rgba(3, 36, 44, 0.5) 100%),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.13), transparent 34%) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy {
  right: clamp(18px, 3vw, 34px) !important;
  bottom: clamp(18px, 3vw, 34px) !important;
  left: clamp(18px, 3vw, 34px) !important;
  z-index: 7 !important;
  width: min(720px, calc(100% - clamp(36px, 6vw, 68px))) !important;
  max-width: min(720px, calc(100% - clamp(36px, 6vw, 68px))) !important;
  padding: clamp(18px, 2.6vw, 26px) !important;
  border: 1px solid rgba(231, 255, 248, 0.18) !important;
  border-radius: clamp(24px, 3vw, 31px) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.17), transparent 38%),
    linear-gradient(135deg, rgba(4, 48, 62, 0.74), rgba(8, 113, 103, 0.62)) !important;
  box-shadow:
    0 18px 44px rgba(1, 21, 28, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-title {
  max-width: min(100%, 21ch) !important;
  font-size: clamp(1.85rem, 4.15vw, 3.36rem) !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy small {
  color: rgba(239, 255, 251, 0.9) !important;
  font-size: clamp(0.8rem, 1.08vw, 0.94rem) !important;
  font-weight: 800 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy p {
  max-width: min(100%, 50ch) !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: clamp(0.92rem, 1.22vw, 1.06rem) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button {
  min-height: 46px !important;
  margin-top: 7px !important;
  padding: 12px 24px !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(135deg, #fdfefa 0%, #dffbf1 100%) !important;
  color: #064252 !important;
  box-shadow:
    0 15px 34px rgba(1, 30, 38, 0.22),
    0 0 0 5px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  font-size: 0.86rem !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button:hover,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow:
    0 18px 40px rgba(1, 30, 38, 0.28),
    0 0 0 6px rgba(255, 255, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-media-badge,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-photo-count {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(3, 34, 45, 0.36) !important;
  box-shadow:
    0 10px 20px rgba(0, 23, 31, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory {
    padding: 8px !important;
    border-radius: 29px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-topline {
    top: 16px !important;
    left: 16px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .home-kicker {
    min-height: 31px !important;
    padding: 7px 10px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main {
    min-height: min(72vh, 500px) !important;
    border-radius: 24px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy {
    right: 11px !important;
    bottom: 11px !important;
    left: 11px !important;
    width: auto !important;
    max-width: none !important;
    padding: 14px !important;
    border-radius: 20px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-title {
    max-width: 17ch !important;
    font-size: clamp(1.42rem, 7.2vw, 2.1rem) !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-copy p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button {
    min-height: 42px !important;
    padding: 11px 19px !important;
  }
}

/* Home v487: subtle memory mood layer. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-chip-row {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 1px auto 0 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-mood-chip,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(2),
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card .memory-echo-reason {
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 26px !important;
  padding: 6px 10px !important;
  border: 1px solid color-mix(in srgb, var(--memory-mood-color, var(--today-memory-accent, #18a978)) 22%, rgba(255, 255, 255, 0.34)) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.2), transparent 40%),
    color-mix(in srgb, var(--memory-mood-color, var(--today-memory-accent, #18a978)) 34%, rgba(4, 45, 57, 0.54)) !important;
  box-shadow:
    0 8px 18px color-mix(in srgb, var(--memory-mood-color, var(--today-memory-accent, #18a978)) 16%, rgba(0, 26, 34, 0.12)),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-media-hint {
  display: inline-flex !important;
  width: fit-content !important;
  min-height: 26px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  color: rgba(238, 255, 250, 0.82) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-size: 0.72rem !important;
  font-weight: 820 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(2) {
  min-height: 24px !important;
  padding: 5px 9px !important;
  color: color-mix(in srgb, var(--recent-accent, #18a978) 72%, #07323f) !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.78), transparent 42%),
    color-mix(in srgb, var(--recent-accent, #18a978) 12%, rgba(255, 255, 255, 0.68)) !important;
  border-color: color-mix(in srgb, var(--recent-accent, #18a978) 22%, rgba(255, 255, 255, 0.4)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
  font-size: 0.7rem !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card .memory-echo-reason {
  color: color-mix(in srgb, var(--echo-accent, #18a978) 72%, #063542) !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.78), transparent 42%),
    color-mix(in srgb, var(--echo-accent, #18a978) 11%, rgba(255, 255, 255, 0.72)) !important;
  border-color: color-mix(in srgb, var(--echo-accent, #18a978) 20%, rgba(255, 255, 255, 0.48)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-mood-chip,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-media-hint {
    min-height: 24px !important;
    padding: 5px 9px !important;
    font-size: 0.68rem !important;
  }
}

/* Home v488: make Memory Echo feel discovered and special. */
html body .app-shell .map-stage.home-focus #homeOnThisDay {
  position: relative !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay::before {
  content: "" !important;
  position: absolute !important;
  inset: 28px min(10%, 74px) auto !important;
  z-index: -1 !important;
  height: 58% !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(25, 170, 120, 0.12), transparent 64%),
    radial-gradient(circle at 24% 30%, rgba(31, 78, 121, 0.1), transparent 44%) !important;
  filter: blur(20px) !important;
  opacity: 0.92 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading {
  display: grid !important;
  justify-items: center !important;
  gap: 6px !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading > strong {
  max-width: min(100%, 520px) !important;
  color: #063542 !important;
  font-size: clamp(1.2rem, 2vw, 1.62rem) !important;
  font-weight: 960 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-whisper {
  max-width: min(100%, 430px) !important;
  color: rgba(7, 50, 63, 0.56) !important;
  font-size: clamp(0.78rem, 1.08vw, 0.92rem) !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-mappi-line {
  margin-top: 7px !important;
  color: rgba(7, 65, 72, 0.76) !important;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.8), transparent 42%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.7), rgba(235, 250, 244, 0.62)) !important;
  box-shadow:
    0 10px 22px rgba(7, 64, 68, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature {
  margin-top: 12px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card {
  position: relative !important;
  gap: clamp(13px, 2vw, 18px) !important;
  padding: clamp(18px, 2.6vw, 26px) !important;
  border: 1px solid color-mix(in srgb, var(--echo-accent, #18a978) 24%, rgba(255, 255, 255, 0.7)) !important;
  border-radius: clamp(28px, 3.4vw, 36px) !important;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--echo-accent, #18a978) 22%, transparent), transparent 38%),
    radial-gradient(circle at 86% 90%, rgba(31, 78, 121, 0.1), transparent 44%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), color-mix(in srgb, var(--echo-accent, #18a978) 7%, #f7fffb) 58%, rgba(235, 248, 246, 0.9)) !important;
  box-shadow:
    0 26px 62px rgba(7, 64, 68, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.56) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 10px !important;
  z-index: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.46) !important;
  border-radius: calc(clamp(28px, 3.4vw, 36px) - 8px) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-reason-stack,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-progress {
  position: relative !important;
  z-index: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-reason-stack {
  gap: 7px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-reason {
  min-height: 29px !important;
  padding: 7px 13px !important;
  color: color-mix(in srgb, var(--echo-accent, #18a978) 70%, #063542) !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.8), transparent 42%),
    color-mix(in srgb, var(--echo-accent, #18a978) 12%, rgba(255, 255, 255, 0.76)) !important;
  box-shadow:
    0 8px 16px rgba(7, 64, 68, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-why {
  color: rgba(7, 50, 63, 0.62) !important;
  font-weight: 840 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-why-now {
  color: rgba(7, 50, 63, 0.5) !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body {
  width: min(100%, 560px) !important;
  grid-template-columns: clamp(86px, 10vw, 108px) minmax(0, 1fr) !important;
  gap: clamp(15px, 2.2vw, 20px) !important;
  align-items: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
  width: clamp(86px, 10vw, 108px) !important;
  height: clamp(86px, 10vw, 108px) !important;
  border: 2px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 26px !important;
  box-shadow:
    0 18px 36px rgba(6, 67, 76, 0.16),
    0 0 0 6px color-mix(in srgb, var(--echo-accent, #18a978) 10%, rgba(255, 255, 255, 0.34)),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  transform: rotate(-1deg) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main {
  gap: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main strong {
  color: #063542 !important;
  font-size: clamp(1.2rem, 2.1vw, 1.72rem) !important;
  font-weight: 970 !important;
  line-height: 1.03 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main small {
  color: rgba(7, 50, 63, 0.62) !important;
  font-size: clamp(0.82rem, 1.08vw, 0.94rem) !important;
  font-weight: 720 !important;
  line-height: 1.35 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive {
  min-width: 144px !important;
  min-height: 46px !important;
  padding: 12px 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.32), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--echo-accent, #18a978) 30%, #063f55), color-mix(in srgb, var(--echo-accent, #18a978) 55%, #087d86) 58%, var(--echo-accent, #18a978)) !important;
  box-shadow:
    0 16px 34px color-mix(in srgb, var(--echo-accent, #18a978) 24%, rgba(7, 85, 87, 0.18)),
    0 0 0 6px color-mix(in srgb, var(--echo-accent, #18a978) 9%, transparent),
    0 0 34px color-mix(in srgb, var(--echo-accent, #18a978) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  font-size: 0.86rem !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-progress {
  width: min(210px, 64%) !important;
  height: 4px !important;
  margin-top: 1px !important;
  background: color-mix(in srgb, var(--echo-accent, #18a978) 12%, rgba(255, 255, 255, 0.78)) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card {
  opacity: 0 !important;
  filter: blur(2px) saturate(0.96) !important;
  transform: translate3d(0, 9px, 0) scale(0.99) !important;
  transition:
    opacity 380ms ease,
    filter 380ms ease,
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card {
  animation: memoryEchoArriveMagically 960ms cubic-bezier(0.19, 1, 0.22, 1) both !important;
}

@keyframes memoryEchoArriveMagically {
  0% {
    opacity: 0;
    filter: blur(2px) saturate(0.96);
    transform: translate3d(0, 16px, 0) scale(0.988);
  }
  62% {
    opacity: 1;
    filter: blur(0) saturate(1.02);
    transform: translate3d(0, -2px, 0) scale(1.002);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card {
    padding: 16px !important;
    border-radius: 28px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 13px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
    width: 82px !important;
    height: 82px !important;
    border-radius: 22px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive {
    min-width: 132px !important;
    min-height: 42px !important;
    padding: 11px 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card,
  html body .app-shell .map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card {
    animation: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Home v489: Life Chapters as premium storybook collections. */
html body .app-shell .map-stage.home-focus #homeJourney {
  position: relative !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeJourney::before {
  content: "" !important;
  position: absolute !important;
  inset: 34px 6% auto !important;
  z-index: -1 !important;
  height: 54% !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 24% 32%, rgba(25, 170, 120, 0.12), transparent 48%),
    radial-gradient(circle at 78% 72%, rgba(31, 78, 121, 0.1), transparent 54%) !important;
  filter: blur(22px) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row {
  grid-auto-columns: minmax(276px, 330px) !important;
  gap: clamp(14px, 2vw, 18px) !important;
  padding-block: 6px 14px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto 1fr !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 12px !important;
  border: 1px solid color-mix(in srgb, var(--chapter-accent, #18a978) 22%, rgba(255, 255, 255, 0.74)) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 16% 4%, color-mix(in srgb, var(--chapter-accent, #18a978) 18%, transparent), transparent 38%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), color-mix(in srgb, var(--chapter-accent, #18a978) 6%, #f8fffb) 58%, rgba(237, 250, 248, 0.92)) !important;
  box-shadow:
    0 22px 52px rgba(7, 70, 78, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.56) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::before {
  inset: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 22px !important;
  background:
    repeating-linear-gradient(0deg, rgba(7, 72, 82, 0.014) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.3px) !important;
  opacity: 0.72 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover {
  width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 1.36 / 1 !important;
  border-radius: 23px !important;
  box-shadow:
    0 16px 34px rgba(7, 70, 78, 0.16),
    0 0 0 6px color-mix(in srgb, var(--chapter-accent, #18a978) 8%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover::after {
  background:
    linear-gradient(180deg, rgba(2, 27, 38, 0.02) 0%, rgba(2, 27, 38, 0.1) 52%, rgba(2, 27, 38, 0.44) 100%),
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.22), transparent 34%) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge {
  top: 11px !important;
  right: 11px !important;
  display: inline-grid !important;
  grid-template-columns: auto auto !important;
  gap: 4px !important;
  align-items: baseline !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(3, 36, 48, 0.56) !important;
  backdrop-filter: blur(12px) saturate(1.1) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge strong {
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 980 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge small {
  color: rgba(239, 255, 251, 0.8) !important;
  font-size: 0.62rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy {
  display: grid !important;
  align-content: start !important;
  gap: 9px !important;
  min-width: 0 !important;
  padding: 0 3px 2px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-kicker {
  max-width: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: color-mix(in srgb, var(--chapter-accent, #18a978) 62%, #064252) !important;
  background: transparent !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy > strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: #063542 !important;
  font-size: clamp(1.18rem, 2vw, 1.48rem) !important;
  font-weight: 970 !important;
  line-height: 1.04 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta {
  gap: 2px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-route {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto !important;
  gap: 7px !important;
  min-height: 46px !important;
  margin-top: 1px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more {
  width: 100% !important;
  height: 46px !important;
  border: 2px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.42), transparent 40%),
    color-mix(in srgb, var(--chapter-accent, #18a978) 18%, rgba(255, 255, 255, 0.72)) !important;
  box-shadow:
    0 10px 20px rgba(7, 70, 78, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more {
  min-width: 42px !important;
  padding-inline: 8px !important;
  color: color-mix(in srgb, var(--chapter-accent, #18a978) 72%, #063542) !important;
  font-size: 0.72rem !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 2px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button {
  min-height: 38px !important;
  border-radius: 999px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive {
  font-size: 0.76rem !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open {
  font-size: 0.72rem !important;
}

@media (max-width: 620px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row {
    grid-auto-columns: minmax(78vw, 1fr) !important;
    padding-inline: 34px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover {
    min-height: 0 !important;
    aspect-ratio: 1.42 / 1 !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row {
    min-height: 42px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview,
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more {
    height: 42px !important;
  }
}

/* Home v490 final: make Recent Memories a quiet shelf, not a main feature. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
  opacity: 0.92 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-section-heading {
  margin-bottom: 8px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading > strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-section-heading > strong {
  color: rgba(7, 50, 63, 0.48) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.01em !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
  gap: 9px !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.44) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.36), rgba(236, 249, 242, 0.2)),
    rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 10px 24px rgba(7, 64, 68, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row {
  gap: 6px !important;
  min-height: 0 !important;
  padding: 2px 2px 4px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter {
  min-height: 28px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: 0.68rem !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  grid-template-columns: 72px minmax(0, 1fr) !important;
  min-height: 88px !important;
  gap: 10px !important;
  padding: 9px !important;
  border-radius: 21px !important;
  background:
    linear-gradient(140deg, rgba(255, 253, 248, 0.78), rgba(241, 251, 246, 0.64)),
    color-mix(in srgb, var(--recent-accent, #18a978) 7%, #ffffff) !important;
  box-shadow:
    0 9px 20px rgba(7, 64, 68, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature:hover,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature:hover {
  transform: translateY(-1px) !important;
  box-shadow:
    0 12px 24px rgba(7, 64, 68, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
  width: 72px !important;
  height: 72px !important;
  min-height: 72px !important;
  border-radius: 17px !important;
  box-shadow: 0 8px 18px rgba(7, 64, 68, 0.08) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body {
  align-content: center !important;
  gap: 4px !important;
  min-width: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-kicker,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-kicker {
  width: fit-content !important;
  min-height: 0 !important;
  padding: 4px 8px !important;
  font-size: 0.64rem !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body strong {
  font-size: 0.98rem !important;
  line-height: 1.08 !important;
  -webkit-line-clamp: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body small {
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
  -webkit-line-clamp: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body em,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-relive,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-relive {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row {
  gap: 5px !important;
  margin-top: 1px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span {
  min-height: 22px !important;
  padding: 4px 7px !important;
  font-size: 0.64rem !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
  grid-auto-columns: minmax(170px, 210px) !important;
  gap: 8px !important;
  padding: 1px 2px 4px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card {
  grid-template-columns: 50px minmax(0, 1fr) !important;
  min-height: 68px !important;
  gap: 8px !important;
  padding: 8px !important;
  border-radius: 18px !important;
  box-shadow:
    0 8px 16px rgba(7, 64, 68, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art {
  width: 50px !important;
  height: 50px !important;
  border-radius: 14px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong {
  font-size: 0.82rem !important;
  line-height: 1.08 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small {
  font-size: 0.68rem !important;
  line-height: 1.18 !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-bottom-note,
html body main.app-shell section.map-stage.home-focus .home-mappi-bottom-note {
  width: fit-content !important;
  max-width: min(88%, 420px) !important;
  margin: -2px auto 0 !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.44) !important;
  border-radius: 999px !important;
  color: rgba(7, 65, 72, 0.62) !important;
  background: rgba(255, 253, 248, 0.38) !important;
  box-shadow:
    0 8px 18px rgba(7, 64, 68, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
  font-size: 0.78rem !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-moment,
html body main.app-shell section.map-stage.home-focus .home-mappi-moment {
  color: rgba(7, 50, 63, 0.52) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
    padding: 9px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    min-height: 80px !important;
    gap: 9px !important;
    padding: 8px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
    width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    border-radius: 15px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3),
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row span:nth-child(n + 3) {
    display: none !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
    grid-auto-columns: minmax(155px, 64vw) !important;
  }
}

/* Home v491: subtle Latest treatment for the first recent memory. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  position: relative !important;
  overflow: hidden !important;
  border-color: color-mix(in srgb, var(--recent-accent, #18a978) 20%, rgba(255, 255, 255, 0.58)) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before {
  content: "Latest" !important;
  position: absolute !important;
  top: 9px !important;
  right: 10px !important;
  z-index: 2 !important;
  padding: 4px 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--recent-accent, #18a978) 62%, #063542) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 253, 248, 0.42)),
    color-mix(in srgb, var(--recent-accent, #18a978) 8%, transparent) !important;
  box-shadow:
    0 6px 14px rgba(7, 64, 68, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
  outline: 2px solid color-mix(in srgb, var(--recent-accent, #18a978) 18%, rgba(255, 255, 255, 0.88)) !important;
  outline-offset: 2px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art::before,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art::before {
  content: "" !important;
  position: absolute !important;
  inset: -5px !important;
  z-index: -1 !important;
  border-radius: inherit !important;
  background: color-mix(in srgb, var(--recent-accent, #18a978) 15%, transparent) !important;
  filter: blur(10px) !important;
  opacity: 0.62 !important;
  pointer-events: none !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before {
    top: 7px !important;
    right: 8px !important;
    padding: 3px 7px !important;
    font-size: 0.58rem !important;
  }
}

/* Home v492: cleaner Life Chapters card information. */
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  gap: 11px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  gap: 8px !important;
  padding: 0 4px 3px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-kicker,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-kicker {
  display: block !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: color-mix(in srgb, var(--chapter-accent, #18a978) 58%, #064252) !important;
  font-size: 0.72rem !important;
  font-weight: 920 !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy > strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy > strong {
  margin-top: -2px !important;
  font-size: clamp(1.08rem, 1.8vw, 1.34rem) !important;
  line-height: 1.08 !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  margin-top: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta span,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta small {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 25px !important;
  padding: 6px 9px !important;
  overflow: hidden !important;
  border: 1px solid rgba(7, 70, 78, 0.08) !important;
  border-radius: 999px !important;
  color: rgba(6, 53, 66, 0.7) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(246, 253, 248, 0.46)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 6%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
  font-size: 0.68rem !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta small {
  color: rgba(6, 53, 66, 0.55) !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-route,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-route {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-count-badge {
  top: 10px !important;
  right: 10px !important;
  padding: 7px 10px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-count-badge small {
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  margin-top: 2px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  margin-top: 1px !important;
}

@media (max-width: 620px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
    gap: 5px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta span,
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta small,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta span,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta small {
    min-height: 24px !important;
    padding: 5px 8px !important;
    font-size: 0.64rem !important;
  }
}

/* Home v493: reorganized Life Chapters into calm story cards. */
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
  grid-auto-columns: minmax(286px, 318px) !important;
  align-items: stretch !important;
  gap: 16px !important;
  padding-block: 5px 16px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto 1fr !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 11px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--chapter-accent, #18a978) 13%, transparent), transparent 34%),
    linear-gradient(150deg, rgba(255, 253, 248, 0.98), rgba(245, 253, 249, 0.94)) !important;
  box-shadow:
    0 16px 38px rgba(7, 70, 78, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::before,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::before {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  aspect-ratio: 1.48 / 1 !important;
  min-height: 0 !important;
  border-radius: 22px !important;
  box-shadow:
    0 12px 26px rgba(7, 70, 78, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-count-badge {
  top: 9px !important;
  right: 9px !important;
  gap: 3px !important;
  padding: 6px 9px !important;
  border-radius: 999px !important;
  background: rgba(3, 36, 48, 0.62) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-count-badge strong {
  font-size: 0.82rem !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-count-badge small {
  font-size: 0.58rem !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  display: grid !important;
  align-content: start !important;
  gap: 7px !important;
  padding: 0 4px 2px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy > strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy > strong {
  display: -webkit-box !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #063542 !important;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem) !important;
  font-weight: 960 !important;
  line-height: 1.08 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-kicker,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-kicker {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: color-mix(in srgb, var(--chapter-accent, #18a978) 54%, #0b4a56) !important;
  font-size: 0.74rem !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 3px !important;
  margin: 0 !important;
  min-width: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(7, 70, 78, 0.07) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(242, 252, 247, 0.38)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 5%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta span,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta small {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1.18 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta span {
  color: rgba(6, 53, 66, 0.72) !important;
  font-size: 0.74rem !important;
  font-weight: 860 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta small {
  color: rgba(6, 53, 66, 0.5) !important;
  font-size: 0.68rem !important;
  font-weight: 740 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto !important;
  gap: 6px !important;
  min-height: 38px !important;
  margin-top: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-more {
  height: 38px !important;
  border-width: 1px !important;
  border-radius: 12px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr) !important;
  gap: 7px !important;
  width: 100% !important;
  margin-top: 1px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
  min-height: 37px !important;
  padding-inline: 12px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 620px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
    grid-auto-columns: minmax(82vw, 1fr) !important;
    padding-inline: 30px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
    aspect-ratio: 1.44 / 1 !important;
  }
}

/* Home v494: keep Today's Memory header on top of the card. */
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-topline,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-topline,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline {
  position: static !important;
  inset: auto !important;
  z-index: 1 !important;
  display: flex !important;
  grid-row: 1 !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 4px !important;
  gap: 8px !important;
  pointer-events: auto !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .home-kicker,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .home-kicker,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .home-kicker,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .home-kicker {
  min-height: 32px !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(7, 70, 78, 0.08) !important;
  color: #063542 !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(242, 252, 247, 0.48)),
    color-mix(in srgb, var(--today-memory-accent, #18a978) 7%, transparent) !important;
  box-shadow:
    0 8px 18px rgba(7, 64, 68, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
  backdrop-filter: blur(10px) saturate(1.08) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .home-kicker .section-title-text,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .home-kicker .section-title-text,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .home-kicker .section-title-text,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .home-kicker .section-title-text {
  color: #063542 !important;
  font-size: 0.78rem !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-name-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-date-pill,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-slide-count,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-name-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-date-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-slide-count {
  position: static !important;
  min-width: 0 !important;
  max-width: 34% !important;
  overflow: hidden !important;
  color: rgba(6, 53, 66, 0.58) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-name-pill,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-name-pill {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-main,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-main,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .today-memory-main {
  grid-row: 2 !important;
  width: 100% !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory {
    gap: 8px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-topline,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-topline,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.is-empty-today .memory-day-topline {
    padding-inline: 2px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-date-pill,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-slide-count,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-date-pill,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .memory-day-slide-count {
    max-width: 28% !important;
    font-size: 0.68rem !important;
  }
}

/* Home v495: Memory Echo as a premium found-memory card. */
html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay {
  position: relative !important;
  isolation: isolate !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay::before,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay::before {
  inset: 44px 9% auto !important;
  height: 62% !important;
  background:
    radial-gradient(circle at 42% 48%, color-mix(in srgb, var(--echo-accent, #18a978) 12%, rgba(25, 170, 120, 0.1)), transparent 62%),
    radial-gradient(circle at 74% 60%, rgba(31, 78, 121, 0.11), transparent 48%),
    radial-gradient(circle at 28% 26%, rgba(255, 200, 87, 0.09), transparent 40%) !important;
  filter: blur(24px) !important;
  opacity: 0.9 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .home-section-heading {
  display: grid !important;
  justify-items: center !important;
  gap: 5px !important;
  margin-bottom: 0 !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading > strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .home-section-heading > strong {
  max-width: min(100%, 560px) !important;
  color: #063542 !important;
  font-size: clamp(1.24rem, 2.05vw, 1.74rem) !important;
  font-weight: 970 !important;
  line-height: 1.08 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-whisper,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-whisper {
  max-width: min(100%, 460px) !important;
  color: rgba(7, 50, 63, 0.58) !important;
  font-size: clamp(0.78rem, 1.04vw, 0.92rem) !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-mappi-line,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-mappi-line {
  display: block !important;
  width: fit-content !important;
  margin: 8px auto 0 !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.52) !important;
  border-radius: 999px !important;
  color: rgba(6, 65, 72, 0.7) !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.72), rgba(236, 250, 244, 0.58)) !important;
  box-shadow:
    0 10px 22px rgba(7, 64, 68, 0.052),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  font-size: 0.76rem !important;
  font-weight: 820 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature {
  margin-top: 12px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card {
  position: relative !important;
  display: grid !important;
  justify-items: center !important;
  gap: clamp(14px, 2vw, 18px) !important;
  max-width: 760px !important;
  margin-inline: auto !important;
  padding: clamp(20px, 2.8vw, 30px) !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--echo-accent, #18a978) 26%, rgba(255, 255, 255, 0.74)) !important;
  border-radius: clamp(30px, 3.7vw, 40px) !important;
  background:
    repeating-linear-gradient(0deg, rgba(6, 55, 62, 0.018) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 14% 8%, color-mix(in srgb, var(--echo-accent, #18a978) 22%, transparent), transparent 38%),
    radial-gradient(circle at 84% 94%, rgba(31, 78, 121, 0.11), transparent 44%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), color-mix(in srgb, var(--echo-accent, #18a978) 8%, #f8fffb) 58%, rgba(235, 248, 246, 0.92)) !important;
  box-shadow:
    0 26px 64px rgba(7, 64, 68, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card::before,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card::before {
  inset: 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.44) !important;
  border-radius: calc(clamp(30px, 3.7vw, 40px) - 9px) !important;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.4px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 46%) !important;
  opacity: 0.86 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-reason-stack,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-progress,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-reason-stack,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-body,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-progress {
  position: relative !important;
  z-index: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-reason-stack,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-reason-stack {
  display: grid !important;
  justify-items: center !important;
  gap: 6px !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-reason,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-reason {
  min-height: 30px !important;
  padding: 7px 14px !important;
  border: 1px solid color-mix(in srgb, var(--echo-accent, #18a978) 22%, rgba(255, 255, 255, 0.52)) !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--echo-accent, #18a978) 72%, #063542) !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.82), transparent 42%),
    color-mix(in srgb, var(--echo-accent, #18a978) 12%, rgba(255, 255, 255, 0.8)) !important;
  box-shadow:
    0 8px 16px rgba(7, 64, 68, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
  font-size: 0.74rem !important;
  font-weight: 940 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-why,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-why {
  color: rgba(7, 50, 63, 0.62) !important;
  font-size: 0.8rem !important;
  font-weight: 840 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-why-now,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-why-now {
  max-width: min(100%, 420px) !important;
  color: rgba(7, 50, 63, 0.48) !important;
  font-size: 0.72rem !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-body {
  width: min(100%, 620px) !important;
  display: grid !important;
  grid-template-columns: clamp(104px, 12vw, 132px) minmax(0, 1fr) !important;
  gap: clamp(16px, 2.5vw, 24px) !important;
  align-items: center !important;
  justify-content: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
  width: clamp(104px, 12vw, 132px) !important;
  height: clamp(104px, 12vw, 132px) !important;
  overflow: hidden !important;
  border: 2px solid rgba(255, 255, 255, 0.94) !important;
  border-radius: 28px !important;
  background: color-mix(in srgb, var(--echo-accent, #18a978) 12%, rgba(255, 255, 255, 0.88)) !important;
  box-shadow:
    0 20px 42px rgba(6, 67, 76, 0.16),
    0 0 0 7px color-mix(in srgb, var(--echo-accent, #18a978) 11%, rgba(255, 255, 255, 0.34)),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform: rotate(-1deg) translateZ(0) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb img,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.035) !important;
  transition: transform 4200ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card:hover .memory-echo-thumb img,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card:hover .memory-echo-thumb img {
  transform: scale(1.075) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy-main {
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy-main strong {
  color: #063542 !important;
  font-size: clamp(1.28rem, 2.2vw, 1.86rem) !important;
  font-weight: 980 !important;
  line-height: 1.03 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main small,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy-main small {
  color: rgba(7, 50, 63, 0.62) !important;
  font-size: clamp(0.82rem, 1.08vw, 0.96rem) !important;
  font-weight: 730 !important;
  line-height: 1.38 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive {
  min-width: 154px !important;
  min-height: 48px !important;
  padding: 13px 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.36), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--echo-accent, #18a978) 32%, #063f55), color-mix(in srgb, var(--echo-accent, #18a978) 56%, #087d86) 58%, var(--echo-accent, #18a978)) !important;
  box-shadow:
    0 17px 38px color-mix(in srgb, var(--echo-accent, #18a978) 25%, rgba(7, 85, 87, 0.18)),
    0 0 0 6px color-mix(in srgb, var(--echo-accent, #18a978) 9%, transparent),
    0 0 38px color-mix(in srgb, var(--echo-accent, #18a978) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  font-size: 0.88rem !important;
  font-weight: 980 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-progress,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-progress {
  width: min(230px, 64%) !important;
  height: 4px !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--echo-accent, #18a978) 12%, rgba(255, 255, 255, 0.8)) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-progress span,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-progress span {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--echo-accent, #18a978) 34%, rgba(10, 97, 112, 0.28)), var(--echo-accent, #18a978)) !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--echo-accent, #18a978) 30%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay.is-switching-echo .memory-echo-feature-card {
  opacity: 0 !important;
  filter: blur(2px) saturate(0.96) !important;
  transform: translate3d(0, 10px, 0) scale(0.99) !important;
  transition:
    opacity 360ms ease,
    filter 360ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay.is-arriving-echo .memory-echo-feature-card {
  animation: memoryEchoArrivePremium 940ms cubic-bezier(0.19, 1, 0.22, 1) both !important;
}

@keyframes memoryEchoArrivePremium {
  0% {
    opacity: 0;
    filter: blur(2px) saturate(0.96);
    transform: translate3d(0, 18px, 0) scale(0.988);
  }
  64% {
    opacity: 1;
    filter: blur(0) saturate(1.02);
    transform: translate3d(0, -2px, 0) scale(1.002);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card {
    padding: 17px !important;
    border-radius: 29px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-body {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 13px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
    width: 88px !important;
    height: 88px !important;
    border-radius: 23px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main strong,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy-main strong {
    font-size: clamp(1.08rem, 5vw, 1.42rem) !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-relive,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-relive {
    min-width: 138px !important;
    min-height: 43px !important;
    padding: 11px 21px !important;
  }
}

/* Home v497: final Life Chapters album-card override. */
html body .app-shell .map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeJourney {
  --chapter-card-width: clamp(276px, 29vw, 330px) !important;
  padding-bottom: clamp(14px, 2vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-shelf,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-shelf {
  margin-top: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
  grid-auto-columns: var(--chapter-card-width) !important;
  gap: 15px !important;
  padding: 4px 4px 8px !important;
  scroll-padding-inline: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;
  gap: 9px !important;
  min-height: 0 !important;
  padding: 9px !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--chapter-accent, #18a978) 22%, rgba(255, 255, 255, 0.76)) !important;
  border-radius: 27px !important;
  background:
    radial-gradient(circle at 18% 4%, color-mix(in srgb, var(--chapter-accent, #18a978) 18%, transparent), transparent 38%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), color-mix(in srgb, var(--chapter-accent, #18a978) 6%, #f7fffb) 62%, rgba(239, 250, 248, 0.94)) !important;
  box-shadow:
    0 22px 50px rgba(7, 70, 78, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card:hover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card:hover {
  box-shadow:
    0 26px 58px rgba(7, 70, 78, 0.15),
    0 0 0 5px color-mix(in srgb, var(--chapter-accent, #18a978) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::before,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::before {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  position: relative !important;
  aspect-ratio: 1.58 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 21px !important;
  background:
    radial-gradient(circle at 20% 8%, color-mix(in srgb, var(--chapter-accent, #18a978) 24%, rgba(255, 255, 255, 0.22)), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--chapter-accent, #18a978) 24%, #07546a), #eafaf5) !important;
  box-shadow:
    0 15px 34px rgba(7, 70, 78, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.025) !important;
  transition: transform 3600ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card:hover .life-chapter-cover img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card:hover .life-chapter-cover img {
  transform: scale(1.065) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover::after {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  content: "" !important;
  background:
    linear-gradient(180deg, rgba(2, 30, 42, 0.1) 0%, transparent 35%, rgba(2, 30, 42, 0.74) 100%),
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.2), transparent 42%) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption {
  position: absolute !important;
  right: 13px !important;
  bottom: 12px !important;
  left: 13px !important;
  z-index: 3 !important;
  display: grid !important;
  gap: 4px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption span {
  width: fit-content !important;
  padding: 4px 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(2, 28, 40, 0.3) !important;
  backdrop-filter: blur(10px) saturate(1.1) !important;
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption strong {
  display: -webkit-box !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #ffffff !important;
  font-size: clamp(1.12rem, 2vw, 1.44rem) !important;
  font-weight: 980 !important;
  line-height: 1.03 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38) !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption small {
  display: block !important;
  overflow: hidden !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.68rem !important;
  font-weight: 780 !important;
  line-height: 1.22 !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36) !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-count-badge {
  top: 12px !important;
  right: 12px !important;
  z-index: 4 !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(3, 36, 48, 0.52) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(13px) saturate(1.15) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  display: grid !important;
  gap: 7px !important;
  padding: 0 3px 2px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy > strong,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-kicker,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy > strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-kicker {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(7, 70, 78, 0.065) !important;
  border-radius: 15px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(242, 252, 247, 0.46)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 5%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta span,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta span {
  color: #073542 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta small {
  flex: 0 1 auto !important;
  color: rgba(7, 50, 63, 0.54) !important;
  font-size: 0.68rem !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important;
  gap: 6px !important;
  min-height: 38px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-more {
  height: 38px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--chapter-accent, #18a978) 12%, rgba(255, 255, 255, 0.78)) !important;
  box-shadow: 0 7px 14px rgba(7, 70, 78, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.56) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-more {
  display: grid !important;
  min-width: 42px !important;
  place-items: center !important;
  color: color-mix(in srgb, var(--chapter-accent, #18a978) 72%, #063542) !important;
  font-size: 0.76rem !important;
  font-weight: 950 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 920 !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.32), transparent 38%),
    linear-gradient(135deg, #073f52, color-mix(in srgb, var(--chapter-accent, #18a978) 68%, #087c8a)) !important;
  box-shadow:
    0 13px 28px color-mix(in srgb, var(--chapter-accent, #18a978) 22%, rgba(7, 70, 78, 0.15)),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-open {
  color: rgba(6, 53, 66, 0.78) !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body main.app-shell section.map-stage.home-focus #homeJourney {
    --chapter-card-width: min(82vw, 318px) !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
    padding-inline: 22px !important;
    scroll-padding-inline: 22px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
    aspect-ratio: 1.5 / 1 !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
    display: grid !important;
    gap: 3px !important;
  }
}

/* Home v505: end-anchored premium Life Chapters finish. */
html body .app-shell .map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeJourney {
  position: relative !important;
  isolation: isolate !important;
  border: 1px solid rgba(255, 255, 255, 0.54) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(36, 181, 132, 0.12), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(31, 78, 121, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(237, 250, 246, 0.62)) !important;
  box-shadow:
    0 20px 54px rgba(7, 70, 78, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading > strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .home-section-heading > strong {
  color: rgba(6, 53, 66, 0.72) !important;
  font-size: clamp(0.9rem, 1.45vw, 1.05rem) !important;
  font-weight: 760 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  position: relative !important;
  isolation: isolate !important;
  border-color: color-mix(in srgb, var(--chapter-accent, #18a978) 22%, rgba(255, 255, 255, 0.78)) !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(245, 253, 249, 0.92)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 4%, transparent) !important;
  box-shadow:
    0 18px 42px rgba(7, 70, 78, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.48) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::before,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::before {
  position: absolute !important;
  inset: 11px 12px auto !important;
  z-index: -1 !important;
  display: block !important;
  height: 56% !important;
  border-radius: 24px !important;
  background: color-mix(in srgb, var(--chapter-accent, #18a978) 12%, rgba(255, 255, 255, 0.78)) !important;
  box-shadow: 0 12px 30px rgba(7, 70, 78, 0.08) !important;
  content: "" !important;
  transform: rotate(-1.4deg) translateY(5px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::after {
  position: absolute !important;
  inset: 13px 15px auto !important;
  z-index: -1 !important;
  display: block !important;
  height: 54% !important;
  border-radius: 23px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  content: "" !important;
  transform: rotate(1.2deg) translateY(9px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  box-shadow:
    0 13px 30px rgba(7, 70, 78, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    inset 0 -36px 74px rgba(0, 0, 0, 0.15) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover::after {
  background:
    linear-gradient(180deg, rgba(2, 30, 42, 0.03) 0%, rgba(2, 30, 42, 0.1) 36%, rgba(2, 30, 42, 0.78) 100%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.12) 48%, transparent 58% 100%) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  padding: 4px !important;
  border: 1px solid rgba(7, 70, 78, 0.055) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(240, 251, 247, 0.32)) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-relive,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-relive {
  letter-spacing: 0 !important;
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--chapter-accent, #18a978) 24%, rgba(7, 70, 78, 0.16)),
    0 0 0 5px color-mix(in srgb, var(--chapter-accent, #18a978) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-open,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-open {
  border: 1px solid rgba(7, 70, 78, 0.08) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(242, 252, 247, 0.5)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}
/* Home v506 final append: Recent Memories wins after older duplicate rules. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
  border: 1px solid rgba(255, 255, 255, 0.52) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 78, 121, 0.09), transparent 36%),
    radial-gradient(circle at 86% 26%, rgba(31, 169, 121, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(239, 250, 246, 0.58)) !important;
  box-shadow: 0 18px 46px rgba(7, 70, 78, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
  display: grid !important;
  gap: 10px !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(240, 251, 247, 0.34)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 92px !important;
  gap: 11px !important;
  padding: 9px !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.9), rgba(245, 253, 249, 0.74)), color-mix(in srgb, var(--recent-accent, #18a978) 7%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
  width: 76px !important;
  height: 76px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art img,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body {
  display: grid !important;
  min-width: 0 !important;
  align-content: center !important;
  gap: 4px !important;
  padding-right: 48px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body strong,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body em {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-relive,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-relive {
  display: inline-flex !important;
  width: fit-content !important;
  margin-top: 2px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #073f52, color-mix(in srgb, var(--recent-accent, #18a978) 68%, #087c8a)) !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  font-weight: 920 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
  display: grid !important;
  grid-auto-columns: minmax(178px, 220px) !important;
  grid-auto-flow: column !important;
  gap: 9px !important;
  overflow-x: auto !important;
  padding: 2px 1px 4px !important;
  scrollbar-width: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 72px !important;
  gap: 9px !important;
  padding: 8px !important;
  border-radius: 18px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art {
  width: 52px !important;
  height: 52px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 2px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    grid-template-columns: 68px minmax(0, 1fr) !important;
    min-height: 86px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before {
    display: none !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
    width: 68px !important;
    height: 68px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body {
    padding-right: 0 !important;
  }
}
/* Home v507 final append: Life Chapters as storybook covers. */
html body .app-shell .map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeJourney {
  --chapter-card-width: clamp(286px, 31vw, 352px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 169, 121, 0.13), transparent 36%),
    radial-gradient(circle at 88% 16%, rgba(31, 78, 121, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(237, 250, 246, 0.62)) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
  grid-auto-columns: var(--chapter-card-width) !important;
  gap: 16px !important;
  padding: 4px 4px 10px !important;
  scroll-padding-inline: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  display: grid !important;
  gap: 10px !important;
  padding: 10px !important;
  border: 1px solid color-mix(in srgb, var(--chapter-accent, #18a978) 20%, rgba(255, 255, 255, 0.78)) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), color-mix(in srgb, var(--chapter-accent, #18a978) 5%, #f8fffb) 70%, rgba(239, 250, 248, 0.95)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 4%, transparent) !important;
  box-shadow:
    0 20px 46px rgba(7, 70, 78, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.46) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::before,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::before,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card::after {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  aspect-ratio: 1.42 / 1 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 23px !important;
  background:
    radial-gradient(circle at 20% 8%, color-mix(in srgb, var(--chapter-accent, #18a978) 26%, rgba(255, 255, 255, 0.22)), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--chapter-accent, #18a978) 24%, #07546a), #eafaf5) !important;
  box-shadow:
    0 16px 34px rgba(7, 70, 78, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.02) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover::after {
  background:
    linear-gradient(180deg, rgba(2, 30, 42, 0.07) 0%, rgba(2, 30, 42, 0.04) 34%, rgba(2, 30, 42, 0.78) 100%),
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.2), transparent 40%) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption {
  right: 14px !important;
  bottom: 13px !important;
  left: 14px !important;
  gap: 5px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption strong {
  font-size: clamp(1.16rem, 2vw, 1.46rem) !important;
  line-height: 1.02 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption small {
  max-width: 100% !important;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 0.68rem !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-count-badge,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-count-badge {
  top: 12px !important;
  right: 12px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: rgba(3, 36, 48, 0.52) !important;
  backdrop-filter: blur(13px) saturate(1.15) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-copy {
  display: grid !important;
  gap: 8px !important;
  padding: 0 3px 2px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta {
  display: grid !important;
  gap: 3px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(7, 70, 78, 0.06) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(242, 252, 247, 0.5)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 5%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta span {
  overflow: hidden !important;
  color: #073542 !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-meta small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-meta small {
  overflow: hidden !important;
  color: rgba(7, 50, 63, 0.54) !important;
  font-size: 0.66rem !important;
  font-weight: 760 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  min-height: 46px !important;
  padding: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 17px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(240, 251, 247, 0.36)) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview {
  display: grid !important;
  height: 46px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 13px !important;
  background: color-mix(in srgb, var(--chapter-accent, #18a978) 12%, rgba(255, 255, 255, 0.78)) !important;
  box-shadow: 0 7px 14px rgba(7, 70, 78, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.56) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-more,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-more {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  display: grid !important;
  grid-template-columns: 1fr 0.82fr !important;
  gap: 8px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions button,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions button {
  min-height: 38px !important;
  border-radius: 999px !important;
  font-size: 0.76rem !important;
  font-weight: 920 !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body main.app-shell section.map-stage.home-focus #homeJourney {
    --chapter-card-width: min(84vw, 326px) !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
    padding-inline: 18px !important;
    scroll-padding-inline: 18px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
    aspect-ratio: 1.48 / 1 !important;
  }
}
/* Home v508 final append: quieter Recent Memories shelf. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
  margin-top: clamp(18px, 2.2vw, 28px) !important;
  padding: clamp(14px, 2vw, 18px) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(31, 169, 121, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.64), rgba(240, 250, 246, 0.46)) !important;
  box-shadow: 0 12px 30px rgba(7, 70, 78, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-section-heading {
  margin-bottom: 8px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading > strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-section-heading > strong {
  color: rgba(6, 53, 66, 0.5) !important;
  font-size: clamp(0.76rem, 1.1vw, 0.88rem) !important;
  font-weight: 720 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-panel,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-panel {
  gap: 8px !important;
  padding: 8px !important;
  border-radius: 21px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(240, 251, 247, 0.22)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter-row {
  max-width: 100% !important;
  padding: 2px !important;
  background: rgba(255, 255, 255, 0.26) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter {
  min-height: 27px !important;
  padding: 5px 10px !important;
  color: rgba(6, 53, 66, 0.56) !important;
  font-size: 0.64rem !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter.active,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter.active {
  background: linear-gradient(135deg, rgba(7, 63, 82, 0.88), rgba(21, 157, 139, 0.88)) !important;
  box-shadow: 0 6px 12px rgba(7, 70, 78, 0.1) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  min-height: 74px !important;
  gap: 9px !important;
  padding: 8px !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.76), rgba(245, 253, 249, 0.48)) !important;
  box-shadow: 0 8px 18px rgba(7, 70, 78, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature::before {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
  width: 58px !important;
  height: 58px !important;
  border-radius: 15px !important;
  box-shadow: 0 7px 14px rgba(7, 70, 78, 0.07) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body {
  gap: 2px !important;
  padding-right: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-kicker,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-kicker {
  font-size: 0.6rem !important;
  opacity: 0.78 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body strong {
  font-size: clamp(0.78rem, 1.15vw, 0.92rem) !important;
  font-weight: 880 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body em {
  font-size: 0.62rem !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-meta-row {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-relive,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-relive {
  margin-top: 3px !important;
  padding: 4px 8px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  color: color-mix(in srgb, var(--recent-accent, #18a978) 72%, #073542) !important;
  font-size: 0.62rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-strip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-strip {
  grid-auto-columns: minmax(148px, 186px) !important;
  gap: 8px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card {
  grid-template-columns: 42px minmax(0, 1fr) !important;
  min-height: 58px !important;
  gap: 8px !important;
  padding: 7px !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.62), rgba(243, 252, 248, 0.38)) !important;
  box-shadow: 0 6px 14px rgba(7, 70, 78, 0.035) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy strong {
  font-size: 0.7rem !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy small,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-copy em {
  font-size: 0.58rem !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
    padding: 12px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    min-height: 70px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
    width: 54px !important;
    height: 54px !important;
  }
}
/* Home v509 final append: curated section rhythm. */
html body .app-shell .map-stage.home-focus .home-section,
html body main.app-shell section.map-stage.home-focus .home-section {
  width: min(100%, 980px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay {
  margin-bottom: clamp(22px, 3vw, 36px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-section,
html body main.app-shell section.map-stage.home-focus .home-action-section {
  margin-top: clamp(10px, 1.6vw, 18px) !important;
  margin-bottom: clamp(30px, 4vw, 50px) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay {
  margin-top: clamp(24px, 3.6vw, 44px) !important;
  margin-bottom: clamp(32px, 4.4vw, 56px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeJourney {
  margin-top: clamp(30px, 4.2vw, 54px) !important;
  margin-bottom: clamp(30px, 4vw, 50px) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
  margin-top: clamp(30px, 4vw, 48px) !important;
  margin-bottom: clamp(18px, 2.5vw, 30px) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .home-section-heading,
html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeJourney .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .home-section-heading {
  margin-bottom: clamp(12px, 1.7vw, 18px) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay::before,
html body .app-shell .map-stage.home-focus #homeJourney::before,
html body .app-shell .map-stage.home-focus #homeTimelineStrip::before,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay::before,
html body main.app-shell section.map-stage.home-focus #homeJourney::before,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip::before {
  content: "" !important;
  display: block !important;
  width: min(92px, 26vw) !important;
  height: 1px !important;
  margin: 0 auto clamp(18px, 2.4vw, 26px) !important;
  background: linear-gradient(90deg, transparent, rgba(7, 70, 78, 0.16), transparent) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay {
    margin-bottom: 22px !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-section,
  html body main.app-shell section.map-stage.home-focus .home-action-section {
    margin-bottom: 34px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay,
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body main.app-shell section.map-stage.home-focus #homeJourney,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
    margin-top: 30px !important;
    margin-bottom: 34px !important;
  }
}
/* Home v510 final append: soft premium entrance rhythm. */
html body .app-shell .map-stage.home-focus .hero-copy,
html body main.app-shell section.map-stage.home-focus .hero-copy,
html body .app-shell .map-stage.home-focus .home-dashboard > .home-section,
html body main.app-shell section.map-stage.home-focus .home-dashboard > .home-section,
html body .app-shell .map-stage.home-focus .home-mappi-bottom-note,
html body main.app-shell section.map-stage.home-focus .home-mappi-bottom-note {
  animation: mymappiHomeSoftEntrance 820ms cubic-bezier(0.2, 0.72, 0.22, 1) both !important;
  backface-visibility: hidden !important;
  transform: translate3d(0, 0, 0) !important;
  will-change: opacity, transform !important;
}

html body .app-shell .map-stage.home-focus .hero-copy,
html body main.app-shell section.map-stage.home-focus .hero-copy {
  animation-delay: 40ms !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard > .home-section:nth-child(1),
html body main.app-shell section.map-stage.home-focus .home-dashboard > .home-section:nth-child(1) {
  animation-delay: 110ms !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard > .home-section:nth-child(2),
html body main.app-shell section.map-stage.home-focus .home-dashboard > .home-section:nth-child(2) {
  animation-delay: 180ms !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard > .home-section:nth-child(3),
html body main.app-shell section.map-stage.home-focus .home-dashboard > .home-section:nth-child(3) {
  animation-delay: 255ms !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard > .home-section:nth-child(4),
html body main.app-shell section.map-stage.home-focus .home-dashboard > .home-section:nth-child(4) {
  animation-delay: 330ms !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard > .home-section:nth-child(5),
html body main.app-shell section.map-stage.home-focus .home-dashboard > .home-section:nth-child(5) {
  animation-delay: 405ms !important;
}

html body .app-shell .map-stage.home-focus .home-mappi-bottom-note,
html body main.app-shell section.map-stage.home-focus .home-mappi-bottom-note {
  animation-delay: 480ms !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  animation: mymappiHomeCardSettle 900ms cubic-bezier(0.2, 0.72, 0.22, 1) both !important;
}

@keyframes mymappiHomeSoftEntrance {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes mymappiHomeCardSettle {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus .hero-copy,
  html body main.app-shell section.map-stage.home-focus .hero-copy,
  html body .app-shell .map-stage.home-focus .home-dashboard > .home-section,
  html body main.app-shell section.map-stage.home-focus .home-dashboard > .home-section,
  html body .app-shell .map-stage.home-focus .home-mappi-bottom-note,
  html body main.app-shell section.map-stage.home-focus .home-mappi-bottom-note,
  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card,
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card,
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
}
/* Home v511 final append: Life Chapters polish and final home spacing. */
html body .app-shell .map-stage.home-focus .home-dashboard,
html body main.app-shell section.map-stage.home-focus .home-dashboard {
  display: grid !important;
  row-gap: 0 !important;
}

html body .app-shell .map-stage.home-focus .home-section,
html body main.app-shell section.map-stage.home-focus .home-section {
  width: min(100%, 982px) !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay {
  margin-bottom: clamp(24px, 3.2vw, 40px) !important;
}

html body .app-shell .map-stage.home-focus .home-action-section,
html body main.app-shell section.map-stage.home-focus .home-action-section {
  margin-top: clamp(12px, 1.6vw, 18px) !important;
  margin-bottom: clamp(34px, 4.4vw, 58px) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay {
  margin-top: clamp(24px, 3.2vw, 42px) !important;
  margin-bottom: clamp(38px, 5vw, 64px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney,
html body main.app-shell section.map-stage.home-focus #homeJourney {
  --chapter-card-width: clamp(292px, 30vw, 356px) !important;
  margin-top: clamp(34px, 4.6vw, 60px) !important;
  margin-bottom: clamp(38px, 4.8vw, 62px) !important;
  padding: clamp(15px, 2vw, 20px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(31, 169, 121, 0.12), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(31, 78, 121, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.8), rgba(237, 250, 246, 0.58)) !important;
  box-shadow:
    0 18px 42px rgba(7, 70, 78, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading,
html body main.app-shell section.map-stage.home-focus #homeJourney .home-section-heading {
  margin-bottom: clamp(14px, 1.8vw, 20px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-shelf,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-shelf {
  position: relative !important;
  margin-top: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
  grid-auto-columns: var(--chapter-card-width) !important;
  gap: clamp(14px, 1.8vw, 18px) !important;
  padding: 4px 10px 12px !important;
  scroll-padding-inline: 10px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-scroll,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-scroll {
  position: absolute !important;
  top: 50% !important;
  z-index: 8 !important;
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 999px !important;
  background: rgba(7, 47, 61, 0.58) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 12px 24px rgba(7, 70, 78, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(14px) saturate(1.15) !important;
  transform: translateY(-50%) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-scroll.prev,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-scroll.prev {
  left: 10px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-scroll.next,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-scroll.next {
  right: 10px !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-card {
  border-radius: 30px !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), color-mix(in srgb, var(--chapter-accent, #18a978) 5%, #f8fffb) 72%, rgba(239, 250, 248, 0.95)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 4%, transparent) !important;
  box-shadow:
    0 18px 40px rgba(7, 70, 78, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.46) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover {
  border-radius: 24px !important;
  box-shadow:
    0 14px 30px rgba(7, 70, 78, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover-caption span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover-caption span {
  letter-spacing: 0.08em !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview-row,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview-row {
  min-height: 44px !important;
  padding: 5px !important;
  border-radius: 17px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(240, 251, 247, 0.34)),
    color-mix(in srgb, var(--chapter-accent, #18a978) 4%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-actions,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-actions {
  margin-top: 1px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip {
  margin-top: clamp(36px, 4.8vw, 60px) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeJourney,
  html body main.app-shell section.map-stage.home-focus #homeJourney {
    --chapter-card-width: min(84vw, 326px) !important;
    padding: 14px 0 14px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .home-section-heading,
  html body main.app-shell section.map-stage.home-focus #homeJourney .home-section-heading {
    padding-inline: 16px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-row,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-row {
    padding-inline: 18px !important;
    scroll-padding-inline: 18px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-scroll,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-scroll {
    display: none !important;
  }
}
/* App v512 final append: calmer premium bottom navigation. */
html body .app-shell .bottom-nav,
html body main.app-shell .bottom-nav {
  display: grid !important;
  grid-template-columns: 1fr 1fr auto 1fr 1fr !important;
  align-items: center !important;
  gap: clamp(6px, 1vw, 10px) !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(214, 244, 237, 0.18) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 169, 121, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(4, 28, 43, 0.88), rgba(7, 63, 82, 0.82)) !important;
  box-shadow:
    0 18px 44px rgba(4, 28, 43, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
}

html body .app-shell .bottom-nav-item,
html body main.app-shell .bottom-nav-item {
  position: relative !important;
  min-width: 0 !important;
  min-height: 54px !important;
  gap: 5px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: rgba(222, 241, 241, 0.68) !important;
  background: transparent !important;
  font-size: clamp(0.64rem, 1vw, 0.78rem) !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease !important;
}

html body .app-shell .bottom-nav-item svg,
html body main.app-shell .bottom-nav-item svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.15 !important;
}

html body .app-shell .bottom-nav-item.active,
html body main.app-shell .bottom-nav-item.active {
  border-color: rgba(218, 255, 246, 0.16) !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 48%),
    linear-gradient(135deg, rgba(31, 169, 121, 0.28), rgba(31, 78, 121, 0.22)) !important;
  box-shadow:
    0 8px 20px rgba(31, 169, 121, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html body .app-shell .bottom-nav-item.active::after,
html body main.app-shell .bottom-nav-item.active::after {
  position: absolute !important;
  right: 28% !important;
  bottom: 5px !important;
  left: 28% !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, #31d8b6, transparent) !important;
  content: "" !important;
}

html body .app-shell .bottom-nav-item#accountMenuButton,
html body main.app-shell .bottom-nav-item#accountMenuButton {
  color: rgba(222, 241, 241, 0.58) !important;
}

html body .app-shell .add-memory-button,
html body main.app-shell .add-memory-button {
  width: clamp(58px, 6.4vw, 70px) !important;
  height: clamp(58px, 6.4vw, 70px) !important;
  min-width: clamp(58px, 6.4vw, 70px) !important;
  border: 1px solid rgba(218, 255, 246, 0.28) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(135deg, #18a978 0%, #118f9b 52%, #1f4e79 100%) !important;
  box-shadow:
    0 16px 34px rgba(17, 143, 155, 0.28),
    0 0 0 8px rgba(31, 169, 121, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
  color: #ffffff !important;
  transform: translateY(-8px) !important;
}

html body .app-shell .add-memory-button svg,
html body main.app-shell .add-memory-button svg {
  width: 30px !important;
  height: 30px !important;
  stroke-width: 2.15 !important;
}

html body .app-shell .bottom-nav-item:hover,
html body main.app-shell .bottom-nav-item:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

html body .app-shell .add-memory-button:hover,
html body main.app-shell .add-memory-button:hover {
  transform: translateY(-10px) scale(1.02) !important;
}

@media (max-width: 720px) {
  html body .app-shell .bottom-nav,
  html body main.app-shell .bottom-nav {
    gap: 4px !important;
    padding: 8px 9px !important;
  }

  html body .app-shell .bottom-nav-item,
  html body main.app-shell .bottom-nav-item {
    min-height: 50px !important;
    font-size: 0.6rem !important;
  }

  html body .app-shell .bottom-nav-item svg,
  html body main.app-shell .bottom-nav-item svg {
    width: 18px !important;
    height: 18px !important;
  }

  html body .app-shell .add-memory-button,
  html body main.app-shell .add-memory-button {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    transform: translateY(-7px) !important;
  }
}

/* App v513: Explore map premium polish and stable controls. */
html body .app-shell .map-stage.map-focus::before,
html body .app-shell .map-stage.map-focus::after,
html body main.app-shell section.map-stage.map-focus::before,
html body main.app-shell section.map-stage.map-focus::after {
  display: none !important;
  content: none !important;
}

html body .app-shell .map-stage.map-focus #map,
html body main.app-shell section.map-stage.map-focus #map {
  background: #dff1ec !important;
}

html body .app-shell .map-stage.map-focus #map canvas,
html body main.app-shell section.map-stage.map-focus #map canvas {
  filter: saturate(1.06) contrast(1.015) brightness(1.015) !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget,
html body main.app-shell section.map-stage.map-focus .map-navigation-gadget {
  right: max(28px, env(safe-area-inset-right) + 18px) !important;
  bottom: calc(var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom) + 30px) !important;
  display: grid !important;
  grid-template-columns: repeat(2, 40px) !important;
  grid-template-rows: repeat(2, 40px) !important;
  gap: 6px !important;
  width: auto !important;
  height: auto !important;
  padding: 7px !important;
  border: 1px solid rgba(222, 255, 247, 0.2) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 30% 0%, rgba(49, 216, 182, 0.18), transparent 48%),
    linear-gradient(145deg, rgba(4, 31, 45, 0.9), rgba(7, 72, 82, 0.84)) !important;
  box-shadow:
    0 18px 42px rgba(3, 29, 43, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.17) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
}

html body .app-shell .map-stage.map-focus .map-navigation-gadget > *,
html body .app-shell .map-stage.map-focus .map-gadget-button,
html body .app-shell .map-stage.map-focus .map-compass,
html body .app-shell .map-stage.map-focus .map-gadget-zoom-button,
html body main.app-shell section.map-stage.map-focus .map-navigation-gadget > *,
html body main.app-shell section.map-stage.map-focus .map-gadget-button,
html body main.app-shell section.map-stage.map-focus .map-compass,
html body main.app-shell section.map-stage.map-focus .map-gadget-zoom-button {
  display: grid !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  place-items: center !important;
  border: 1px solid rgba(226, 255, 248, 0.16) !important;
  border-radius: 15px !important;
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)) !important;
  color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html body .app-shell .map-stage.map-focus .map-gadget-button .locate-label,
html body main.app-shell section.map-stage.map-focus .map-gadget-button .locate-label {
  display: none !important;
}

html body .app-shell .map-stage.map-focus .map-gadget-button svg,
html body .app-shell .map-stage.map-focus .map-gadget-button [data-icon] svg,
html body main.app-shell section.map-stage.map-focus .map-gadget-button svg,
html body main.app-shell section.map-stage.map-focus .map-gadget-button [data-icon] svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.25 !important;
}

html body .app-shell .map-stage.map-focus .map-gadget-zoom-button,
html body main.app-shell section.map-stage.map-focus .map-gadget-zoom-button {
  font-size: 1.25rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.map-focus .map-compass,
html body main.app-shell section.map-stage.map-focus .map-compass {
  position: relative !important;
  overflow: hidden !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.03em !important;
}

html body .app-shell .map-stage.map-focus .map-compass-needle,
html body main.app-shell section.map-stage.map-focus .map-compass-needle {
  top: 7px !important;
  width: 0 !important;
  height: 0 !important;
  border-right: 5px solid transparent !important;
  border-bottom: 17px solid rgba(255, 111, 97, 0.96) !important;
  border-left: 5px solid transparent !important;
  filter: drop-shadow(0 4px 5px rgba(2, 25, 37, 0.22)) !important;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker,
html body main.app-shell .user-location-marker-shell.live-user-location-marker {
  z-index: 9999 !important;
  width: 28px !important;
  height: 28px !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

html body .app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location,
html body main.app-shell .user-location-marker-shell.live-user-location-marker .user-location-marker.is-current-location {
  position: relative !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 5px !important;
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.9) 0 12%, transparent 13%),
    linear-gradient(145deg, #2b8dff, #0966ff) !important;
  box-shadow:
    0 8px 18px rgba(7, 73, 160, 0.26),
    0 0 0 1px rgba(30, 121, 255, 0.18) !important;
}

html body .app-shell .user-location-marker.is-current-location::before,
html body main.app-shell .user-location-marker.is-current-location::before {
  display: none !important;
}

html body .app-shell .user-location-marker.is-current-location .user-location-ripple,
html body main.app-shell .user-location-marker.is-current-location .user-location-ripple {
  position: absolute !important;
  inset: -9px !important;
  border: 1px solid rgba(43, 141, 255, 0.34) !important;
  border-radius: 999px !important;
  background: rgba(43, 141, 255, 0.08) !important;
  box-shadow: none !important;
}

html body .app-shell .map-stage.map-focus .mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-marker-icon.mymappi-memory-pin-icon,
html body .app-shell .map-stage.map-focus .leaflet-div-icon.mymappi-memory-pin-icon,
html body main.app-shell section.map-stage.map-focus .mymappi-memory-pin-icon,
html body main.app-shell section.map-stage.map-focus .leaflet-marker-icon.mymappi-memory-pin-icon,
html body main.app-shell section.map-stage.map-focus .leaflet-div-icon.mymappi-memory-pin-icon {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: visible !important;
  will-change: transform !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only,
html body main.app-shell section.map-stage.map-focus .mymappi-pin-only {
  filter: none !important;
  transition: opacity 160ms ease, transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-svg,
html body main.app-shell section.map-stage.map-focus .mymappi-pin-only .memory-pin-svg {
  overflow: visible !important;
  filter: none !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-rim,
html body main.app-shell section.map-stage.map-focus .mymappi-pin-only .memory-pin-rim {
  stroke: rgba(255, 255, 255, 0.66) !important;
  stroke-width: 1.15px !important;
}

html body .app-shell .map-stage.map-focus .mymappi-pin-only .memory-pin-body,
html body main.app-shell section.map-stage.map-focus .mymappi-pin-only .memory-pin-body {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 93%, #ffffff 7%) !important;
  stroke: color-mix(in srgb, var(--marker-color, #18a978) 62%, #052d3b 38%) !important;
  stroke-width: 1.05px !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-world .mymappi-pin-only .memory-pin-symbol,
html body .app-shell .map-stage.map-focus.memory-zoom-country .mymappi-pin-only .memory-pin-symbol,
html body main.app-shell section.map-stage.map-focus.memory-zoom-world .mymappi-pin-only .memory-pin-symbol,
html body main.app-shell section.map-stage.map-focus.memory-zoom-country .mymappi-pin-only .memory-pin-symbol {
  display: none !important;
}

html body .app-shell .map-stage.map-focus.memory-zoom-street .mymappi-pin-only:hover,
html body .app-shell .map-stage.map-focus.memory-zoom-street .mymappi-pin-only:focus-within,
html body main.app-shell section.map-stage.map-focus.memory-zoom-street .mymappi-pin-only:hover,
html body main.app-shell section.map-stage.map-focus.memory-zoom-street .mymappi-pin-only:focus-within {
  transform: translateY(-3px) translateZ(0) scale(1.035) !important;
}

html body .app-shell .map-stage.map-focus.map-interacting .mymappi-pin-only,
html body .app-shell .map-stage.map-focus.map-performance-mode .mymappi-pin-only,
html body main.app-shell section.map-stage.map-focus.map-interacting .mymappi-pin-only,
html body main.app-shell section.map-stage.map-focus.map-performance-mode .mymappi-pin-only {
  transition: none !important;
  animation: none !important;
  transform: translateZ(0) scale(1) !important;
}

html body .app-shell .map-stage.map-focus .pin-search-panel,
html body main.app-shell section.map-stage.map-focus .pin-search-panel {
  top: calc(env(safe-area-inset-top) + 76px) !important;
  right: max(18px, env(safe-area-inset-right) + 12px) !important;
  left: auto !important;
  width: min(410px, calc(100vw - 28px)) !important;
  border: 1px solid rgba(222, 255, 247, 0.18) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(49, 216, 182, 0.12), transparent 44%),
    linear-gradient(145deg, rgba(4, 31, 45, 0.94), rgba(7, 72, 82, 0.88)) !important;
  box-shadow:
    0 24px 62px rgba(3, 29, 43, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
  color: #f8fffd !important;
  backdrop-filter: blur(20px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.16) !important;
}

html body .app-shell .map-stage.map-focus .pin-search-result,
html body main.app-shell section.map-stage.map-focus .pin-search-result {
  border: 1px solid rgba(226, 255, 248, 0.12) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
}

html body .app-shell .map-stage.map-focus .pin-search-result small,
html body main.app-shell section.map-stage.map-focus .pin-search-result small {
  color: rgba(230, 248, 245, 0.68) !important;
}

html body .app-shell .map-stage.map-focus .pin-search-section-label,
html body main.app-shell section.map-stage.map-focus .pin-search-section-label {
  color: rgba(226, 255, 248, 0.72) !important;
}

html body .app-shell .map-stage.map-focus .directions-panel,
html body main.app-shell section.map-stage.map-focus .directions-panel {
  border: 1px solid rgba(222, 255, 247, 0.18) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(49, 216, 182, 0.13), transparent 44%),
    linear-gradient(145deg, rgba(4, 31, 45, 0.94), rgba(7, 72, 82, 0.88)) !important;
  box-shadow:
    0 24px 62px rgba(3, 29, 43, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
  color: #f8fffd !important;
}

html body .app-shell .map-stage.map-focus .route-mode-button,
html body main.app-shell section.map-stage.map-focus .route-mode-button {
  border-radius: 999px !important;
  border-color: rgba(226, 255, 248, 0.14) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  color: rgba(245, 255, 253, 0.82) !important;
}

html body .app-shell .map-stage.map-focus .route-mode-button.active,
html body main.app-shell section.map-stage.map-focus .route-mode-button.active {
  background: linear-gradient(135deg, #18a978, #118f9b) !important;
  color: #ffffff !important;
}

html body .app-shell .map-stage.map-focus .memory-journey-toast,
html body main.app-shell section.map-stage.map-focus .memory-journey-toast {
  bottom: calc(var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom) + 116px) !important;
  border-radius: 24px !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.map-focus .map-navigation-gadget,
  html body main.app-shell section.map-stage.map-focus .map-navigation-gadget {
    right: max(16px, env(safe-area-inset-right) + 10px) !important;
    bottom: calc(var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom) + 22px) !important;
    grid-template-columns: repeat(2, 38px) !important;
    grid-template-rows: repeat(2, 38px) !important;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 20px !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget > *,
  html body .app-shell .map-stage.map-focus .map-gadget-button,
  html body .app-shell .map-stage.map-focus .map-compass,
  html body .app-shell .map-stage.map-focus .map-gadget-zoom-button,
  html body main.app-shell section.map-stage.map-focus .map-navigation-gadget > *,
  html body main.app-shell section.map-stage.map-focus .map-gadget-button,
  html body main.app-shell section.map-stage.map-focus .map-compass,
  html body main.app-shell section.map-stage.map-focus .map-gadget-zoom-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 14px !important;
  }

  html body .app-shell .map-stage.map-focus .pin-search-panel,
  html body main.app-shell section.map-stage.map-focus .pin-search-panel {
    top: calc(env(safe-area-inset-top) + 68px) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
  }
}

/* App v514: Map accuracy cues, premium clusters, and clearer Explore surface. */
html body .app-shell .memory-editor .location-confidence,
html body main.app-shell .memory-editor .location-confidence {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 10px !important;
  margin-top: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(26, 143, 126, 0.14) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(49, 216, 182, 0.12), transparent 44%),
    linear-gradient(135deg, rgba(238, 251, 247, 0.92), rgba(255, 253, 248, 0.86)) !important;
  color: #0e4051 !important;
  box-shadow:
    0 10px 24px rgba(7, 70, 78, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

html body .app-shell .memory-editor .location-confidence > span,
html body main.app-shell .memory-editor .location-confidence > span {
  grid-row: 1 / span 2 !important;
  display: grid !important;
  width: 36px !important;
  height: 36px !important;
  place-items: center !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #18a978, #118f9b) !important;
  color: #ffffff !important;
}

html body .app-shell .memory-editor .location-confidence strong,
html body main.app-shell .memory-editor .location-confidence strong {
  font-size: 0.88rem !important;
  font-weight: 850 !important;
}

html body .app-shell .memory-editor .location-confidence small,
html body main.app-shell .memory-editor .location-confidence small {
  color: rgba(14, 64, 81, 0.68) !important;
  line-height: 1.35 !important;
}

html body .app-shell .memory-editor .location-confidence.is-loading > span,
html body main.app-shell .memory-editor .location-confidence.is-loading > span {
  background: linear-gradient(135deg, #1f4e79, #118f9b) !important;
}

html body .app-shell .memory-editor .location-confidence.is-exact,
html body main.app-shell .memory-editor .location-confidence.is-exact {
  border-color: rgba(24, 169, 120, 0.24) !important;
  box-shadow:
    0 12px 28px rgba(24, 169, 120, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker.constellation-cluster {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  place-items: center !important;
  border: 1px solid rgba(235, 255, 249, 0.32) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--marker-color, #18a978) 76%, #0c4153 24%), #073647) !important;
  box-shadow:
    0 10px 22px rgba(5, 42, 56, 0.2),
    0 0 0 5px color-mix(in srgb, var(--marker-color, #18a978) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  font-size: 0 !important;
  transform: translateZ(0) !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-stars,
html body .app-shell .map-stage.map-focus .memory-cluster-marker small,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker .cluster-stars,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker small {
  display: none !important;
}

html body .app-shell .map-stage.map-focus .memory-cluster-marker .cluster-count,
html body .app-shell .map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker .cluster-count,
html body main.app-shell section.map-stage.map-focus .memory-cluster-marker.constellation-cluster .cluster-count {
  display: grid !important;
  width: 26px !important;
  height: 26px !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.map-focus .mymappi-place-marker.search-destination-pin,
html body main.app-shell section.map-stage.map-focus .mymappi-place-marker.search-destination-pin {
  transform: translateZ(0) scale(0.88) !important;
}

html body .app-shell .map-stage.map-focus .mymappi-place-marker.search-destination-pin .memory-pin-rim,
html body main.app-shell section.map-stage.map-focus .mymappi-place-marker.search-destination-pin .memory-pin-rim {
  stroke: rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.map-focus .mymappi-place-marker.search-destination-pin .memory-pin-symbol,
html body main.app-shell section.map-stage.map-focus .mymappi-place-marker.search-destination-pin .memory-pin-symbol {
  font-size: 10px !important;
}

html body .app-shell .map-stage.map-focus .maplibregl-popup-content,
html body main.app-shell section.map-stage.map-focus .maplibregl-popup-content {
  border: 1px solid rgba(222, 255, 247, 0.18) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(49, 216, 182, 0.12), transparent 44%),
    linear-gradient(145deg, rgba(4, 31, 45, 0.95), rgba(7, 72, 82, 0.9)) !important;
  box-shadow: 0 18px 42px rgba(3, 29, 43, 0.26) !important;
  color: #f8fffd !important;
}

html body .app-shell .map-stage.map-focus .maplibregl-popup-tip,
html body main.app-shell section.map-stage.map-focus .maplibregl-popup-tip {
  border-top-color: rgba(7, 72, 82, 0.92) !important;
}

html body .app-shell .map-stage.map-focus .directions-mode-button,
html body main.app-shell section.map-stage.map-focus .directions-mode-button {
  border: 1px solid rgba(226, 255, 248, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.075) !important;
  color: rgba(245, 255, 253, 0.82) !important;
}

html body .app-shell .map-stage.map-focus .directions-mode-button.active,
html body main.app-shell section.map-stage.map-focus .directions-mode-button.active {
  background: linear-gradient(135deg, #18a978, #118f9b) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(17, 143, 155, 0.18) !important;
}

@media (max-width: 720px) {
  html body .app-shell .memory-editor .location-confidence,
  html body main.app-shell .memory-editor .location-confidence {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    padding: 11px 12px !important;
    border-radius: 16px !important;
  }

  html body .app-shell .memory-editor .location-confidence > span,
  html body main.app-shell .memory-editor .location-confidence > span {
    width: 32px !important;
    height: 32px !important;
    border-radius: 12px !important;
  }
}

/* App v515: premium Capture This Moment flow. */
html body .app-shell .memory-editor,
html body main.app-shell .memory-editor {
  border: 1px solid rgba(221, 255, 248, 0.36) !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(49, 216, 182, 0.14), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(31, 78, 121, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(239, 250, 247, 0.96)) !important;
  box-shadow:
    0 26px 70px rgba(3, 29, 43, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html body .app-shell .memory-editor .editor-header,
html body main.app-shell .memory-editor .editor-header {
  align-items: start !important;
  gap: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(14, 64, 81, 0.08) !important;
}

html body .app-shell .memory-editor .editor-header p,
html body main.app-shell .memory-editor .editor-header p {
  width: max-content !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: rgba(24, 169, 120, 0.12) !important;
  color: #0f6f63 !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
}

html body .app-shell .memory-editor .editor-header h2,
html body main.app-shell .memory-editor .editor-header h2 {
  margin-top: 7px !important;
  color: #092f3f !important;
  font-size: clamp(1.55rem, 4vw, 2rem) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

html body .app-shell .memory-editor .editor-promise,
html body main.app-shell .memory-editor .editor-promise {
  display: block !important;
  margin-top: 6px !important;
  color: rgba(14, 64, 81, 0.66) !important;
  font-size: 0.94rem !important;
  font-weight: 760 !important;
}

html body .app-shell .memory-editor .editor-header .icon-button,
html body main.app-shell .memory-editor .editor-header .icon-button {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border: 1px solid rgba(14, 64, 81, 0.1) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  color: #092f3f !important;
}

html body .app-shell .memory-editor .memory-flow-panel,
html body main.app-shell .memory-editor .memory-flow-panel {
  gap: 13px !important;
  margin-top: 14px !important;
  padding: clamp(14px, 2vw, 18px) !important;
  border: 1px solid color-mix(in srgb, var(--editor-accent, #18a978) 13%, rgba(14, 64, 81, 0.08)) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 5% 0%, color-mix(in srgb, var(--editor-accent, #18a978) 10%, transparent), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 255, 252, 0.72)) !important;
  box-shadow:
    0 16px 36px rgba(7, 70, 78, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

html body .app-shell .memory-editor .memory-flow-place,
html body main.app-shell .memory-editor .memory-flow-place {
  gap: 10px !important;
}

html body .app-shell .memory-editor .memory-flow-story,
html body main.app-shell .memory-editor .memory-flow-story {
  border-color: color-mix(in srgb, var(--editor-accent, #18a978) 24%, rgba(14, 64, 81, 0.08)) !important;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--editor-accent, #18a978) 16%, transparent), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 251, 247, 0.8)) !important;
}

html body .app-shell .memory-editor .memory-flow-step,
html body main.app-shell .memory-editor .memory-flow-step {
  padding: 6px 11px !important;
  border: 1px solid color-mix(in srgb, var(--editor-accent, #18a978) 12%, rgba(255, 255, 255, 0.52)) !important;
  background: color-mix(in srgb, var(--editor-accent, #18a978) 11%, rgba(255, 255, 255, 0.86)) !important;
  color: color-mix(in srgb, var(--editor-accent, #18a978) 72%, #0e4051) !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.07em !important;
}

html body .app-shell .memory-editor label,
html body main.app-shell .memory-editor label {
  color: rgba(14, 64, 81, 0.78) !important;
  font-size: 0.77rem !important;
  letter-spacing: 0 !important;
}

html body .app-shell .memory-editor input,
html body .app-shell .memory-editor select,
html body .app-shell .memory-editor textarea,
html body main.app-shell .memory-editor input,
html body main.app-shell .memory-editor select,
html body main.app-shell .memory-editor textarea {
  min-height: 44px !important;
  border: 1px solid rgba(14, 64, 81, 0.1) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
}

html body .app-shell .memory-editor .memory-title-field input,
html body main.app-shell .memory-editor .memory-title-field input {
  min-height: 52px !important;
  border-radius: 19px !important;
  color: #092f3f !important;
  font-size: 1.04rem !important;
  font-weight: 850 !important;
}

html body .app-shell .memory-editor textarea#memoryNotes,
html body main.app-shell .memory-editor textarea#memoryNotes {
  min-height: 112px !important;
  line-height: 1.5 !important;
}

html body .app-shell .memory-editor .memory-meta-fields,
html body main.app-shell .memory-editor .memory-meta-fields {
  opacity: 0.82 !important;
}

html body .app-shell .memory-editor .editor-subheading,
html body main.app-shell .memory-editor .editor-subheading {
  align-items: start !important;
  margin-top: 0 !important;
}

html body .app-shell .memory-editor .editor-subheading span,
html body main.app-shell .memory-editor .editor-subheading span {
  color: #0e4051 !important;
  font-size: 0.9rem !important;
}

html body .app-shell .memory-editor .category-swatch-rail,
html body main.app-shell .memory-editor .category-swatch-rail {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body .app-shell .memory-editor .category-swatch,
html body main.app-shell .memory-editor .category-swatch {
  min-height: 62px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 10px 8px !important;
  border: 1px solid rgba(14, 64, 81, 0.08) !important;
  border-radius: 18px !important;
  text-align: center !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow:
    0 10px 22px rgba(7, 70, 78, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .memory-editor .category-swatch-dot,
html body main.app-shell .memory-editor .category-swatch-dot {
  width: 18px !important;
  height: 18px !important;
}

html body .app-shell .memory-editor .category-swatch-copy strong,
html body main.app-shell .memory-editor .category-swatch-copy strong {
  color: #0e4051 !important;
  font-size: 0.75rem !important;
}

html body .app-shell .memory-editor .category-swatch-copy small,
html body main.app-shell .memory-editor .category-swatch-copy small {
  display: none !important;
}

html body .app-shell .memory-editor .category-swatch.active,
html body main.app-shell .memory-editor .category-swatch.active {
  border-color: color-mix(in srgb, var(--swatch) 42%, white) !important;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--swatch) 18%, transparent), transparent 58%),
    rgba(255, 255, 255, 0.9) !important;
  box-shadow:
    0 14px 26px color-mix(in srgb, var(--swatch) 16%, transparent),
    0 0 0 1px color-mix(in srgb, var(--swatch) 22%, transparent) inset !important;
}

html body .app-shell .memory-editor .favorite-toggle,
html body main.app-shell .memory-editor .favorite-toggle {
  justify-content: center !important;
  min-height: 44px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.11), rgba(255, 255, 255, 0.78)) !important;
}

html body .app-shell .memory-media-dropzone,
html body main.app-shell .memory-media-dropzone {
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(49, 216, 182, 0.11), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(239, 250, 247, 0.72)) !important;
}

html body .app-shell .memory-media-dropzone-copy > span[data-icon],
html body main.app-shell .memory-media-dropzone-copy > span[data-icon] {
  background: linear-gradient(135deg, #18a978, #118f9b) !important;
}

html body .app-shell .memory-media-dropzone-actions .secondary-button,
html body main.app-shell .memory-media-dropzone-actions .secondary-button {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

html body .app-shell .memory-editor .editor-actions,
html body main.app-shell .memory-editor .editor-actions {
  display: grid !important;
  justify-items: center !important;
  gap: 11px !important;
  margin-top: 18px !important;
  padding: 18px 14px 4px !important;
  border-top: 1px solid rgba(14, 64, 81, 0.08) !important;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.72)) !important;
}

html body .app-shell .memory-editor .save-memory-note,
html body main.app-shell .memory-editor .save-memory-note {
  max-width: 310px !important;
  margin: -2px auto 2px !important;
  color: rgba(14, 64, 81, 0.62) !important;
  font-size: 0.82rem !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

html body .app-shell .memory-editor .editor-actions .primary-button,
html body main.app-shell .memory-editor .editor-actions .primary-button {
  width: min(340px, 100%) !important;
  min-height: 58px !important;
  border: 1px solid rgba(218, 255, 246, 0.32) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.4), transparent 34%),
    linear-gradient(135deg, #18a978 0%, #118f9b 52%, #1f4e79 100%) !important;
  box-shadow:
    0 18px 34px rgba(17, 143, 155, 0.28),
    0 0 0 8px rgba(31, 169, 121, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
  font-size: 0.98rem !important;
}

html body .app-shell .memory-editor .editor-actions #deleteButton,
html body main.app-shell .memory-editor .editor-actions #deleteButton {
  width: auto !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  color: rgba(117, 37, 47, 0.78) !important;
  background: rgba(255, 255, 255, 0.48) !important;
}

@media (max-width: 720px) {
  html body .app-shell .memory-editor,
  html body main.app-shell .memory-editor {
    border-radius: 28px !important;
  }

  html body .app-shell .memory-editor .category-swatch-rail,
  html body main.app-shell .memory-editor .category-swatch-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .app-shell .memory-editor .memory-flow-panel,
  html body main.app-shell .memory-editor .memory-flow-panel {
    border-radius: 22px !important;
  }
}

/* App v516: organize location confirmation and media drop area. */
html body .app-shell .memory-editor .location-confidence,
html body main.app-shell .memory-editor .location-confidence {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  gap: 7px !important;
  padding: 15px 16px !important;
  text-align: center !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(49, 216, 182, 0.14), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(238, 251, 247, 0.76)) !important;
}

html body .app-shell .memory-editor .location-confidence > span,
html body main.app-shell .memory-editor .location-confidence > span {
  grid-row: auto !important;
  width: 42px !important;
  height: 42px !important;
  margin-bottom: 2px !important;
  border-radius: 16px !important;
  box-shadow:
    0 10px 22px rgba(17, 143, 155, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html body .app-shell .memory-editor .location-confidence strong,
html body main.app-shell .memory-editor .location-confidence strong {
  max-width: 100% !important;
  color: #0b3b48 !important;
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
}

html body .app-shell .memory-editor .location-confidence small,
html body main.app-shell .memory-editor .location-confidence small {
  max-width: 32ch !important;
  margin: 0 auto !important;
  color: rgba(14, 64, 81, 0.64) !important;
  font-size: 0.78rem !important;
  line-height: 1.38 !important;
}

html body .app-shell .memory-media-dropzone,
html body main.app-shell .memory-media-dropzone {
  justify-items: center !important;
  gap: 14px !important;
  padding: clamp(18px, 3vw, 24px) !important;
  text-align: center !important;
  border-radius: 26px !important;
}

html body .app-shell .memory-media-dropzone-copy,
html body main.app-shell .memory-media-dropzone-copy {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 340px !important;
}

html body .app-shell .memory-media-dropzone-copy > span[data-icon],
html body main.app-shell .memory-media-dropzone-copy > span[data-icon] {
  grid-row: auto !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 18px !important;
  box-shadow:
    0 13px 26px rgba(12, 122, 113, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html body .app-shell .memory-media-dropzone-copy strong,
html body main.app-shell .memory-media-dropzone-copy strong {
  margin-top: 2px !important;
  color: #0b3440 !important;
  font-size: 1.04rem !important;
  line-height: 1.12 !important;
}

html body .app-shell .memory-media-dropzone-copy small,
html body main.app-shell .memory-media-dropzone-copy small {
  max-width: 34ch !important;
  margin: 0 auto !important;
  color: rgba(11, 52, 64, 0.62) !important;
  font-size: 0.78rem !important;
  line-height: 1.42 !important;
}

html body .app-shell .memory-media-dropzone-actions,
html body main.app-shell .memory-media-dropzone-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  width: min(100%, 310px) !important;
  justify-content: center !important;
}

html body .app-shell .memory-media-dropzone-actions .secondary-button,
html body main.app-shell .memory-media-dropzone-actions .secondary-button {
  justify-content: center !important;
  min-height: 42px !important;
  padding-inline: 14px !important;
  font-weight: 880 !important;
  box-shadow:
    0 9px 18px rgba(8, 54, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .app-shell .memory-media-preview,
html body main.app-shell .memory-media-preview {
  width: 100% !important;
  justify-content: center !important;
}

@media (max-width: 430px) {
  html body .app-shell .memory-media-dropzone-actions,
  html body main.app-shell .memory-media-dropzone-actions {
    grid-template-columns: 1fr !important;
  }
}

/* App v517: cleaner six-feeling memory picker. */
html body .app-shell .memory-editor .memory-flow-feeling .editor-subheading,
html body main.app-shell .memory-editor .memory-flow-feeling .editor-subheading {
  display: grid !important;
  justify-items: center !important;
  gap: 4px !important;
  text-align: center !important;
}

html body .app-shell .memory-editor .memory-flow-feeling .editor-subheading span,
html body main.app-shell .memory-editor .memory-flow-feeling .editor-subheading span {
  font-size: 0.96rem !important;
  line-height: 1.2 !important;
}

html body .app-shell .memory-editor .memory-flow-feeling .editor-subheading small,
html body main.app-shell .memory-editor .memory-flow-feeling .editor-subheading small {
  max-width: 38ch !important;
  color: rgba(14, 64, 81, 0.58) !important;
  font-size: 0.76rem !important;
  line-height: 1.35 !important;
}

html body .app-shell .memory-editor .category-swatch-rail,
html body main.app-shell .memory-editor .category-swatch-rail {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 520px) {
  html body .app-shell .memory-editor .category-swatch-rail,
  html body main.app-shell .memory-editor .category-swatch-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* App v518: premium guided Capture This Moment flow. */
html body .app-shell .memory-editor .memory-editor-progress,
html body main.app-shell .memory-editor .memory-editor-progress {
  display: grid !important;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto !important;
  align-items: center !important;
  gap: 7px !important;
  width: min(100%, 480px) !important;
  margin: 0 auto 18px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(16, 89, 100, 0.1) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(43, 211, 172, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.66) !important;
  box-shadow:
    0 14px 30px rgba(12, 64, 72, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

html body .app-shell .memory-editor .memory-editor-progress span,
html body main.app-shell .memory-editor .memory-editor-progress span {
  color: rgba(9, 55, 69, 0.72) !important;
  font-size: clamp(0.62rem, 1.8vw, 0.75rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body .app-shell .memory-editor .memory-editor-progress i,
html body main.app-shell .memory-editor .memory-editor-progress i {
  display: block !important;
  height: 1px !important;
  min-width: 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(35, 183, 151, 0.12), rgba(31, 78, 121, 0.28)) !important;
}

html body .app-shell .memory-editor .memory-people-select,
html body main.app-shell .memory-editor .memory-people-select {
  display: none !important;
}

html body .app-shell .memory-editor .memory-people-chips,
html body main.app-shell .memory-editor .memory-people-chips {
  display: grid !important;
  justify-items: center !important;
  gap: 10px !important;
  margin-top: -2px !important;
  padding: 15px !important;
  border: 1px solid rgba(16, 89, 100, 0.08) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.52) !important;
}

html body .app-shell .memory-editor .memory-people-chips > span,
html body main.app-shell .memory-editor .memory-people-chips > span {
  color: rgba(9, 55, 69, 0.66) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

html body .app-shell .memory-editor .memory-people-chips > div,
html body main.app-shell .memory-editor .memory-people-chips > div {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

html body .app-shell .memory-editor .memory-people-chips button,
html body main.app-shell .memory-editor .memory-people-chips button {
  min-height: 39px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(14, 64, 81, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(9, 55, 69, 0.72) !important;
  background: rgba(255, 255, 255, 0.64) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  font-weight: 900 !important;
}

html body .app-shell .memory-editor .memory-people-chips button.active,
html body main.app-shell .memory-editor .memory-people-chips button.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #18a978, #118f9b 54%, #1f4e79) !important;
  box-shadow: 0 12px 20px rgba(17, 143, 155, 0.2) !important;
}

html body .app-shell .memory-editor .mappi-story-tip,
html body main.app-shell .memory-editor .mappi-story-tip {
  max-width: 34ch !important;
  margin: -2px auto 2px !important;
  color: rgba(14, 64, 81, 0.6) !important;
  font-size: 0.8rem !important;
  font-weight: 780 !important;
  line-height: 1.42 !important;
  text-align: center !important;
}

html body .app-shell .memory-editor .memory-pin-preview-card,
html body main.app-shell .memory-editor .memory-pin-preview-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  width: min(100%, 360px) !important;
  margin: 2px auto 12px !important;
  padding: 12px 14px !important;
  border: 1px solid color-mix(in srgb, var(--preview-color, #18a978) 18%, transparent) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--preview-color, #18a978) 16%, transparent), transparent 46%),
    rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    0 16px 32px rgba(8, 58, 66, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  text-align: left !important;
}

html body .app-shell .memory-editor .memory-pin-preview-art,
html body main.app-shell .memory-editor .memory-pin-preview-art {
  display: grid !important;
  place-items: center !important;
  width: 39px !important;
  height: 50px !important;
  filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--marker-color, #18a978) 22%, transparent)) !important;
}

html body .app-shell .memory-editor .memory-pin-preview-art .memory-pin-svg,
html body main.app-shell .memory-editor .memory-pin-preview-art .memory-pin-svg {
  width: 39px !important;
  height: 50px !important;
}

html body .app-shell .memory-editor .memory-pin-preview-copy,
html body main.app-shell .memory-editor .memory-pin-preview-copy {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

html body .app-shell .memory-editor .memory-pin-preview-copy strong,
html body main.app-shell .memory-editor .memory-pin-preview-copy strong {
  color: #0b3440 !important;
  font-size: 0.9rem !important;
  font-weight: 940 !important;
  line-height: 1.12 !important;
}

html body .app-shell .memory-editor .memory-pin-preview-copy small,
html body main.app-shell .memory-editor .memory-pin-preview-copy small {
  color: rgba(11, 52, 64, 0.58) !important;
  font-size: 0.74rem !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

html body .app-shell .memory-editor .memory-meta-fields,
html body main.app-shell .memory-editor .memory-meta-fields {
  width: min(100%, 360px) !important;
  margin: 0 auto !important;
  opacity: 0.78 !important;
}

@media (max-width: 520px) {
  html body .app-shell .memory-editor .memory-editor-progress,
  html body main.app-shell .memory-editor .memory-editor-progress {
    gap: 5px !important;
    padding-inline: 10px !important;
  }

  html body .app-shell .memory-editor .memory-people-chips > div,
  html body main.app-shell .memory-editor .memory-people-chips > div {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* App v519: make the feeling header centered and the preview pin use the real selected color. */
html body .app-shell .memory-editor .memory-flow-feeling .category-swatch-row,
html body main.app-shell .memory-editor .memory-flow-feeling .category-swatch-row {
  justify-items: center !important;
  text-align: center !important;
}

html body .app-shell .memory-editor .memory-flow-feeling .memory-flow-step,
html body main.app-shell .memory-editor .memory-flow-feeling .memory-flow-step {
  margin-inline: auto !important;
}

html body .app-shell .memory-editor .memory-flow-feeling .editor-subheading,
html body main.app-shell .memory-editor .memory-flow-feeling .editor-subheading {
  width: min(100%, 390px) !important;
  margin-inline: auto !important;
  justify-items: center !important;
  text-align: center !important;
}

html body .app-shell .memory-editor .memory-flow-feeling .category-swatch-rail,
html body main.app-shell .memory-editor .memory-flow-feeling .category-swatch-rail {
  width: 100% !important;
}

html body .app-shell .memory-editor .memory-pin-preview-art .memory-pin-rim,
html body main.app-shell .memory-editor .memory-pin-preview-art .memory-pin-rim {
  fill: none !important;
  stroke: rgba(255, 255, 255, 0.68) !important;
  stroke-width: 1.15px !important;
}

html body .app-shell .memory-editor .memory-pin-preview-art .memory-pin-body,
html body main.app-shell .memory-editor .memory-pin-preview-art .memory-pin-body {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 93%, #ffffff 7%) !important;
  stroke: color-mix(in srgb, var(--marker-color, #18a978) 62%, #052d3b 38%) !important;
  stroke-width: 1.05px !important;
}

html body .app-shell .memory-editor .memory-pin-preview-art .memory-pin-inner,
html body main.app-shell .memory-editor .memory-pin-preview-art .memory-pin-inner {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 74%, #ffffff 26%) !important;
  opacity: 0.9 !important;
}

html body .app-shell .memory-editor .memory-pin-preview-art .memory-pin-shine,
html body main.app-shell .memory-editor .memory-pin-preview-art .memory-pin-shine {
  fill: rgba(255, 255, 255, 0.38) !important;
}

html body .app-shell .memory-editor .memory-pin-preview-art .memory-pin-center,
html body main.app-shell .memory-editor .memory-pin-preview-art .memory-pin-center {
  fill: rgba(255, 255, 255, 0.95) !important;
  stroke: color-mix(in srgb, var(--marker-color, #18a978) 72%, #06313d 28%) !important;
  stroke-width: 0.9px !important;
}

html body .app-shell .memory-editor .memory-pin-preview-art .memory-pin-core,
html body main.app-shell .memory-editor .memory-pin-preview-art .memory-pin-core {
  fill: color-mix(in srgb, var(--marker-color, #18a978) 74%, #06313d 26%) !important;
}

html body .app-shell .memory-editor .memory-pin-preview-art .memory-pin-symbol,
html body main.app-shell .memory-editor .memory-pin-preview-art .memory-pin-symbol {
  fill: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 950 !important;
}

/* App v520: launch-readiness account links. */
html body .app-shell .account-menu a.account-menu-item,
html body main.app-shell .account-menu a.account-menu-item {
  box-sizing: border-box !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
/* Home v521: premium empty previews for fresh accounts. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty {
  min-height: 198px !important;
  border-color: rgba(20, 109, 124, 0.18) !important;
  background:
    radial-gradient(circle at 16% 12%, rgba(38, 170, 142, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(236, 250, 244, 0.94) 58%, rgba(229, 244, 248, 0.92)) !important;
  box-shadow: 0 18px 42px rgba(18, 72, 82, 0.12) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb {
  width: 76px !important;
  height: 76px !important;
  border-radius: 24px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background:
    linear-gradient(145deg, rgba(9, 63, 82, 0.92), rgba(25, 151, 123, 0.9)) !important;
  box-shadow: 0 14px 28px rgba(8, 63, 78, 0.18) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb img,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb img {
  width: 92% !important;
  height: 92% !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 8px 10px rgba(5, 38, 50, 0.2)) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-reason,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-reason {
  color: #0b5d64 !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-relive,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-relive {
  width: fit-content !important;
  align-self: flex-start !important;
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(135deg, #073f52, #18a978) !important;
  box-shadow: 0 12px 24px rgba(14, 122, 114, 0.22) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty.premium-empty-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty.premium-empty-preview {
  display: grid !important;
  grid-template-columns: minmax(116px, 0.38fr) minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 18px !important;
  min-height: 168px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(18, 97, 111, 0.16) !important;
  background:
    radial-gradient(circle at 13% 18%, rgba(42, 169, 126, 0.15), transparent 36%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.97), rgba(242, 252, 247, 0.94) 64%, rgba(232, 246, 249, 0.9)) !important;
  box-shadow: 0 18px 38px rgba(18, 72, 82, 0.1) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-cover {
  position: relative !important;
  width: 118px !important;
  height: 124px !important;
  display: grid !important;
  place-items: center !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-cover .chapter-page,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-cover .chapter-page {
  position: absolute !important;
  width: 86px !important;
  height: 102px !important;
  border-radius: 20px !important;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(224, 245, 240, 0.82)) !important;
  border: 1px solid rgba(9, 82, 92, 0.12) !important;
  box-shadow: 0 10px 20px rgba(18, 72, 82, 0.1) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-cover .page-one,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-cover .page-one {
  transform: rotate(-8deg) translateX(-10px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-cover .page-two,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-cover .page-two {
  transform: rotate(7deg) translateX(10px) !important;
  background: linear-gradient(150deg, rgba(238, 252, 246, 0.92), rgba(210, 238, 247, 0.84)) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-cover img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-cover img {
  position: relative !important;
  z-index: 2 !important;
  width: 74px !important;
  height: 74px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 10px rgba(8, 54, 67, 0.18)) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-copy,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-copy {
  display: grid !important;
  gap: 6px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-copy span,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-copy span {
  width: fit-content !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  color: #0b5d64 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-copy strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-copy strong {
  color: #073f52 !important;
  font-size: clamp(1.16rem, 2vw, 1.58rem) !important;
  line-height: 1.05 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-copy small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-copy small {
  max-width: 58ch !important;
  color: rgba(7, 54, 66, 0.68) !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-action,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-action {
  justify-self: end !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 12px 16px !important;
  color: #fff !important;
  font-weight: 850 !important;
  background: linear-gradient(135deg, #073f52, #18a978) !important;
  box-shadow: 0 14px 28px rgba(14, 122, 114, 0.2) !important;
  cursor: pointer !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty.premium-empty-preview,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty.premium-empty-preview {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  text-align: left !important;
  padding: 16px !important;
  min-height: 132px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(18, 97, 111, 0.14) !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.95), rgba(241, 252, 247, 0.88)),
    rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 14px 28px rgba(18, 72, 82, 0.08) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-stack,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-stack {
  position: relative !important;
  flex: 0 0 82px !important;
  height: 74px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-stack span,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-stack span {
  position: absolute !important;
  width: 58px !important;
  height: 64px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(12, 91, 104, 0.12) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(218, 244, 239, 0.82)) !important;
  box-shadow: 0 8px 16px rgba(18, 72, 82, 0.1) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-stack span:nth-child(1),
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-stack span:nth-child(1) {
  left: 0 !important;
  top: 8px !important;
  transform: rotate(-7deg) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-stack span:nth-child(2),
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-stack span:nth-child(2) {
  left: 16px !important;
  top: 2px !important;
  transform: rotate(4deg) !important;
  background: linear-gradient(145deg, rgba(236, 251, 245, 0.94), rgba(219, 239, 247, 0.82)) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-stack span:nth-child(3),
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-stack span:nth-child(3) {
  left: 31px !important;
  top: 12px !important;
  transform: rotate(9deg) !important;
  background: linear-gradient(145deg, rgba(225, 247, 242, 0.94), rgba(255, 251, 241, 0.86)) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-copy,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-copy {
  display: grid !important;
  gap: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-copy small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-copy small {
  color: #0b5d64 !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-copy strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-copy strong {
  color: #073f52 !important;
  font-size: clamp(1rem, 1.5vw, 1.22rem) !important;
  line-height: 1.1 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-copy em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-copy em {
  color: rgba(7, 54, 66, 0.62) !important;
  font-style: normal !important;
  font-size: 0.88rem !important;
  line-height: 1.36 !important;
}

/* Account menu v522: anchor the Account popup to the bottom-right nav item. */
html body .app-shell .account-menu,
html body main.app-shell .account-menu,
html body .app-shell .map-stage.map-focus .account-menu,
html body main.app-shell section.map-stage.map-focus .account-menu {
  position: fixed !important;
  top: auto !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: calc(var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom) + 18px) !important;
  left: auto !important;
  width: min(360px, calc(100vw - 32px)) !important;
  max-width: min(360px, calc(100vw - 32px)) !important;
  max-height: min(68dvh, 560px) !important;
  overflow-y: auto !important;
  transform-origin: right bottom !important;
  z-index: 780 !important;
}

html body .app-shell .account-menu.open,
html body main.app-shell .account-menu.open,
html body .app-shell .map-stage.map-focus .account-menu.open,
html body main.app-shell section.map-stage.map-focus .account-menu.open {
  top: auto !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: calc(var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom) + 18px) !important;
  left: auto !important;
}

/* Capture flow v524: quiet premium step guide. */
html body .app-shell .memory-editor .memory-editor-progress,
html body main.app-shell .memory-editor .memory-editor-progress {
  grid-template-columns: auto minmax(10px, 1fr) auto minmax(10px, 1fr) auto minmax(10px, 1fr) auto minmax(10px, 1fr) auto !important;
  width: min(100%, 430px) !important;
  margin: -4px auto 16px !important;
  padding: 7px 10px !important;
  gap: 6px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(16, 89, 100, 0.08) !important;
  background: rgba(255, 255, 255, 0.46) !important;
  box-shadow:
    0 10px 22px rgba(12, 64, 72, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
}

html body .app-shell .memory-editor .memory-editor-progress span,
html body main.app-shell .memory-editor .memory-editor-progress span {
  padding: 5px 7px !important;
  border-radius: 999px !important;
  color: rgba(7, 54, 66, 0.52) !important;
  font-size: clamp(0.58rem, 1.35vw, 0.68rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  background: transparent !important;
}

html body .app-shell .memory-editor .memory-editor-progress span.active,
html body main.app-shell .memory-editor .memory-editor-progress span.active {
  color: #073f52 !important;
  background: linear-gradient(135deg, rgba(232, 250, 244, 0.9), rgba(255, 253, 248, 0.86)) !important;
  box-shadow: 0 5px 12px rgba(18, 97, 111, 0.08) !important;
}

html body .app-shell .memory-editor .memory-editor-progress i,
html body main.app-shell .memory-editor .memory-editor-progress i {
  height: 1px !important;
  min-width: 8px !important;
  opacity: 0.62 !important;
  background: linear-gradient(90deg, rgba(35, 183, 151, 0.08), rgba(31, 78, 121, 0.22)) !important;
}

/* Home preview art v523: one intentional MyMappi fallback image for empty memory sections. */
html body .app-shell .memory-preview-art,
html body main.app-shell .memory-preview-art,
html body .app-shell .life-chapter-empty-cover,
html body main.app-shell .life-chapter-empty-cover,
html body .app-shell .recent-empty-preview-art,
html body main.app-shell .recent-empty-preview-art {
  overflow: hidden !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(232, 250, 244, 0.62)),
    rgba(255, 255, 255, 0.48) !important;
  border: 1px solid rgba(18, 97, 111, 0.13) !important;
  box-shadow:
    0 16px 34px rgba(18, 72, 82, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
}

html body .app-shell .memory-preview-art img,
html body main.app-shell .memory-preview-art img,
html body .app-shell .universal-memory-preview,
html body main.app-shell .universal-memory-preview,
html body .app-shell .recent-empty-preview-art img,
html body main.app-shell .recent-empty-preview-art img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb {
  width: clamp(116px, 18vw, 168px) !important;
  height: clamp(104px, 16vw, 148px) !important;
  border-radius: 28px !important;
  padding: 0 !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb::before,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb::before {
  display: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-cover,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-cover {
  width: clamp(132px, 20vw, 178px) !important;
  height: clamp(112px, 17vw, 150px) !important;
  border-radius: 28px !important;
  place-items: stretch !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-cover .universal-memory-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-cover .universal-memory-preview {
  position: static !important;
  z-index: 1 !important;
  filter: none !important;
  border-radius: inherit !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-preview-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-preview-art {
  flex: 0 0 clamp(112px, 18vw, 150px) !important;
  width: clamp(112px, 18vw, 150px) !important;
  height: clamp(88px, 14vw, 118px) !important;
  border-radius: 24px !important;
  position: relative !important;
}

/* Home preview art v525: make fallback previews visible even when memories exist without photos. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-fallback-art,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-fallback-art {
  width: clamp(116px, 18vw, 168px) !important;
  height: clamp(104px, 16vw, 148px) !important;
  border-radius: 28px !important;
  padding: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-fallback-art img,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-fallback-art img,
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb img,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover .life-chapter-cover-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover .life-chapter-cover-preview,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art .recent-memory-preview-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art .recent-memory-preview-art,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art .recent-memory-preview-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art .recent-memory-preview-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview.has-preview-art,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview.has-preview-art {
  padding: 0 !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview.has-preview-art img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview.has-preview-art img,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-cover .universal-memory-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-cover .universal-memory-preview {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
}

/* Home preview art v526: make universal art atmospheric, not competing with text. */
html body .app-shell .map-stage.home-focus .has-fallback-art,
html body main.app-shell section.map-stage.home-focus .has-fallback-art,
html body .app-shell .map-stage.home-focus .memory-echo-fallback-art,
html body main.app-shell section.map-stage.home-focus .memory-echo-fallback-art,
html body .app-shell .map-stage.home-focus .memory-echo-empty-orb.memory-preview-art,
html body main.app-shell section.map-stage.home-focus .memory-echo-empty-orb.memory-preview-art {
  background:
    radial-gradient(circle at 18% 10%, rgba(35, 183, 151, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(241, 253, 249, 0.94), rgba(226, 243, 247, 0.9)) !important;
}

html body .app-shell .map-stage.home-focus .life-chapter-cover.has-fallback-art > img,
html body main.app-shell section.map-stage.home-focus .life-chapter-cover.has-fallback-art > img,
html body .app-shell .map-stage.home-focus .memory-echo-fallback-art > img,
html body main.app-shell section.map-stage.home-focus .memory-echo-fallback-art > img,
html body .app-shell .map-stage.home-focus .memory-echo-empty-orb.memory-preview-art > img,
html body main.app-shell section.map-stage.home-focus .memory-echo-empty-orb.memory-preview-art > img {
  opacity: 0.54 !important;
  filter: saturate(0.82) contrast(0.94) brightness(1.08) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover.has-fallback-art::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover.has-fallback-art::after {
  background:
    linear-gradient(180deg, rgba(4, 39, 50, 0.04) 0%, rgba(4, 39, 50, 0.22) 44%, rgba(2, 29, 40, 0.86) 100%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.26), transparent 42%) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover.has-fallback-art .life-chapter-cover-caption,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover.has-fallback-art .life-chapter-cover-caption {
  right: 10px !important;
  bottom: 10px !important;
  left: 10px !important;
  padding: 10px 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 18px !important;
  background: rgba(2, 31, 42, 0.58) !important;
  backdrop-filter: blur(14px) saturate(1.06) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.06) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover.has-fallback-art .life-chapter-cover-caption strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover.has-fallback-art .life-chapter-cover-caption strong,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover.has-fallback-art .life-chapter-cover-caption small,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover.has-fallback-art .life-chapter-cover-caption small {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art.has-fallback-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art.has-fallback-art img,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art.has-fallback-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art.has-fallback-art img,
html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview.has-preview-art img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview.has-preview-art img {
  opacity: 0.48 !important;
  filter: saturate(0.78) contrast(0.92) brightness(1.1) !important;
  transform: scale(1.06) !important;
}

/* Memory Echo v527: keep thumbnail art from overlapping the memory title. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-body {
  grid-template-columns: clamp(88px, 10vw, 118px) minmax(0, 1fr) !important;
  gap: clamp(18px, 3vw, 28px) !important;
  overflow: visible !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
  position: relative !important;
  z-index: 1 !important;
  width: clamp(88px, 10vw, 118px) !important;
  height: clamp(88px, 10vw, 118px) !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy-main {
  position: relative !important;
  z-index: 4 !important;
  min-width: 0 !important;
  padding-left: 2px !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-copy-main strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-copy-main strong {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-wrap: balance !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-body,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-body {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
    width: 74px !important;
    height: 74px !important;
    border-radius: 20px !important;
  }
}

/* Recent Memories v528: frame fallback art cleanly and replace the lane CTA with Mappi. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-preview-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-preview-art {
  display: block !important;
  flex: 0 0 clamp(118px, 18vw, 152px) !important;
  width: clamp(118px, 18vw, 152px) !important;
  height: clamp(94px, 14vw, 122px) !important;
  min-width: clamp(118px, 18vw, 152px) !important;
  padding: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 24px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-preview-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-preview-art img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0.78 !important;
  filter: saturate(0.86) contrast(0.96) brightness(1.06) !important;
  transform: scale(1.02) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art.has-fallback-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art.has-fallback-art,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art.has-fallback-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art.has-fallback-art {
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art.has-fallback-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art.has-fallback-art img,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art.has-fallback-art img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art.has-fallback-art img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0.58 !important;
  transform: scale(1.04) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note {
  display: grid !important;
  grid-template-columns: clamp(118px, 18vw, 152px) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  text-align: left !important;
  padding: 15px 16px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(18, 97, 111, 0.14) !important;
  background:
    radial-gradient(circle at 14% 10%, rgba(35, 183, 151, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(237, 250, 246, 0.9)) !important;
  box-shadow:
    0 16px 30px rgba(18, 72, 82, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note img {
  width: clamp(118px, 18vw, 152px) !important;
  height: clamp(94px, 14vw, 122px) !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 8px !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(219, 246, 240, 0.72), rgba(224, 239, 247, 0.62)) !important;
  box-shadow:
    0 10px 20px rgba(18, 72, 82, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note span,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note span {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note strong {
  color: #073f52 !important;
  font-size: clamp(0.98rem, 1.4vw, 1.14rem) !important;
  line-height: 1.1 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note small {
  color: rgba(7, 54, 66, 0.62) !important;
  font-size: 0.84rem !important;
  line-height: 1.32 !important;
}

@media (max-width: 680px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memories-empty.premium-empty-preview,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memories-empty.premium-empty-preview {
    display: grid !important;
    justify-items: center !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 12px !important;
    padding: 14px !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note img,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-add-note.recent-memory-mappi-note img {
    width: min(100%, 240px) !important;
    height: 132px !important;
  }
}

/* New account v530: make the first-run previews feel intentional and story-led. */
html body .app-shell .map-stage.home-focus .home-mappi-moment.is-first-memory-visible,
html body main.app-shell section.map-stage.home-focus .home-mappi-moment.is-first-memory-visible {
  width: fit-content !important;
  max-width: min(520px, calc(100vw - 48px)) !important;
  margin: 12px auto 0 !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  color: rgba(7, 54, 66, 0.72) !important;
  background: rgba(255, 253, 248, 0.74) !important;
  border: 1px solid rgba(18, 97, 111, 0.12) !important;
  box-shadow: 0 12px 26px rgba(18, 72, 82, 0.07) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-reason,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-reason {
  color: #073f52 !important;
  background: rgba(255, 253, 248, 0.82) !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-copy-main strong,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-copy-main strong {
  max-width: 26ch !important;
  color: #073f52 !important;
  text-wrap: balance !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty.premium-empty-preview,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty.premium-empty-preview {
  grid-template-columns: minmax(260px, 0.94fr) minmax(240px, 1fr) auto !important;
  gap: clamp(16px, 2.8vw, 28px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-starter-grid,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-starter-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  min-width: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-starter-card,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-starter-card {
  position: relative !important;
  display: grid !important;
  align-content: end !important;
  min-height: 138px !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  border: 1px solid rgba(18, 97, 111, 0.13) !important;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.88), rgba(232, 250, 244, 0.78)) !important;
  box-shadow:
    0 14px 26px rgba(18, 72, 82, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-starter-card::after,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-starter-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(180deg, rgba(4, 39, 50, 0.02) 0%, rgba(4, 39, 50, 0.18) 44%, rgba(2, 29, 40, 0.72) 100%),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.3), transparent 42%) !important;
  z-index: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-starter-card img,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-starter-card img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0.56 !important;
  transform: scale(1.04) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-starter-card strong,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-starter-card strong {
  position: relative !important;
  z-index: 2 !important;
  padding: 12px !important;
  color: #fffdf8 !important;
  font-size: clamp(0.82rem, 1.2vw, 0.98rem) !important;
  line-height: 1.06 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-starter-card.starter-2,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-starter-card.starter-2 {
  transform: translateY(-5px) !important;
}

html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-starter-card.starter-3,
html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-starter-card.starter-3 {
  transform: translateY(5px) !important;
}

@media (max-width: 920px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty.premium-empty-preview,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty.premium-empty-preview {
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-action,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-action {
    justify-self: start !important;
  }
}

@media (max-width: 680px) {
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-starter-grid,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-starter-grid {
    grid-template-columns: 1fr !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-starter-card,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-starter-card {
    min-height: 116px !important;
    transform: none !important;
  }
}

/* New account v531: first-memory journey strip and subtle + invitation. */
html body .app-shell .map-stage.home-focus .first-memory-journey,
html body main.app-shell section.map-stage.home-focus .first-memory-journey {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: fit-content !important;
  max-width: min(760px, calc(100vw - 40px)) !important;
  margin: 14px auto 0 !important;
  padding: 9px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(18, 97, 111, 0.12) !important;
  color: rgba(7, 54, 66, 0.74) !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(35, 183, 151, 0.16), transparent 36%),
    rgba(255, 253, 248, 0.76) !important;
  box-shadow: 0 14px 30px rgba(18, 72, 82, 0.075) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
}

html body .app-shell .map-stage.home-focus .first-memory-journey[hidden],
html body main.app-shell section.map-stage.home-focus .first-memory-journey[hidden] {
  display: none !important;
}

html body .app-shell .map-stage.home-focus .first-memory-journey span,
html body main.app-shell section.map-stage.home-focus .first-memory-journey span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  font-size: clamp(0.74rem, 1.4vw, 0.9rem) !important;
  font-weight: 780 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus .first-memory-journey strong,
html body main.app-shell section.map-stage.home-focus .first-memory-journey strong {
  display: inline-grid !important;
  width: 24px !important;
  height: 24px !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  background: linear-gradient(135deg, #073f52, #18a978) !important;
  box-shadow: 0 8px 16px rgba(14, 122, 114, 0.16) !important;
}

html body .app-shell .map-stage.home-focus .first-memory-journey i,
html body main.app-shell section.map-stage.home-focus .first-memory-journey i {
  width: 28px !important;
  height: 1px !important;
  flex: 0 0 28px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(24, 169, 120, 0.08), rgba(7, 63, 82, 0.28), rgba(24, 169, 120, 0.08)) !important;
}

html body .app-shell .add-memory-button.first-memory-pulse,
html body main.app-shell .add-memory-button.first-memory-pulse {
  animation: mymappiFirstMemoryPulse 4.2s ease-in-out infinite !important;
}

@keyframes mymappiFirstMemoryPulse {
  0%, 72%, 100% {
    box-shadow:
      0 16px 34px rgba(17, 143, 155, 0.28),
      0 0 0 8px rgba(31, 169, 121, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
    transform: translateY(-8px) scale(1);
  }
  82% {
    box-shadow:
      0 18px 38px rgba(17, 143, 155, 0.32),
      0 0 0 13px rgba(31, 169, 121, 0.11),
      0 0 0 22px rgba(31, 169, 121, 0.035),
      inset 0 1px 0 rgba(255, 255, 255, 0.36);
    transform: translateY(-8px) scale(1.035);
  }
}

@media (max-width: 680px) {
  html body .app-shell .map-stage.home-focus .first-memory-journey,
  html body main.app-shell section.map-stage.home-focus .first-memory-journey {
    max-width: calc(100vw - 28px) !important;
    gap: 8px !important;
    border-radius: 24px !important;
    padding: 10px !important;
  }

  html body .app-shell .map-stage.home-focus .first-memory-journey i,
  html body main.app-shell section.map-stage.home-focus .first-memory-journey i {
    width: 12px !important;
    flex-basis: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .add-memory-button.first-memory-pulse,
  html body main.app-shell .add-memory-button.first-memory-pulse {
    animation: none !important;
  }
}

/* Explore v532: show more of Mappi in nearby-memory popups. */
html body .app-shell .map-stage.map-focus .memory-peek-card .peek-pin.nearby-mappi-badge,
html body main.app-shell section.map-stage.map-focus .memory-peek-card .peek-pin.nearby-mappi-badge,
html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge,
html body main.app-shell section.map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  flex: 0 0 60px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: 4px !important;
  border-radius: 22px !important;
}

html body .app-shell .map-stage.map-focus .memory-peek-card .peek-pin.nearby-mappi-badge img,
html body main.app-shell section.map-stage.map-focus .memory-peek-card .peek-pin.nearby-mappi-badge img,
html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge img,
html body main.app-shell section.map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: drop-shadow(0 5px 8px rgba(0, 20, 30, 0.18)) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.map-focus .memory-peek-card .peek-pin.nearby-mappi-badge,
  html body main.app-shell section.map-stage.map-focus .memory-peek-card .peek-pin.nearby-mappi-badge,
  html body .app-shell .map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge,
  html body main.app-shell section.map-stage.map-focus .memory-peek-card.living-nearby .nearby-count-pin.nearby-mappi-badge {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    flex-basis: 54px !important;
    border-radius: 20px !important;
  }
}

/* Recent Memories v533: make the one-memory shelf note calmer than a CTA. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-note,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-note {
  cursor: default !important;
  text-align: center !important;
  border-style: dashed !important;
  border-color: rgba(18, 97, 111, 0.14) !important;
  color: rgba(7, 54, 66, 0.72) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(35, 183, 151, 0.1), transparent 44%),
    rgba(255, 253, 248, 0.56) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-note strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-note strong {
  color: #073f52 !important;
  font-size: 0.96rem !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-note small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-note small {
  color: rgba(7, 54, 66, 0.58) !important;
}

@media (max-width: 680px) {
  html body .app-shell .memory-editor .memory-editor-progress,
  html body main.app-shell .memory-editor .memory-editor-progress {
    width: 100% !important;
    max-width: 340px !important;
    padding: 6px 7px !important;
    gap: 3px !important;
  }

  html body .app-shell .memory-editor .memory-editor-progress span,
  html body main.app-shell .memory-editor .memory-editor-progress span {
    padding: 5px 4px !important;
    font-size: 0.56rem !important;
  }

  html body .app-shell .account-menu,
  html body main.app-shell .account-menu,
  html body .app-shell .account-menu.open,
  html body main.app-shell .account-menu.open {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(var(--bottom-nav-height, 84px) + env(safe-area-inset-bottom) + 12px) !important;
    left: auto !important;
    width: min(342px, calc(100vw - 24px)) !important;
    max-width: min(342px, calc(100vw - 24px)) !important;
    max-height: min(66dvh, 520px) !important;
    border-radius: 24px !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-feature-card.is-empty .memory-echo-empty-orb,
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-cover,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-cover,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-empty-preview-art,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-empty-preview-art {
    width: min(100%, 240px) !important;
    height: 132px !important;
    flex-basis: auto !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty.premium-empty-preview,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty.premium-empty-preview {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-copy,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-copy {
    justify-items: center !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-empty-action,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-empty-action {
    justify-self: center !important;
    width: min(100%, 240px) !important;
  }
}

/* Mobile v534: keep Memory Lane media reliable and visible on phones. */
@media (max-width: 720px) {
  html body main.app-shell section.map-stage.memories-focus .memory-journal-list,
  html body .app-shell .map-stage.memories-focus .memory-journal-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
  }

  html body main.app-shell section.map-stage.memories-focus article.memory-card.rich.memory-lane-card,
  html body .app-shell .map-stage.memories-focus article.memory-card.rich.memory-lane-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-flashcard-main,
  html body .app-shell .map-stage.memories-focus .memory-lane-flashcard-main {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 12px !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-cover,
  html body .app-shell .map-stage.memories-focus .memory-lane-cover {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    overflow: hidden !important;
    border-radius: 22px !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-cover-image,
  html body main.app-shell section.map-stage.memories-focus .memory-lane-photo-tile img,
  html body .app-shell .map-stage.memories-focus .memory-lane-cover-image,
  html body .app-shell .map-stage.memories-focus .memory-lane-photo-tile img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-flashcard-copy,
  html body .app-shell .map-stage.memories-focus .memory-lane-flashcard-copy {
    min-width: 0 !important;
    align-self: center !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-action-dock,
  html body .app-shell .map-stage.memories-focus .memory-lane-action-dock {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  html body main.app-shell section.map-stage.memories-focus .memory-lane-photo-grid,
  html body .app-shell .map-stage.memories-focus .memory-lane-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Mobile v535: make Home preview photos load and stay visible on phone shelves. */
@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb,
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover,
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art {
    overflow: hidden !important;
    background:
      radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.82), transparent 38%),
      linear-gradient(135deg, rgba(231, 255, 247, 0.96), rgba(222, 242, 255, 0.94)) !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb img,
  html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb img,
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-cover img,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-cover img,
  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview img,
  html body main.app-shell section.map-stage.home-focus #homeJourney .life-chapter-preview img,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art img,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art img,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art img,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb {
    min-width: 92px !important;
    min-height: 92px !important;
  }

  html body .app-shell .map-stage.home-focus #homeJourney .life-chapter-preview {
    width: 46px !important;
    height: 46px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art {
    min-width: 58px !important;
    min-height: 58px !important;
  }
}

html body .app-shell img.is-mymappi-image-fallback,
html body main.app-shell img.is-mymappi-image-fallback {
  padding: 0 !important;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.64), transparent 42%),
    linear-gradient(135deg, rgba(232, 255, 247, 0.95), rgba(218, 242, 255, 0.92)) !important;
  filter: saturate(1.03) contrast(1.01) !important;
}

html body .app-shell button.has-fallback-art [class$="__view"],
html body main.app-shell button.has-fallback-art [class$="__view"] {
  display: none !important;
}

/* v538: Home preview photo lock. Echo should always show the real memory photo
   first, with fallback art only after an image load failure. */
html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb.has-photo,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb.has-photo {
  background: rgba(4, 42, 52, 0.08) !important;
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb.has-photo > img,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb.has-photo > img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeOnThisDay .memory-echo-thumb.has-photo > img.is-mymappi-image-fallback,
html body main.app-shell section.map-stage.home-focus #homeOnThisDay .memory-echo-thumb.has-photo > img.is-mymappi-image-fallback {
  opacity: 0.72 !important;
  filter: saturate(0.9) contrast(0.96) brightness(1.06) !important;
}

/* v540: Restore Recent Memories as a compact shelf, not a full-bleed photo. */
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
  display: grid !important;
  grid-template-columns: clamp(108px, 17vw, 148px) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: clamp(14px, 2.4vw, 22px) !important;
  min-height: 0 !important;
  width: 100% !important;
  padding: clamp(12px, 2vw, 16px) !important;
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
  position: relative !important;
  display: block !important;
  width: clamp(108px, 17vw, 148px) !important;
  height: clamp(92px, 14vw, 126px) !important;
  min-width: clamp(108px, 17vw, 148px) !important;
  min-height: clamp(92px, 14vw, 126px) !important;
  max-width: clamp(108px, 17vw, 148px) !important;
  max-height: clamp(92px, 14vw, 126px) !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art > img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art > img,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art > img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art > img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-body,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-body {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  min-width: 0 !important;
  gap: 5px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-card {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-mini-art {
  position: relative !important;
  display: block !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  overflow: hidden !important;
  border-radius: 17px !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-feature,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-feature {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-art,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-art {
    width: 92px !important;
    height: 82px !important;
    min-width: 92px !important;
    min-height: 82px !important;
    max-width: 92px !important;
    max-height: 82px !important;
    border-radius: 18px !important;
  }
}

/* Mobile v549: this block intentionally stays last so the phone layout cannot
   be displaced by older responsive experiments or a phone requesting a wider viewport. */
@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body .app-shell .topbar,
  html body main.app-shell .topbar {
    position: fixed !important;
    inset: 0 0 auto !important;
    z-index: 1300 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    width: 100% !important;
    padding: calc(env(safe-area-inset-top) + 9px) 10px 7px !important;
  }

  html body .app-shell .map-stage.home-focus,
  html body main.app-shell section.map-stage.home-focus {
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: calc(env(safe-area-inset-top) + 76px) 0 calc(78px + env(safe-area-inset-bottom) + 34px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy,
  html body main.app-shell section.map-stage.home-focus .hero-copy,
  html body .app-shell .map-stage.home-focus .home-dashboard,
  html body main.app-shell section.map-stage.home-focus .home-dashboard {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  html body .app-shell .map-stage.home-focus .hero-copy {
    margin-top: 0 !important;
    margin-bottom: 22px !important;
    gap: 10px !important;
  }

  html body .app-shell .map-stage.home-focus .first-memory-journey,
  html body main.app-shell section.map-stage.home-focus .first-memory-journey {
    display: none !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard,
  html body main.app-shell section.map-stage.home-focus .home-dashboard {
    display: grid !important;
    gap: 26px !important;
    padding: 0 0 20px !important;
  }

  html body .app-shell .map-stage.home-focus .home-dashboard > .home-section,
  html body main.app-shell section.map-stage.home-focus .home-dashboard > .home-section {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-section,
  html body main.app-shell section.map-stage.home-focus .home-action-section {
    padding: 0 !important;
  }

  html body .app-shell .map-stage.home-focus .home-quick-actions,
  html body main.app-shell section.map-stage.home-focus .home-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card,
  html body main.app-shell section.map-stage.home-focus .home-action-card {
    display: grid !important;
    grid-template-rows: 28px auto !important;
    place-items: center !important;
    min-width: 0 !important;
    min-height: 84px !important;
    padding: 10px 5px !important;
    gap: 6px !important;
    border-radius: 21px !important;
    text-align: center !important;
  }

  html body .app-shell .map-stage.home-focus .home-action-card strong,
  html body main.app-shell section.map-stage.home-focus .home-action-card strong {
    font-size: clamp(0.67rem, 3vw, 0.8rem) !important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }

  html body .app-shell .map-stage.map-focus,
  html body main.app-shell section.map-stage.map-focus,
  html body .app-shell .map-stage.map-focus #map,
  html body main.app-shell section.map-stage.map-focus #map {
    height: 100dvh !important;
    min-height: 100dvh !important;
  }

  html body .app-shell .map-stage.map-focus #map,
  html body main.app-shell section.map-stage.map-focus #map {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget,
  html body main.app-shell section.map-stage.map-focus .map-navigation-gadget {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: calc(78px + env(safe-area-inset-bottom) + 20px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, 42px) !important;
    grid-template-rows: repeat(2, 42px) !important;
    width: 92px !important;
    height: 92px !important;
    gap: 1px !important;
    padding: 3px !important;
    overflow: hidden !important;
    border: 1px solid rgba(213, 248, 240, 0.34) !important;
    border-radius: 22px !important;
    background: rgba(5, 46, 59, 0.9) !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget > *,
  html body main.app-shell section.map-stage.map-focus .map-navigation-gadget > * {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.075) !important;
    box-shadow: none !important;
  }

  html body .app-shell .map-stage.map-focus .map-navigation-gadget #locateButton { grid-area: 1 / 1 !important; }
  html body .app-shell .map-stage.map-focus .map-navigation-gadget #mapZoomInButton { grid-area: 1 / 2 !important; }
  html body .app-shell .map-stage.map-focus .map-navigation-gadget .map-compass { grid-area: 2 / 1 !important; }
  html body .app-shell .map-stage.map-focus .map-navigation-gadget #mapZoomOutButton { grid-area: 2 / 2 !important; }

  html body .app-shell .map-stage.map-focus .map-empty-state,
  html body main.app-shell section.map-stage.map-focus .map-empty-state {
    right: 118px !important;
    bottom: calc(78px + env(safe-area-inset-bottom) + 20px) !important;
    left: 14px !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    width: auto !important;
    min-height: 92px !important;
    padding: 12px !important;
    gap: 2px 10px !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    text-align: left !important;
    transform: none !important;
  }

  html body .app-shell .map-stage.map-focus .map-empty-state[hidden],
  html body main.app-shell section.map-stage.map-focus .map-empty-state[hidden] {
    display: none !important;
  }

  html body .app-shell .map-stage.map-focus .map-empty-state img {
    grid-row: 1 / span 2 !important;
    width: 48px !important;
    height: 64px !important;
    object-fit: contain !important;
  }

  html body .app-shell .map-stage.map-focus .map-empty-state strong { font-size: 0.84rem !important; }
  html body .app-shell .map-stage.map-focus .map-empty-state span { font-size: 0.67rem !important; line-height: 1.25 !important; }

  html body .app-shell .map-stage.map-focus .you-are-here-message {
    top: calc(env(safe-area-inset-top) + 76px) !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  html body .app-shell .map-stage.memories-focus,
  html body main.app-shell section.map-stage.memories-focus {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  html body .app-shell .map-stage.memories-focus .memory-database-page.side-panel,
  html body main.app-shell section.map-stage.memories-focus .memory-database-page.side-panel,
  html body main.app-shell section.map-stage.memories-focus section.memory-database-page.side-panel {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: calc(env(safe-area-inset-top) + 78px) 12px calc(78px + env(safe-area-inset-bottom) + 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body .app-shell .account-menu,
  html body main.app-shell .account-menu,
  html body .app-shell .account-menu.open,
  html body main.app-shell .account-menu.open {
    top: auto !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(78px + env(safe-area-inset-bottom) + 12px) !important;
    left: auto !important;
    width: min(350px, calc(100vw - 24px)) !important;
    max-height: min(68dvh, 560px) !important;
    padding-bottom: 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body .app-shell .memory-editor,
  html body main.app-shell .memory-editor {
    inset: calc(env(safe-area-inset-top) + 10px) 8px calc(78px + env(safe-area-inset-bottom) + 8px) 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body .app-shell .bottom-nav,
  html body main.app-shell .bottom-nav {
    right: 10px !important;
    bottom: calc(env(safe-area-inset-bottom) + 8px) !important;
    left: 10px !important;
    z-index: 1250 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 56px minmax(0, 1fr) minmax(0, 1fr) !important;
    width: auto !important;
    height: 78px !important;
    min-height: 78px !important;
    padding: 8px !important;
    gap: 3px !important;
  }

  html body .app-shell .bottom-nav-item,
  html body main.app-shell .bottom-nav-item {
    min-width: 0 !important;
    min-height: 50px !important;
    padding: 7px 2px !important;
    font-size: 0.6rem !important;
  }
}
