/* Keep account controls inside the available header width, including narrow phones. */
body.focused-workspace .app-topbar{box-sizing:border-box;min-width:0;max-width:100%;flex-wrap:wrap}
body.focused-workspace .app-topbar>div:first-child{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
body.focused-workspace .app-topbar .top-actions{display:flex;min-width:0;max-width:100%;box-sizing:border-box;flex-wrap:wrap!important;align-items:center;justify-content:flex-end;gap:10px}
body.focused-workspace .top-account-menu{max-width:100%;box-sizing:border-box}
body.focused-workspace .top-account-menu .account-session{max-width:calc(100vw - 28px);max-height:min(65dvh,calc(100dvh - 120px));overflow-y:auto;overscroll-behavior:contain}
body.focused-workspace #workspace-thread,body.focused-workspace .sidebar-scroll-region{overscroll-behavior-y:contain;scrollbar-gutter:stable}
@media(max-width:700px){body.focused-workspace .app-topbar .top-actions{width:100%;justify-content:flex-start;gap:8px}body.focused-workspace .app-topbar{padding:10px 14px}}
@media(max-width:700px){body.focused-workspace .top-account-menu .account-session{position:fixed;top:var(--zenshi-account-top,190px);right:14px;left:auto;width:min(300px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:var(--zenshi-account-height,60dvh);overflow-y:auto;z-index:120}}
@media(max-width:700px){body.focused-workspace .app-shell.mobile-nav-open .sidebar-scroll-region>.side-nav{display:flex!important;flex-direction:column}body.focused-workspace .app-shell.mobile-nav-open .sidebar-scroll-region>#new-chat{display:flex!important}body.focused-workspace:has(.app-shell.mobile-nav-open) .workspace-support{visibility:hidden}body.focused-workspace .sidebar-scroll-region{touch-action:pan-y}}
body.focused-workspace .top-account-menu .account-session{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;box-sizing:border-box!important}body.focused-workspace .top-account-menu .account-session>*{flex:none;min-width:0;max-width:100%;box-sizing:border-box}
