.picker {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.linked-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: #1e1c3a;
  color: #a5b4fc;
  border-radius: 999px;
  font-size: 0.82rem;
  overflow: hidden;

  .chip-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    text-decoration: none;

    &:hover { color: #c7d2fe; }
  }

  .chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    border-left: 1px solid #2a2a3d;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;

    &:hover { opacity: 1; color: #fca5a5; background: #2a2a3d; }
  }
}

.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  box-sizing: border-box;
  background: #1a1a2e;
  border: 1px solid #2a2a3d;
  color: white;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;

  &:focus {
    outline: none;
    border-color: #6c63ff;
  }

  &::placeholder { color: #6b7280; }
}

.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  list-style: none;
  padding: 0.25rem 0;
  margin: 0;
  background: #1a1a2e;
  border: 1px solid #2a2a3d;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-height: 280px;
  overflow-y: auto;
  z-index: 10;

  li {
    padding: 0.55rem 0.9rem;
    color: #d1d5db;
    font-size: 0.88rem;
    cursor: pointer;

    &:hover { background: #20203a; color: white; }
  }
}

.empty-hint {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  padding: 0.55rem 0.9rem;
  margin: 0;
  background: #1a1a2e;
  border: 1px solid #2a2a3d;
  border-radius: 6px;
  color: #6b7280;
  font-size: 0.82rem;
  font-style: italic;
  z-index: 10;
}
