/* Shared with the future mobile shell. Override --q-safe-* only in tests/native adapters. */
:root{--q-safe-top:env(safe-area-inset-top,0px);--q-safe-bottom:env(safe-area-inset-bottom,0px);--q-safe-left:env(safe-area-inset-left,0px);--q-safe-right:env(safe-area-inset-right,0px);--q-bottom-stack-height:0px}
#q-bottom-stack{position:fixed;z-index:280;inset:auto 0 0;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;max-height:min(50dvh,calc(100dvh - var(--q-safe-top) - 44px));overflow-y:auto;overscroll-behavior:contain;padding:8px max(12px,var(--q-safe-right)) calc(8px + var(--q-safe-bottom)) max(12px,var(--q-safe-left));pointer-events:none}
#q-bottom-stack:empty{display:none}
.q-bottom-layer{flex:0 0 auto;min-width:0;pointer-events:auto;width:100%;box-sizing:border-box}
.q-bottom-layer:empty{display:none}
.q-bottom-layer[data-bottom-layer="update"]{order:10}
.q-bottom-layer[data-bottom-layer="cta"]{order:20}
.q-bottom-layer[data-bottom-layer="legal"]{order:30}
.q-bottom-layer[data-bottom-layer="install"]{order:40}
.q-bottom-layer[data-bottom-layer="notice"]{order:50}
#q-bottom-stack #public-legal-bar{padding:8px 12px}
#q-bottom-stack #public-legal-bar[data-collapsed="true"]{padding:0}
#q-bottom-stack #public-legal-toggle{position:static;min-height:44px;max-width:100%;margin-left:auto;white-space:normal}
#q-bottom-stack button,#q-bottom-stack a{min-height:44px;min-width:44px}
body:not([data-public-entry="false"]){box-sizing:border-box;padding-bottom:var(--q-bottom-stack-height)}
body:not([data-public-entry="false"]) #root{box-sizing:border-box;margin-top:var(--q-safe-top);padding-top:0;padding-inline:max(0px,var(--q-safe-left)) max(0px,var(--q-safe-right));scroll-padding-bottom:16px}
/* Static public/legal pages share the same safe-area contract without the React shell. */
body:not(:has(#root)){padding-top:var(--q-safe-top);padding-bottom:var(--q-safe-bottom)}
.seo-header{top:var(--q-safe-top)!important}
.seo-mobile-nav{top:calc(60px + var(--q-safe-top))!important;padding-bottom:calc(24px + var(--q-safe-bottom))!important}
.seo-hamburger{min-width:44px;min-height:44px}
@media(prefers-reduced-motion:reduce){#q-bottom-stack *{animation:none!important;transition:none!important}}

body[data-public-entry="false"] #q-bottom-stack:not(:has(> .q-bottom-layer:not([data-bottom-layer="legal"]):not(:empty))){display:none}

/* Only the public landing controls and the home scroll wrapper participate. */
[data-public-menu-control],[data-public-back-control]{box-sizing:border-box;min-width:44px;min-height:44px}
body:not([data-public-entry="false"]) #root > .h-screen:has(> [data-public-page="platform"]){height:100%!important}
