/* Product geometry only; shared navigation material and accent preferences remain authoritative. */
html,body{height:100%;min-height:0}body{margin:0}
.app-shell{height:100dvh;min-height:0;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);box-sizing:border-box}
.topbar{flex:0 0 auto}.field-workspace{flex:1;min-height:0}#app{min-height:0;overflow-y:auto;overscroll-behavior-y:contain}
@media(max-width:700px){.app-shell{width:100%;max-width:none;border-radius:0}.field-workspace{display:flex!important;flex-direction:column!important;padding-bottom:env(safe-area-inset-bottom,0px)}#app{flex:1;width:100%;margin:0;padding:12px;box-sizing:border-box}#bottomNav.bottom-nav{position:relative!important;inset:auto!important;transform:none!important;flex:0 0 auto!important;width:calc(100% - 16px)!important;max-width:none!important;margin:8px!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));min-height:62px}#bottomNav>[data-bottom-route]{min-width:0;min-height:48px!important}#bottomNav .suite-rail-footer{display:none!important}}
@media(display-mode:standalone){.app-shell{position:fixed;inset:0;height:auto}}

@media(max-width:700px){
 html:root body[data-product] .field-workspace>#bottomNav{position:relative!important;inset:auto!important;transform:none!important;width:calc(100% - 16px)!important;margin:8px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;overflow:visible!important;flex-shrink:0!important}
 html:root body[data-product=surveyor] .field-workspace>#bottomNav{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html:root body[data-product] .field-workspace>#app{height:auto!important;min-height:0!important;flex:1 1 0!important;padding:14px!important;scroll-padding-bottom:16px!important}
 html:root body[data-product] .field-workspace>#bottomNav>[data-bottom-route]{width:auto!important;max-width:none!important;flex:none!important;min-width:0!important}
 html:root body[data-product] .field-workspace>#bottomNav>.suite-rail-footer{display:none!important}
}
body[data-product=surveyor] #app .sf-surveyor-home-heading{margin-top:8px!important;padding-top:0!important}
body[data-product=surveyor] #app .sf-home-survey-types{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body[data-product=surveyor] #app .sf-home-survey-type{min-height:112px}

/* Field keeps the reviewed floating glass dock and v0.2.4 viewport correction. */
@media(max-width:700px){
 html:root body[data-product=field] .app-shell{position:relative!important;inset:auto!important;height:100dvh!important;max-height:100dvh!important}
 html:root body[data-product=field] .field-workspace>#bottomNav{position:absolute!important;inset:auto 14px calc(8px + env(safe-area-inset-bottom,0px))!important;width:calc(100% - 28px)!important;margin:0!important}
 html:root body[data-product=field] .field-workspace>#app{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;scroll-padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important}
}
