/* Site-wide data-entry style: every typing box and dropdown uses a dark black
   background with bright yellow text, in both light and dark themes.
   Shared by the main site (copied in src/styles.css) and the static tools. */
:root {
  --entry-bg: #050505;
  --entry-ink: #ffe600;
  --entry-placeholder: #c9b54a;
  --entry-border: #8a7a1f;
  --entry-focus: #ffd000;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="hidden"]),
textarea,
select,
button[role="combobox"] {
  background-color: var(--entry-bg) !important;
  color: var(--entry-ink) !important;
  -webkit-text-fill-color: var(--entry-ink) !important;
  caret-color: var(--entry-ink) !important;
  border-color: var(--entry-border) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color-scheme: dark;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="hidden"]),
textarea {
  background-image: none !important;
}
input::placeholder,
textarea::placeholder {
  color: var(--entry-placeholder) !important;
  -webkit-text-fill-color: var(--entry-placeholder) !important;
  opacity: 1 !important;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--entry-focus) !important;
}
select option,
select optgroup {
  background-color: var(--entry-bg) !important;
  color: var(--entry-ink) !important;
}
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.7;
}
/* Browser autofill would otherwise repaint fields pale blue/yellow-white. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--entry-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--entry-bg) inset !important;
  -webkit-text-fill-color: var(--entry-ink) !important;
}
