#nitrogen-inspector .ctrl-search {
  display: flex;
  position: relative;
  width: 50%;

  &__input {
    padding: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: 100%;

    &--has-results {
      border-radius: 0.25rem 0.25rem 0 0;
    }
  }

  &__results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 0.25rem #ccc;
    border-top: none;
    z-index: 1;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 0.25rem 0.25rem;

    // dark mode
    @media (prefers-color-scheme: dark) {
      background-color: #222;
      border: 1px solid #333;
      box-shadow: 0 0 0.25rem #333;
      border: 2px solid #666;
      border-top: none;
    }
  }

  &__result {
    padding: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    cursor: pointer;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;

    &:hover {
      background-color: #eee;

      // dark mode
      @media (prefers-color-scheme: dark) {
        background-color: #333;
      }
    }

    &__slug {
      opacity: 0.6;
      font-size: 0.75em;
    }
  }
}
