/*
 * App-wide editing contrast.
 *
 * Keep every editable text field white while it has focus. This final
 * stylesheet intentionally wins over screen-specific focus backgrounds so
 * typed text and the insertion caret stay readable in every color theme.
 */
:is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  textarea
):not([readonly]):not([disabled]):focus {
  background: #fff !important;
  color: #241a15 !important;
  -webkit-text-fill-color: #241a15 !important;
  caret-color: #8b2e0d !important;
  color-scheme: light;
}

:is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  textarea
):not([readonly]):not([disabled]):focus::placeholder {
  color: #75675f !important;
  -webkit-text-fill-color: #75675f !important;
  opacity: 1;
}

:is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"]
):not([readonly]):not([disabled]):-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #241a15 !important;
  caret-color: #8b2e0d !important;
}
