.wrapper {
  min-height: var(--field-height);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(var(--primary-rgb) / 0.1);
  border-radius: 50px;
}

.tag button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
}

.tag button:hover {
  background: var(--primary);
  color: white;
}

.input {
  flex: 1;
  min-width: 100px;
  padding: 2px 0;
  font-size: var(--field-font-size);
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
}

.input::placeholder {
  color: var(--text-muted);
}
