/* One viewport, independent scrolling, aligned header and adjustable navigation. */
@media screen {
 body.platformSideNavigation{--sidebar-width:var(--main-rail-width,230px)}
 body.platformSideNavigation.sidebarCompact{--sidebar-width:64px}
 body.platformSideNavigation:has(#appView:not(.hidden)){height:100dvh;overflow:hidden}
 body.platformSideNavigation #appView{height:100dvh;min-height:0;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
 body.platformSideNavigation #appView>main{grid-row:2;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
 body.platformSideNavigation #portalSidebar{position:relative;grid-row:2;top:0;height:100%;max-height:100%;min-height:0;overflow:visible;box-sizing:border-box;margin:0}
 body.platformSideNavigation #portalSidebar>.railResize{position:absolute;inset:0 -6px 0 auto}
 body.platformSideNavigation #portalSidebar>#moduleNav{overscroll-behavior:contain}
 body.platformSideNavigation #portalSidebar>#sidebarFooter{display:block!important;flex-shrink:0;background:inherit}
 body.platformSideNavigation #sidebarFooter #platformBack{display:flex;align-items:center;gap:8px;min-height:36px}
 body.platformSideNavigation.sidebarCompact #sidebarFooter #platformBack{justify-content:center;font-size:1.125rem}
 body.platformSideNavigation.sidebarCompact #sidebarFooter #platformBack:before{content:none}
 body.platformSideNavigation.sidebarCompact #sidebarFooter .sidebarBackLabel{display:none}
 #homeWork{margin:0;padding:0;border:0}
 .overviewTVButton{margin-left:auto;white-space:nowrap}
 .overviewTVSurface{background:var(--bg);color:var(--ink);padding:24px!important;width:100%;height:100dvh;overflow:auto!important;box-sizing:border-box}
 body.overviewTV #appView>main{position:fixed;inset:0;z-index:10000}
 .overviewTVSurface .moduleSplit{display:block!important}
 .overviewTVSurface :is(.moduleActionRail,.cardOrderBar,.uiCardControls,.uiCardOverlay,.overviewTVButton,.railResize,.uiCardRemove,[data-chart-toolbar]){display:none!important}
 .overviewTVSurface .uiDashboardCard{font-size:clamp(1rem,1.2vw,1.4rem)}
 .overviewTVBar{position:fixed;right:16px;bottom:12px;display:flex;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:6px 10px;z-index:10001;box-shadow:0 2px 12px #0005}
}
@media screen and (max-width:900px){
 /* Keep the module in a bounded grid row; the legacy mobile .app is display:block. */
 body.platformSideNavigation #appView{display:grid;grid-template-columns:minmax(0,1fr)}
 body.platformSideNavigation #portalSidebar{position:fixed;top:var(--account-height,100px);height:calc(100dvh - var(--account-height,100px));max-height:calc(100dvh - var(--account-height,100px));grid-row:auto}
 body.platformSideNavigation #appView>main{grid-column:1/-1}
}
@media print{.overviewTVBar,.overviewTVButton{display:none!important}body.platformSideNavigation #appView,body.platformSideNavigation #appView>main{height:auto;overflow:visible}}
.overviewPageActions{display:flex;justify-content:flex-end;align-items:center;margin-left:auto}.overviewChartGrid{display:grid;grid-template-columns:minmax(0,1fr)}
.overviewTVSurface :is(.whActionRail,.bdEditTools,.cardLayoutBar,.cardOrderTools,.cfChartControls){display:none!important}
