/* One viewport scroll owner; floating tools remain in their existing host. */
.bz-ui-cleanup-r9 .topbar.r3-header{position:sticky!important;top:0;z-index:1900}
html.fullscreen-fit,html.fullscreen-fit body{height:100%;overflow:hidden!important}
html.fullscreen-fit main.app-shell{height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;display:flex!important;flex-direction:column;align-items:stretch}
html.fullscreen-fit main.app-shell>.topbar{position:sticky!important;top:0;z-index:1900;flex-shrink:0}
html.fullscreen-fit .workspace{height:auto!important;flex:1 0 auto;min-height:420px}
html.fullscreen-fit .timeline-card{height:auto!important;overflow:visible;min-height:420px}
html.fullscreen-fit .timeline-stage{height:clamp(360px,62vh,780px)!important;flex:0 0 auto!important}
.timeline-card .legend,.timeline-card.collapsed .legend{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;flex-shrink:0}
.bz-ui-cleanup-r9 #projectPanel .session-media-e23{z-index:auto!important}
.bz-ui-cleanup-r9 #projectPanel>header{isolation:isolate;z-index:20}
.bz-ui-cleanup-r9 .topbar.r3-header{display:flex!important;flex-wrap:nowrap!important;gap:14px}
.bz-ui-cleanup-r9 .r3-header .brand{flex:0 0 auto;max-width:22%;min-width:0}
.bz-ui-cleanup-r9 .r3-header .actions{flex:0 0 auto;margin-left:auto;min-width:0}
.bz-ui-cleanup-r9 .r3-header #regionBrowserOpen{position:absolute!important;left:var(--r3-rb-left,250px)!important;top:50%!important;transform:translateY(-50%)!important;flex:0 0 auto}
.bz-ui-cleanup-r9 .r3-header #bzR9CurrentProject{width:var(--r3-project-width,180px)!important;max-width:var(--r3-project-width,180px)!important;min-width:0!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;position:absolute!important}
.bz-ui-cleanup-r9 .r3-header.r3-header-narrow{display:grid!important;grid-template-columns:auto minmax(100px,1fr) auto;gap:8px}
.bz-ui-cleanup-r9 .r3-header-narrow .brand{grid-column:1;grid-row:1;max-width:none}
.bz-ui-cleanup-r9 .r3-header-narrow #bzR9CurrentProject{grid-column:2;grid-row:1;position:static!important;transform:none!important;max-width:100%!important;width:100%!important}
.bz-ui-cleanup-r9 .r3-header-narrow>.actions{grid-column:1/-1;grid-row:2;justify-content:flex-end}
.bz-ui-cleanup-r9 .r3-header-narrow #regionBrowserOpen{position:static!important;transform:none!important;order:-1}
body[data-domp-surface="community"] #communityWorkspaceSurface{width:100%;max-width:none;min-height:0;padding:0;flex:1 0 auto}
