/* MyMappi phase-one notification center */

html body main.app-shell #notificationButton::after {
  display: none !important;
  content: none !important;
}

html body main.app-shell #notificationButton .notification-unread-count {
  position: absolute !important;
  top: 2px !important;
  right: 1px !important;
  z-index: 3 !important;
  display: inline-grid !important;
  box-sizing: border-box !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  place-items: center !important;
  border: 1.5px solid #07313a !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 0.55rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  background: #f2555f !important;
  box-shadow: 0 3px 9px rgba(242, 85, 95, 0.32) !important;
  pointer-events: none !important;
}

html body main.app-shell #notificationButton .notification-unread-count[hidden] {
  display: none !important;
}

html body main.app-shell .notification-hub {
  position: fixed !important;
  top: calc(env(safe-area-inset-top) + 76px) !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  left: auto !important;
  z-index: 1920 !important;
  box-sizing: border-box !important;
  width: min(390px, calc(100vw - 36px)) !important;
  max-height: min(72dvh, 620px) !important;
  padding: 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(151, 224, 211, 0.18) !important;
  border-radius: 24px !important;
  color: #f7fffc !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(86, 215, 184, 0.13), transparent 34%),
    linear-gradient(155deg, rgba(7, 42, 49, 0.985), rgba(5, 30, 38, 0.985)) !important;
  box-shadow:
    0 28px 70px rgba(1, 21, 27, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(24px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(125%) !important;
}

html body main.app-shell .notification-hub.open {
  display: grid !important;
  gap: 12px !important;
}

html body main.app-shell .notification-heading {
  display: flex !important;
  min-width: 0 !important;
  padding: 0 1px 3px !important;
  align-items: center !important;
  gap: 11px !important;
}

html body main.app-shell .notification-heading::before {
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-size: contain !important;
  box-shadow: none !important;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2)) !important;
}

html body main.app-shell .notification-heading > div {
  display: grid !important;
  min-width: 0 !important;
  gap: 1px !important;
  margin-right: auto !important;
}

html body main.app-shell .notification-heading > div > span {
  color: #87e2c9 !important;
  font-size: 0.65rem !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.09em !important;
}

html body main.app-shell .notification-heading > div > strong {
  color: #f8fffd !important;
  font-size: 1.08rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}

html body main.app-shell .notification-mark-all {
  flex: 0 0 auto !important;
  min-height: 30px !important;
  padding: 5px 9px !important;
  border: 1px solid rgba(135, 226, 201, 0.2) !important;
  border-radius: 999px !important;
  color: #b8f4e3 !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  background: rgba(135, 226, 201, 0.08) !important;
  box-shadow: none !important;
}

html body main.app-shell .notification-mark-all:hover {
  border-color: rgba(135, 226, 201, 0.36) !important;
  background: rgba(135, 226, 201, 0.14) !important;
}

html body main.app-shell .notification-mark-all[hidden] {
  display: none !important;
}

html body main.app-shell .notification-list {
  display: grid !important;
  min-height: 0 !important;
  max-height: min(52dvh, 455px) !important;
  gap: 8px !important;
  padding-right: 2px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-color: rgba(135, 226, 201, 0.34) transparent !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch !important;
}

html body main.app-shell .notification-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 7px !important;
  gap: 11px !important;
  width: 100% !important;
  min-height: 70px !important;
  padding: 12px !important;
  align-items: center !important;
  border: 1px solid rgba(174, 226, 214, 0.13) !important;
  border-radius: 17px !important;
  color: #f9fffd !important;
  text-align: left !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

html body main.app-shell .notification-card:hover {
  border-color: rgba(174, 226, 214, 0.24) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

html body main.app-shell .notification-card.is-unread {
  border-color: rgba(126, 229, 199, 0.24) !important;
  background: linear-gradient(120deg, rgba(126, 229, 199, 0.115), rgba(255, 255, 255, 0.065)) !important;
}

html body main.app-shell .notification-card.is-read {
  opacity: 0.72 !important;
}

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

html body main.app-shell .notification-card-topline {
  display: flex !important;
  min-width: 0 !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

html body main.app-shell .notification-card-topline strong {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #f9fffd !important;
  font-size: 0.86rem !important;
  font-weight: 820 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body main.app-shell .notification-card-topline time {
  flex: 0 0 auto !important;
  color: rgba(207, 238, 232, 0.54) !important;
  font-size: 0.63rem !important;
  font-weight: 750 !important;
}

html body main.app-shell .notification-card-copy > small {
  display: -webkit-box !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: rgba(225, 242, 238, 0.7) !important;
  font-size: 0.73rem !important;
  line-height: 1.38 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body main.app-shell .notification-icon {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 14px !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html body main.app-shell .notification-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.2 !important;
}

html body main.app-shell .notification-icon.update {
  background: linear-gradient(145deg, #2fb99d, #217f8c) !important;
}

html body main.app-shell .notification-icon.account {
  background: linear-gradient(145deg, #3197b6, #2b698c) !important;
}

html body main.app-shell .notification-icon.anniversary {
  background: linear-gradient(145deg, #ee7b68, #cf4f65) !important;
}

html body main.app-shell .notification-icon.sync {
  background: linear-gradient(145deg, #e1a24f, #ca6e49) !important;
}

html body main.app-shell .notification-icon.story {
  background: linear-gradient(145deg, #ec6a78, #be537f) !important;
}

html body main.app-shell .notification-card-unread {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #f66568 !important;
  box-shadow: 0 0 0 3px rgba(246, 101, 104, 0.12) !important;
}

html body main.app-shell .notification-empty-state {
  display: grid !important;
  min-height: 146px !important;
  padding: 24px 18px !important;
  place-items: center !important;
  align-content: center !important;
  gap: 6px !important;
  border: 1px dashed rgba(159, 224, 210, 0.2) !important;
  border-radius: 18px !important;
  text-align: center !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

html body main.app-shell .notification-empty-state > svg {
  width: 25px !important;
  height: 25px !important;
  margin-bottom: 3px !important;
  color: #81dfc6 !important;
}

html body main.app-shell .notification-empty-state strong {
  color: #f8fffd !important;
  font-size: 0.9rem !important;
}

html body main.app-shell .notification-empty-state small {
  color: rgba(222, 241, 237, 0.62) !important;
  font-size: 0.74rem !important;
}

html body main.app-shell .notification-private-note {
  display: flex !important;
  min-height: 22px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  color: rgba(211, 239, 233, 0.58) !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
}

html body main.app-shell .notification-private-note svg {
  width: 12px !important;
  height: 12px !important;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body main.app-shell .notification-hub {
    top: calc(max(8px, env(safe-area-inset-top)) + 58px) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 142px - env(safe-area-inset-bottom)) !important;
    padding: 14px !important;
    border-radius: 21px !important;
  }

  html body main.app-shell .notification-list {
    max-height: calc(100dvh - 268px - env(safe-area-inset-bottom)) !important;
  }

  html body main.app-shell .notification-card {
    min-height: 68px !important;
    padding: 11px !important;
  }

  html body main.app-shell .notification-mark-all {
    min-height: 28px !important;
    padding: 4px 8px !important;
    font-size: 0.64rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body main.app-shell .notification-hub,
  html body main.app-shell .notification-card {
    animation: none !important;
    transition: none !important;
  }
}
