/** Marks the canonical admin shell root (AdminRoot / LoginRoot). */
export const ADMIN_ROOT_ATTR = 'data-actuate-admin-root';
/**
 * Resolve the element that owns admin theme tokens (accent, color mode, density).
 * Prefer the marked shell root so a consumer wrapper `.actuate-admin` does not
 * steal runtime overrides from the inner AdminRoot.
 */
export function getAdminRootElement() {
    if (typeof document === 'undefined')
        return null;
    return (document.querySelector(`[${ADMIN_ROOT_ATTR}]`) ??
        document.querySelector('.actuate-admin'));
}
//# sourceMappingURL=admin-root-element.js.map