.social-stage,.social-conversations { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; background:#f8f6f1; }
.stage-layout { display:grid; grid-template-columns:minmax(0,680px) minmax(190px,260px); gap:26px; width:min(100% - 40px,966px); margin:auto; padding:22px 0 40px; align-items:start; }
.stage-stream,.stage-works { display:grid; min-width:0; gap:16px; }
.stage-card,.stage-dock { border:1px solid #e7e0d9; border-radius:22px; background:#fffdf9; }
.stage-card { overflow:hidden; }
.stage-card-header { display:flex; align-items:center; gap:10px; padding:13px 15px 0; }
.stage-card-header a { text-decoration:none; color:inherit; }
.stage-card-header div { min-width:0; overflow-wrap:anywhere; }
.stage-card-header img,.stage-person-icon { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border-radius:15px; background:#e9dfef; color:#452b61; object-fit:cover; font-weight:800; }
.stage-card small,.stage-thread small { display:block; color:#5e5368; font-size:.82rem; }
.stage-card h2 { margin:9px 15px 11px; font:800 clamp(1.2rem,3.5vw,1.65rem)/1.13 var(--veli-display); letter-spacing:-.025em; overflow-wrap:anywhere; }
.stage-card h2 a { color:inherit; text-decoration:none; }
.stage-card p { margin:0 15px 14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.stage-cover,.stage-media { display:block; width:100%; background:#2e1f41; }
.stage-cover img,.stage-media :is(img,video) { display:block; width:100%; height:auto; aspect-ratio:3/2; max-height:480px; object-fit:contain; border-radius:0; }
.stage-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 14px 13px; }
.stage-primary,.stage-link,.stage-filters button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:7px 13px; border:1px solid transparent; border-radius:12px; color:#271b35; font:800 .88rem/1.2 var(--veli-body); text-decoration:none; text-align:center; }
.stage-primary { background:#e5f376; }
.stage-link,.stage-filters button { background:transparent; }
.stage-link:hover,.stage-filters button:hover { background:#eee6f3; }
.stage-filters { display:flex; gap:5px; flex-wrap:wrap; }
.stage-filters button[aria-pressed=true] { background:#38284e; color:#fff; }
.stage-filters #stageBrowse { margin-inline-start:auto; }
.stage-works:empty { display:none; }
.stage-dock { position:sticky; top:20px; display:grid; gap:13px; padding:15px; }
.stage-dock-heading { display:flex; align-items:center; gap:10px; }
.stage-dock-heading h2 { margin:0; font:800 1.25rem var(--veli-display); }
.stage-dock-heading p { margin:1px 0 0; color:#5e5368; overflow-wrap:anywhere; }
.stage-dock-portrait,.stage-profile span { display:grid; place-items:center; width:44px; height:44px; flex:none; border-radius:16px; color:#452b61; background:#eee5f4; overflow:hidden; }
.stage-dock-portrait img,.stage-profile img { width:100%; height:100%; object-fit:cover; }
#stageDockDraft { margin:0; padding:10px; border-radius:12px; background:#f2edf6; white-space:pre-wrap; overflow-wrap:anywhere; }
.stage-profile { display:grid; place-items:center; min-width:44px; min-height:44px; margin-inline-start:auto; }
.stage-conversation-list { width:min(100% - 36px,720px); margin:auto; padding-block:24px 40px; }
.stage-conversation-list h1 { margin:0 0 12px; font:850 1.95rem var(--veli-display); }
.stage-conversation-list h2 { margin:20px 0 7px; font:800 1.08rem var(--veli-display); }
.stage-thread { display:flex; align-items:center; gap:12px; width:100%; min-height:62px; text-align:start; border:1px solid #e9e1d9; border-radius:16px; margin:0 0 6px; padding:8px 11px; background:#fffdf9; color:#271b35; text-decoration:none; overflow-wrap:anywhere; }
.stage-thread:hover { border-color:#9a79af; }
.stage-thread img { border-radius:16px; object-fit:cover; }
.stage-mobile-nav { display:none; }
.workspace [data-workspace-view=stage] #agentStatus,.workspace [data-workspace-view=messages] #agentStatus,
.workspace [data-workspace-view=stage] #workspaceResumeContact,.workspace [data-workspace-view=messages] #workspaceResumeContact { display:none; }
.workspace:has([data-workspace-view=stage]) :is(.new-chat,.sidebar .side-links,.history-pane),
.workspace:has([data-workspace-view=messages]) :is(.new-chat,.sidebar .side-links,.history-pane) { display:none; }
.workspace:has([data-workspace-view=stage]) .profile-link:first-of-type,.workspace:has([data-workspace-view=messages]) .profile-link:first-of-type { margin-block-start:auto; }
.workspace [data-social-nav][aria-current=page] { color:#422958; background:#eee5f4; }
.workspace [data-social-nav=buddy] { color:#2a1d38; }
@media(max-width:970px){ .stage-layout { grid-template-columns:minmax(0,680px); justify-content:center; } .stage-dock { display:none; } }
@media(max-width:740px){
  .stage-mobile-nav { display:grid; flex:none; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; padding:4px 6px max(4px,env(safe-area-inset-bottom)); background:#fffdf9; border-top:1px solid #e7e0d9; }
  .stage-mobile-nav :is(a,button) { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:50px; border:0; border-radius:14px; color:#40304c; background:transparent; text-decoration:none; font:800 .72rem var(--veli-body); white-space:nowrap; }
  .stage-mobile-nav [data-social-nav=buddy] { background:#302345; color:#f4f5db; }
  .stage-mobile-nav [data-social-nav=buddy][aria-current=page] { background:#e5f376; color:#271b35; }
  .stage-mobile-nav .nav-count { position:absolute; top:1px; inset-inline-start:calc(50% + 10px); }
  .stage-layout { width:min(100% - 18px,680px); padding-block:9px 24px; }
  .stage-card { border-radius:17px; }
  .stage-card-header { padding-top:10px; }
  .stage-profile span { width:38px; height:38px; border-radius:13px; }
}
@media(max-width:740px) and (max-height:470px) { .workspace:has(.composer-wrap :focus) .stage-mobile-nav { display:none; } }
