.notification-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--violet);
  color: white;
  font-size: 8px;
  line-height: 1;
}
.notification-bell {
  position: relative;
  text-decoration: none;
}
.notification-bell > span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--white);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  font-size: 7px;
  font-weight: 800;
}
.notification-page {
  max-width: 980px;
}
.notification-error {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid #edb7b0;
  border-radius: 11px;
  background: #fff0ed;
  color: #9d3d31;
  font-size: 10px;
}
.notification-list {
  display: grid;
  gap: 12px;
}
.notification-card {
  min-height: 132px;
  padding: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.notification-card.notification-unread {
  border-color: #c9c3ff;
  box-shadow: 0 10px 28px rgba(62, 49, 158, 0.07);
}
.notification-card.notification-high {
  border-left: 4px solid var(--red);
}
.notification-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet);
}
.notification-high .notification-icon {
  background: #fff0ed;
  color: var(--red);
}
.notification-copy {
  min-width: 0;
}
.notification-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.notification-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.2;
}
.notification-heading time {
  flex: none;
  color: #8b8d84;
  font-size: 8px;
}
.notification-copy p {
  margin: 8px 0 12px;
  color: #686a62;
  font-size: 10px;
  line-height: 1.55;
}
.notification-meta {
  display: flex;
  gap: 8px;
  color: #85877e;
  font-size: 8px;
}
.notification-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--paper);
}
.notification-unread .notification-meta span:first-child {
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 800;
}
.notification-actions {
  min-width: 118px;
  display: grid;
  gap: 7px;
}
.notification-actions .button {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .notification-card {
    grid-template-columns: 38px 1fr;
  }
  .notification-icon {
    width: 38px;
    height: 38px;
  }
  .notification-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .notification-heading {
    display: grid;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .notification-card {
    padding: 15px;
  }
  .notification-actions {
    grid-template-columns: 1fr;
  }
  .notification-heading h2 {
    font-size: 17px;
  }
}
