/* hySocial Chroma breath: one avatar aura, no stacked borders.
   Scope excludes independent app content and honors account light mode. */
@property --hy-escort-turn { syntax:"<angle>"; initial-value:0deg; inherits:false; }
@keyframes hy-escort-orbit { to { --hy-escort-turn:360deg; } }
@keyframes hy-escort-breath {
  0%,100% { opacity:.68;transform:scale(.97);filter:blur(3px) saturate(1.04); }
  50% { opacity:1;transform:scale(1.07);filter:blur(6px) saturate(1.5); }
}
@keyframes hy-social-aurora {
  0%,100%{background-position:8% 14%,85% 12%,50% 95%;opacity:.64}
  50%{background-position:22% 23%,72% 25%,55% 90%;opacity:1}
}
@keyframes hy-social-card-breath{
  0%,100%{box-shadow:0 8px 28px rgba(0,0,0,.19),0 0 9px rgba(53,234,255,.06)}
  50%{box-shadow:0 12px 38px rgba(0,0,0,.22),0 0 19px rgba(166,87,255,.12)}
}
#hy-escort-bubble{
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  isolation:isolate;
  overflow:visible;
  transition:transform .2s ease!important;
}
#hy-escort-bubble:focus-visible{outline:2px solid var(--hs-accent,#35eaff)!important;outline-offset:8px!important}
#hy-escort-bubble img{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  object-fit:cover;
  border:0!important;
  border-radius:50%;
  box-shadow:0 2px 16px rgba(0,0,0,.55);
  filter:saturate(1.06);
}
#hy-escort-bubble .hy-escort-halo{
  position:absolute;
  z-index:1;
  inset:-5px;
  border:0!important;
  border-radius:50%;
  transform:scale(1);
  background:conic-gradient(from var(--hy-escort-turn),#35eaff,#3a82ff,#ad57ff,#ff42c8,#35eaff);
  box-shadow:none!important;
  filter:blur(3px);
  animation:hy-escort-orbit 7s linear infinite,hy-escort-breath 4.2s ease-in-out infinite;
  opacity:.85;
  pointer-events:none;
}
#hy-escort-bubble.hy-escort-connected .hy-escort-halo{
  animation-duration:3.4s,2.6s;
}
#hy-escort-bubble[data-voice="speaking"] .hy-escort-halo{
  opacity:1;
  transform:scale(calc(1.06 + var(--hy-escort-amplitude,0) * .20));
  filter:blur(calc(5px + var(--hy-escort-amplitude,0) * 11px)) saturate(1.6);
  animation:hy-escort-orbit 2s linear infinite;
}
#hy-escort-bubble.hy-escort-connecting .hy-escort-halo{animation-duration:1.8s,1.5s}
#hy-escort-floating-controls[hidden]{display:none!important}
#hy-escort-floating-controls{
  position:fixed;
  z-index:10041;
  right:calc(84px + env(safe-area-inset-right));
  bottom:calc(25px + env(safe-area-inset-bottom));
  display:flex;
  gap:7px;
  align-items:center;
  padding:5px;
  border-radius:16px;
  border:1px solid color-mix(in srgb,var(--hs-accent,#35eaff) 38%,transparent);
  background:color-mix(in srgb,var(--hs-surface,#0c1423) 90%,transparent);
  box-shadow:0 8px 32px #0007,0 0 18px rgba(53,234,255,.12);
  backdrop-filter:blur(20px) saturate(170%);
}
#hy-escort-floating-controls button{
  font-size:11px!important;
  font-weight:750;
  min-width:49px;
  min-height:38px;
  padding:7px 9px;
  border:0;
  border-radius:11px;
  color:var(--hs-text,#fff);
  background:color-mix(in srgb,var(--hs-card,#152238) 80%,transparent);
  cursor:pointer;
}
#hy-escort-floating-controls button:hover{background:color-mix(in srgb,#35eaff 18%,var(--hs-card,#152238))}
#hy-escort-floating-controls [aria-pressed="true"]{color:#fff;background:#803f9c}
#hy-escort-floating-stop{color:#ffb8ce!important}
body[data-hysocial-page="hysocial"] .hs-app::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 34% 44% at 8% 14%,rgba(53,234,255,.13),transparent 77%),
    radial-gradient(ellipse 33% 44% at 85% 12%,rgba(166,87,255,.15),transparent 77%),
    radial-gradient(ellipse 35% 40% at 50% 95%,rgba(255,63,200,.07),transparent 80%);
  background-size:120% 120%,110% 120%,110% 130%;
  animation:hy-social-aurora 16s ease-in-out infinite alternate;
}
body[data-hysocial-page="hysocial"] .hs-sidebar,
body[data-hysocial-page="hysocial"] .hs-main,
body[data-hysocial-page="hysocial"] .hs-right{position:relative;z-index:1}
body[data-hysocial-page="hysocial"] :is(.hs-compose,.hs-post){
  animation:hy-social-card-breath 9s ease-in-out infinite;
}
body[data-hysocial-page="hysocial"] :is(.hs-compose,.hs-post):hover{animation-play-state:paused}
body[data-hysocial-page="hysocial"] .hs-nav-group .hs-tab.active{
  background:linear-gradient(110deg,rgba(53,234,255,.14),rgba(166,87,255,.14),rgba(255,63,200,.07))!important;
  box-shadow:inset 3px 0 0 var(--hs-accent,#35eaff),0 0 20px rgba(53,234,255,.09);
}
body[data-hysocial-page="hysocial"] :is(.hs-compose,.hs-post) :is(button,input,textarea):focus-visible{
  outline:2px solid var(--hs-accent,#35eaff);outline-offset:2px;
}
html[data-mode="light"] body[data-hysocial-page="hysocial"] .hs-app::before{
  opacity:.35;filter:saturate(.75);
}
@media(max-width:768px){
  #hy-escort-floating-controls{
    right:calc(69px + env(safe-area-inset-right));
    bottom:calc(85px + env(safe-area-inset-bottom));
    gap:4px;padding:4px;
  }
  #hy-escort-floating-controls button{min-width:44px;min-height:39px;padding:6px}
  body[data-hysocial-page="hysocial"] .hs-app::before{opacity:.48}
}
@media(prefers-reduced-motion:reduce){
  #hy-escort-bubble .hy-escort-halo,
  body[data-hysocial-page="hysocial"] .hs-app::before,
  body[data-hysocial-page="hysocial"] :is(.hs-compose,.hs-post){animation:none!important}
}

/* The old cyan Create FAB sits directly under the persistent Hypatia voice
   orb on mobile. The Feed composer and Create navigation already expose
   posting, so remove only this duplicate fixed launcher. */
body[data-hysocial-page="hysocial"] #hs-fab{display:none!important}
