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

.optionGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.55rem;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg-elevated);
  color: var(--color-text);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.option:hover {
  border-color: var(--color-primary);
  background: rgba(118, 185, 0, 0.08);
}

.optionSelected {
  border-color: var(--color-primary);
  background: rgba(118, 185, 0, 0.12);
}

.option input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.option span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}

.customRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.customInput {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg-elevated);
  color: var(--color-text);
  font-size: 0.9rem;
}

.customInput:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(118, 185, 0, 0.18);
}

.addButton {
  min-width: 5.5rem;
  padding: 0.7rem 0.9rem;
  border: none;
  border-radius: 6px;
  background: var(--color-primary);
  color: #000000;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    opacity var(--transition-fast);
}

.addButton:hover:not(:disabled) {
  background: var(--color-primary-light);
}

.addButton:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.selectedList {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.selectedTag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.9rem;
  border: 1px solid rgba(118, 185, 0, 0.32);
  border-radius: 999px;
  background: rgba(118, 185, 0, 0.1);
  color: var(--color-text);
  overflow: hidden;
}

.selectedTagText {
  min-width: 0;
  padding: 0.35rem 0.15rem 0.35rem 0.75rem;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.removeButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  align-self: stretch;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
}

.removeButton:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}

@media (max-width: 520px) {
  .customRow {
    grid-template-columns: 1fr;
  }

  .addButton {
    width: 100%;
  }
}
