/* HeroUI owns the rounded focus frame; the nested input must not draw a second one. */
#root [data-slot="input-wrapper"] :is(input, textarea):is(:focus, :focus-visible) {
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

#root [data-slot="input-wrapper"]:focus-within,
html:is(.dark, :has(body.dark)) #root [data-slot="input-wrapper"]:focus-within {
  border-color: var(--glass-accent) !important;
}

/* Retain numeric validation and keyboard stepping without native chrome. */
#root [data-slot="input-wrapper"] input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
#root [data-slot="input-wrapper"] input[type="number"]::-webkit-inner-spin-button,
#root [data-slot="input-wrapper"] input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
