/* Admin uses viewport pixels: no legacy stage dimensions or compact Home zoom. */
#hmM:has(.hm-main.adm-wide){transform:none!important;scale:none!important;zoom:1!important;isolation:isolate;z-index:1000!important;}
#hmM#hmM .hm-main.adm-wide{position:fixed!important;inset:calc(env(safe-area-inset-top,0px) + 6px) calc(env(safe-area-inset-right,0px) + 6px) calc(env(safe-area-inset-bottom,0px) + 6px) calc(env(safe-area-inset-left,0px) + 6px)!important;left:calc(env(safe-area-inset-left,0px) + 6px)!important;top:calc(env(safe-area-inset-top,0px) + 6px)!important;right:calc(env(safe-area-inset-right,0px) + 6px)!important;bottom:calc(env(safe-area-inset-bottom,0px) + 6px)!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;transform:none!important;scale:none!important;zoom:1!important;margin:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important;z-index:100!important;border-radius:12px!important;}
#hmM#hmM .hm-main.adm-wide>.hm-cap{display:none!important;}
#hmM#hmM .hm-main.adm-wide::before,#hmM#hmM .hm-main.adm-wide::after{pointer-events:none!important;}
#hmM#hmM:has(.adm-wide)>.hm-stw,#hmM#hmM:has(.adm-wide)>.hm-bar,#hmM#hmM:has(.adm-wide)>.blaze-quote{visibility:hidden!important;pointer-events:none!important;}
#hmM#hmM .hm-main.adm-wide>.hm-tabs{flex:0 0 auto!important;display:flex!important;flex-wrap:wrap!important;gap:5px!important;min-height:0!important;padding:8px!important;max-height:30dvh;overflow:auto;zoom:1!important;}
#hmM#hmM .hm-main.adm-wide>.hm-tabs [data-t]{flex:0 1 auto;min-height:36px!important;min-width:60px;padding:7px 12px!important;font-size:13px!important;touch-action:manipulation;}
#hmM#hmM .hm-main.adm-wide>.hm-body{flex:1 1 0!important;position:relative!important;min-height:0!important;min-width:0!important;width:auto!important;height:auto!important;max-height:none!important;overflow:auto!important;zoom:1!important;transform:none!important;scale:none!important;padding:12px!important;font-size:14px!important;line-height:1.45!important;touch-action:pan-x pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-sizing:border-box!important;}
#hmM .adm-wide .hm-adm,#hmM .adm-wide .adm-body{min-width:0;max-width:100%;box-sizing:border-box;}
#hmM .adm-wide .adm-tabs{display:flex!important;flex-wrap:wrap!important;gap:6px!important;}
#hmM .adm-wide .adm-tabs [data-at]{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px!important;font-size:13px!important;cursor:pointer;touch-action:manipulation;box-sizing:border-box;}
#hmM .adm-wide input,#hmM .adm-wide select,#hmM .adm-wide textarea,#hmM .adm-wide button{box-sizing:border-box;max-width:100%;font-size:14px;}
#hmM .adm-wide button,#hmM .adm-wide input:not([type=checkbox]):not([type=radio]),#hmM .adm-wide select{min-height:36px;}
#hmM .adm-wide input[type=checkbox],#hmM .adm-wide input[type=radio]{width:18px;height:18px;vertical-align:middle;flex:none;cursor:pointer;}
#hmM .adm-wide .adm-grid{width:100%!important;max-height:none!important;min-width:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))!important;}
#hmM .adm-wide .adm-grid>*{min-width:0;max-width:100%;box-sizing:border-box;}
#hmM .adm-wide table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
body:has(#hmM .adm-wide) #rpBtn{display:none!important;}
@media(max-width:600px){#hmM#hmM .hm-main.adm-wide>.hm-body{padding:8px!important;}#hmM .adm-wide .adm-tabs [data-at]{flex:1 1 120px;min-height:42px;}#hmM#hmM .hm-main.adm-wide>.hm-tabs [data-t]{font-size:12px!important;min-height:40px!important;}#hmM .adm-wide input,#hmM .adm-wide select,#hmM .adm-wide textarea{font-size:16px;}}

/* Native confirmations share the scaled stage and must sit above admin. */
body.hm-mob #stage:has(> .popw),body.hm-mob #stage:has(> .modal){z-index:2000!important;}
