/* Shared activity notifications */
.notification-actions { padding: 12px; background: #f5f9fb; border-bottom: 1px solid #dce6eb; }
.notification-actions h3, .notification-section-title { margin: 0 0 8px; color: #647b8c; font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.notification-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px 4px; }
.notification-section-title small { font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.notification-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 12px; border: 1px solid #dce6eb; border-radius: 8px; color: var(--navy); background: #fff; text-decoration: none; }
.notification-action + .notification-action { margin-top: 8px; }
.notification-action > span:first-child { display: grid; gap: 3px; min-width: 0; }
.notification-action strong { font-size: 13px; }
.notification-action small { font-size: 11px; color: #647b8c; }
.notification-action svg { width: 18px; flex: 0 0 18px; color: #087f79; }
.notification-action-count { min-width: 25px; padding: 4px 7px; border-radius: 7px; background: #e8f7f5; color: #087f79; font-size: 12px; font-weight: 850; text-align: center; }
.notification-group { border-bottom: 1px solid #e3ebef; }
.notification-group summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px; cursor: pointer; list-style: none; }
.notification-group summary::-webkit-details-marker { display: none; }
.notification-group summary > svg { width: 18px; height: 18px; flex: 0 0 18px; color: #567185; }
.notification-group summary strong { flex: 1; min-width: 0; font-size: 13px; }
.notification-group summary span { color: #647b8c; font-size: 11px; white-space: nowrap; }
.notification-group summary::after { content: "›"; font-size: 22px; color: #647b8c; }
.notification-group[open] summary::after { transform: rotate(90deg); }
.notification-group summary:hover, .notification-group[open] summary { background: #f5f9fb; }
.notification-group summary:focus-visible, .notification-action:focus-visible { outline: 2px solid #087f79; outline-offset: -2px; }
.notification-status { padding: 8px 12px; color: #835510; background: #fff7e5; font-size: 12px; }
.notification-retry { padding: 6px; border: 0; background: transparent; color: #087f79; font-size: 12px; font-weight: 800; cursor: pointer; }
.notification-center-wrap {
  position: relative;
  flex: 0 0 auto;
}

.notification-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(20, 58, 86, 0.16);
  border-radius: 7px;
  padding: 0;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
}

.notification-button:hover,
.notification-button:focus-visible,
.notification-button[aria-expanded="true"] {
  border-color: rgba(24, 189, 181, 0.52);
  background: #effcfb;
}

.notification-button svg {
  width: 20px;
  height: 20px;
}

.notification-button.has-unread svg {
  fill: rgba(24, 189, 181, 0.18);
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 5px;
  color: #fff;
  background: #d71946;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid rgba(20, 58, 86, 0.1);
  padding: 10px 12px;
}

.notification-panel-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
}

.notification-panel-head button,
.notification-empty button {
  border: 0;
  padding: 5px;
  color: #087f79;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.notification-list {
  max-height: min(566px, calc(100vh - 146px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 8px;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(20, 58, 86, 0.08);
  border-radius: 0;
  padding: 11px 12px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.notification-item:hover,
.notification-item:focus-visible {
  background: #f5fbfc;
}

.notification-item.is-unread {
  background: #effcfb;
}

.notification-item.needs-attention {
  box-shadow: inset 3px 0 0 #e59a13;
}

.notification-item-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #0b726e;
  background: rgba(24, 189, 181, 0.13);
}

.notification-item-icon svg {
  width: 17px;
  height: 17px;
}

.notification-item-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-item-copy strong,
.notification-item-copy span,
.notification-item-copy small {
  overflow-wrap: anywhere;
}

.notification-item-copy strong {
  color: var(--navy);
  font-size: 13px;
  line-height: 1.25;
}

.notification-item-copy span {
  display: -webkit-box;
  overflow: hidden;
  color: #536b7d;
  font-size: 12px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-item-copy small {
  color: #7b8d9a;
  font-size: 10px;
  font-weight: 750;
}

.notification-unread-dot {
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0daaa3;
}

.notification-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 150px;
  padding: 24px;
  color: #718493;
  text-align: center;
}

.notification-empty svg {
  width: 23px;
  height: 23px;
}

.notification-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .notification-list {
    max-height: calc(100dvh - max(130px, calc(var(--safe-top) + 120px)) - var(--safe-bottom));
  }
}
