/* R455: visible account chrome. Components remain in their historical locations.
 * This small final layer replaces conflicting legacy header/mobile geometry, not permissions. */
html[data-panel-root]{--panel-banner-height:0px;--panel-sidebar-width:250px;overflow-x:clip;overflow-y:visible}
/* overflow-x:hidden implicitly creates a vertical scroll container on body and breaks sticky. */
html[data-panel-root]>body:not(.guest-body){overflow-x:clip;overflow-y:visible}
/* Keep the existing modal drawer lock; never let the sticky fix unlock its backdrop. */
html[data-panel-root]>body.sidebar-open{overflow:hidden}
.individual-workspace .shell{--panel-sidebar-width:252px}
.shell>main{overflow-x:clip;overflow-y:visible;min-width:0}
.shell>.sidebar{display:flex;flex-direction:column;min-height:0;overflow:hidden;height:100vh;height:100dvh;max-height:100dvh}
.shell>.sidebar>.brand>:is(span,img){flex:0 0 38px}
.shell>.sidebar>nav{flex:1 1 0%;min-height:0;overflow-y:auto;overflow-x:hidden}
.shell>.sidebar>.sidebar-foot{flex:0 0 auto;min-height:0;max-height:50vh;max-height:50dvh;overflow-y:auto;overflow-x:hidden;margin-top:8px;padding-top:10px;scrollbar-width:thin}
.sidebar .sidebar-preferences{gap:10px;align-content:start}
.sidebar .sidebar-preferences :is(.language-picker-prominent,.panel-appearance){display:grid;grid-template-columns:20px minmax(0,1fr);gap:4px 6px;padding:0;border:0;border-radius:0;background:transparent;min-width:0}
.sidebar .sidebar-preferences .language-picker-prominent>span{grid-column:1/-1}
.sidebar .sidebar-preferences .panel-appearance .appearance-label{grid-column:2;position:static;width:auto;height:auto;overflow:visible;clip-path:none}
.sidebar .sidebar-preferences select{grid-column:1/-1;max-width:100%;min-width:0;min-height:38px}
.sidebar .sidebar-preferences [hidden]{display:none!important}
/* Reserve the measured impersonation banner; long/localized text can wrap without covering controls. */
@media(min-width:761px){
 .shell{grid-template-columns:var(--panel-sidebar-width) minmax(0,1fr)}
 .shell>.sidebar{width:var(--panel-sidebar-width);top:var(--panel-banner-height);height:calc(100vh - var(--panel-banner-height));height:calc(100dvh - var(--panel-banner-height));max-height:calc(100dvh - var(--panel-banner-height))}
}
@media(min-width:761px) and (max-width:1150px){.individual-workspace .shell{--panel-sidebar-width:222px}}
/* Let secondary blocks wrap instead of clipping the balance/exit past the right edge. */
.shell>main>.topbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;height:auto;min-width:0;max-width:100%;position:sticky;top:var(--panel-banner-height)}
.shell .topbar>.menu{order:0;flex:0 0 auto}
.shell .topbar>.topbar-title{order:1;flex:1 1 160px;min-width:0}
.shell .topbar>.panel-appearance{order:2;flex:0 1 auto;min-width:0;max-width:100%;margin:0}
.shell .topbar>.topbar-meta{order:3;display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px;min-width:0;max-width:100%;margin-left:auto}
.shell .topbar .account-summary{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;min-width:0;max-width:100%}
.shell .topbar .balance-actions{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;max-width:100%}
.shell .topbar .account-balance{display:grid;min-width:0;max-width:100%}
.shell .topbar .account-balance strong{white-space:normal;overflow-wrap:anywhere}
.shell .topbar .account-summary>form{flex:0 0 auto;margin:0}
.shell .topbar .topbar-logout{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:44px;min-height:38px;font-size:12px;line-height:1.4;padding:7px 10px;white-space:nowrap}
.shell .topbar .topbar-logout::after{content:none}
@media(max-width:1250px){.shell .topbar>.topbar-meta{flex:1 1 100%;width:100%;margin:0}}
@media(max-width:760px){
 .shell>main>.topbar{gap:8px;padding:10px 12px}
 .shell .topbar>.topbar-title{flex:1 1 80px}
 .shell .topbar>.panel-appearance .appearance-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .shell .topbar>.panel-appearance select{max-width:145px;min-height:38px}
 .shell .topbar .account-summary{flex:1 1 100%;width:100%;justify-content:space-between;gap:8px}
 .shell .topbar .balance-actions{flex:1 1 0%;gap:6px}
 .shell .topbar .account-balance{display:grid;padding:4px 6px}
 .shell .topbar .account-balance small{display:block;font-size:10px}
 .shell .topbar .balance-token-equivalent{white-space:normal;overflow-wrap:anywhere}
}
@media(max-height:520px){
 .shell>.sidebar{padding-top:12px;padding-bottom:8px}
 .shell>.sidebar>.brand{margin-bottom:8px}
 .shell>.sidebar>.brand>b{line-height:1.25;max-height:2.5em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
 .shell>.sidebar>.iw-nav-search{margin-bottom:8px}
 .sidebar .sidebar-preferences{gap:6px}
 .shell>.sidebar>.sidebar-foot{padding-top:6px;margin-top:6px}
}
@media print{.shell>.sidebar,.shell>main>.topbar{display:none!important}}
