/* Common authenticated shell. Independent from the selected page and its business toolbar. */
@media(min-width:1100px){
 body #app_view.workspace.portal-visual-2026>.global-header{
  display:grid;grid-template-columns:80px minmax(150px,1fr) auto;grid-template-rows:auto;
  align-items:center;gap:12px;min-height:54px;height:auto;padding:7px 18px;
 }
 body #app_view.workspace.portal-visual-2026>.global-header>.logo{grid-column:1;grid-row:1}
 body #app_view.workspace.portal-visual-2026>.global-header>.global-search{grid-column:2;grid-row:1;min-width:0;width:auto;max-width:none;margin:0}
 body #app_view.workspace.portal-visual-2026>.global-header>.global-search input{width:100%;min-width:0;box-sizing:border-box}
 body #app_view.workspace.portal-visual-2026>.global-header>.header-actions{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;min-width:0;max-width:none;margin:0;padding:0;overflow:visible}
 body #app_view.workspace.portal-visual-2026>.workspace-banner{padding:0 24px;min-height:0;height:auto}
 body #app_view.workspace.portal-visual-2026>.workspace-banner #member_company_context:not(.hidden){display:flex;align-items:center;gap:10px;margin:0;padding:0;width:100%;min-width:0}
 body #app_view.workspace.portal-visual-2026>.workspace-banner #member_company_context>span{flex:none;white-space:nowrap}
 body #app_view.workspace.portal-visual-2026>.workspace-banner #member_company_context select{flex:1;min-width:180px;width:auto;max-width:100%;box-sizing:border-box}
 body #app_view.workspace.portal-visual-2026>.workspace-banner #member_company_context small{flex:0 1 280px;max-width:280px;line-height:1.3}
 /* Internal accounts retain their richer dossier controls on a deliberate extra row. */
 body #app_view.workspace.portal-visual-2026>.global-header:has(#internal_context:not(.hidden)){grid-template-columns:80px minmax(150px,1fr)}
 body #app_view.workspace.portal-visual-2026>.global-header:has(#internal_context:not(.hidden))>.header-actions{grid-column:1/-1;grid-row:2;justify-content:flex-end}
 body #app_view.workspace.portal-visual-2026>.global-header #internal_context:not(.hidden){flex:1 1 460px;min-width:0;max-width:100%}
}
@media(min-width:600px) and (max-width:1099px){
 body #app_view.workspace.portal-visual-2026>.global-header{display:grid;grid-template-columns:80px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:10px 12px;height:auto;min-height:0;padding:10px 18px}
 body #app_view.workspace.portal-visual-2026>.global-header>.logo{grid-column:1;grid-row:1}
 body #app_view.workspace.portal-visual-2026>.global-header>.global-search{grid-column:2;grid-row:1;min-width:0;max-width:none;width:auto;margin:0}
 body #app_view.workspace.portal-visual-2026>.global-header>.global-search input{width:100%;min-width:0;box-sizing:border-box}
 body #app_view.workspace.portal-visual-2026>.global-header>.header-actions{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;max-width:100%;min-width:0;margin:0;padding:0;overflow:visible}
 body #app_view.workspace.portal-visual-2026>.global-header #internal_context:not(.hidden){flex-basis:100%;min-width:0;max-width:100%}
 body #app_view.workspace.portal-visual-2026>.workspace-banner{padding:0 18px;min-height:0;height:auto}
 body #app_view.workspace.portal-visual-2026>.workspace-banner #member_company_context:not(.hidden){display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 10px;margin:0;padding:0}
 body #app_view.workspace.portal-visual-2026>.workspace-banner #member_company_context select{min-width:0;width:100%;box-sizing:border-box}
 body #app_view.workspace.portal-visual-2026>.workspace-banner #member_company_context small{grid-column:2;max-width:none}
}
/* Phone shell, account menu, dossier selector and bottom navigation keep their existing behavior. */
