/* CONTINENTAL 08 · native scrolling and non-overlapping app controls */
:root{--pfs-control-floor:max(12px,env(safe-area-inset-bottom));--pfs-dock-height:74px;scroll-padding-bottom:160px;scroll-behavior:smooth}
html{overflow-x:clip}body{overflow-x:clip}
html .x-ambience,html .pfs-ai-trigger{bottom:var(--pfs-control-floor);margin:0}
html.s-standalone{--pfs-control-floor:calc(var(--pfs-dock-height) + max(12px,env(safe-area-inset-bottom)) + 12px)}
html.s-standalone .pfs-ai-trigger,html.s-standalone .x-ambience{bottom:var(--pfs-control-floor)}
html.s-standalone body{padding-bottom:calc(var(--pfs-dock-height) + 100px + env(safe-area-inset-bottom))}
html.s-standalone .s-app-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));box-sizing:border-box;width:min(420px,calc(100% - 24px));gap:2px;padding:8px;bottom:max(12px,env(safe-area-inset-bottom))}
html .s-app-dock a{min-width:0;padding:8px 2px;white-space:normal;text-align:center;overflow-wrap:anywhere;min-height:44px;box-sizing:border-box}
html .x-ambience-panel{max-height:calc(100dvh - var(--pfs-control-floor) - 90px);overscroll-behavior:contain}
html.pfs-keyboard-open .s-app-dock,html.pfs-keyboard-open .x-ambience,html.pfs-keyboard-open .pfs-ai-trigger{visibility:hidden;pointer-events:none}
html.pfs-scrolling :is(.s-glitch-layer,.s-cinema-frame,.d-trace,.d-float,.d-breathe,.x-nexus-routes path),html.pfs-scrolling body:before{animation-play-state:paused!important}
.s-fx-paused :is(.s-cinema-frame,.d-trace,.d-float,.d-breathe){animation-play-state:paused!important}
@media(max-width:700px){
 html .x-ambience{left:max(12px,env(safe-area-inset-left))}
 html .x-ambience-launch{height:48px;min-width:48px;padding:11px 13px;font-size:11px;box-sizing:border-box}
 html .pfs-ai-trigger{right:max(12px,env(safe-area-inset-right));min-height:48px;max-width:calc(50vw - 18px);padding:9px 12px;gap:8px;box-sizing:border-box;box-shadow:0 4px 16px #020c1c40}
 html .pfs-ai-trigger .b-trigger-copy strong{font-size:12px;letter-spacing:.07em}
 html .pfs-ai-trigger .b-trigger-copy small{display:none}
 html .pfs-ai-trigger .b-trigger-mark{width:22px;height:26px;font-size:18px;flex:none}
 .nexus-page :is(.n-card,.n-editorial,.x-discover-card,.c-journal-teaser,.c-place-body),html .s-app-dock{backdrop-filter:none;-webkit-backdrop-filter:none}
 .d-scene{--d-drift:0px!important;--d-turn:0deg!important}
 .s-cinema-layer:after{background-image:linear-gradient(90deg,#071728ec,#071728c4)}
}
@media(max-width:359px){html .x-ambience-launch span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}html .x-ambience-launch{width:48px;justify-content:center}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}}
