.shikitor-popup[class*='completions-board'] {
  visibility: hidden;
  padding: 0;
  min-width: 400px;
  max-height: 300px;
  overflow-y: auto;
  background-color: var(--shikitor-bg-color);
  color: var(--shikitor-fg-color);
  border: 1px solid var(--shikitor-fg-color);
  border-radius: 4px;
  font-size: .9em;
  font-family: var(--font-family, monospace);
}
.shikitor-popup[class*='completions-board'] {
  display: flex;
  flex-direction: column;
  .shikitor-completions__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .25rem;
    color: var(--shikitor-bg-color);
    background-color: var(--shikitor-fg-color);

    font-size: .6em;
  }
  .shikitor-completions__tooltip {
    flex: 1;
    width: 0;
  }
  .shikitor-completions__setting button {
    margin: 0;
    padding: .25rem;
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1.2em;
    text-align: center;
    background-color: transparent;
    border: none;
  }
  .shikitor-completion-item {
    // TODO performance item style, make it more compact
    position: relative;
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .25rem;
    cursor: pointer;
    &__kind {
      display: flex;
      align-content: center;
      justify-content: center;
      align-items: center;
      padding: 2px;
      width: 16px;
      height: 16px;
      color: var(--shikitor-bg-color);
      background-color: var(--shikitor-fg-color);
      border-radius: 4px;
    }
    &__label {
      flex: 1;
      width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    &__keyword {
      font-weight: bold;
      filter: invert(1);
    }
    &__detail {
      font-size: .8em;
      opacity: .65;
    }
    &.selected {
      &::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--shikitor-fg-color);
        opacity: .3;
      }
      .shikitor-completion-item__detail {
        opacity: 1;
      }
    }
  }
}
