.dfs-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--dfs-space-2);
}

.dfs-field__label {
  color: var(--dfs-color-ink);
  font-size: var(--dfs-text-base);
  font-weight: var(--dfs-weight-semibold);
  line-height: 1.4;
}

.dfs-field__help {
  margin: 0;
  color: var(--dfs-color-muted);
  font-size: var(--dfs-text-sm);
  line-height: 1.5;
}

.dfs-input,
.dfs-select,
.dfs-textarea,
.dfs-search-field {
  width: 100%;
  min-width: 0;
  min-height: var(--dfs-control-height);
  border: 1px solid var(--dfs-color-border-strong);
  border-radius: var(--dfs-radius-md);
  background: var(--dfs-color-surface);
  color: var(--dfs-color-text);
  font-family: var(--dfs-font-sans);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color var(--dfs-transition-fast), box-shadow var(--dfs-transition-fast), background-color var(--dfs-transition-fast);
}

.dfs-input,
.dfs-select,
.dfs-search-field {
  padding: 0 var(--dfs-space-4);
}

.dfs-textarea {
  min-height: 132px;
  padding: var(--dfs-space-4);
  resize: vertical;
}

.dfs-input::placeholder,
.dfs-textarea::placeholder,
.dfs-search-field::placeholder {
  color: var(--dfs-color-subtle);
  opacity: 1;
}

.dfs-input:focus,
.dfs-select:focus,
.dfs-textarea:focus,
.dfs-search-field:focus {
  border-color: var(--dfs-color-brand);
  outline: none;
  box-shadow: var(--dfs-shadow-focus);
}

.dfs-field[data-state="error"] .dfs-input,
.dfs-field[data-state="error"] .dfs-select,
.dfs-field[data-state="error"] .dfs-textarea {
  border-color: var(--dfs-color-danger);
}

.dfs-field__error {
  margin: 0;
  color: var(--dfs-color-danger);
  font-size: var(--dfs-text-sm);
  font-weight: var(--dfs-weight-medium);
  line-height: 1.45;
}

.dfs-search-control {
  position: relative;
  min-width: 0;
}

.dfs-search-control .dfs-search-field {
  padding-right: 52px;
}

.dfs-search-control__action {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  width: 44px;
  min-width: 44px;
  border: 0;
  border-radius: calc(var(--dfs-radius-md) - 2px);
  background: transparent;
  color: var(--dfs-color-ink);
  cursor: pointer;
  touch-action: manipulation;
}
