/* Zero-specificity readable defaults for form controls on dark pages (html.vp-dark is set by select-search.js from the real page background).
   Any page rule overrides these; they only rescue controls that would otherwise fall back to the browser's white/black. */
:where(html.vp-dark) :where(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=submit],[type=button],[type=reset],[type=image]),textarea){
  background-color:#141922;color:#eef1f5;border-color:rgba(255,255,255,.16)}
:where(html.vp-dark) :where(input,textarea)::placeholder{color:#8b95a5;opacity:1}
:where(html.vp-dark) :where(dialog,.modal-content,.dropdown-menu,.popover){background-color:#141922;color:#eef1f5}
:where(html.vp-dark) :where(.modal-content,.dropdown-menu,.popover) :where(a:not([class*=btn])){color:inherit}
/* date/time pickers: dark popup + visible calendar icon */
:is(html.vp-dark) input:is([type=date],[type=time],[type=month],[type=week],[type=datetime-local]){color-scheme:dark}
/* Chrome autofill turns fields pale yellow with dark text; keep them readable */
:is(html.vp-dark) :is(input,textarea,select):-webkit-autofill{-webkit-text-fill-color:#eef1f5;caret-color:#eef1f5;box-shadow:0 0 0 1000px #141922 inset}
/* disabled submit (form-guard) must look busy, not broken */
button[aria-busy=true],input[aria-busy=true]{cursor:progress;opacity:.65}
