/* Today's Memory: one cohesive Relive control and one compact note everywhere. */
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 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  overflow: hidden !important;
}

html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button::before,
html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button::after,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button::before,
html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  content: none !important;
  animation: none !important;
  box-shadow: none !important;
}

@media (min-width: 761px) {
  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-width: 98px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 9px 0 15px !important;
    border-radius: 999px !important;
    gap: 8px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button > span,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button > span {
    display: grid !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    background: linear-gradient(145deg, #0b8b7b, #075766) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    font-size: 0.9rem !important;
    line-height: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 760px) {
  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 {
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
      "title"
      "meta"
      "note" !important;
    min-height: 86px !important;
    max-height: 102px !important;
    padding: 9px 54px 9px !important;
    gap: 3px !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-note,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-note {
    grid-area: note !important;
    display: flex !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 14px !important;
    max-height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    color: rgba(247, 255, 252, 0.74) !important;
    font-size: 0.58rem !important;
    font-weight: 590 !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }

  html body #homeMemoryOfDay .today-memory-note-mark {
    display: none !important;
  }

  html body #homeMemoryOfDay .today-memory-note-text {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-align: center !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-relive-button,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button {
    right: 10px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    background: linear-gradient(145deg, #0b8b7b, #075766) !important;
    box-shadow:
      0 9px 20px rgba(0, 45, 53, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    font-size: 0 !important;
  }

  html body .app-shell .map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button > span,
  html body main.app-shell section.map-stage.home-focus #homeMemoryOfDay .today-memory-card.has-today-memory .today-memory-relive-button > span {
    display: grid !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    color: #ffffff !important;
    font-size: 1.08rem !important;
    line-height: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 350px) {
  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 {
    min-height: 84px !important;
    padding-right: 50px !important;
    padding-left: 50px !important;
  }
}
