.app-form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 0.25rem);
}

.app-form-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm, 0.5rem);
}

.app-form-field__label {
  font-size: var(--font-size-base, 0.875rem);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary, #1f322d);
}

.app-form-field__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: none;
  background: none;
  padding: 0;
  color: var(--text-secondary, #6b7280);
  font-size: var(--font-size-xs, 0.75rem);
  cursor: pointer;

  &:hover {
    color: var(--primary-color, #2f6e5d);
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color, #2f6e5d);
    outline-offset: 2px;
  }
}

.app-form-field__required {
  color: var(--error-color, #c0392b);
  margin-left: 0.125rem;
}

.app-form-field__control {
  display: block;
}

.app-form-field__hint {
  margin: 0;
  font-size: var(--font-size-sm, 0.8125rem);
  color: var(--text-secondary, #6b7280);
}

.app-form-field__error {
  margin: 0;
  font-size: var(--font-size-sm, 0.8125rem);
  color: var(--error-color, #c0392b);
}

.app-form-field__used-by {
  margin: 0;
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #6b7280);
}

.app-form-field__used-by-label {
  font-weight: var(--font-weight-semibold, 600);
  margin-right: 0.25rem;
}
