/* Contrast correction. Loaded after shared styles and page theme overrides. */

/* Chromium autofill has a separate text-fill colour from the normal text colour. */
html[data-jn-theme="dark"] body:not(#jn-contrast-old):not(#jn-contrast-legacy):not(#jn-contrast-unused).auth-clean-page .auth-clean-form input:not([type="checkbox"]):not([type="radio"]) {
  color:#edf1f7!important;
  -webkit-text-fill-color:#edf1f7!important;
  caret-color:#edf1f7!important;
}
html[data-jn-theme="dark"] body:not(#jn-contrast-old):not(#jn-contrast-legacy):not(#jn-contrast-unused).auth-clean-page .auth-clean-form input:autofill,
html[data-jn-theme="dark"] body:not(#jn-contrast-old):not(#jn-contrast-legacy):not(#jn-contrast-unused).auth-clean-page .auth-clean-form input:-webkit-autofill {
  color:#edf1f7!important;
  -webkit-text-fill-color:#edf1f7!important;
  caret-color:#edf1f7!important;
  -webkit-box-shadow:0 0 0 1000px #1e2531 inset!important;
  box-shadow:0 0 0 1000px #1e2531 inset!important;
  background-color:#1e2531!important;
  border-color:#4675a9!important;
}

/* An opaque selection remains visible against both light and dark fields.
   Existing quantity/multiplier selection rules are deliberately left intact. */
html body:not(#jn-contrast-old):not(#jn-contrast-legacy):not(#jn-contrast-unused).page-copy input:not(.bc-qty-input):not(.bc-copy-multiplier-input):not([data-mixer-factor])::selection,
html body:not(#jn-contrast-old):not(#jn-contrast-legacy):not(#jn-contrast-unused).page-copy :not(input)::selection {
  background:#0066d6!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:none!important;
}
html[data-jn-theme="dark"] body:not(#jn-contrast-old):not(#jn-contrast-legacy):not(#jn-contrast-unused).page-copy input:not(.bc-qty-input):not(.bc-copy-multiplier-input):not([data-mixer-factor])::selection,
html[data-jn-theme="dark"] body:not(#jn-contrast-old):not(#jn-contrast-legacy):not(#jn-contrast-unused).page-copy :not(input)::selection {
  background:#2869c4!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
