.notification-header {
  position: relative;
  display: flex;
  align-items: center;
}
.notification-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.notification-bell svg {
  width: 23px;
  height: 23px;
}
.notification-bell:hover,
.notification-bell[aria-expanded='true'] {
  background: var(--hover);
  border-color: var(--border);
  color: var(--lime);
}
.notification-badge {
  position: absolute;
  right: -4px;
  top: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--primary-bg);
  color: var(--primary-ink);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--header);
}
.notification-badge[hidden],
.notification-panel[hidden] {
  display: none;
}
.notification-panel {
  position: absolute;
  right: -50px;
  top: calc(100% + 20px);
  width: 430px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 50px #0005;
  z-index: 60;
  overflow: hidden;
}
.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  gap: 15px;
}
.notification-panel-head h2 {
  font-size: 19px;
  margin: 0;
}
.notification-panel-head .text-link {
  font-size: 13px;
}
.notification-recent {
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.notification-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  position: relative;
}
.notification-row:last-child {
  border-bottom: 0;
}
.notification-row.unread {
  background: color-mix(in srgb, var(--lime) 5%, var(--panel));
}
.notification-row.unread:before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--lime);
}
.notification-link {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 10px 20px 22px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
  line-height: 1.8;
}
.notification-link:hover {
  background: var(--hover);
}
.notification-kind {
  width: 35px;
  height: 35px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--panel2);
  border-radius: 10px;
  color: var(--lime);
  margin-top: 2px;
}
.notification-kind svg {
  width: 19px;
  height: 19px;
}
.notification-copy {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: anywhere;
}
.notification-copy strong {
  font-weight: 600;
}
.notification-copy time {
  font-size: 12px;
  color: var(--muted);
}
.notification-read {
  color: var(--muted);
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  flex: none;
  margin-right: 12px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.notification-read svg {
  width: 17px;
  height: 17px;
}
.notification-read:hover {
  background: var(--panel2);
  color: var(--lime);
}
.notification-panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 17px 22px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.notification-panel-footer:hover {
  background: var(--hover);
}
.notification-empty {
  padding: 34px 25px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 13px;
}
.notification-empty > svg {
  width: 33px;
  height: 33px;
  color: var(--muted);
}
.notification-empty strong {
  font-size: 16px;
}
.notification-empty p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
  max-width: 325px;
}
.notification-loading,
.notification-error {
  padding: 22px;
  color: var(--muted);
  font-size: 14px;
}
.notification-error {
  color: var(--pink);
}
.notifications-page,
.activity-detail-page {
  max-width: 1020px;
}
.notifications-page h1,
.activity-detail-page h1 {
  font-size: 34px;
  margin: 12px 0 28px;
}
.notification-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 20px;
}
.notification-page-toolbar [role='group'] {
  display: flex;
  gap: 10px;
}
.notification-page-toolbar > .text-link {
  font-size: 14px;
}
.notification-page-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.notification-page-list .notification-copy {
  font-size: 16px;
}
.notification-page-list .notification-copy time {
  font-size: 13px;
}
.notification-page-list .notification-link {
  padding: 23px 20px;
}
.notification-more {
  margin: 24px auto 0;
  display: block;
}
.notification-follow-private {
  padding: 30px;
  margin-top: 24px;
}
.notification-follow-private h1 {
  font-size: 25px;
  margin-bottom: 15px;
}
.notification-follow-private p {
  color: var(--muted);
}
.notification-focus {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
  border-radius: 6px;
}
.activity-show-all-comments {
  margin-bottom: 14px;
  font-size: 13px;
}
.notification-bell:focus-visible,
.notification-read:focus-visible,
.notification-link:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -3px;
}
html[data-theme='light'] .notification-panel {
  box-shadow: 0 18px 50px #28283f22;
}
