/* Layout only. Visual tokens and component styling come from the original Studio theme. */
.portal-shell>.top,.portal-shell>.top.sidebar-collapsed{position:sticky;top:0;bottom:auto;left:0;width:100%;height:80px;z-index:30}
.portal-shell>.top .topin{height:80px;display:flex;flex-direction:row;align-items:center;gap:22px;padding:12px 24px;position:relative}
.portal-shell .brand{padding:0;gap:9px}.portal-shell .role{display:none}
.portal-shell>.top .nav{flex-direction:row;align-items:center;overflow:visible;gap:5px;padding:0;min-width:0}
.portal-shell>.top .nav button,.portal-shell>.top .nav-group>summary{display:flex;align-items:center;gap:8px;width:auto;min-height:44px;font-size:14px;white-space:nowrap;padding:10px 12px}
.portal-shell .nav-group{position:relative}
.portal-shell .nav-group-items{position:absolute;top:52px;left:0;min-width:240px;max-height:70dvh;overflow:auto;margin:0;padding:8px;background:var(--studio-nav);border:1px solid #ffffff15;border-radius:10px;box-shadow:var(--shadow-3)}
.portal-shell>.top .nav-group-items button{width:100%;text-align:left;font-size:14px;min-height:44px}
.portal-shell .sidebar-toggle{display:none!important}
.portal-shell .sidebar-account{position:static;display:flex;flex-direction:row-reverse;align-items:center;gap:10px;margin:0 0 0 auto;padding:0;background:none;border:0;box-shadow:none}
.portal-shell .profile-dock{width:46px;min-height:46px;padding:3px}
.portal-shell .profile-dock .producer-avatar{width:38px;height:38px}.portal-shell .profile-dock-label,.portal-shell .profile-dock-arrow{display:none}
.portal-shell .sidebar-utilities{padding:0;margin:0;gap:8px}.portal-shell .sidebar-utilities button{width:36px;min-height:40px}.portal-shell .sidebar-utilities .nav-label{display:none}
.portal-shell>.top+.portal-workspace,.portal-shell>.sidebar-collapsed+.portal-workspace{margin-left:0;width:100%;padding-bottom:0;max-width:none;min-height:calc(100dvh - 80px)}
.portal-shell:has(.workspace-chat) .workspace-chat{height:calc(100dvh - 80px);min-height:0}
/* Keep hierarchy zoom, fit and agent drawer functionality. */
.org-scroll{min-height:480px;max-height:70vh;overflow:auto}
.org-tree{width:max-content;min-width:100%;transform-origin:top left}
.org-zoom{display:flex;align-items:center;gap:10px;padding:16px 24px}.org-zoom output{min-width:48px;text-align:center;font-variant-numeric:tabular-nums}
.org-agent-panel:not([hidden]){position:fixed;inset:80px 0 0 auto;width:min(500px,100vw);max-height:calc(100dvh - 80px);overflow:auto;z-index:35;margin:0;background:var(--surface);border:0;border-left:1px solid var(--hairline-strong);border-radius:14px 0 0 14px;padding:28px;box-shadow:var(--shadow-3)}
.org-agent-panel .head{position:sticky;top:-28px;background:var(--surface);padding:20px 0;z-index:1}.org-agent-panel .org-details{display:flex;flex-direction:column;gap:20px}.org-agent-panel .org-detail{padding-bottom:16px;border-bottom:1px solid var(--hairline)}.org-agent-panel .row{flex-wrap:wrap}.org-agent-panel .org-comp-actions{display:flex;flex-wrap:wrap;gap:8px}.org-agent-panel .org-partnership-summary{flex-direction:column}
.portal-shell .mark{display:grid;place-items:center}
#modal.modal{z-index:1000}
@media(min-width:1101px){#mobileNavToggle{display:none!important}.portal-shell .brand{max-width:170px}}
@media(max-width:1100px){
 .portal-shell>.top .topin{gap:10px;padding:10px 16px}.portal-shell .brand{flex:1}
 .portal-shell #mobileNavToggle{display:flex;position:static;width:42px;height:42px;align-items:center;justify-content:center}.portal-shell #mobileNavToggle svg{width:22px;height:22px}
 .portal-shell .nav{display:none!important}
 .portal-shell>.top.mobile-nav-open .nav,.portal-shell>.top.mobile-nav-open .nav:has(.nav-group[open]){display:flex!important;position:absolute;top:80px;left:12px;right:12px;width:auto;max-height:calc(100dvh - 100px);overflow:auto;flex-direction:column;align-items:stretch;padding:12px;background:var(--studio-nav);border-radius:12px}
 .portal-shell>.top .nav-group[open] .nav-group-items{position:static;box-shadow:none;border:0;padding:4px 0 4px 16px;max-height:none;margin:0;background:var(--studio-nav)}
 .portal-shell>.top .nav button,.portal-shell>.top .nav-group>summary{width:100%}
 .portal-shell .sidebar-account{gap:6px}.portal-shell .sidebar-utilities{gap:4px}
}
@media(max-width:540px){.portal-shell .brandname{font-size:12px;max-width:95px}.portal-shell .sidebar-utilities button{width:30px}.portal-shell .mark{display:none}.org-toolbar{flex-wrap:wrap}.org-scroll{min-height:400px}.org-agent-panel:not([hidden]){padding:20px}}
