/* First-paint bridge for existing DHRU nodes. No hiding, generated content,
   layout replacement, animation suppression, or changes to native state.
   Approved enhanced screens keep their own styling once their adapter is ready. */
html.mgsm26 body:where(:not(.mgsm-afp-ready,.mgsm-support-page)){background-color:var(--m26-bg);color:var(--m26-ink);font-family:var(--m26-sans)}
html.mgsm26 body:not(.mgsm-afp-ready) :is(#mgsm26-main,.body-container):where(:not(.mgsm-cx,.mgsm-ca-ready,.rv5-native-active,.bm-native-active)):not(:has(:where(.mgsm-support-root,.cx-native-active,.cx-native-empty,#mgsm-product-detail,[data-mgsm-order-entry]))) :where(.card):not(:where([class*="danger"],[class*="danger"] *,[class*="warning"],[class*="warning"] *,[class*="success"],[class*="success"] *,[class*="alert"],[class*="alert"] *,[role=alert],[role=alert] *,[role=status],[role=status] *,[aria-live],[aria-live] *)){background-color:var(--m26-surface);color:var(--m26-ink);border-color:var(--m26-line);border-radius:14px;box-shadow:var(--m26-shadow-1)}
html.mgsm26 body:not(.mgsm-afp-ready) :is(#mgsm26-main,.body-container):where(:not(.mgsm-cx,.mgsm-ca-ready,.rv5-native-active,.bm-native-active)):not(:has(:where(.mgsm-support-root,.cx-native-active,.cx-native-empty,#mgsm-product-detail,[data-mgsm-order-entry]))) :where(.card-header,.card-footer):not(:where([class*="danger"],[class*="danger"] *,[class*="warning"],[class*="warning"] *,[class*="success"],[class*="success"] *,[class*="alert"],[class*="alert"] *,[role=alert],[role=alert] *,[role=status],[role=status] *,[aria-live],[aria-live] *)){background-color:var(--m26-surface-2);color:var(--m26-ink);border-color:var(--m26-line)}
html.mgsm26 body:not(.mgsm-afp-ready) :is(#mgsm26-main,.body-container):where(:not(.mgsm-cx,.mgsm-ca-ready,.rv5-native-active,.bm-native-active)):not(:has(:where(.mgsm-support-root,.cx-native-active,.cx-native-empty,#mgsm-product-detail,[data-mgsm-order-entry]))) :where(input.form-control:not([type=checkbox]):not([type=radio]):not([type=hidden]):not(:disabled):not([disabled]):not([aria-disabled=true]):not([readonly]),textarea.form-control:not(:disabled):not([disabled]):not([aria-disabled=true]):not([readonly]),select.form-control:not(:disabled):not([disabled]):not([aria-disabled=true])):not(:where(.is-invalid,[aria-invalid=true],.has-error *,.error *)){font-family:var(--m26-sans);background-color:var(--m26-surface);color:var(--m26-ink);border-radius:9px}
html.mgsm26 body:not(.mgsm-afp-ready) :is(#mgsm26-main,.body-container):where(:not(.mgsm-cx,.mgsm-ca-ready,.rv5-native-active,.bm-native-active)):not(:has(:where(.mgsm-support-root,.cx-native-active,.cx-native-empty,#mgsm-product-detail,[data-mgsm-order-entry]))) :where(.btn-primary:not(:disabled):not([disabled]):not([aria-disabled=true]):not(.disabled)){font-family:var(--m26-sans);background-color:var(--m26-accent);border-color:var(--m26-accent);color:var(--m26-on-accent);border-radius:9px}
html.mgsm26 body:not(.mgsm-afp-ready) :is(#mgsm26-main,.body-container):where(:not(.mgsm-cx,.mgsm-ca-ready,.rv5-native-active,.bm-native-active)):not(:has(:where(.mgsm-support-root,.cx-native-active,.cx-native-empty,#mgsm-product-detail,[data-mgsm-order-entry]))) :where(.table){color:var(--m26-ink);background-color:var(--m26-surface);border-color:var(--m26-line);font-family:var(--m26-sans)}
html.mgsm26 :where(.modal-content){font-family:var(--m26-sans);background-color:var(--m26-surface);color:var(--m26-ink);border-color:var(--m26-line);border-radius:14px}
html.mgsm26 :where(.modal-header,.modal-footer){border-color:var(--m26-line)}
html.mgsm26 header .dropdown-menu:has(>a[href$='settings/profile']):not(.m26-account-menu){font-family:var(--m26-sans);background-color:var(--m26-surface);color:var(--m26-ink);border:1px solid var(--m26-line);border-radius:18px;box-shadow:var(--m26-shadow-pop);padding:10px}
html.mgsm26 header .dropdown-menu:has(>a[href$='settings/profile']):not(.m26-account-menu)>.dropdown-item{font-family:inherit;color:var(--m26-ink);border-radius:10px}
/* Native loading indicators remain animated and error/disabled styles stay native. */
@media(max-width:700px){html.mgsm26 body:not(.mgsm-afp-ready) :is(#mgsm26-main,.body-container):where(:not(.mgsm-cx,.mgsm-ca-ready,.rv5-native-active,.bm-native-active)):not(:has(:where(.mgsm-support-root,.cx-native-active,.cx-native-empty,#mgsm-product-detail,[data-mgsm-order-entry]))) :where(input.form-control:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea.form-control,select.form-control){font-size:16px}}
