/* X-MOBILE-172000 | Screenshot-grounded first-party mobile repair.
   Scoped to Genesis; does not touch tenant canvases, previews or checkout. */
@media(max-width:767px){
 body.xgenesis-shell{width:100%;max-width:100%;overflow-x:clip}
 body.xgenesis-shell :is(.x1113-layout,.x1113-layout>.shell,.x1113-layout .body,.x1113-layout #main){box-sizing:border-box;min-width:0;max-width:100%}
 body.xgenesis-shell .global-header{background:#0b1118!important;isolation:isolate;box-shadow:0 1px 0 rgba(181,208,225,.22);overflow:visible}
 body.xgenesis-shell .global-header :is(.brand-group,.global-actions){min-width:0}
 body.xgenesis-shell .global-header .wordmark{max-width:100%;white-space:nowrap}
 body.xgenesis-shell #main :is(h1,h2,h3,p){overflow-wrap:break-word}
 /* The home hero previously retained desktop-sized inline measurements on narrow screens. */
 body.xgenesis-shell #main .x5-home,
 body.xgenesis-shell #main .x5-home :is(.x5-hero,.x4120-hero,.x4120-hero-inner){width:100%;max-width:100%;min-width:0;box-sizing:border-box}
 body.xgenesis-shell #main .x5-home :is(.x5-hero,.x4120-hero) :is(h1,h2){max-width:100%;font-size:clamp(2.35rem,10vw,4.4rem);line-height:1.05;overflow-wrap:normal;word-break:normal}
 body.xgenesis-shell #main .x5-home :is(.x5-hero,.x4120-hero) :is(p,.x4120-hero-copy){max-width:100%;font-size:clamp(1rem,4.2vw,1.2rem);line-height:1.55}
 body.xgenesis-shell #main .x5-home :is(.x5-hero,.x4120-hero) :is(.x4120-hero-actions,.x5-actions){max-width:100%;display:flex;flex-wrap:wrap;gap:10px}
 body.xgenesis-shell #main .x5-home :is(.x5-hero,.x4120-hero) :is(a,button){max-width:100%;min-height:44px}
 body.xgenesis-shell #main :is(img,video,svg){max-width:100%}
 body.xgenesis-shell #main :is(.xos-agenda-tabs,[role=tablist]){max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
 body.xgenesis-shell #main [role=tablist] :is(button,[role=tab]){flex-shrink:0}
 body.xgenesis-shell.x1121-mobile-active .x1121-mobile-nav:not([hidden]){background:#0b1118;box-shadow:0 -1px 0 rgba(181,208,225,.24);padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}
 body.xgenesis-shell.x1121-mobile-active #main{padding-bottom:calc(var(--x1121-bottom-nav-height,82px) + env(safe-area-inset-bottom,0px) + 32px)!important}
 body.xgenesis-shell.x1121-mobile-active:not([data-jarvis-embed]) :is(.xag8-launch,.ath-shell-jarvis-button){bottom:calc(var(--x1121-bottom-nav-height,82px) + env(safe-area-inset-bottom,0px) + 20px)!important;right:max(14px,env(safe-area-inset-right,0px))!important}
 body.xgenesis-shell:not(.x1121-mobile-active):not([data-jarvis-embed]) :is(.xag8-launch,.ath-shell-jarvis-button){bottom:max(20px,env(safe-area-inset-bottom,0px))!important}
 /* Desktop rail collapse must never truncate labels inside the single mobile menu. */
 body.xgenesis-shell.rail-collapsed #x1113-nav-panel #workspace-drawer :is(.nav-label,.workspace-label,.organization-control,.sidebar-foot small,#project-tools){display:revert!important}
 body.xgenesis-shell.rail-collapsed #x1113-nav-panel #workspace-drawer .sidebar nav a{justify-content:flex-start!important;padding:12px 14px!important}
 body.xgenesis-shell #x1113-nav-panel #workspace-drawer{width:100%!important;max-width:100%!important;min-width:0!important}
 body.xgenesis-shell #x1113-nav-panel #workspace-drawer :is(.nav-label,.workspace-label){white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important}
 body.xgenesis-shell #x1113-nav-panel #workspace-drawer .nav-label{min-width:0;overflow-wrap:break-word}
 body.xgenesis-shell #main :is(button,a,input,select,textarea):focus-visible{outline-offset:3px}
}
@media(max-width:390px){
 body.xgenesis-shell .global-header .global-actions{gap:6px}
 body.xgenesis-shell .global-header :is(#search-button,#drawer-open){min-width:44px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){
 body.xgenesis-shell .global-header,body.xgenesis-shell .x1121-mobile-nav{scroll-behavior:auto}
}