/* Consistent native choices. Match only the label that directly owns a visible
   checkbox/radio, never a surrounding form, fieldset, or editor card. */
:is(#application-form,#cms-admin-shell,#collabWaForm) label:where(:not([hidden]):not([aria-hidden="true"]):not(.sr-only):not(.visually-hidden)):has(> input:is([type="checkbox"],[type="radio"]):where(:not([hidden]):not([aria-hidden="true"]):not(.sr-only):not(.visually-hidden))){
 display:flex;align-items:center;justify-content:flex-start;gap:12px;box-sizing:border-box;min-width:0;max-width:100%;min-height:52px;padding:12px 14px;border:2px solid var(--ink,#151515);border-radius:14px;background:#fff;color:var(--ink,#151515);font-weight:750;line-height:1.5;text-align:start;overflow-wrap:anywhere;cursor:pointer;transition:background-color .15s ease,border-color .15s ease;
}
:is(#application-form,#cms-admin-shell,#collabWaForm) label>input:is([type="checkbox"],[type="radio"]):where(:not([hidden]):not([aria-hidden="true"]):not(.sr-only):not(.visually-hidden)){
 appearance:auto;-webkit-appearance:auto;box-sizing:border-box;flex:0 0 24px;width:24px;height:24px;min-width:24px;max-width:24px;min-height:24px;max-height:24px;margin:0;padding:0;accent-color:var(--ink,#151515);cursor:pointer;vertical-align:middle;
}
:is(#application-form,#cms-admin-shell,#collabWaForm) label:where(:not([hidden]):not([aria-hidden="true"]):not(.sr-only):not(.visually-hidden)):has(> input:is([type="checkbox"],[type="radio"]):where(:not([hidden]):not([aria-hidden="true"]):not(.sr-only):not(.visually-hidden)):checked){background:var(--yellow,#ffd22e);border-color:var(--ink,#151515)}
:is(#application-form,#cms-admin-shell,#collabWaForm) label:where(:not([hidden]):not([aria-hidden="true"]):not(.sr-only):not(.visually-hidden)):has(> input:is([type="checkbox"],[type="radio"]):where(:not([hidden]):not([aria-hidden="true"]):not(.sr-only):not(.visually-hidden)):focus-visible){outline:3px solid var(--ink,#151515);outline-offset:3px;box-shadow:0 0 0 6px var(--yellow,#ffd22e)}
:is(#application-form,#cms-admin-shell,#collabWaForm) label>input:is([type="checkbox"],[type="radio"]):focus-visible{outline:2px solid var(--ink,#151515);outline-offset:3px;box-shadow:none}
:is(#application-form,#cms-admin-shell,#collabWaForm) label:has(> input:is([type="checkbox"],[type="radio"]):disabled){background:#f3f1e9;border-color:#b3ac98;color:#6a6455;cursor:not-allowed;box-shadow:none}
:is(#application-form,#cms-admin-shell,#collabWaForm) label>input:is([type="checkbox"],[type="radio"]):disabled{cursor:not-allowed}
:is(#application-form,#cms-admin-shell,#collabWaForm) label>span{min-width:0;overflow-wrap:anywhere}
:is(#application-form,#cms-admin-shell,#collabWaForm) label[hidden]{display:none!important}
#application-form .choice-row{flex-wrap:wrap;align-items:stretch;gap:10px}
#application-form .certificate-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
#application-form .certificate-choices>label{width:100%;margin:0}
#application-form label.certificate-choice{width:100%;margin:16px 0}
#cms-admin-shell :is(#hah-intake-controls,#hah-intake-history-list) label{margin:9px 0}
@media(max-width:640px){
 #application-form .certificate-choices{grid-template-columns:1fr;gap:10px}
 #application-form :is(label.work-toggle,label.declaration){width:100%}
}
@media(prefers-reduced-motion:reduce){
 :is(#application-form,#cms-admin-shell,#collabWaForm) label:has(> input:is([type="checkbox"],[type="radio"])){transition:none}
}

#application-form #english-tests>.certificate-choice{display:flex;width:100%}
#application-form #english-test-choices[hidden]{display:none!important}
#mandarin-organizer,#tocfl-organizer{overflow-wrap:anywhere;line-height:1.6}
#mandarin-organizer a,#tocfl-organizer a{font-weight:700;text-decoration:underline;text-underline-offset:3px}
