#site-companions{position:fixed;top:calc(var(--companion-top,0px) + env(safe-area-inset-top,0px) + 8px);left:50%;transform:translateX(-50%);display:flex;align-items:start;justify-content:center;gap:10px;max-width:calc(100% - 20px);z-index:1201;pointer-events:none}#site-companions[hidden],#site-companions [hidden]{display:none!important}#site-companions .companion-cubicle{box-sizing:border-box;position:relative;flex:0 0 106px;width:106px;padding:4px 4px 5px;border:1px solid #b987e877;border-radius:15px;background:#0d071466;box-shadow:0 3px 12px #0003;pointer-events:auto;margin:0}#site-companions .companion-bizbud{border-color:#65c9ed88;background:#05131c66}#site-companions .companion-home{position:relative;width:96px;height:116px}#site-companions .companion-name{display:block;color:#f4e9ff;font:600 11px/1.4 system-ui;text-align:center;letter-spacing:.035em;text-shadow:none}#site-companions .companion-bizbud .companion-name{color:#d4f6ff}#site-companions button:focus-visible{outline:2px solid #e4c7ff;outline-offset:2px}body.home-view #site-companions{display:none!important}@media(max-width:520px){#site-companions{gap:8px;top:calc(var(--companion-top,0px) + env(safe-area-inset-top,0px) + 6px)}}
/* Mobile utility controls sit below—not behind—the two companion cubicles. */
@media(max-width:600px){body[data-companion-shell=true][data-command-ui=deck]:not(.home-view)>header{padding-top:154px;min-height:214px;height:auto;gap:8px;flex-wrap:wrap}body[data-companion-shell=true][data-command-ui=deck]:not(.home-view)>header .header-actions{flex-wrap:wrap;justify-content:flex-end;max-width:100%}}
/* Only the paired compact companions remain; preserve headings, cards and branding. */
body[data-companion-shell=true] .page-brand-bot,body[data-companion-shell=true] .home-stage>.bot-stage,body[data-companion-shell=true] .center-stage{display:none!important}
@media(min-width:851px){body[data-command-ui=deck][data-companion-shell=true].library-view #deck{grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr)}}
body[data-companion-active] #site-companions{left:12px;right:auto;transform:none;justify-content:flex-start}
@media(min-width:1025px){body[data-companion-active] #site-companions{left:calc(var(--rail,0px) + 12px)}}
@media(max-width:1024px){body[data-companion-active] #site-companions{top:calc(var(--companion-top,0px) + env(safe-area-inset-top,0px) + 60px)}}
/* Keep original account controls mounted; Dashboard remains reachable while chatting. */
body[data-companion-active] .utility :is(#credit-badge,#account-button){visibility:hidden!important;pointer-events:none!important}
/* Floating companions: no cubicle chrome; only their small name pills remain. */
#site-companions .companion-cubicle,#site-companions .companion-bizbud{border:0!important;background:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#site-companions .companion-name{width:max-content;max-width:100%;margin:0 auto;padding:3px 10px;border-radius:999px;background:#162034a8;color:#fff;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);font:700 12px/1.4 system-ui;box-sizing:border-box}
#site-companions .companion-stormy .companion-name{background:#271438a8}
#site-companions .companion-bizbud .companion-name{color:#fff}
#site-companions :is(#bizbud-home-trigger,.stormy-open),#bizbud-right-seat #bizbud-home-trigger,#stormy-right-seat .stormy-open{border:0!important;background:none!important;box-shadow:none!important}
#bizbud-right-seat>.companion-active-name,#stormy-right-seat>.companion-active-name{position:absolute;top:114px;left:50%;transform:translateX(-50%);padding:3px 10px;border-radius:999px;background:#162034b3;color:#fff;font:700 12px/1.4 system-ui;white-space:nowrap;pointer-events:none}
#bizbud-right-seat>.companion-active-name{background:#07336de6}#stormy-right-seat>.companion-active-name{background:#271438b3}

#site-companions .companion-bizbud .companion-name{background:#07336de6}
#site-companions .companion-brand-blue,.companion-active-name .companion-brand-blue{color:#82d8ff;text-shadow:0 1px 0 #001d3d;-webkit-text-stroke:.2px #c0edff}
/* The alternate companion stays beside, not across the screen from, the active one. */
body[data-companion-active] #site-companions{left:auto!important;right:118px;top:calc(var(--companion-top,0px) + env(safe-area-inset-top,0px) + 8px);transform:none;justify-content:flex-end}
body[data-companion-active] #site-companions .companion-cubicle{width:106px;flex-basis:106px;padding:0}
body[data-companion-active] #site-companions .companion-home{height:114px;width:96px;margin:0 auto;position:relative}
body[data-companion-active] #site-companions .companion-home>:is(#bizbud-home-trigger,#stormy-floater){position:absolute;left:50%;top:0;transform:translateX(-50%) scale(1);transform-origin:top center}
body[data-companion-active] #site-companions .companion-name{font-size:12px;padding:3px 10px}
/* Active avatar is centered above its chat column; alternate occupies the far-right corner. */
body[data-companion-active] #site-companions{right:max(8px,env(safe-area-inset-right));width:106px;grid-template-columns:106px}
/* Idle companions share the Command Deck content axis beside the desktop rail.
   Active right-side workspaces and mobile overlay-menu positioning stay intact. */
@media(min-width:1025px){body[data-command-ui]:not([data-companion-active]) #site-companions{left:calc(50% + var(--rail,242px)/2)}}

/* v254: keep the first Community heading below the fixed companion pair.
   Only this page moves; Dashboard and the user's other layouts stay unchanged. */
@media(max-width:700px){
 body[data-page=community][data-companion-shell=true] #community-page{padding-top:150px!important}
 body[data-page=community] #community-page .community-hero{margin-top:0}
}

/* Keep persistent audio/disclosure controls clear of phone companion artwork. */
@media(max-width:700px){
 body[data-companion-shell=true] .utility #voice-toggle{position:fixed!important;top:auto!important;right:12px!important;bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}
 body[data-companion-shell=true] .utility .voice-disclosure{position:fixed!important;top:auto!important;right:64px!important;bottom:calc(19px + env(safe-area-inset-bottom,0px))!important;max-width:110px}
}

/* Restore the original white / cyan / white letters within companion labels only. */
body :is(#site-companions,#bizbud-right-seat,#bizbud-quick-panel,#stormy-intro) .ask-biz-bud .brand-white{color:#fff;-webkit-text-fill-color:#fff;-webkit-text-stroke:.65px #21c6fa;paint-order:stroke fill}
body :is(#site-companions,#bizbud-right-seat,#bizbud-quick-panel,#stormy-intro) .ask-biz-bud .brand-blue{color:#21c6fa;-webkit-text-fill-color:#21c6fa;-webkit-text-stroke:.65px #fff;paint-order:stroke fill}
