/* Build 736: recipient reporting, sender blocking, and blocked-people controls. */

html body .memory-share-cover-option {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 70px !important;
  padding: 11px 13px !important;
  gap: 10px !important;
  border: 1px solid rgba(18, 126, 106, 0.13) !important;
  border-radius: 18px !important;
  color: #214f55 !important;
  background: rgba(233, 249, 242, 0.76) !important;
  cursor: pointer !important;
}

html body .memory-share-cover-option[hidden] {
  display: none !important;
}

html body .memory-share-cover-option > input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
}

html body .memory-share-cover-check {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(18, 126, 106, 0.15) !important;
  border-radius: 14px !important;
  color: #35706c !important;
  background: rgba(255, 255, 255, 0.9) !important;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease !important;
}

html body .memory-share-cover-check svg {
  width: 19px !important;
  height: 19px !important;
}

html body .memory-share-cover-option > input:checked + .memory-share-cover-check {
  color: #fff !important;
  background: linear-gradient(135deg, #0a7d73, #24ad7b) !important;
  transform: scale(1.03) !important;
}

html body .memory-share-cover-option > input:focus-visible + .memory-share-cover-check {
  outline: 3px solid rgba(35, 164, 137, 0.24) !important;
  outline-offset: 3px !important;
}

html body .memory-share-cover-option > span:last-child {
  display: grid !important;
  min-width: 0 !important;
  gap: 3px !important;
}

html body .memory-share-cover-option strong {
  font-size: 0.78rem !important;
  font-weight: 820 !important;
}

html body .memory-share-cover-option small {
  color: #668381 !important;
  font-size: 0.66rem !important;
  font-weight: 610 !important;
  line-height: 1.38 !important;
}

html body .memory-share-actions button[hidden] {
  display: none !important;
}

html body .memory-share-photo-retry {
  grid-column: 2 !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  color: #fff !important;
  background: linear-gradient(135deg, #075b64, #0a8678 62%, #28aa76) !important;
  box-shadow: 0 15px 28px rgba(7, 108, 94, 0.22), inset 0 1px rgba(255, 255, 255, 0.18) !important;
}

html body .received-memory-safety {
  box-sizing: border-box !important;
  display: grid !important;
  padding: 12px !important;
  gap: 10px !important;
  border: 1px solid rgba(13, 103, 97, 0.12) !important;
  border-radius: 18px !important;
  background: rgba(242, 250, 247, 0.9) !important;
}

html body .received-memory-safety[hidden] {
  display: none !important;
}

html body .received-memory-safety > p {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start !important;
  margin: 0 !important;
  gap: 8px !important;
  color: #577475 !important;
  font-size: 0.7rem !important;
  font-weight: 620 !important;
  line-height: 1.42 !important;
}

html body .received-memory-safety > p svg {
  width: 18px !important;
  height: 18px !important;
  color: #167969 !important;
}

html body .received-memory-safety > div {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 9px !important;
}

html body .received-memory-safety button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  gap: 7px !important;
  border: 1px solid rgba(18, 85, 85, 0.14) !important;
  border-radius: 14px !important;
  color: #335e62 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  font: inherit !important;
  font-size: 0.76rem !important;
  font-weight: 790 !important;
  cursor: pointer !important;
}

html body .received-memory-safety .received-memory-block {
  color: #8b403b !important;
  border-color: rgba(162, 65, 56, 0.16) !important;
  background: rgba(255, 247, 245, 0.96) !important;
}

html body .received-memory-safety button:disabled {
  cursor: default !important;
  opacity: 0.62 !important;
}

html body .received-memory-safety button[hidden] {
  display: none !important;
}

html body :is(.memory-share-safety-dialog, .blocked-people-dialog) {
  box-sizing: border-box !important;
  width: min(540px, calc(100vw - 28px)) !important;
  max-width: calc(100vw - 28px) !important;
  max-height: calc(100dvh - 28px) !important;
  margin: auto !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 30px !important;
  color: #123f45 !important;
  background: transparent !important;
}

html body :is(.memory-share-safety-dialog, .blocked-people-dialog)::backdrop {
  background: rgba(2, 25, 34, 0.7) !important;
  -webkit-backdrop-filter: blur(12px) saturate(0.92) !important;
  backdrop-filter: blur(12px) saturate(0.92) !important;
}

html body :is(.memory-share-safety-panel, .blocked-people-panel) {
  position: relative !important;
  box-sizing: border-box !important;
  display: grid !important;
  width: 100% !important;
  max-height: calc(100dvh - 28px) !important;
  padding: clamp(21px, 4vw, 30px) !important;
  gap: 16px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.84) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(78, 204, 167, 0.14), transparent 36%),
    linear-gradient(155deg, rgba(255, 255, 253, 0.995), rgba(238, 249, 245, 0.995)) !important;
  box-shadow: 0 42px 110px rgba(2, 26, 37, 0.36), inset 0 1px rgba(255, 255, 255, 0.96) !important;
}

html body :is(.memory-share-safety-panel, .blocked-people-panel)::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  width: 118px !important;
  height: 3px !important;
  border-radius: 0 0 999px 999px !important;
  background: linear-gradient(90deg, #3db58b, #9be8c8, #5bb9d4) !important;
  transform: translateX(-50%) !important;
}

html body :is(.memory-share-safety-heading, .blocked-people-heading) {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .memory-share-safety-heading > span:nth-child(2),
html body .blocked-people-heading > span:nth-child(2) {
  display: grid !important;
  min-width: 0 !important;
  gap: 2px !important;
}

html body :is(.memory-share-safety-heading, .blocked-people-heading) small {
  color: #16806e !important;
  font-size: 0.66rem !important;
  font-weight: 830 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html body :is(.memory-share-safety-heading, .blocked-people-heading) h2 {
  margin: 0 !important;
  color: #0a3842 !important;
  font-size: clamp(1.38rem, 4.8vw, 1.92rem) !important;
  font-weight: 830 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.03 !important;
  text-wrap: balance !important;
}

html body .memory-share-safety-mark {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(16, 126, 106, 0.12) !important;
  border-radius: 15px !important;
  color: #107966 !important;
  background: rgba(218, 247, 235, 0.84) !important;
}

html body .memory-share-safety-mark.is-block {
  color: #9b433d !important;
  border-color: rgba(156, 64, 57, 0.13) !important;
  background: rgba(255, 234, 230, 0.82) !important;
}

html body .memory-share-safety-mark svg {
  width: 20px !important;
  height: 20px !important;
}

html body .memory-share-safety-close {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(7, 74, 79, 0.1) !important;
  border-radius: 50% !important;
  color: #37666b !important;
  background: rgba(255, 255, 255, 0.82) !important;
  cursor: pointer !important;
}

html body .memory-share-safety-summary,
html body .blocked-people-intro {
  margin: 0 !important;
  color: #506f72 !important;
  font-size: 0.84rem !important;
  font-weight: 610 !important;
  line-height: 1.5 !important;
}

html body .memory-share-safety-field {
  display: grid !important;
  gap: 7px !important;
  color: #214f55 !important;
  font-size: 0.78rem !important;
  font-weight: 760 !important;
}

html body .memory-share-safety-field > span {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

html body .memory-share-safety-field > span small {
  color: #809293 !important;
  font-size: 0.68rem !important;
  font-weight: 620 !important;
}

html body .memory-share-safety-field :is(select, textarea) {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(7, 87, 84, 0.15) !important;
  border-radius: 15px !important;
  outline: none !important;
  color: #163f45 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  font: inherit !important;
  font-size: 0.88rem !important;
  font-weight: 620 !important;
  line-height: 1.4 !important;
}

html body .memory-share-safety-field textarea {
  min-height: 106px !important;
  resize: vertical !important;
}

html body .memory-share-safety-field :is(select, textarea):focus {
  border-color: rgba(17, 145, 119, 0.54) !important;
  box-shadow: 0 0 0 4px rgba(45, 181, 144, 0.11) !important;
}

html body .memory-share-safety-assurance {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  align-items: start !important;
  padding: 11px 12px !important;
  gap: 9px !important;
  border: 1px solid rgba(19, 132, 109, 0.11) !important;
  border-radius: 16px !important;
  color: #2b6965 !important;
  background: rgba(220, 247, 236, 0.58) !important;
}

html body .memory-share-safety-assurance > svg {
  width: 18px !important;
  justify-self: center !important;
}

html body .memory-share-safety-assurance > span {
  display: grid !important;
  gap: 2px !important;
}

html body .memory-share-safety-assurance strong {
  font-size: 0.75rem !important;
  font-weight: 810 !important;
}

html body .memory-share-safety-assurance small {
  color: #668481 !important;
  font-size: 0.69rem !important;
  font-weight: 610 !important;
  line-height: 1.4 !important;
}

html body .memory-share-safety-status {
  min-height: 20px !important;
  margin: -3px 0 0 !important;
  color: #267269 !important;
  font-size: 0.76rem !important;
  font-weight: 720 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

html body .memory-share-safety-status.is-error {
  color: #a23e35 !important;
}

html body .memory-share-safety-status.is-success {
  color: #0b7763 !important;
}

html body .memory-share-safety-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr) !important;
  gap: 10px !important;
}

html body .memory-share-safety-actions button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  gap: 8px !important;
  border-radius: 15px !important;
  font: inherit !important;
  font-size: 0.81rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

html body .memory-share-safety-cancel {
  border: 1px solid rgba(7, 78, 80, 0.13) !important;
  color: #46696c !important;
  background: rgba(255, 255, 255, 0.76) !important;
}

html body .memory-share-safety-submit {
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  color: #fff !important;
  background: linear-gradient(135deg, #075b64, #0a8678 62%, #28aa76) !important;
  box-shadow: 0 14px 28px rgba(7, 108, 94, 0.2) !important;
}

html body .memory-share-safety-submit.is-block {
  background: linear-gradient(135deg, #8f3d38, #b45045) !important;
  box-shadow: 0 14px 28px rgba(143, 61, 56, 0.18) !important;
}

html body :is(.memory-share-safety-actions button, .memory-share-safety-close):disabled {
  cursor: wait !important;
  opacity: 0.58 !important;
}

html body .memory-share-block-effects {
  display: grid !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px !important;
  list-style: none !important;
}

html body .memory-share-block-effects li {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: 9px 11px !important;
  gap: 9px !important;
  border: 1px solid rgba(10, 88, 84, 0.09) !important;
  border-radius: 14px !important;
  color: #47686b !important;
  background: rgba(255, 255, 255, 0.67) !important;
  font-size: 0.76rem !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
}

html body .memory-share-block-effects svg {
  width: 18px !important;
  color: #95605a !important;
}

html body .account-menu .account-sharing-safety-button,
html body main.app-shell .account-menu .account-sharing-safety-button {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 54px !important;
  gap: 9px !important;
  text-align: left !important;
}

html body .account-menu .account-sharing-safety-button.hidden,
html body main.app-shell .account-menu .account-sharing-safety-button.hidden {
  display: none !important;
}

html body .account-sharing-safety-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 2px !important;
}

html body .account-sharing-safety-copy strong {
  color: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 790 !important;
}

html body .account-sharing-safety-copy small {
  overflow: hidden !important;
  color: #789091 !important;
  font-size: 0.65rem !important;
  font-weight: 620 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .account-sharing-safety-count {
  display: grid !important;
  place-items: center !important;
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #147a69 !important;
  font-size: 0.66rem !important;
  font-weight: 830 !important;
}

html body .account-sharing-safety-count[hidden] {
  display: none !important;
}

html body .blocked-people-list {
  display: grid !important;
  max-height: min(48dvh, 430px) !important;
  gap: 9px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

html body :is(.blocked-people-loading, .blocked-people-empty) {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  min-height: 170px !important;
  padding: 24px !important;
  gap: 10px !important;
  border: 1px dashed rgba(12, 103, 94, 0.17) !important;
  border-radius: 20px !important;
  color: #587778 !important;
  background: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.78rem !important;
  font-weight: 680 !important;
  text-align: center !important;
}

html body .blocked-people-loading svg {
  width: 26px !important;
  height: 26px !important;
  color: #148170 !important;
  animation: memorySharingSafetySpin 900ms linear infinite !important;
}

html body .blocked-person-row {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 68px !important;
  padding: 10px !important;
  gap: 10px !important;
  border: 1px solid rgba(10, 91, 87, 0.1) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

html body .blocked-person-mark {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  color: #7a5552 !important;
  background: rgba(251, 232, 228, 0.86) !important;
}

html body .blocked-person-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 2px !important;
}

html body .blocked-person-copy strong {
  overflow: hidden !important;
  color: #173f45 !important;
  font-size: 0.82rem !important;
  font-weight: 790 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .blocked-person-copy small {
  color: #789091 !important;
  font-size: 0.66rem !important;
  font-weight: 620 !important;
}

html body .blocked-person-unblock {
  box-sizing: border-box !important;
  min-width: 84px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(10, 111, 97, 0.16) !important;
  border-radius: 13px !important;
  color: #0f7162 !important;
  background: rgba(230, 248, 240, 0.9) !important;
  font: inherit !important;
  font-size: 0.72rem !important;
  font-weight: 790 !important;
  cursor: pointer !important;
}

html body .blocked-person-unblock:disabled {
  cursor: wait !important;
  opacity: 0.58 !important;
}

html body .memory-capsule-report-action {
  color: #4b6164 !important;
}

html body .memory-capsule-report-action > span:first-child {
  color: #8b623e !important;
  background: rgba(250, 235, 211, 0.8) !important;
}

html body .memory-capsule-block-action {
  color: #91443d !important;
}

html body .memory-capsule-block-action > span:first-child {
  color: #a54a42 !important;
  background: rgba(253, 230, 226, 0.84) !important;
}

html body :is(
  .received-memory-safety button,
  .memory-share-safety-actions button,
  .memory-share-safety-close,
  .blocked-person-unblock,
  .account-sharing-safety-button
):focus-visible {
  outline: 3px solid rgba(31, 151, 125, 0.34) !important;
  outline-offset: 2px !important;
}

@keyframes memorySharingSafetySpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
  html body :is(.memory-share-safety-dialog, .blocked-people-dialog) {
    width: min(100% - 20px, 520px) !important;
    max-width: calc(100% - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
  }

  html body :is(.memory-share-safety-panel, .blocked-people-panel) {
    max-height: calc(100dvh - 20px) !important;
    padding: 20px 16px 17px !important;
    gap: 13px !important;
    border-radius: 27px !important;
  }

  html body :is(.memory-share-safety-heading, .blocked-people-heading) {
    grid-template-columns: 42px minmax(0, 1fr) 44px !important;
    gap: 9px !important;
  }

  html body .memory-share-safety-mark {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
  }

  html body .blocked-people-list {
    max-height: min(45dvh, 390px) !important;
  }
}

@media (max-width: 370px) {
  html body :is(.received-memory-safety > div, .memory-share-safety-actions) {
    grid-template-columns: 1fr !important;
  }

  html body .blocked-person-row {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }

  html body .blocked-person-unblock {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .blocked-people-loading svg {
    animation: none !important;
  }
}
