/* Theo Ultimate v234 — isolated full-feature overlay. app-agent-v9.js remains untouched. */
.agent-live-stage.theo-ultimate-active,
.agent-live-stage:has(.theo-ultimate-frame){
  position:fixed!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:#010206!important;
  z-index:2147483000!important;
  isolation:isolate!important;
}
.theo-ultimate-frame{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  background:#010206!important;
  z-index:1!important;
}
.agent-live-stage:has(.theo-ultimate-frame)>.agent-live-face,
.agent-live-stage:has(.theo-ultimate-frame)>.agent-live-content,
.agent-live-stage:has(.theo-ultimate-frame)>.agent-voice-mic{display:none!important}
.agent-live-stage:has(.theo-ultimate-frame)>.agent-live-close{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  z-index:60!important;
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(0,243,255,.28)!important;
  border-radius:12px!important;
  background:rgba(3,7,18,.82)!important;
  color:#9cf7ff!important;
  backdrop-filter:blur(14px)!important;
  cursor:pointer!important;
}
.agent-live-stage:has(.theo-ultimate-frame)>.agent-live-close svg{width:18px!important;height:18px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.8!important}
@media(max-width:760px){
  .agent-live-stage.theo-ultimate-active,
  .agent-live-stage:has(.theo-ultimate-frame){position:fixed!important;inset:0!important;z-index:1000!important}
  .agent-live-stage:has(.theo-ultimate-frame)>.agent-live-close{top:max(10px,env(safe-area-inset-top))!important;right:10px!important}
}

@media(max-width:760px){
  .theo-ultimate-frame{width:100vw!important;height:100dvh!important;min-height:100dvh!important;}
  .agent-live-stage:has(.theo-ultimate-frame)>.agent-live-close{width:40px!important;height:40px!important;border-radius:14px!important;}
}



/* Theo v242 — full viewport; host X owns a reserved top-right gutter. */
html:has(.agent-live-stage.theo-ultimate-active), body:has(.agent-live-stage.theo-ultimate-active){overflow:hidden!important;}
.agent-live-stage.theo-ultimate-active,.agent-live-stage:has(.theo-ultimate-frame){position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;transform:none!important;z-index:2147483000!important;}
.theo-ultimate-frame{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;border:0!important;}
.agent-live-stage:has(.theo-ultimate-frame)>.agent-live-close{position:fixed!important;top:max(10px,env(safe-area-inset-top))!important;right:max(10px,env(safe-area-inset-right))!important;bottom:auto!important;width:44px!important;height:44px!important;border-radius:14px!important;z-index:2147483646!important;}
@media(min-width:768px){.agent-live-stage:has(.theo-ultimate-frame)>.agent-live-close{top:14px!important;right:14px!important;}}

/* Theo v244 — permanent close/menu separation on desktop and mobile. */
.agent-live-stage:has(.theo-ultimate-frame)>.agent-live-close{
  pointer-events:auto!important;
  box-sizing:border-box!important;
}
@media (max-width:767px){
  .agent-live-stage:has(.theo-ultimate-frame)>.agent-live-close{
    top:max(10px,env(safe-area-inset-top))!important;
    right:max(10px,env(safe-area-inset-right))!important;
  }
}

/* Theo v245 — host-owned fullscreen + iOS visual fallback. */
.agent-live-stage.theo-pseudo-fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:2147483000!important;}
.agent-live-stage:fullscreen,.agent-live-stage:-webkit-full-screen{width:100vw!important;height:100vh!important;height:100dvh!important;background:#010206!important;}
.agent-live-stage:fullscreen>.theo-ultimate-frame,.agent-live-stage:-webkit-full-screen>.theo-ultimate-frame{width:100vw!important;height:100vh!important;height:100dvh!important;}

/* Theo v248 — mobile viewport lock + host-level pinch blocking support. */
html.theo-host-locked,body.theo-host-locked{overflow:hidden!important;overscroll-behavior:none!important;touch-action:none!important;width:100%!important;height:100%!important;}
.agent-live-stage.theo-pseudo-fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;min-height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;transform:none!important;background:#010206!important;z-index:2147483000!important;}
.agent-live-stage.theo-pseudo-fullscreen>.theo-ultimate-frame{position:absolute!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;min-height:100dvh!important;touch-action:none!important;}
.theo-ultimate-frame{touch-action:none!important;overscroll-behavior:none!important;}
@supports(height:100svh){@media(max-width:767px){.agent-live-stage.theo-pseudo-fullscreen,.agent-live-stage.theo-pseudo-fullscreen>.theo-ultimate-frame{height:100svh!important;min-height:100svh!important;}}}

/* Theo v265 — Solar System Explorer: accurate orbital distance mode + target HUD. */


/* Theo v276 — "Future Chat" sidebar launcher. Isolated from normal chat routing. */
#futureChatLaunch.future-chat-launch{
  position:relative;
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(170,112,255,.42)!important;
  background:linear-gradient(110deg,rgba(91,50,164,.22),rgba(137,76,211,.18) 48%,rgba(74,191,255,.12))!important;
  color:#d9c5ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 8px 26px rgba(95,42,160,.11);
  overflow:hidden;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
#futureChatLaunch.future-chat-launch::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(105deg,transparent 10%,rgba(220,190,255,.10) 45%,transparent 72%);
  transform:translateX(-65%);
  transition:transform .45s ease;
}
#futureChatLaunch.future-chat-launch:hover{
  border-color:rgba(192,139,255,.7)!important;
  background:linear-gradient(110deg,rgba(104,54,185,.30),rgba(151,82,227,.23) 48%,rgba(77,196,255,.16))!important;
  box-shadow:0 9px 30px rgba(112,56,188,.18),0 0 18px rgba(157,97,255,.10);
  transform:translateY(-1px);
}
#futureChatLaunch.future-chat-launch:hover::before{transform:translateX(55%)}
#futureChatLaunch.future-chat-launch svg{
  stroke:#c9a7ff!important;
  fill:none!important;
  filter:drop-shadow(0 0 5px rgba(174,116,255,.35));
}
#futureChatLaunch .future-chat-badge{
  margin-left:auto;
  padding:2px 6px;
  border-radius:999px;
  border:1px solid rgba(187,135,255,.34);
  background:rgba(104,59,174,.18);
  color:#cdb5ff;
  font-size:8px;
  line-height:1.2;
  letter-spacing:.08em;
  font-weight:700;
}
.sidebar.is-collapsed #futureChatLaunch .future-chat-badge,
.sidebar.collapsed #futureChatLaunch .future-chat-badge{display:none!important;}
