/* A bounded photo shelf on the shared Home rail. No global canvas changes. */
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .home-section-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .home-section-heading::before,
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .home-section-heading::after {
  content: none !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .home-section-title {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .home-section-heading-actions {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-view-all {
  display: inline-flex !important;
  width: auto !important;
  min-width: 44px !important;
  max-width: none !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 8px 10px !important;
  gap: 6px !important;
  align-items: center !important;
  justify-content: center !important;
  color: #00243f !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  font-size: .8rem !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  transform: none !important;
  white-space: nowrap !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-view-all-label {
  display: inline !important;
}
/* Legacy heading rules decorate every descendant span. Keep the label and
   arrow as plain text, with no nested pills or clipped absolute positioning. */
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-view-all > span {
  position: static !important;
  display: inline !important;
  flex: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit !important;
  color: inherit !important;
  overflow: visible !important;
  transform: none !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memories-panel {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-card-shelf {
  --recent-columns: 4;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 2px 0 10px !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-item {
  flex: 0 0 calc((100% - (var(--recent-columns) - 1) * 14px) / var(--recent-columns)) !important;
  width: calc((100% - (var(--recent-columns) - 1) * 14px) / var(--recent-columns)) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-card {
  /* An intrinsic column avoids WebKit's cyclic percentage-height grid sizing
     on rotation. The photo and text always occupy separate flow boxes. */
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  align-content: start !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #dce7e7 !important;
  border-radius: 22px !important;
  background: #fffefd !important;
  box-shadow: 0 5px 18px #00243f08 !important;
  color: #00243f !important;
  text-align: left !important;
  transform: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-art {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 10 !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: #e5f3f2 !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-art::after {
  content: none !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-art > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: var(--home-photo-position, center center) !important;
  /* The opaque loading status covers the image until decoded. Avoid a second
     opacity layer/fade that can be stranded during touch WebKit scrolling. */
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-art[data-photo-state="unavailable"] > img {
  opacity: 0 !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-art[data-photo-state="ready"] > img {
  opacity: 1 !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section :is(.recent-memory-photo-status, .recent-memory-no-photo) {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 12px !important;
  color: #345963 !important;
  background: #e5f3f2 !important;
  font-size: .75rem !important;
  line-height: 1.4 !important;
  font-weight: 550 !important;
  text-align: center !important;
  white-space: normal !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-no-photo > span {
  display: block !important;
  width: 56px !important;
  height: 56px !important;
  background: url('./mymappi-mascot-wave-v4.png') center / contain no-repeat !important;
  opacity: 1 !important;
  flex: none !important;
  border-radius: 0 !important;
  transform: none !important;
  box-shadow: none !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-no-photo > span::after {
  content: none !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-no-photo small {
  display: block !important;
  position: static !important;
  font: inherit !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-art[data-photo-state="ready"] .recent-memory-photo-status {
  display: none !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-copy {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  grid-template-rows: 2.75em auto !important;
  height: auto !important;
  min-height: 0 !important;
  align-content: start !important;
  gap: 8px 10px !important;
  padding: 16px 18px !important;
  text-align: left !important;
  font-size: 1rem !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-copy > :is(strong, small) {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  margin: 0 !important;
  text-overflow: ellipsis !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-copy > strong {
  grid-column: 1 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.1875rem !important;
  line-height: 1.16 !important;
  font-weight: 600 !important;
  letter-spacing: -.02em !important;
  color: #00243f !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-copy > small {
  grid-column: 1 !important;
  display: grid !important;
  grid-template-rows: 1.4em 1.4em !important;
  height: 2.8em !important;
  min-height: 2.8em !important;
  font-size: .76rem !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  color: #52717c !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-copy > small > span {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font: inherit !important;
  color: inherit !important;
  margin: 0 !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-open {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  justify-self: end !important;
  display: grid !important;
  place-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #52717c !important;
  line-height: 0 !important;
}
/* Decorative navigation cue inside the full-card button, not a second action.
   Reset inherited footer spacing so the glyph stays centered in its 44px area. */
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-open > svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section button:focus-visible {
  outline: 2px solid #21746f !important;
  outline-offset: 3px !important;
}
@media (hover: hover) and (pointer: fine) {
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-card:hover {
    border-color: #59978f !important;
    box-shadow: 0 9px 22px rgba(0,36,63,.1) !important;
  }
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-view-all:hover {
    background: #e1f4ef !important;
  }
}
@media (max-width: 1100px) {
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-card-shelf {
    --recent-columns: 2;
  }
}
@media (max-width: 600px) {
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .home-section-heading-actions {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
  }
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-card-shelf {
    --recent-columns: 1;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 0 !important;
    overscroll-behavior-inline: contain !important;
    scrollbar-width: thin !important;
    scrollbar-color: #629d96 #e6f2f0 !important;
  }
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-card-shelf::-webkit-scrollbar {
    display: block !important;
    height: 6px !important;
  }
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-card-shelf::-webkit-scrollbar-thumb {
    background: #629d96 !important;
    border-radius: 6px !important;
  }
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-item {
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
  }
}
/* iPad retains a swipeable photo shelf in either orientation. A fixed card
   measure avoids jumping from giant 2-column cards to cramped 4-column ones. */
@media (min-width: 601px) and (hover: none) and (pointer: coarse) {
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-card-shelf {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    overscroll-behavior-inline: contain !important;
    scrollbar-width: thin !important;
    scrollbar-color: #629d96 #e6f2f0 !important;
  }
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-item {
    flex: 0 0 min(320px, 82%) !important;
    width: min(320px, 82%) !important;
    scroll-snap-align: start !important;
  }
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section .recent-memory-shelf-item:only-child {
    margin-inline: auto !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body main.app-shell section.map-stage.home-focus #homeDashboard.home-dashboard #homeTimelineStrip.home-section * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
