.Chat {
  --background-color: var(--color-background);

  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: 100%;

  &.animate-opacity {
    will-change: opacity;
    transition: opacity .2s ease-out;
  }

  &.animate-transform {
    will-change: transform;
    transition: transform .2s ease-out;
  }

  &:hover, &.ListItem.has-menu-open {
    .Avatar.online::after {
      border-color: var(--color-chat-hover);
    }
  }

  &.selected,
  &.selected:hover {
    --background-color: var(--color-chat-active) !important;
    --color-text-meta-colored: var(--color-white);
    --color-text-meta: var(--color-white);
    --color-text-secondary: var(--color-white);
    --color-error: var(--color-white);
    --color-pinned: var(--color-white);

    .Avatar.online::after {
      border-color: var(--color-chat-active);
    }

    .ListItem-button {
      --background-color: var(--color-chat-active) !important;
      --color-text: var(--color-white);
    }

    .icon-muted-chat {
      color: var(--color-white) !important;
    }

    .Badge:not(.pinned) {
      background: var(--color-white);
      color: var(--color-chat-active);
    }
  }

  .info {
    .title, .subtitle {
      padding-right: .15rem;
    }

    h3 {
      width: auto;
      max-width: 80%;
    }

    .icon-muted-chat {
      font-size: 1.2rem;
      margin-left: 0.25rem;
      margin-top: -0.1rem;
      color: #C6C8CA;
    }

    .LastMessageMeta {
      margin-left: auto;
    }

    .last-message, .typing-status {
      padding-right: 0.25rem;
      flex-grow: 1;
      color: var(--color-text-secondary);

      .sender-name {
        color: var(--color-text);
      }

      .draft {
        color: var(--color-error);
      }
    }

    .last-message {
      .sender-name, .draft {
        &::after {
          content: ': ';
        }
      }

      .media-preview {
        position: relative;
      }

      img {
        width: 1.25rem;
        height: 1.25rem;
        object-fit: cover;
        border-radius: .125rem;
        vertical-align: -.25rem;
        margin-right: .25rem;
      }

      .emoji-small {
        width: 1rem;
        height: 1rem;
        vertical-align: -.125rem;
      }

      .icon-play {
        font-size: .75rem;
        color: #fff;
        position: absolute;
        left: .25rem;
        top: .1875rem;
      }
    }
  }
}
