/* Screen-only layout rules; generated documents keep their print dimensions. */
@media screen {
html{scroll-padding-top:72px}
html[data-estate-theme=shared] :is(#main-content,#content-stage,#workspace-function-rail,.pw-workspace,.sw-workspace,.crm-ops,.ai-agent-settings,.lead-automation,.login-access){min-width:0;max-width:100%;box-sizing:border-box}
html[data-estate-theme=shared] :is(.pw-table,.automation-table,.ops-table,.table-wrap,.table-scroll,.overflow-x-auto,.properties-table-scroll){max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
html[data-estate-theme=shared] :is(.pw-tabs,.sw-tabs,.function-tabs){max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
html[data-estate-theme=shared] :is(dialog,.pw-dialog,.automation-dialog){max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain}
@media(max-width:1023px){
 html[data-estate-theme=shared] #product-shell #product-header{min-width:0;height:64px;gap:10px;padding-inline:14px}
 html[data-estate-theme=shared] #product-header .header-path{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html[data-estate-theme=shared] #product-header .header-tools{margin-left:auto;flex-shrink:0;gap:6px}
 html[data-estate-theme=shared] #product-shell #product-sidebar{width:min(320px,88vw);padding-bottom:max(16px,env(safe-area-inset-bottom))}
 html[data-estate-theme=shared] #product-shell #workspace-function-rail .function-tab{min-height:44px!important;height:auto!important;flex-shrink:0}
 html[data-estate-theme=shared] :is(.sw-builder,.sw-detail-grid,.pw-overview){grid-template-columns:minmax(0,1fr)!important}
 html[data-estate-theme=shared] :is(.pw-workspace,.sw-workspace,.crm-ops,.ai-agent-settings,.lead-automation) :is(input:not([type=checkbox]):not([type=radio]),select,button){min-height:44px}
 html[data-estate-theme=shared] :is(.ops-toolbar,.agent-profile-toolbar,.pw-heading-actions,.sw-heading,.pw-list-heading){flex-wrap:wrap;gap:10px}
 html[data-estate-theme=shared] .pw-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 html[data-estate-theme=shared] :is(#landing,.es-public-page) :is(input,select,textarea),html[data-estate-theme=shared] :is(.pw-dialog,.automation-dialog,.es-signup-dialog) :is(input,select,textarea){font-size:16px!important}
 html[data-estate-theme=shared] :is(.pw-form-grid,.sw-form,.agent-settings-form,.automation-form){grid-template-columns:minmax(0,1fr)!important}
 html[data-estate-theme=shared] .pw-form-grid>label{grid-column:1 / -1!important;min-width:0}
 html[data-estate-theme=shared] :is(.pw-dialog,.automation-dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%;min-width:0;box-sizing:border-box}
 html[data-estate-theme=shared] .pw-dialog form{padding:14px 14px 0}
 html[data-estate-theme=shared] :is(.pw-dialog,.automation-dialog)>header{padding:14px;gap:10px}
 html[data-estate-theme=shared] :is(.pw-dialog,.automation-dialog) footer{display:flex;flex-wrap:wrap;gap:8px;padding:14px}
 html[data-estate-theme=shared] :is(.pw-stats,.inventory-card-grid,.pw-gallery-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 html[data-estate-theme=shared] :is(.ops-toolbar,.agent-profile-toolbar){align-items:stretch;flex-direction:column}
 html[data-estate-theme=shared] :is(.ops-toolbar,.agent-profile-toolbar)>*{min-width:0;max-width:100%}
 html[data-estate-theme=shared] #product-shell #main-content{padding:12px!important;padding-bottom:max(16px,env(safe-area-inset-bottom))!important}
 html[data-estate-theme=shared] #landing .login-access{width:100%;padding:24px 18px;box-sizing:border-box}
 html[data-estate-theme=shared] #landing .login-story{padding:28px 20px}
 html[data-estate-theme=shared] #landing .login-story h1{font-size:36px;letter-spacing:-1.2px;margin:28px 0 16px}
 html[data-estate-theme=shared] .es-public-page :is(.launch-hero,.offering-pair,.advertising-grid,.facility-grid,.team-grid,.industry-grid,.proof-grid,.workflow-grid){grid-template-columns:minmax(0,1fr)!important}
 html[data-estate-theme=shared] .es-public-page .launch-hero h1{font-size:clamp(38px,11vw,56px);letter-spacing:-1.8px}
 html[data-estate-theme=shared] .es-public-page :is(.hero-actions,.hero-assurance){flex-wrap:wrap}
}
@media(max-width:380px){html[data-estate-theme=shared] .inventory-card-grid{grid-template-columns:minmax(0,1fr)!important}html[data-estate-theme=shared] #product-header .command-trigger{display:none}}
}

/* Keep the hidden navigation drawer outside the phone/tablet grid. */
@media screen {
 html[data-estate-theme=shared] #product-shell{grid-template-rows:64px minmax(0,1fr)!important;height:100vh;height:100dvh}
 html[data-estate-theme=shared] #product-shell #content-stage{min-height:0;min-width:0;height:100%;max-height:100%;overflow:hidden}
 html[data-estate-theme=shared] #product-shell[data-page=module] #es-frame-wrap{min-height:0;min-width:0;width:100%!important;box-sizing:border-box}
 html[data-estate-theme=shared] #product-shell[data-page=module] #es-frame-wrap #es-frame{min-height:0;min-width:0;max-width:100%;display:block!important}
 @media(max-width:1023px){
  html[data-estate-theme=shared] #product-shell,
  html[data-estate-theme=shared] #product-shell.is-collapsed{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"header" "content"!important;overflow:hidden}
  html[data-estate-theme=shared] #product-shell #product-sidebar{position:fixed!important;grid-area:auto!important;grid-row:auto!important;grid-column:auto!important;inset:0 auto 0 0!important;height:100vh;height:100dvh;max-height:100dvh;z-index:100;box-sizing:border-box;transform:translateX(-100%)}
  html[data-estate-theme=shared] #product-shell.menu-open #product-sidebar{transform:translateX(0)}
  html[data-estate-theme=shared] #product-shell #workspace-overview,
  html[data-estate-theme=shared] #product-shell #office-page{height:100%;min-height:0;box-sizing:border-box;overflow-y:auto;-webkit-overflow-scrolling:touch}
  html[data-estate-theme=shared] #product-shell #main-content{box-sizing:border-box;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
  html[data-estate-theme=shared] body.es-public-page{height:auto!important;min-height:100vh;overflow-x:hidden!important;overflow-y:auto!important}
  html[data-estate-theme=shared]:has(body.es-public-page){height:auto!important;overflow-y:auto!important}
  html[data-estate-theme=shared] #landing .login-grid{min-height:100vh;min-height:100dvh;height:auto!important}
  html[data-estate-theme=shared] #landing .login-story{flex:0 0 auto;min-height:0}
  html[data-estate-theme=shared] #landing .login-access{flex:0 0 auto;min-height:0}
 }
}
