.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notification-main {
  padding-top: 16px;
  padding-bottom: 36px;
}

.notification-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.notification-title-row h1 {
  margin: 0;
  color: #1e3448;
  font-size: 28px;
  line-height: 1.25;
}

.notification-title-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.notification-read-all {
  min-height: 34px;
  padding: 0 13px;
  color: #315779;
  background: #fff;
  border: 1px solid #cbd8e5;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
}

.notification-read-all:hover:not(:disabled) {
  border-color: #99b5d1;
  background: #f8fbfe;
}

.notification-read-all:disabled {
  color: #607383;
  background: #f6f8fa;
  cursor: default;
}

.notification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 16px;
  align-items: start;
}

.notification-card {
  overflow: hidden;
}

.notification-toolbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.notification-filter {
  display: flex;
  gap: 3px;
}

.notification-filter button {
  min-height: 32px;
  padding: 0 12px;
  color: #526779;
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 13px;
}

.notification-filter button.active {
  color: #1f4f91;
  background: #eef5ff;
  font-weight: 600;
}

.notification-toolbar > span {
  color: var(--muted);
  font-size: 12px;
}

.notification-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 4px 4px;
}

.notification-item {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  color: inherit;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

.notification-item:last-child {
  border-bottom: 0;
}

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

.notification-item.unread {
  background: #f8fbff;
}

.notification-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  color: #315d8f;
  background: #e7f0fb;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  place-items: center;
}

.notification-avatar.system {
  color: #5b6170;
  background: #eef1f4;
}

.notification-item-copy {
  min-width: 0;
}

.notification-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.notification-item-head strong {
  color: #273e52;
  font-size: 13px;
  font-weight: 600;
}

.notification-kind {
  padding: 1px 5px;
  color: #315d8f;
  background: #edf4fc;
  border: 1px solid #d7e6f6;
  border-radius: 2px;
  font-size: 11px;
  line-height: 17px;
}

.notification-kind.moderation {
  color: #75570f;
  background: #fff8e5;
  border-color: #edddb2;
}

.notification-message {
  margin: 6px 0 0;
  overflow: hidden;
  color: #526779;
  font-size: 12px;
  line-height: 1.65;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.notification-item-state {
  display: flex;
  min-width: 48px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 2px;
}

.notification-unread-dot {
  width: 7px;
  height: 7px;
  background: #d94b34;
  border-radius: 50%;
}

.notification-read-action {
  padding: 4px 6px;
  color: #4e6980;
  background: #fff;
  border: 1px solid #d9e3ec;
  border-radius: 2px;
  font-size: 11px;
}

.notification-read-action:hover {
  border-color: #a9bed2;
}

.notification-loading {
  min-height: 270px;
  padding: 22px 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.notification-loading span {
  display: block;
  width: 100%;
  height: 68px;
  margin-bottom: 9px;
  background: #f0f4f7;
  border-radius: 3px;
}

.notification-login,
.notification-error,
.notification-empty {
  min-height: 310px;
  padding: 70px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 4px 4px;
  text-align: center;
}

.notification-login strong,
.notification-error strong,
.notification-empty strong {
  display: block;
  color: #2b4358;
  font-size: 16px;
}

.notification-login p,
.notification-error p,
.notification-empty p {
  margin: 8px auto 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.notification-primary-link,
.notification-error button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 3px;
  font-size: 12px;
}

.notification-sidebar {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  align-self: stretch;
}

.notification-side-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.notification-side-card h2 {
  margin: 0;
  padding: 12px 14px;
  color: #253b4f;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}

.notification-counts {
  margin: 0;
  padding: 5px 14px 9px;
}

.notification-counts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f4f7;
  font-size: 12px;
}

.notification-counts div:last-child {
  border-bottom: 0;
}

.notification-counts dt {
  color: var(--muted);
}

.notification-counts dd {
  margin: 0;
  color: #334c62;
  font-size: 16px;
  font-weight: 600;
}

.notification-side-note p {
  margin: 0;
  padding: 13px 14px 15px;
  color: #526779;
  font-size: 12px;
  line-height: 1.75;
}

.notification-main .profile-back-link {
  align-self: end;
}

@media (max-width: 800px) {
  .notification-layout {
    grid-template-columns: minmax(0, 1fr) 244px;
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .notification-main {
    padding-top: 7px;
    padding-bottom: 22px;
  }

  .notification-title-row {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 9px;
  }

  .notification-title-row h1 {
    font-size: 23px;
  }

  .notification-title-row p {
    max-width: 238px;
    font-size: 12px;
  }

  .notification-read-all {
    min-height: 32px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .notification-layout {
    display: block;
  }

  .notification-toolbar {
    min-height: 48px;
    padding-inline: 10px;
  }

  .notification-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    padding: 13px 11px;
  }

  .notification-avatar {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .notification-item-state {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    padding-top: 0;
  }

  .notification-message {
    white-space: normal;
  }

  .notification-sidebar {
    display: block;
    margin-top: 8px;
  }

  .notification-side-card {
    margin-bottom: 8px;
  }
}
