input,
select,
textarea,
[data-component="input"],
[data-component="textarea"],
[data-slot="native-select"] {
  min-width: 0;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--input) 28%, transparent);
  color: var(--foreground);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.45;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

input,
select,
[data-component="input"],
[data-slot="native-select"] {
  height: 1.75rem;
  padding: 0.125rem 0.5rem;
}

textarea,
[data-component="textarea"] {
  min-height: 4rem;
  padding: 0.5rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-foreground);
}

input:focus,
select:focus,
textarea:focus,
[data-component="input"]:focus,
[data-component="textarea"]:focus,
[data-slot="native-select"]:focus {
  outline: 0;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 30%, transparent);
}

[data-slot="native-select-wrapper"] {
  position: relative;
  display: inline-flex;
  width: 100%;
}

[data-slot="native-select-wrapper"] svg {
  position: absolute;
  top: 50%;
  right: 0.375rem;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}

[data-slot="native-select"] {
  width: 100%;
  appearance: none;
  padding-right: 1.75rem;
}

[data-slot="field"],
[data-slot="field-content"],
[data-slot="field-group"],
[data-slot="field-set"] {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

[data-slot="field-label"],
[data-slot="field-title"],
[data-component="label"] {
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

[data-slot="field-description"] {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

[data-slot="field-error"] {
  color: var(--destructive);
  font-size: 0.75rem;
}
