/* Mobile app ergonomics. Legal document/print styles are deliberately untouched. */
@media screen and (max-width:980px){
 :root{--pwa-safe-top:env(safe-area-inset-top,0px);--pwa-safe-right:env(safe-area-inset-right,0px);--pwa-safe-bottom:env(safe-area-inset-bottom,0px);--pwa-safe-left:env(safe-area-inset-left,0px)}
 body.agent-body,body.vigor-modern{min-height:100dvh;padding-inline:var(--pwa-safe-left) var(--pwa-safe-right);padding-bottom:var(--pwa-safe-bottom)}
 .vigor-modern .site-header{padding-top:var(--pwa-safe-top)}
 .agent-body .portal-header{padding-top:calc(15px + var(--pwa-safe-top))}
 .agent-body .auth-main{padding-top:calc(20px + var(--pwa-safe-top));padding-bottom:calc(20px + var(--pwa-safe-bottom));min-height:100dvh}
 .vigor-modern .site-header #main-nav{max-height:calc(var(--pwa-viewport-height,100dvh) - 76px - var(--pwa-safe-top) - var(--pwa-safe-bottom));overscroll-behavior:contain;padding-bottom:calc(24px + var(--pwa-safe-bottom))}
 body.agent-body input:not([type=checkbox]):not([type=radio]),body.agent-body select,body.agent-body textarea,body.vigor-modern input:not([type=checkbox]):not([type=radio]),body.vigor-modern select,body.vigor-modern textarea{font-size:max(16px,1rem)}
 body.agent-body input,body.agent-body select,body.agent-body textarea,body.vigor-modern input,body.vigor-modern select,body.vigor-modern textarea{scroll-margin-block:90px 30px}
 .agent-body .portal-sidebar{overscroll-behavior-x:contain;scrollbar-width:thin}
 .agent-body .portal-sidebar>a{min-height:44px}
 .workspace-dialog,.public-listing-page .workspace-dialog,.vigor-modern .experience-dialog{max-height:calc(var(--pwa-viewport-height,100dvh) - 24px - var(--pwa-safe-top) - var(--pwa-safe-bottom));overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:24px;box-sizing:border-box}
 .workspace-dialog[open],.public-listing-page .workspace-dialog[open],.vigor-modern .experience-dialog[open]{position:fixed;top:var(--pwa-safe-top);bottom:auto;margin-block:12px}
 .workspace-dialog>header button,.vigor-modern .experience-dialog [data-dialog-close]{min-width:44px;min-height:44px;flex-shrink:0}
 .workspace-dialog input,.workspace-dialog textarea,.workspace-dialog select{scroll-margin-block:72px 40px}
 .workspace-dialog footer{padding-bottom:var(--pwa-safe-bottom);flex-wrap:wrap}
 .agent-body .toast{bottom:calc(24px + var(--pwa-safe-bottom));max-width:calc(100vw - 32px - var(--pwa-safe-left) - var(--pwa-safe-right));overflow-wrap:anywhere}
 .vigor-modern .experience-toast{bottom:calc(125px + var(--pwa-safe-bottom))}
}
@media screen and (max-width:700px){
 .vigor-modern .site-header #main-nav{max-height:calc(var(--pwa-viewport-height,100dvh) - 66px - var(--pwa-safe-top) - var(--pwa-safe-bottom))}
 .agent-body .portal-header{flex-wrap:wrap}
 .agent-body .portal-header>div{min-width:0;flex-wrap:wrap;justify-content:flex-end}
 .agent-body .portal-header .outline{min-height:44px}
 .agent-body .portal-main,.public-listing-page .portal-main{overflow-wrap:anywhere}
 .workspace-dialog footer>.primary,.workspace-dialog footer>.outline{min-height:46px}
}
@media screen and (max-width:980px){body.public-listing-page #editor-listing-photos{font-size:16px!important}}
