/* Shared form/control palette. Explicit foreground AND background: dark page inheritance
   must never turn text white inside a light native input, option, or choice. */
:is(body,.member-document) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){
  background-color:#f8fafc!important;color:#17212b!important;-webkit-text-fill-color:#17212b!important;
  caret-color:#17212b!important;border:1px solid #7b8994!important;color-scheme:light;
}
:is(body,.member-document) :is(input,textarea)::placeholder{color:#4b5966!important;-webkit-text-fill-color:#4b5966!important;opacity:1!important}
:is(body,.member-document) select option{background:#f8fafc!important;color:#17212b!important;-webkit-text-fill-color:#17212b!important}
:is(body,.member-document) input:is([type=checkbox],[type=radio]){accent-color:#a81430;min-width:18px;min-height:18px}
:is(body,.member-document) :is(input,textarea):-webkit-autofill{-webkit-text-fill-color:#17212b!important;caret-color:#17212b!important;box-shadow:0 0 0 1000px #f8fafc inset!important}
.member-document button,:is(#intro,#password,#question-stage,#review,#policy-dialog,#account-dialog) button,#previous{
  background-color:#edf2f5!important;color:#17212b!important;-webkit-text-fill-color:#17212b!important;border-color:#7b8994!important;
}
.member-document :is(button.primary,.button.primary),:is(#intro,#password,#question-stage,#review) button.primary,#next{
  background-color:#ad1531!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#ad1531!important;
}
.member-document :is(button.danger,.button.danger){background-color:#951b25!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#951b25!important}
.member-document :is(.choice,.check-label){background-color:#f8fafc!important;color:#17212b!important;border-color:#7b8994!important}
.member-document :is(.choice,.check-label) :is(span,small){color:inherit!important}
.member-document :is(.choice,.check-label):has(input:checked){background-color:#e0edf4!important;color:#17212b!important}
.member-document :is(button[aria-pressed=true],button[aria-checked=true]),#question-stage :is(button[aria-pressed=true],button[aria-checked=true]){
  background-color:#153b50!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#153b50!important;
}
.member-document button:disabled,:is(#intro,#password,#question-stage,#review) button:disabled,#next:disabled{
  background-color:#dfe5e9!important;color:#43515c!important;-webkit-text-fill-color:#43515c!important;opacity:1!important;border-color:#8a969f!important;
}
.member-document :is(input,textarea,select):disabled{opacity:1!important}
.member-document :is(input,textarea,select,button):focus-visible,:is(#intro,#password,#question-stage,#review) :is(input,textarea,select,button):focus-visible{outline:3px solid #dc9d17!important;outline-offset:3px}
.member-document .password-page :is(label,.field-note,.small-copy){color:#e2e7eb}
/* Preserve the approved red brand while meeting normal-text contrast on charcoal. */
.brand{color:#ff4560!important}
:is(#intro,#password,#question-stage,#review) .password-step{color:#c3b8bf!important}
#policy-dialog .field-note{color:#465563!important}
#policy-dialog button:disabled{background-color:#dfe5e9!important;color:#43515c!important;-webkit-text-fill-color:#43515c!important;opacity:1!important}
#question-stage .consent-card{background-color:#f8fafc!important;color:#17212b!important}
#question-stage .consent-card :is(p,label,small){color:#344f64!important}
.member-document .eyebrow,#public-page .eyebrow{color:#f0a77e!important}
.member-document .password-symbols summary,#password .password-symbols summary{color:#c3b8bf!important}
.member-document .password-symbols p,#password .password-symbols p{background:#f8fafc!important;color:#17212b!important}
#question-stage :is(.username-at,.referral-prefix){color:#c3b8bf!important}
