.header-corpus-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-left: 24px;
  border: 1px solid var(--border-subtle-4);
  border-radius: var(--radius-100);
  padding: 6px 16px;
  cursor: pointer;

  .header-corpus-name {
    @include label-medium-1;
    color: var(--text-light-fixed);
  }

  .header-corpus-image {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 24px;
    height: 24px;
  }
}

.modal-corpora {
  width: 70vw !important;

  > .body {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-height: 50vh;
    overflow-y: auto;

    > .item {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      flex: 1 0 16%;
      min-height: 12vh;
      cursor: pointer;

      &:hover {
        background-color: var(--layer-hover-1);
      }

      .modal-corpus-image {
        border-radius: 50%;
        width: 48px;
        height: 48px;
      }

      > span {
        text-align: center;
      }
    }
  }
}

@media (max-width: 1366px) {
  .header-corpus-container .header-corpus-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12vw;
  }

  .modal-corpora {
    max-width: 70vw !important;
    width: 70vw !important;
    top: 48% !important;

    > .body {
      max-height: 64vh;
    }
  }
}

@media (max-width: 768px) {
  .header-corpus-container .header-corpus-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modal-corpora {
    max-width: 90% !important;
    width: 90% !important;
    top: 45% !important;

    > .body {
      max-height: 60vh;

      > .item {
        flex: 1 0 calc((100% - 36px) / 4);
        max-width: calc((100% - 36px) / 4);
      }
    }
  }
}

@media (max-width: 767px) {
  .header-corpus-container {
    margin-left: 12px;
    .header-corpus-name {
      max-width: 160px;
    }
  }

  .modal-corpora {
    top: 50% !important;

    > .body {
      max-height: 70vh;

      > .item {
        flex: 1 0 calc((100% - 36px) / 2);
        max-width: calc((100% - 36px) / 2);
      }
    }
  }
}
