/* Scoped hySocial persistent center-workspace; native layout remains authoritative. */
body[data-hysocial-page="hysocial"].hs-workspace-active .hs-right{display:none!important}
body[data-hysocial-page="hysocial"] #panel-workspace{min-width:0;min-height:0;overflow:hidden}
body[data-hysocial-page="hysocial"] #panel-workspace.active{display:flex;flex-direction:column;flex:1}
body[data-hysocial-page="hysocial"] .hs-workspace-head{gap:10px}
body[data-hysocial-page="hysocial"] .hs-workspace-head h2{overflow:hidden;text-overflow:ellipsis;font-size:clamp(15px,2vw,20px)}
body[data-hysocial-page="hysocial"] .hs-workspace-head .hs-workspace-back{display:grid;place-items:center;flex:0 0 44px;height:44px;color:var(--hs-accent);border:1px solid var(--hs-border);border-radius:12px;background:var(--hs-accent-dim);cursor:pointer;font-size:21px}
body[data-hysocial-page="hysocial"] .hs-workspace-head #hs-workspace-open{margin-left:auto;flex:0 0 44px}
body[data-hysocial-page="hysocial"] .hs-workspace-panel .hs-app-frame{flex:1 1 auto;width:100%;height:100%;min-height:0;min-width:0;border:0;background:var(--hs-bg)}
body[data-hysocial-page="hysocial"] .hs-nav-link.hs-workspace-selected{color:var(--hs-accent);background:var(--hs-accent-dim);border-left:3px solid var(--hs-accent)}
body[data-hysocial-page="hysocial"] .hs-workspace-drawer[hidden]{display:none!important}
body[data-hysocial-page="hysocial"] .hs-workspace-drawer{position:fixed;inset:0;z-index:2005;display:flex;align-items:flex-end;justify-content:center;background:#000b;padding-top:env(safe-area-inset-top,0px)}
body[data-hysocial-page="hysocial"] .hs-workspace-drawer-card{width:100%;max-width:620px;max-height:min(86dvh,800px);display:flex;flex-direction:column;min-height:0;background:var(--hs-surface);border:1px solid var(--hs-border);border-radius:22px 22px 0 0;box-shadow:0 -15px 65px #0008;padding:12px 14px calc(18px + env(safe-area-inset-bottom,0px))}
body[data-hysocial-page="hysocial"] .hs-workspace-drawer-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 8px 14px}
body[data-hysocial-page="hysocial"] .hs-workspace-drawer-card header strong{font-size:17px}
body[data-hysocial-page="hysocial"] .hs-workspace-drawer-card header button{height:44px;width:44px;border-radius:12px;border:1px solid var(--hs-border);background:var(--hs-card);color:var(--hs-text);font-size:22px}
body[data-hysocial-page="hysocial"] #hs-workspace-drawer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:auto;min-height:0;overscroll-behavior:contain}
body[data-hysocial-page="hysocial"] #hs-workspace-drawer-links a{min-height:48px;display:flex;gap:9px;align-items:center;padding:10px;border:1px solid var(--hs-border);border-radius:12px;color:var(--hs-text);text-decoration:none;font-size:13px;min-width:0}
body[data-hysocial-page="hysocial"] #hs-workspace-drawer-links a iconify-icon{font-size:21px;color:var(--hs-accent);flex:none}
body[data-hysocial-page="hysocial"] #hs-workspace-drawer-links a span{overflow-wrap:anywhere}
@media(max-width:768px){
 body[data-hysocial-page="hysocial"] #panel-workspace{padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))}
 body[data-hysocial-page="hysocial"] .hs-workspace-head{min-height:51px;padding:5px 10px;gap:8px}
 body[data-hysocial-page="hysocial"] .hs-workspace-head #hs-workspace-desc{display:none}
 body[data-hysocial-page="hysocial"] .hs-workspace-drawer{padding-bottom:0}
 body[data-hysocial-page="hysocial"] #hs-mobile-tabs .hs-workspace-more{flex:0 0 64px;min-width:64px;min-height:52px}
}
@media(max-width:380px){
 body[data-hysocial-page="hysocial"] #hs-workspace-drawer-links{grid-template-columns:1fr 1fr}
 body[data-hysocial-page="hysocial"] #hs-mobile-tabs .hs-workspace-more{flex-basis:57px;min-width:57px}
}

@media(max-width:768px){
 body[data-hysocial-page="hysocial"] #hs-mobile-tabs{padding-right:70px!important}
 body[data-hysocial-page="hysocial"] #hs-mobile-more{position:fixed!important;bottom:calc(5px + env(safe-area-inset-bottom,0px));right:5px;z-index:306;width:58px;min-width:58px!important;height:50px;background:var(--hs-surface);border:1px solid var(--hs-border);border-radius:13px;box-shadow:-7px 0 14px #0009;color:var(--hs-accent)}
}

/* Chroma V16 grouped navigation, maintaining real action nodes. */
body[data-hysocial-page="hysocial"] .hs-nav-group{padding:0 8px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
body[data-hysocial-page="hysocial"] .hs-nav-group-label{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--hs-muted);opacity:.78;padding:13px 10px 7px;border-top:1px solid var(--hs-border);font-weight:800}
body[data-hysocial-page="hysocial"] .hs-nav-group .hs-tab{width:100%;flex-direction:row;gap:9px;justify-content:flex-start;padding:10px 12px;font-size:13px;min-height:44px;text-align:left}
body[data-hysocial-page="hysocial"] .hs-nav-group .hs-tab iconify-icon{font-size:20px}
body[data-hysocial-page="hysocial"] .hs-nav-group .hs-app-link{display:flex}
body[data-hysocial-page="hysocial"] .hs-nav-group .hs-nav-link{min-height:43px;font-size:13px}
body[data-hysocial-page="hysocial"] .hs-nav-group .hs-tab.active{color:var(--hs-accent);background:var(--hs-accent-dim)}
body[data-hysocial-page="hysocial"] #hs-messenger-launcher[hidden]{display:none!important}
@media(max-width:768px){
body[data-hysocial-page="hysocial"] .hs-nav-group{padding-inline:6px}
body[data-hysocial-page="hysocial"] #hs-workspace-drawer-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Native Communities and Messenger tabs are canonical; hide the redundant quick launcher even before JS hydration. */
body[data-hysocial-page="hysocial"] #hs-messenger-launcher{display:none!important}

/* Contextual back navigation for native social panels. Workspace pages
   retain their existing header back button; no duplicate controls. */
body[data-hysocial-page="hysocial"] .hs-shell-back{
  flex:0 0 auto;align-self:flex-start;min-height:38px;min-width:76px;
  display:flex;align-items:center;gap:6px;margin:8px 0 0 11px;padding:5px 12px;
  border:1px solid var(--hs-border);border-radius:11px;
  color:var(--hs-text);background:var(--hs-card);font-size:12px;font-weight:700;
  cursor:pointer;z-index:3;
}
body[data-hysocial-page="hysocial"] .hs-shell-back[hidden]{display:none!important}
body[data-hysocial-page="hysocial"] .hs-shell-back span{font-size:28px;line-height:19px}
body[data-hysocial-page="hysocial"] .hs-shell-back:hover{color:var(--hs-accent);background:var(--hs-accent-dim)}
@media(max-width:768px){body[data-hysocial-page="hysocial"] .hs-shell-back{margin:4px 0 0 8px;min-height:36px}}
