/* Recent Memories v2: a calm, photo-first view of the latest additions. */
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;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  gap: 13px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !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: inline-flex !important;
  justify-self: start !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 4px !important;
  gap: 3px !important;
  overflow-x: auto !important;
  border: 1px solid rgba(9, 78, 80, 0.08) !important;
  border-radius: 14px !important;
  background: rgba(247, 252, 249, 0.7) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !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 {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  gap: 6px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #577078 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.7rem !important;
  font-weight: 780 !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter small {
  display: grid !important;
  min-width: 18px !important;
  height: 18px !important;
  place-items: center !important;
  padding-inline: 4px !important;
  border-radius: 999px !important;
  color: #6c858b !important;
  background: rgba(8, 75, 76, 0.055) !important;
  font-size: 0.56rem !important;
  font-weight: 850 !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, #064c5b, #0b817d) !important;
  box-shadow: 0 7px 16px rgba(7, 95, 94, 0.16) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-filter.active small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-filter.active small {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: clamp(208px, 24vw, 244px) !important;
  width: calc(100% + 10px) !important;
  min-width: 0 !important;
  margin: 0 -5px !important;
  padding: 5px !important;
  gap: 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-padding-inline: 5px !important;
  scroll-snap-type: x mandatory !important;
  overscroll-behavior-inline: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(10, 101, 99, 0.22) transparent !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf::-webkit-scrollbar,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf::-webkit-scrollbar {
  height: 4px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf::-webkit-scrollbar-thumb,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(10, 101, 99, 0.2) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 292px !important;
  margin: 0 !important;
  padding: 7px !important;
  gap: 0 !important;
  overflow: hidden !important;
  scroll-snap-align: start !important;
  border: 1px solid rgba(8, 75, 76, 0.075) !important;
  border-radius: 19px !important;
  color: #153e49 !important;
  text-align: left !important;
  background: linear-gradient(180deg, rgba(255, 255, 253, 0.97), rgba(244, 251, 247, 0.96)) !important;
  box-shadow:
    0 12px 26px rgba(7, 57, 65, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card:hover,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card:focus-visible,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card:hover,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card:focus-visible {
  border-color: color-mix(in srgb, var(--recent-accent) 30%, rgba(8, 75, 76, 0.1)) !important;
  box-shadow: 0 16px 34px rgba(7, 57, 65, 0.11) !important;
  transform: translateY(-2px) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #dcefe9, #dceaf1) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art::after,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art::after {
  position: absolute !important;
  z-index: 2 !important;
  inset: 48% 0 0 !important;
  content: "" !important;
  background: linear-gradient(180deg, transparent, rgba(4, 36, 43, 0.12)) !important;
  pointer-events: none !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art > img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !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;
  transition: transform 420ms ease !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card:hover .recent-memory-shelf-art > img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card:hover .recent-memory-shelf-art > img {
  transform: scale(1.025) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-no-photo,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-no-photo {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-content: center !important;
  justify-items: center !important;
  gap: 10px !important;
  color: #315e67 !important;
  background:
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--recent-accent) 18%, transparent), transparent 34%),
    linear-gradient(145deg, #e5f4ef, #dcecf2) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-no-photo > span,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-no-photo > span {
  position: relative !important;
  display: block !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% 50% 50% 8px !important;
  background: linear-gradient(145deg, var(--recent-accent), #087b80) !important;
  transform: rotate(-45deg) !important;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--recent-accent) 22%, transparent) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-no-photo > span::after,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-no-photo > span::after {
  position: absolute !important;
  inset: 12px !important;
  content: "" !important;
  border-radius: 50% !important;
  background: #fff !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-no-photo small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-no-photo small {
  font-size: 0.65rem !important;
  font-weight: 820 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-media-badge,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-media-badge {
  position: absolute !important;
  z-index: 3 !important;
  top: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 5px 8px !important;
  gap: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(4, 42, 50, 0.72) !important;
  box-shadow: 0 5px 12px rgba(3, 31, 39, 0.13) !important;
  backdrop-filter: blur(9px) !important;
  -webkit-backdrop-filter: blur(9px) !important;
  font-size: 0.57rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

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

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-play,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-play {
  width: 0 !important;
  height: 0 !important;
  border-top: 4px solid transparent !important;
  border-bottom: 4px solid transparent !important;
  border-left: 6px solid currentColor !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  align-content: start !important;
  min-width: 0 !important;
  padding: 11px 7px 7px !important;
  gap: 5px !important;
  text-align: left !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-kicker,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-kicker {
  color: color-mix(in srgb, var(--recent-accent) 60%, #315962) !important;
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy > strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy > strong {
  display: block !important;
  overflow: hidden !important;
  color: #173f49 !important;
  font-size: 0.92rem !important;
  font-weight: 880 !important;
  line-height: 1.12 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy > small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy > small {
  display: block !important;
  overflow: hidden !important;
  color: #627c83 !important;
  font-size: 0.67rem !important;
  font-weight: 650 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-bottom,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-width: 0 !important;
  gap: 7px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-bottom > span,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-bottom > span {
  overflow: hidden !important;
  color: #84979b !important;
  font-size: 0.59rem !important;
  font-weight: 650 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-bottom > em,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-bottom > em {
  flex: 0 0 auto !important;
  min-height: 21px !important;
  padding: 5px 7px !important;
  border: 1px solid color-mix(in srgb, var(--mood-color) 18%, transparent) !important;
  border-radius: 999px !important;
  color: color-mix(in srgb, var(--mood-color) 68%, #244d56) !important;
  background: color-mix(in srgb, var(--mood-color) 9%, #fff) !important;
  font-size: 0.56rem !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-open,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-open {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 3px !important;
  padding-top: 7px !important;
  border-top: 1px solid rgba(8, 75, 76, 0.06) !important;
  color: #28616b !important;
  font-size: 0.59rem !important;
  font-weight: 750 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-open > span,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-open > span {
  color: color-mix(in srgb, var(--recent-accent) 70%, #0b5a65) !important;
  font-size: 0.86rem !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-footer,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 36px !important;
  padding: 0 3px !important;
  gap: 12px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-footer > span,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-footer > span {
  color: #819499 !important;
  font-size: 0.62rem !important;
  font-weight: 650 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-footer button,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-footer button {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 7px 11px !important;
  gap: 7px !important;
  border: 1px solid rgba(8, 75, 76, 0.09) !important;
  border-radius: 11px !important;
  color: #155461 !important;
  background: rgba(247, 252, 249, 0.76) !important;
  box-shadow: none !important;
  font-size: 0.65rem !important;
  font-weight: 820 !important;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  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 {
    justify-self: stretch !important;
    width: 100% !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 {
    flex: 1 0 auto !important;
    min-width: max-content !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf {
    grid-auto-columns: min(72vw, 246px) !important;
    width: calc(100% + 12px) !important;
    margin-inline: -6px !important;
    padding-inline: 6px !important;
    gap: 10px !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card {
    min-height: 288px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card,
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art > img,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art > img {
    transition: none !important;
  }
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-view-all,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-view-all {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 6px 2px !important;
  gap: 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #1b6a70 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.7rem !important;
  font-weight: 820 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-view-all:hover,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-view-all:hover {
  color: #0b8a78 !important;
  transform: translateX(2px) !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: 0 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf {
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 2px 8px !important;
  gap: 14px !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  scrollbar-width: none !important;
}

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

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card {
  grid-template-rows: auto auto !important;
  min-height: 0 !important;
  padding: 7px !important;
  border-radius: 22px !important;
  background: linear-gradient(155deg, rgba(255, 255, 252, 0.98), rgba(241, 249, 246, 0.96)) !important;
  box-shadow:
    0 14px 30px rgba(7, 57, 65, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art {
  aspect-ratio: 4 / 3 !important;
  border-radius: 16px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art > img,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-art > img {
  object-position: var(--home-photo-position, center 32%) !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-favorite,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-favorite {
  position: absolute !important;
  top: 9px !important;
  right: 9px !important;
  z-index: 4 !important;
  display: grid !important;
  width: 28px !important;
  height: 28px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 50% !important;
  color: #ff6f70 !important;
  background: rgba(255, 252, 247, 0.86) !important;
  box-shadow: 0 7px 16px rgba(30, 32, 39, 0.16) !important;
  backdrop-filter: blur(9px) !important;
  -webkit-backdrop-filter: blur(9px) !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy {
  padding: 11px 7px 9px !important;
  gap: 6px !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy > strong,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy > strong {
  font-size: 0.94rem !important;
  line-height: 1.15 !important;
}

html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy > small,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-copy > small {
  color: #6f858a !important;
  font-size: 0.66rem !important;
  font-weight: 650 !important;
  line-height: 1.3 !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,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-media-badge,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-media-badge,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-kicker,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-kicker,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-bottom,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-bottom,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-open,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-open,
html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-footer,
html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-footer {
  display: none !important;
}

@media (min-width: 721px) and (max-width: 980px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-card-shelf {
    grid-auto-flow: column !important;
    grid-auto-columns: min(78vw, 270px) !important;
    grid-template-columns: none !important;
    width: calc(100% + 12px) !important;
    margin-inline: -6px !important;
    padding: 5px 22vw 8px 6px !important;
    gap: 11px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-padding-inline: 6px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .app-shell .map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card,
  html body main.app-shell section.map-stage.home-focus #homeTimelineStrip .recent-memory-shelf-card {
    min-height: 0 !important;
    scroll-snap-align: start !important;
  }
}
