/* Header and ordinary page content share one scroll container. Chat keeps its own viewport. */
html[data-xinyu-theme] .app-layout:not(.chat-focus) { overflow-y:auto!important; overflow-x:hidden!important; display:block!important; overscroll-behavior-y:contain; }
html[data-xinyu-theme] .app-layout:not(.chat-focus) > .portrait-header { position:relative!important; top:auto!important; transform:none!important; }
html[data-xinyu-theme] .app-layout:not(.chat-focus) > .app-main { height:auto!important; min-height:calc(100% - 72px)!important; max-height:none!important; overflow:visible!important; flex:none!important; }
html[data-xinyu-theme] .app-layout:not(.chat-focus) .bottom-nav { position:fixed!important; }
