/* MyMappi Memory Capsule v1: calm, cinematic, and mobile-safe. */

html body .app-shell .memory-bottom-sheet.open,
html body main.app-shell .memory-bottom-sheet.open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100dvh !important;
  padding: clamp(14px, 3vw, 34px) !important;
  overflow: hidden !important;
  background: rgba(4, 35, 44, 0.16) !important;
  backdrop-filter: blur(8px) saturate(0.94) !important;
  -webkit-backdrop-filter: blur(8px) saturate(0.94) !important;
  transform: none !important;
}

html body .app-shell .memory-bottom-sheet.open #memorySheetContent,
html body main.app-shell .memory-bottom-sheet.open #memorySheetContent {
  width: min(940px, 100%) !important;
  min-width: 0 !important;
  max-width: 940px !important;
}

html body .app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule,
html body main.app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule {
  display: grid !important;
  width: 100% !important;
  max-width: 940px !important;
  max-height: calc(100dvh - clamp(28px, 6vw, 68px)) !important;
  padding: clamp(14px, 2vw, 22px) !important;
  gap: clamp(12px, 1.8vw, 18px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: clamp(24px, 3vw, 32px) !important;
  color: #123d48 !important;
  background: #f8fcf9 !important;
  box-shadow:
    0 30px 72px rgba(3, 35, 44, 0.24),
    0 8px 24px rgba(7, 86, 82, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(14, 112, 102, 0.28) transparent !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-topbar,
html body main.app-shell .full-memory-capsule .memory-capsule-topbar {
  position: sticky !important;
  top: calc(clamp(14px, 2vw, 22px) * -1) !important;
  z-index: 12 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 52px !important;
  margin: calc(clamp(14px, 2vw, 22px) * -1) calc(clamp(14px, 2vw, 22px) * -1) 0 !important;
  padding: 10px clamp(14px, 2vw, 22px) 8px !important;
  border-bottom: 1px solid rgba(8, 77, 78, 0.07) !important;
  background: rgba(248, 252, 249, 0.92) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-brand,
html body main.app-shell .full-memory-capsule .memory-capsule-brand {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  gap: 8px !important;
  border: 1px solid rgba(7, 78, 79, 0.08) !important;
  border-radius: 999px !important;
  color: #174c58 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-pin,
html body main.app-shell .full-memory-capsule .memory-capsule-pin {
  box-shadow: none !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-close,
html body main.app-shell .full-memory-capsule .memory-capsule-close {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 0 2px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  background: #083d4b !important;
  box-shadow: 0 9px 20px rgba(4, 48, 59, 0.18) !important;
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-hero,
html body main.app-shell .full-memory-capsule .memory-capsule-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto) !important;
  align-items: end !important;
  padding: clamp(22px, 3.4vw, 34px) !important;
  gap: 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(213, 255, 243, 0.16) !important;
  border-radius: clamp(22px, 2.8vw, 29px) !important;
  background: linear-gradient(135deg, #073c4b 0%, #0b706d 58%, #167f8d 100%) !important;
  box-shadow:
    0 18px 38px rgba(5, 64, 69, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

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;
  min-width: 0 !important;
  gap: 9px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-kicker-row,
html body main.app-shell .full-memory-capsule .memory-capsule-kicker-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-kicker,
html body main.app-shell .full-memory-capsule .memory-capsule-kicker {
  width: fit-content !important;
  min-height: 26px !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  border: 1px solid rgba(239, 255, 251, 0.2) !important;
  border-radius: 999px !important;
  color: rgba(244, 255, 252, 0.9) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  font-size: 0.64rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-title-block h2,
html body main.app-shell .full-memory-capsule .memory-capsule-title-block h2 {
  max-width: 18ch !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(2rem, 4.6vw, 3.45rem) !important;
  font-weight: 880 !important;
  letter-spacing: 0 !important;
  line-height: 1.02 !important;
  overflow-wrap: anywhere !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-title-block p,
html body main.app-shell .full-memory-capsule .memory-capsule-title-block p {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  gap: 7px !important;
  color: rgba(239, 255, 251, 0.82) !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-title-block p [data-icon],
html body main.app-shell .full-memory-capsule .memory-capsule-title-block p [data-icon] {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-date-block,
html body main.app-shell .full-memory-capsule .memory-capsule-date-block {
  justify-self: end !important;
  align-self: end !important;
  min-width: 164px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-date-block span,
html body main.app-shell .full-memory-capsule .memory-capsule-date-block span {
  color: rgba(235, 255, 249, 0.66) !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-date-block strong,
html body main.app-shell .full-memory-capsule .memory-capsule-date-block strong {
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-save-strip,
html body main.app-shell .full-memory-capsule .memory-capsule-save-strip {
  display: flex !important;
  flex-wrap: wrap !important;
  min-height: 0 !important;
  margin: -2px 2px 0 !important;
  gap: 6px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-save-strip span,
html body main.app-shell .full-memory-capsule .memory-capsule-save-strip span {
  min-height: 27px !important;
  padding: 5px 9px !important;
  border: 1px solid rgba(7, 78, 79, 0.08) !important;
  color: #45666e !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: none !important;
  font-size: 0.66rem !important;
  font-weight: 750 !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;
  gap: 13px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-media,
html body main.app-shell .full-memory-capsule .memory-capsule-media {
  padding: 10px !important;
  overflow: hidden !important;
  border: 1px solid rgba(7, 78, 79, 0.09) !important;
  border-radius: 23px !important;
  background: #edf7f3 !important;
  box-shadow: 0 12px 28px rgba(7, 58, 67, 0.07) !important;
}

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

html body .app-shell .full-memory-capsule .memory-sheet-media-bar,
html body main.app-shell .full-memory-capsule .memory-sheet-media-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 34px !important;
  padding: 2px 4px 9px !important;
  gap: 10px !important;
  border-bottom: 1px solid rgba(7, 78, 79, 0.07) !important;
}

html body .app-shell .full-memory-capsule .memory-sheet-media-bar span,
html body main.app-shell .full-memory-capsule .memory-sheet-media-bar span {
  color: #174c58 !important;
  font-size: 0.7rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html body .app-shell .full-memory-capsule .memory-sheet-media-bar small,
html body main.app-shell .full-memory-capsule .memory-sheet-media-bar small {
  color: #668087 !important;
  font-size: 0.64rem !important;
  font-weight: 650 !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery,
html body main.app-shell .full-memory-capsule .sheet-photo-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  padding-top: 10px !important;
  gap: 9px !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;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.84) !important;
  border-radius: 15px !important;
  background: #deeee9 !important;
  box-shadow: 0 8px 18px rgba(7, 58, 67, 0.08) !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;
  border-radius: 19px !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__photo,
html body main.app-shell .full-memory-capsule .sheet-photo-gallery__photo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

html body .app-shell .full-memory-capsule .sheet-video-wrap,
html body main.app-shell .full-memory-capsule .sheet-video-wrap {
  margin-top: 9px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #deeee9 !important;
}

html body .app-shell .full-memory-capsule .sheet-video-wrap video,
html body main.app-shell .full-memory-capsule .sheet-video-wrap video {
  width: 100% !important;
  min-height: 220px !important;
  max-height: 520px !important;
  object-fit: contain !important;
  background: #deeee9 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story,
html body main.app-shell .full-memory-capsule .memory-capsule-story {
  position: relative !important;
  padding: clamp(18px, 2.5vw, 25px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(7, 78, 79, 0.08) !important;
  border-radius: 22px !important;
  background: #fffdf8 !important;
  box-shadow: 0 10px 24px rgba(7, 58, 67, 0.06) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story::before,
html body main.app-shell .full-memory-capsule .memory-capsule-story::before {
  right: 16px !important;
  top: -12px !important;
  color: color-mix(in srgb, var(--sheet-accent) 16%, transparent) !important;
  font-size: 6rem !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story > span,
html body main.app-shell .full-memory-capsule .memory-capsule-story > span {
  color: color-mix(in srgb, var(--sheet-accent) 62%, #073d49) !important;
  font-size: 0.66rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story p,
html body main.app-shell .full-memory-capsule .memory-capsule-story p {
  position: relative !important;
  z-index: 1 !important;
  max-width: 72ch !important;
  margin: 8px 0 0 !important;
  color: #183f49 !important;
  font-size: clamp(0.96rem, 1.8vw, 1.1rem) !important;
  font-weight: 540 !important;
  line-height: 1.65 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-detail-chips,
html body main.app-shell .full-memory-capsule .memory-capsule-detail-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-detail-chips span,
html body main.app-shell .full-memory-capsule .memory-capsule-detail-chips span {
  min-height: 30px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(7, 78, 79, 0.08) !important;
  border-radius: 999px !important;
  color: #315862 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.69rem !important;
  font-weight: 720 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-coordinates,
html body main.app-shell .full-memory-capsule .memory-capsule-coordinates {
  color: #819499 !important;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  text-align: right !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-dock,
html body main.app-shell .full-memory-capsule .memory-capsule-action-dock {
  position: static !important;
  bottom: auto !important;
  z-index: 10 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) !important;
  align-items: stretch !important;
  margin: 2px 0 0 !important;
  padding: 12px !important;
  gap: 10px !important;
  border-top: 1px solid rgba(7, 78, 79, 0.07) !important;
  border: 1px solid rgba(7, 78, 79, 0.08) !important;
  border-radius: 22px !important;
  background: #f1f8f5 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !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;
  align-content: start !important;
  min-width: 0 !important;
  padding: 9px !important;
  gap: 7px !important;
  border: 1px solid rgba(7, 78, 79, 0.07) !important;
  border-radius: 18px !important;
  background: rgba(237, 247, 243, 0.78) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-label,
html body main.app-shell .full-memory-capsule .memory-capsule-action-label {
  padding-inline: 3px !important;
  color: #607a81 !important;
  font-size: 0.64rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-route-selector,
html body main.app-shell .full-memory-capsule .memory-capsule-route-selector,
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;
  width: 100% !important;
  padding: 0 !important;
  gap: 7px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

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

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

html body .app-shell .full-memory-capsule .memory-capsule-route-choice,
html body main.app-shell .full-memory-capsule .memory-capsule-route-choice,
html body .app-shell .full-memory-capsule .memory-capsule-action-pill,
html body main.app-shell .full-memory-capsule .memory-capsule-action-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 43px !important;
  padding: 9px 10px !important;
  gap: 7px !important;
  border: 1px solid rgba(7, 78, 79, 0.08) !important;
  border-radius: 13px !important;
  color: #174c58 !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
  font-weight: 820 !important;
  white-space: nowrap !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.28) !important;
  background: #087b79 !important;
  box-shadow: 0 9px 20px rgba(8, 123, 121, 0.19) !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: #a62d45 !important;
  border-color: rgba(222, 73, 100, 0.16) !important;
  background: #fff0f2 !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: #9b3f36 !important;
  border-color: rgba(167, 62, 51, 0.12) !important;
  background: #fff5f2 !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;
  box-shadow: 0 10px 22px rgba(7, 58, 67, 0.1) !important;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body .app-shell .memory-bottom-sheet.open,
  html body main.app-shell .memory-bottom-sheet.open {
    place-items: end center !important;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) !important;
    background: rgba(4, 35, 44, 0.12) !important;
    backdrop-filter: blur(6px) !important;
  }

  html body .app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule,
  html body main.app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule {
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))) !important;
    padding: 12px !important;
    gap: 11px !important;
    border-radius: 25px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-topbar,
  html body main.app-shell .full-memory-capsule .memory-capsule-topbar {
    top: -12px !important;
    margin: -12px -12px 0 !important;
    padding: 9px 12px 8px !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;
    padding: 18px !important;
    gap: 13px !important;
    border-radius: 21px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-title-block h2,
  html body main.app-shell .full-memory-capsule .memory-capsule-title-block h2 {
    max-width: 100% !important;
    font-size: clamp(1.72rem, 9vw, 2.55rem) !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-date-block,
  html body main.app-shell .full-memory-capsule .memory-capsule-date-block {
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 12px !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;
    gap: 7px !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;
  }

  html body .app-shell .full-memory-capsule .sheet-video-wrap video,
  html body main.app-shell .full-memory-capsule .sheet-video-wrap video {
    min-height: 190px !important;
    max-height: 54dvh !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-action-dock,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-dock {
    bottom: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    margin: 2px 0 0 !important;
    padding: 9px !important;
    gap: 8px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-action-group,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-group {
    padding: 8px !important;
  }
}

@media (max-width: 380px) {
  html body .app-shell .full-memory-capsule .memory-capsule-memory-controls,
  html body main.app-shell .full-memory-capsule .memory-capsule-memory-controls {
    gap: 5px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-action-pill,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-pill {
    padding-inline: 7px !important;
    font-size: 0.68rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .memory-bottom-sheet.open,
  html body .app-shell .memory-bottom-sheet.open .full-memory-capsule,
  html body .app-shell .full-memory-capsule * {
    animation: none !important;
    transition: none !important;
  }
}

/* MyMappi Memory Capsule v3: quiet keepsake styling and clearer actions. */
html body .app-shell .memory-bottom-sheet.open,
html body main.app-shell .memory-bottom-sheet.open {
  padding: clamp(12px, 2.6vw, 28px) !important;
  background: rgba(3, 31, 39, 0.2) !important;
  backdrop-filter: blur(10px) saturate(0.9) !important;
  -webkit-backdrop-filter: blur(10px) saturate(0.9) !important;
}

html body .app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule,
html body main.app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule {
  max-width: 880px !important;
  padding: clamp(12px, 1.8vw, 18px) !important;
  gap: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.84) !important;
  border-radius: clamp(22px, 2.4vw, 28px) !important;
  background:
    linear-gradient(180deg, rgba(252, 254, 252, 0.99), rgba(244, 250, 247, 0.99)) !important;
  box-shadow:
    0 34px 80px rgba(3, 31, 39, 0.25),
    0 10px 26px rgba(5, 72, 73, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-topbar,
html body main.app-shell .full-memory-capsule .memory-capsule-topbar {
  top: calc(clamp(12px, 1.8vw, 18px) * -1) !important;
  min-height: 50px !important;
  margin: calc(clamp(12px, 1.8vw, 18px) * -1) calc(clamp(12px, 1.8vw, 18px) * -1) 0 !important;
  padding: 8px clamp(12px, 1.8vw, 18px) 7px !important;
  border-bottom-color: rgba(7, 78, 79, 0.06) !important;
  background: rgba(249, 253, 250, 0.91) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-brand,
html body main.app-shell .full-memory-capsule .memory-capsule-brand {
  min-height: 32px !important;
  padding: 5px 10px 5px 7px !important;
  border-color: rgba(7, 78, 79, 0.07) !important;
  color: #174c58 !important;
  background: rgba(255, 255, 255, 0.66) !important;
  font-size: 0.69rem !important;
  letter-spacing: 0.01em !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-pin,
html body main.app-shell .full-memory-capsule .memory-capsule-pin {
  position: relative !important;
  width: 22px !important;
  height: 22px !important;
  border: 0 !important;
  border-radius: 8px 8px 8px 2px !important;
  background: linear-gradient(145deg, color-mix(in srgb, var(--sheet-accent) 78%, #18a978), #087d86) !important;
  transform: rotate(-45deg) scale(0.68) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-pin::after,
html body main.app-shell .full-memory-capsule .memory-capsule-pin::after {
  position: absolute !important;
  inset: 6px !important;
  content: "" !important;
  border-radius: 50% !important;
  background: #fff !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-close,
html body main.app-shell .full-memory-capsule .memory-capsule-close {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 0 2px !important;
  border-color: rgba(7, 78, 79, 0.08) !important;
  color: #143f49 !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 7px 18px rgba(6, 52, 60, 0.1) !important;
  font-size: 1.28rem !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) minmax(150px, auto) !important;
  align-items: end !important;
  min-height: 170px !important;
  padding: clamp(20px, 3vw, 30px) !important;
  border-radius: clamp(20px, 2.4vw, 26px) !important;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--sheet-accent) 26%, transparent), transparent 40%),
    radial-gradient(circle at 8% 108%, rgba(66, 193, 150, 0.22), transparent 43%),
    linear-gradient(135deg, #063c4b 0%, #075d63 50%, #0a776d 100%) !important;
  box-shadow:
    0 17px 34px rgba(4, 61, 67, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-title-block,
html body main.app-shell .full-memory-capsule .memory-capsule-title-block {
  gap: 8px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-kicker,
html body main.app-shell .full-memory-capsule .memory-capsule-kicker {
  min-height: 24px !important;
  padding: 5px 8px !important;
  color: rgba(245, 255, 252, 0.86) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  font-size: 0.61rem !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-title-block h2,
html body main.app-shell .full-memory-capsule .memory-capsule-title-block h2 {
  max-width: 20ch !important;
  font-size: clamp(1.9rem, 4.2vw, 3.15rem) !important;
  line-height: 1.04 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-date-block,
html body main.app-shell .full-memory-capsule .memory-capsule-date-block {
  min-width: 150px !important;
  padding: 11px 13px !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.085) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-body,
html body main.app-shell .full-memory-capsule .memory-capsule-body {
  gap: 11px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-media,
html body main.app-shell .full-memory-capsule .memory-capsule-media {
  padding: 8px !important;
  border-color: rgba(7, 78, 79, 0.075) !important;
  border-radius: 21px !important;
  background: #eef7f3 !important;
  box-shadow: 0 10px 24px rgba(7, 58, 67, 0.055) !important;
}

html body .app-shell .full-memory-capsule .memory-sheet-media-bar,
html body main.app-shell .full-memory-capsule .memory-sheet-media-bar {
  min-height: 32px !important;
  padding: 3px 5px 8px !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item,
html body main.app-shell .full-memory-capsule .sheet-photo-gallery__item {
  border-radius: 13px !important;
  box-shadow: none !important;
  transition: transform 180ms ease, filter 180ms ease !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: 16 / 8.7 !important;
  border-radius: 17px !important;
}

html body .app-shell .full-memory-capsule .sheet-photo-gallery__item:hover,
html body main.app-shell .full-memory-capsule .sheet-photo-gallery__item:hover {
  filter: saturate(1.04) !important;
  transform: translateY(-1px) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story,
html body main.app-shell .full-memory-capsule .memory-capsule-story {
  padding: clamp(17px, 2.2vw, 22px) !important;
  border-color: rgba(148, 114, 61, 0.1) !important;
  border-radius: 19px !important;
  background:
    linear-gradient(180deg, #fffdf8, #fbf7ed) !important;
  box-shadow: 0 8px 20px rgba(75, 58, 33, 0.045) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story::before,
html body main.app-shell .full-memory-capsule .memory-capsule-story::before {
  opacity: 0.55 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-story p,
html body main.app-shell .full-memory-capsule .memory-capsule-story p {
  margin-top: 7px !important;
  color: #244750 !important;
  line-height: 1.58 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-detail-chips span,
html body main.app-shell .full-memory-capsule .memory-capsule-detail-chips span {
  min-height: 28px !important;
  padding: 5px 9px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.66rem !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-dock,
html body main.app-shell .full-memory-capsule .memory-capsule-action-dock {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) !important;
  margin: 1px 0 0 !important;
  padding: 10px !important;
  gap: 9px !important;
  border: 1px solid rgba(7, 78, 79, 0.075) !important;
  border-radius: 20px !important;
  background: rgba(239, 248, 244, 0.9) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-group,
html body main.app-shell .full-memory-capsule .memory-capsule-action-group {
  padding: 8px !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.5) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-label,
html body main.app-shell .full-memory-capsule .memory-capsule-action-label {
  padding-inline: 2px !important;
  color: #536f76 !important;
  font-size: 0.63rem !important;
  font-weight: 850 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-route-selector,
html body main.app-shell .full-memory-capsule .memory-capsule-route-selector {
  padding: 0 !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-route-choice,
html body main.app-shell .full-memory-capsule .memory-capsule-route-choice {
  grid-template-columns: 32px minmax(0, 1fr) !important;
  justify-content: start !important;
  min-height: 54px !important;
  padding: 8px 9px !important;
  gap: 8px !important;
  border-radius: 14px !important;
  text-align: left !important;
  background: rgba(255, 255, 255, 0.82) !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 {
  background: linear-gradient(135deg, #064c5b, #087f7d 58%, #15a776) !important;
  box-shadow: 0 10px 22px rgba(8, 119, 111, 0.18) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-icon,
html body main.app-shell .full-memory-capsule .memory-capsule-action-icon {
  display: grid !important;
  width: 32px !important;
  height: 32px !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: rgba(9, 102, 104, 0.08) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-route-choice.is-selected .memory-capsule-action-icon,
html body main.app-shell .full-memory-capsule .memory-capsule-route-choice.is-selected .memory-capsule-action-icon {
  background: rgba(255, 255, 255, 0.15) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-icon svg,
html body main.app-shell .full-memory-capsule .memory-capsule-action-icon svg {
  width: 17px !important;
  height: 17px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-copy,
html body main.app-shell .full-memory-capsule .memory-capsule-action-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 2px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-copy strong,
html body main.app-shell .full-memory-capsule .memory-capsule-action-copy strong {
  font-size: 0.77rem !important;
  line-height: 1 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-copy small,
html body main.app-shell .full-memory-capsule .memory-capsule-action-copy small {
  overflow: hidden !important;
  color: #72888d !important;
  font-size: 0.57rem !important;
  font-weight: 650 !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-route-choice.is-selected .memory-capsule-action-copy small,
html body main.app-shell .full-memory-capsule .memory-capsule-route-choice.is-selected .memory-capsule-action-copy small {
  color: rgba(236, 255, 249, 0.74) !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: 6px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-pill,
html body main.app-shell .full-memory-capsule .memory-capsule-action-pill {
  grid-template-columns: 16px minmax(0, auto) !important;
  min-height: 54px !important;
  padding: 8px 6px !important;
  gap: 5px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: none !important;
  font-size: 0.68rem !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-pill svg,
html body main.app-shell .full-memory-capsule .memory-capsule-action-pill svg {
  width: 16px !important;
  height: 16px !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: #9b4d43 !important;
  border-color: rgba(156, 63, 54, 0.08) !important;
  background: rgba(255, 250, 248, 0.8) !important;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body .app-shell .memory-bottom-sheet.open,
  html body main.app-shell .memory-bottom-sheet.open {
    padding: max(6px, env(safe-area-inset-top)) 6px max(7px, env(safe-area-inset-bottom)) !important;
  }

  html body .app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule,
  html body main.app-shell .memory-bottom-sheet.open .memory-sheet-card.full-memory-capsule {
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(14px, env(safe-area-inset-bottom))) !important;
    padding: 10px !important;
    gap: 10px !important;
    border-radius: 23px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-topbar,
  html body main.app-shell .full-memory-capsule .memory-capsule-topbar {
    top: -10px !important;
    margin: -10px -10px 0 !important;
    padding: 8px 10px 7px !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;
    min-height: 150px !important;
    padding: 17px !important;
    gap: 11px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-title-block h2,
  html body main.app-shell .full-memory-capsule .memory-capsule-title-block h2 {
    font-size: clamp(1.65rem, 8vw, 2.3rem) !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-date-block,
  html body main.app-shell .full-memory-capsule .memory-capsule-date-block {
    justify-self: start !important;
    width: fit-content !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
  }

  html body .app-shell .full-memory-capsule .sheet-photo-gallery,
  html body main.app-shell .full-memory-capsule .sheet-photo-gallery {
    gap: 6px !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;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-action-dock,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-dock {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 8px !important;
    gap: 7px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-action-group,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-group {
    padding: 7px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-route-choice,
  html body main.app-shell .full-memory-capsule .memory-capsule-route-choice,
  html body .app-shell .full-memory-capsule .memory-capsule-action-pill,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-pill {
    min-height: 50px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-action-copy small,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-copy small {
    display: none !important;
  }
}

@media (max-width: 390px) {
  html body .app-shell .full-memory-capsule .memory-capsule-action-pill,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-pill {
    grid-template-columns: 15px minmax(0, auto) !important;
    padding-inline: 5px !important;
    font-size: 0.64rem !important;
  }
}

html body .app-shell .full-memory-capsule .memory-capsule-action-dock .memory-capsule-route-selector .memory-capsule-route-choice,
html body main.app-shell .full-memory-capsule .memory-capsule-action-dock .memory-capsule-route-selector .memory-capsule-route-choice {
  min-height: 54px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-action-dock .memory-capsule-memory-controls .memory-capsule-action-pill,
html body main.app-shell .full-memory-capsule .memory-capsule-action-dock .memory-capsule-memory-controls .memory-capsule-action-pill {
  min-height: 46px !important;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body .app-shell .full-memory-capsule .memory-capsule-action-dock .memory-capsule-route-selector .memory-capsule-route-choice,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-dock .memory-capsule-route-selector .memory-capsule-route-choice {
    min-height: 50px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-action-dock .memory-capsule-memory-controls .memory-capsule-action-pill,
  html body main.app-shell .full-memory-capsule .memory-capsule-action-dock .memory-capsule-memory-controls .memory-capsule-action-pill {
    min-height: 44px !important;
  }
}
