
.notification-icon .repost-icon path {
  stroke: var(--highlight-color);
}

.notification-icon.verified-icon svg {
  color: var(--highlight-color);
}

.notification-icon.unverified-icon svg {
  color: var(--text-color-muted);
}

.notification-icon .contacts-icon {
  color: var(--highlight-color);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-avatars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  align-items: center;
}

.notification-text .automated-account-badge {
  margin-left: 4px;
}

.notification-more {
  width: 24px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-color-muted);
}

.notification-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-color);
}

.notification-text strong {
  font-weight: 600;
}

.notification-others-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (hover: hover) {
  .notification-others-button:hover {
    text-decoration: underline;
  }
}

.notification-time {
  color: var(--text-color-muted);
  font-weight: normal;
}

.notification-preview {
  margin-top: 5px;
  font-size: 14px;
  color: var(--text-color-muted);
}

.notification-preview-text {
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 8px;
}

.notification-preview-text:last-child {
  margin-bottom: 0;
}

.notification-preview-text.unavailable-post {
  color: var(--text-color-muted);
  font-style: italic;
}

.notification-preview-images {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  width: fit-content;
}

.notification-preview-images:first-child {
  margin-top: 0;
}

/* Single image */
.notification-preview-images:has(.notification-preview-image:only-child) {
  grid-template-columns: 1fr;
}

/* Two images */
.notification-preview-images:has(
  .notification-preview-image:nth-child(2):last-child
) {
  grid-template-columns: 1fr 1fr;
}

/* Three or four images */
.notification-preview-images:has(.notification-preview-image:nth-child(3)) {
  grid-template-columns: 1fr 1fr;
}

.notification-preview-image {
  height: 100px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--image-preview-border-radius);
  background-color: var(--generic-border-color);
  border: var(--hair) solid var(--post-border-color);
}

.notification-preview-video {
  position: relative;
  display: inline-block;
  height: 100px;
  aspect-ratio: 1;
  margin-top: 8px;
}

.notification-preview-video:first-child {
  margin-top: 0;
}

.notification-preview-video img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: var(--image-preview-border-radius);
  background-color: var(--generic-border-color);
  border: var(--hair) solid var(--post-border-color);
}

.video-preview-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background-color: var(--overlay-color-medium);
  border-radius: var(--circular-button-border-radius);
}

.video-preview-play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--overlay-text-color);
}

.notification-reply-wrapper {
  border-bottom: var(--hair) solid var(--post-border-color);
}

.notification-reply-wrapper.unread {
  background-color: var(--highlight-color-tint);
}

.notification-profile-link {
  font-weight: 600;
}

.chat-main {
  padding: 0;
}

.convo-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: var(--hair) solid var(--post-border-color);
  transition: background-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}

@media (hover: hover) {
  .convo-item:hover {
    background-color: var(--post-hover-color);
  }
}

.convo-item.unread {
  background-color: var(--highlight-color-tint);
}

@media (hover: hover) {
  .convo-item.unread:hover {
    background-color: var(--highlight-color-tint-hover);
  }
}

.convo-avatar {
  flex-shrink: 0;
}

.convo-avatar .avatar-image-frame,
.convo-avatar .avatar-placeholder {
  width: var(--avatar-size-convo);
  height: var(--avatar-size-convo);
}

.avatar-group {
  position: relative;
  width: var(--avatar-size-convo);
  height: var(--avatar-size-convo);
}

.avatar-group > .avatar-placeholder {
  width: 100%;
  height: 100%;
}

.avatar-group-item {
  position: absolute;
}

.avatar-group-item .avatar,
.avatar-group-item .avatar-image-frame {
  display: block;
  width: 100%;
  height: 100%;
}

.avatar-group-2 .avatar-group-item {
  width: 63.3%;
  height: 63.3%;
}

.avatar-group-2 .avatar-group-item:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 1;
}

.avatar-group-2 .avatar-group-item:nth-child(2) {
  top: 35%;
  left: 35%;
}

.avatar-group-2 .avatar-group-item .avatar-image-frame {
  border: 2px solid var(--background-color);
}

.avatar-group-3 .avatar-group-item:nth-child(1) {
  width: 56.7%;
  height: 56.7%;
  top: 0;
  left: 0;
}

.avatar-group-3 .avatar-group-item:nth-child(2) {
  width: 46.7%;
  height: 46.7%;
  top: 51.7%;
  left: 31.7%;
}

.avatar-group-3 .avatar-group-item:nth-child(3) {
  width: 38.3%;
  height: 38.3%;
  top: 15%;
  left: 59.2%;
}

.avatar-group-4 .avatar-group-item:nth-child(1) {
  width: 56.7%;
  height: 56.7%;
  top: 0;
  left: 0;
}

.avatar-group-4 .avatar-group-item:nth-child(2) {
  width: 46.7%;
  height: 46.7%;
  top: 40.8%;
  left: 50%;
}

.avatar-group-4 .avatar-group-item:nth-child(3) {
  width: 35%;
  height: 35%;
  top: 61.7%;
  left: 11.7%;
}

.avatar-group-4 .avatar-group-item:nth-child(4) {
  width: 26.7%;
  height: 26.7%;
  top: 7.5%;
  left: 60%;
}

