#member-notifications {
  max-width: 760px;
  margin-inline: auto;
}

#member-notifications-drawer {
  position: fixed;
  --notifications-top: calc(var(--header-height) + env(safe-area-inset-top));
  inset: var(--notifications-top) 0 0 auto;
  z-index: 18;
  box-sizing: border-box;
  width: min(420px, 100%);
  max-width: none;
  height: calc(100dvh - var(--notifications-top));
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-inline-start: 1px solid var(--line);
  border-radius: 0;
}

#member-notifications-drawer .notifications-view { padding: 20px 24px; }
.notifications-header, .notifications-actions, .notifications-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
}
.notifications-header h1 { margin: 0; }
#member-notifications-drawer .notifications-header h1 { font-size: 1.25rem; }
.notifications-controls { margin-top: var(--space-4, 16px); }
.notifications-controls #member-notifications-read {
  padding: 6px 0;
  border: 0;
  color: var(--link);
  background: transparent;
  text-align: left;
  font-size: .8125rem;
  font-weight: 600;
}
.notifications-controls #member-notifications-read:not(:disabled):hover { text-decoration: underline; }
.notifications-actions :is(a,button) {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
}
.notifications-actions :is(a,button):hover { background: var(--selection); }
.notifications-actions svg { width: 20px; height: 20px; }
#member-notifications .notifications-close { display: none; }

#member-notifications-list { display: block; margin-top: var(--space-3, 12px); }
#member-notifications-status:empty { display: none; }
#member-notifications-list .notification-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) 18px;
  align-items: start;
  gap: var(--space-3, 12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
#member-notifications-list a.notification-row:hover { background: var(--raised); }
.notification-row > svg:first-child { width: 20px; height: 20px; color: var(--muted); }
.notification-row > svg:last-of-type:not(:first-child) {
  align-self: center;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.notification-copy { display: grid; gap: 4px; overflow-wrap: anywhere; }
.notification-copy strong { font-weight: 600; }
.notification-unread .notification-copy strong { font-weight: 750; }
.notification-copy :is(small,time) { color: var(--muted); font-size: .8125rem; }
.notification-copy time { font-size: .75rem; }
.notification-unread .notification-row::after {
  position: absolute;
  inset: 14px 5px auto auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action-fill);
  content: "";
}
.notifications-empty { padding-block: 12px; color: var(--muted); }
.notification-row .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
