/* Notification centre: header bell (index.html) and the /notifications page (pages/notifications.js). */
#notify-button {
  position: relative;
}
.notify-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid white;
  border-radius: 999px;
  background: #e5484d;
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}
#notify-menu {
  width: 360px;
  max-width: calc(100vw - 24px);
  padding: 8px;
}
.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.notify-head button {
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  color: var(--blue);
  font-size: 13px;
}
.notify-list {
  max-height: min(420px, calc(100dvh - 180px));
  overflow-y: auto;
}
.notify-item,
.pop a.notify-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 10px;
  padding: 12px 14px 12px 24px;
  border-radius: 12px;
  color: #202437;
  text-decoration: none;
  font-size: 14px;
}
.notify-item:hover {
  background: #f5f6ff;
}
.notify-item.unread::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.notify-item.unread .notify-text {
  font-weight: 600;
}
.notify-item .notify-type {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 7px;
  background: #eef0fb;
  color: #3846b8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.notify-item .notify-type[data-type='review'],
.notify-item .notify-type[data-type='award'] {
  background: #fff1d6;
  color: #8a4b00;
}
.notify-item .notify-type[data-type='reply'],
.notify-item .notify-type[data-type='quote'],
.notify-item .notify-type[data-type='mention'] {
  background: #e3f5f1;
  color: #146c5f;
}
.notify-item .notify-type[data-type='report'],
.notify-item .notify-type[data-type='system'] {
  background: #f0f1f5;
  color: #4b5370;
}
.notify-item .notify-text {
  color: #202437;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.notify-item time {
  grid-column: 2;
  color: #646e85;
  font-size: 12px;
}
.notify-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.pop a.notify-all {
  justify-content: center;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}
.notify-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.notify-bar > button {
  padding: 9px 15px;
  font-size: 14px;
  white-space: nowrap;
}
.notify-tabs {
  display: flex;
  gap: 6px;
}
.notify-tabs a {
  padding: 10px 17px;
  border-radius: 12px;
  color: #202437;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.notify-tabs a[aria-current='page'] {
  background: #e8ebfc;
  color: #4758d9;
}
.notify-tabs [data-unread] {
  margin-left: 4px;
  color: #e5484d;
}
.notify-page {
  padding: 8px;
}
.notify-page .notify-item {
  padding: 16px 18px 16px 28px;
}
.notify-page .notify-item.unread::before {
  left: 12px;
  top: 23px;
}
.notify-page .notify-item + .notify-item {
  margin-top: 2px;
}
.notify-page .load-more {
  margin: 8px auto;
}
@media (max-width: 720px) {
  .notify {
    position: static;
  }
  #notify-menu {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
}
