/* R9.7.2.2.9 — consolidated presentation-only overrides.
   Preserve registry, IDs, canvas positions, edge routing and all click handlers. */
/* Project Explorer: one common horizontal alignment grid and consistent button geometry. */
#projectExplorer .s2d-544-project-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;margin:10px 12px!important;width:calc(100% - 24px)!important;max-width:none!important;}
#projectExplorer .s2d-544-project-actions>button{width:100%!important;min-width:0!important;height:52px!important;min-height:52px!important;max-height:52px!important;margin:0!important;padding:7px 6px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;text-align:center!important;white-space:normal!important;line-height:1.25!important;border-radius:10px!important;box-sizing:border-box!important;}
#projectExplorer .s2d-544-project-actions>button i{flex:0 0 16px!important;width:16px!important;text-align:center!important;}
#projectExplorer .s2d-544-project-actions>button:last-child:nth-child(odd){grid-column:1/-1!important;}
#projectExplorer :is(#s2dProjectWorkspaceEntry,#r970ProjectEntry,.s2d-dashboard-sidebar-entry){width:calc(100% - 24px)!important;max-width:none!important;min-width:0!important;height:52px!important;min-height:52px!important;max-height:52px!important;margin:8px 12px!important;padding:8px 14px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;border-radius:10px!important;box-sizing:border-box!important;font-size:12px!important;line-height:1.25!important;}
#projectExplorer :is(#s2dProjectWorkspaceEntry,#r970ProjectEntry,.s2d-dashboard-sidebar-entry) i{flex:0 0 18px!important;width:18px!important;text-align:center!important;}
/* Team Organization: match the structural composition of Project Flow Canvas. */
#s2d-r970 .r972-team-view{background:#071f35!important;min-width:0!important;}
#s2d-r970 .r972-team-view .r972-layout{grid-template-columns:250px minmax(0,1fr) 300px!important;width:100%!important;height:100%!important;min-height:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;}
#s2d-r970 .r972-team-view .r972-palette{padding:16px 15px!important;background:#08263f!important;overflow-y:auto!important;scrollbar-width:thin!important;}
#s2d-r970 .r972-team-view .r972-inspector{padding:16px 15px!important;background:#08243c!important;overflow-y:auto!important;scrollbar-width:thin!important;}
#s2d-r970 .r972-team-view :is(.r972-palette,.r972-inspector)>h3{font-size:17px!important;color:#92dfff!important;line-height:1.25!important;margin:0 0 12px!important;}
#s2d-r970 .r972-team-view .r972-role-category{padding:11px 9px!important;margin-bottom:13px!important;border:1px solid #315c78!important;border-radius:10px!important;}
#s2d-r970 .r972-team-view .r972-role{width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;max-height:none!important;display:flex!important;align-items:center!important;text-align:left!important;padding:6px 8px!important;gap:8px!important;line-height:1.25!important;margin:4px 0!important;}
#s2d-r970 .r972-team-view .r972-role>span:nth-child(2){min-width:0!important;flex:1!important;overflow-wrap:normal!important;word-break:normal!important;}
#s2d-r970 .r972-team-view .r972-role-icon{flex:0 0 26px!important;width:26px!important;height:26px!important;}
#s2d-r970 .r972-team-view .r972-stage{min-width:0!important;min-height:0!important;border-right:1px solid #315a75!important;}
#s2d-r970 .r972-team-view .r972-toolstrip{display:flex!important;align-items:center!important;gap:10px!important;min-height:60px!important;padding:8px 12px!important;background:#0c2d48!important;}
#s2d-r970 .r972-team-view .r972-canvas-title{flex:0 0 auto!important;min-width:0!important;}
#s2d-r970 .r972-team-view .r972-toolbuttons{margin-left:auto!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important;overflow-x:auto!important;}
#s2d-r970 .r972-team-view .r972-toolbuttons button{height:38px!important;min-height:38px!important;flex:0 0 auto!important;white-space:nowrap!important;}
#s2d-r970 .r972-team-view .r972-scroll{background:radial-gradient(circle,#1d557e 1px,transparent 1px) 0 0 / 21px 21px,#061e34!important;scrollbar-width:thin!important;scrollbar-color:#4fafd8 #08253b!important;}
#s2d-r970 .r972-team-view .r972-bottom{height:74px!important;min-height:74px!important;padding:9px 13px!important;}
#s2d-r970 .r972-team-view .r972-minimap{width:175px!important;height:56px!important;}
#s2d-r970 .r972-team-view .r972-palette>[data-r970],#s2d-r970 .r972-team-view .r972-palette>.r972-create-group-prominent{width:100%!important;min-height:42px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;margin:7px 0!important;padding:8px 11px!important;text-align:left!important;}
@media(max-width:1150px){#s2d-r970 .r972-team-view .r972-layout{grid-template-columns:215px minmax(0,1fr) 255px!important}}
@media(max-width:850px){#s2d-r970 .r972-team-view .r972-layout{grid-template-columns:175px minmax(0,1fr) 215px!important}#s2d-r970 .r972-team-view .r972-toolstrip{flex-wrap:wrap!important}}

/* HF75-R2.8.9.1 — Four-state Team Layout Reflow (source fix).
   The older workspace parity !important grid was retaining invisible side columns.
   These selectors use the existing hf288 state classes; no data or runtime changes. */
#s2d-r970 .r970-body.r972-team-view > .r970-main {width:100%!important;max-width:none!important;min-width:0!important;justify-self:stretch!important}
#s2d-r970 .r970-body.r972-team-view .r972-layout {width:100%!important;max-width:none!important;min-width:0!important;grid-template-columns:250px minmax(0,1fr) 300px!important}
#s2d-r970 .r970-body.r972-team-view.hf288-library-collapsed .r972-layout {grid-template-columns:0px minmax(0,1fr) 300px!important}
#s2d-r970 .r970-body.r972-team-view.hf288-inspector-collapsed .r972-layout {grid-template-columns:250px minmax(0,1fr) 0px!important}
#s2d-r970 .r970-body.r972-team-view.hf288-library-collapsed.hf288-inspector-collapsed .r972-layout {grid-template-columns:0px minmax(0,1fr) 0px!important}
#s2d-r970 .r970-body.r972-team-view.hf288-library-collapsed .r972-palette,
#s2d-r970 .r970-body.r972-team-view.hf288-inspector-collapsed .r972-inspector {visibility:hidden!important;min-width:0!important;width:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;pointer-events:none!important}
#s2d-r970 .r970-body.r972-team-view .r972-stage {min-width:0!important;width:100%!important;max-width:none!important}
#s2d-r970 .r970-body.r972-team-view .r972-bottom {display:flex;align-items:center;gap:12px;min-width:0;min-height:58px;padding:7px 12px!important;overflow:hidden}
#s2d-r970 .r970-body.r972-team-view .r972-minimap {position:relative!important;left:auto!important;bottom:auto!important;flex:0 0 108px!important;width:108px!important;height:44px!important;max-width:108px!important;opacity:.85!important}
#s2d-r970 .r970-body.r972-team-view .r972-bottom > :not(.r972-minimap){min-width:0;overflow-wrap:anywhere}
@media(max-width:1500px){
 #s2d-r970 .r970-body.r972-team-view .r972-layout {grid-template-columns:220px minmax(0,1fr) 255px!important}
 #s2d-r970 .r970-body.r972-team-view.hf288-library-collapsed .r972-layout {grid-template-columns:0px minmax(0,1fr) 255px!important}
 #s2d-r970 .r970-body.r972-team-view.hf288-inspector-collapsed .r972-layout {grid-template-columns:220px minmax(0,1fr) 0px!important}
 #s2d-r970 .r970-body.r972-team-view.hf288-library-collapsed.hf288-inspector-collapsed .r972-layout {grid-template-columns:0px minmax(0,1fr) 0px!important}
}
@media(max-width:1050px){
 #s2d-r970 .r970-body.r972-team-view .r972-layout {grid-template-columns:195px minmax(0,1fr) 205px!important}
 #s2d-r970 .r970-body.r972-team-view.hf288-library-collapsed .r972-layout {grid-template-columns:0px minmax(0,1fr) 205px!important}
 #s2d-r970 .r970-body.r972-team-view.hf288-inspector-collapsed .r972-layout {grid-template-columns:195px minmax(0,1fr) 0px!important}
 #s2d-r970 .r970-body.r972-team-view.hf288-library-collapsed.hf288-inspector-collapsed .r972-layout {grid-template-columns:0px minmax(0,1fr) 0px!important}
}
