/* Editable fields use their caret without the theme’s extra focus ring. */
@layer field-focus {
  :is(textarea, input:not([type]), input:is([type="text"], [type="search"], [type="email"], [type="password"], [type="tel"], [type="url"], [type="number"]), [contenteditable]):read-write:focus {
    outline: none !important;
    box-shadow: none !important;
  }

  @media (forced-colors: active) {
    :is(textarea, input:not([type]), input:is([type="text"], [type="search"], [type="email"], [type="password"], [type="tel"], [type="url"], [type="number"]), [contenteditable]):read-write:focus-visible {
      outline: 2px solid Highlight !important;
    }
  }
}
