/* XMM AI v693: chat text never goes under the top bar (phone + PC).
   The chat log now starts BELOW the bar, so messages are clipped at the bar's
   bottom edge instead of sliding behind it. */
html body.x678{--xbar:calc(62px + env(safe-area-inset-top,0px))}
@media(min-width:900px){html body.x678{--xbar:58px}}

/* the log begins under the bar (hard stop, nothing scrolls behind it) */
html body.x678.x678.x678 #win #log{margin-top:var(--xbar)!important}
html body.x678.x678.x678.e678 #win #log{margin-top:0!important}

/* solid strip behind the bar so it reads as a real top bar */
html body.x678 #win::before{content:"";position:absolute;left:0;right:0;top:0;height:var(--xbar);z-index:4;pointer-events:none;
 background:#000;border-bottom:1px solid var(--b-ln,rgba(255,255,255,.13))}
html[data-theme="light"] body.x678 #win::before{background:#f2f2f4}
html body.x678.e678 #win::before{display:none}
/* the bar's buttons stay above the strip */
html body.x678 #win #top{z-index:6!important}
@media(min-width:900px){
 html body.x678 #win::before{left:var(--b-sw,288px)}
 html body.x678.sc #win::before{left:0}
}
