/* ACE STUDIO AZ — holographic brand interface; non-destructive overlays.
   The original ACE avatar module stays installed as a safe fallback. */
body[data-ace-studio-az-hologram="live"] #aceAvatarEntity {
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
#aceStudioAzGlobeHit {
 position:fixed;z-index:7;left:62%;top:45.5%;transform:translate(-50%,-50%);
 width:min(43vw,515px);height:min(57vh,485px);
 touch-action:none;cursor:grab;border-radius:50%;background:transparent;
 outline:none;pointer-events:auto;
}
#aceStudioAzGlobeHit:active {cursor:grabbing}
#aceStudioAzGlobeHit:focus-visible {
 outline:2px solid rgba(52,224,255,.85);outline-offset:12px;
 box-shadow:0 0 40px rgba(59,144,255,.22)
}
#aceStudioAzSignature {
 position:fixed;z-index:8;left:63%;top:84%;transform:translate(-50%,-50%);
 text-align:center;pointer-events:none;min-width:300px;
 font-family:"Segoe UI",Arial,sans-serif;user-select:none;
 filter:drop-shadow(0 0 15px rgba(48,154,255,.30));
}
#aceStudioAzSignature strong{
 display:block;font-size:clamp(22px,3.2vw,48px);font-weight:900;
 line-height:1.12;letter-spacing:.10em;white-space:nowrap;
 background:linear-gradient(110deg,#3dfaff,#73a7ff 43%,#dc54ff 78%,#ff74d9);
 -webkit-background-clip:text;background-clip:text;color:transparent;
 text-shadow:0 2px 30px rgba(113,119,255,.18);
}
#aceStudioAzSignature strong em{font-style:normal;letter-spacing:.03em}
#aceStudioAzSignature small{
 display:block;margin-top:7px;font-size:clamp(9px,1.0vw,12px);
 font-weight:600;letter-spacing:.25em;color:#b9dcff;
 text-shadow:0 0 12px rgba(24,184,255,.72);
}
#aceStudioAzSignature[data-mode=active] small{color:#7ef3ff;animation:aceHologramStatus 1.3s ease-in-out infinite}
#aceStudioAzSignature[data-mode=alert] small{color:#ff84bc}
#aceStudioAzSignature[data-mode=done] small{color:#7bffd2}
@keyframes aceHologramStatus{50%{opacity:.54;filter:brightness(1.35)}}
@media(max-width:960px){
 #aceStudioAzGlobeHit{left:62%;top:47%;width:45vw;height:57vh}
 #aceStudioAzSignature{left:64%;top:84%;min-width:unset}
}
@media(max-width:650px){
 #aceStudioAzGlobeHit{left:57%;top:46%;width:67vw;height:55vh}
 #aceStudioAzSignature{left:57%;top:78%}
 #aceStudioAzSignature strong{font-size:clamp(18px,4vw,28px)}
 #aceStudioAzSignature small{letter-spacing:.10em;font-size:9px}
}
/* Keep the existing nine ACE Data modules fully interactive, without overlay conflicts. */
body[data-ace-data-overview="1"] #aceStudioAzGlobeHit,
body[data-ace-data-overview="1"] #aceStudioAzSignature,
body:has(#aceDataToggleV3:checked) #aceStudioAzGlobeHit,
body:has(#aceDataToggleV3:checked) #aceStudioAzSignature,
body[data-ace-module-active] #aceStudioAzGlobeHit,
body[data-ace-module-active] #aceStudioAzSignature{display:none!important;pointer-events:none!important}
/* AZ Studio layout QA 20261019: keep a safe 3D stage, independent of panels. */
#aceStudioAzGlobeHit{left:39%;top:47%;width:min(40vw,500px);height:min(60vh,510px)}
#aceStudioAzSignature{left:39%;top:83%;width:max-content;max-width:58vw;min-width:0}
#aceStudioAzSignature strong{font-size:clamp(21px,2.5vw,38px);letter-spacing:.065em}
#aceStudioAzSignature small{font-size:clamp(10px,.92vw,12px);letter-spacing:.16em}
#aceCommands #micBtn{left:61%!important;bottom:11.0vh!important;width:72px;height:72px;z-index:90!important}
#aceCommands #micBtn .micIcon{transform:scale(.78)}
body:not(:has(#aceUnifiedChat.open)) #aceStudioAzGlobeHit{left:50%;top:47%}
body:not(:has(#aceUnifiedChat.open)) #aceStudioAzSignature{left:50%;top:83%}
body:not(:has(#aceUnifiedChat.open)) #aceCommands #micBtn{left:73%!important}
/* Restore readable access to ACE Data without modifying its nine modules. */
#aceDataLauncherV3{width:112px!important;height:44px!important;left:18px!important;border-radius:16px!important;background:rgba(9,24,45,.72)!important;border-color:rgba(52,206,243,.36)!important}
#aceDataLauncherV3 .ace-data-launcher-label{flex-direction:row!important;gap:7px!important;font-size:11px!important;letter-spacing:.08em!important}
#aceDataLauncherV3 .ace-data-launcher-word{flex-direction:row!important;gap:1px!important}
#aceDataLauncherV3 i{width:auto!important;height:auto!important;line-height:1.2!important}
/* Narrow windows: the social overlay and brand must not collide. */
@media(max-width:850px){
  #aceStudioAzGlobeHit{left:36%;top:45%;width:43vw;height:50vh}
  #aceStudioAzSignature{left:36%;top:79%;max-width:62vw}
  #aceStudioAzSignature strong{font-size:clamp(18px,2.6vw,25px)}
  #aceCommands #micBtn{left:61%!important;bottom:12vh!important;width:60px;height:60px}
  body:not(:has(#aceUnifiedChat.open)) #aceStudioAzGlobeHit,
  body:not(:has(#aceUnifiedChat.open)) #aceStudioAzSignature{left:50%}
}
@media(prefers-reduced-motion:reduce){
 #aceStudioAzSignature[data-mode=active] small{animation:none}
}

/* ACE_STUDIO_AZ_WORLD_UI_V2 — actual ACE app, full continents and clear icy space.
   Chat-closed: signature and microphone vertically centered together.
   Chat-open: both move to the left stage, never overlap ACE Social. */
#aceStudioAzGlobeHit{left:39%;top:45.5%;height:min(58vh,535px);width:min(42vw,560px)}
#aceStudioAzSignature{left:39%;top:79.8%;max-width:min(62vw,660px)}
#aceStudioAzSignature strong{font-size:clamp(22px,2.65vw,44px);letter-spacing:.075em}
#aceStudioAzSignature small{margin-top:5px;font-size:clamp(10px,.95vw,13px);letter-spacing:.17em}
#aceCommands #micBtn{
  left:39%!important;
  top:90.5%!important;
  bottom:auto!important;
  width:64px!important;height:64px!important;
  transform:translate(-50%,-50%)!important;
  transition:left .45s ease,top .45s ease,transform .22s ease,box-shadow .25s ease!important;
  z-index:90!important;
}
#aceCommands #micBtn:hover{transform:translate(-50%,-50%) scale(1.06)!important}
#aceCommands #micBtn .micIcon{transform:scale(.78)}
body:not(:has(#aceUnifiedChat.open)) #aceStudioAzGlobeHit{left:50%;top:46%}
body:not(:has(#aceUnifiedChat.open)) #aceStudioAzSignature{left:50%;top:79.8%}
body:not(:has(#aceUnifiedChat.open)) #aceCommands #micBtn{left:50%!important}
#aceCinematicVignette{
  background:
    radial-gradient(ellipse at 50% 46%,rgba(50,148,226,.15) 0%,rgba(24,103,189,.08) 31%,transparent 67%),
    radial-gradient(ellipse at 22% 25%,rgba(71,181,252,.085),transparent 43%),
    linear-gradient(180deg,rgba(16,54,109,.04),rgba(9,39,90,.13))!important;
}
#aceCinematicFX{filter:hue-rotate(-19deg) saturate(.82) brightness(1.10)}
body:has(#aceDataToggleV3:checked) #aceCommands #micBtn,
body[data-ace-module-active] #aceCommands #micBtn,
body[data-ace-data-overview="1"] #aceCommands #micBtn{display:none!important}
@media(max-width:850px){
 #aceStudioAzGlobeHit{left:36%;top:43%;width:45vw;height:49vh}
 #aceStudioAzSignature{left:36%;top:77%;max-width:59vw}
 #aceStudioAzSignature strong{font-size:clamp(18px,2.85vw,27px)}
 #aceCommands #micBtn{left:36%!important;top:90%!important;width:58px!important;height:58px!important}
 body:not(:has(#aceUnifiedChat.open)) #aceStudioAzGlobeHit{left:50%;top:45%}
 body:not(:has(#aceUnifiedChat.open)) #aceStudioAzSignature{left:50%;top:79%}
 body:not(:has(#aceUnifiedChat.open)) #aceCommands #micBtn{left:50%!important}
}
@media(max-height:720px){
 #aceStudioAzSignature{top:76%}
 #aceCommands #micBtn{top:90%!important;width:52px!important;height:52px!important}
}

/* ACE_SPEC_V3_20261020 — user-approved real single ACE screen. */
#aceStudioAzSignature{left:39%;top:79.8%;min-width:0!important}
#aceStudioAzSignature strong{font-size:clamp(30px,4.2vw,59px)!important;letter-spacing:.14em!important}
#aceStudioAzSignature small{margin-top:1px!important}
body:not(:has(#aceUnifiedChat.open)) #aceStudioAzSignature{left:50%}
#aceStudioAzGlobeHit{top:46%!important;left:39%!important;width:min(47vw,680px)!important;height:min(65vh,690px)!important}
body:not(:has(#aceUnifiedChat.open)) #aceStudioAzGlobeHit{left:50%!important}
#aceStudioAzVoiceBar{
  position:fixed;z-index:20;pointer-events:none;
  left:39%;top:96.5%;transform:translate(-50%,-50%);
  display:flex;align-items:center;justify-content:center;
  width:min(190px,26vw);height:34px;gap:4px;
  transition:left .42s ease;
}
body:not(:has(#aceUnifiedChat.open)) #aceStudioAzVoiceBar{left:50%}
#aceStudioAzVoiceBar span{
  display:block;flex:0 0 3px;height:2px;min-height:2px;
  border-radius:4px;background:#8edcf5;opacity:.45;
  box-shadow:0 0 3px rgba(105,200,250,.15);
  transition:height .09s linear,background .18s,opacity .18s,box-shadow .18s;
}
#aceStudioAzVoiceBar[data-voice="listening"] span{
  background:#28e7fb;opacity:.97;box-shadow:0 0 10px rgba(35,210,250,.57);
}
#aceStudioAzVoiceBar[data-voice="speaking"] span{
  background:#f392fa;opacity:.97;box-shadow:0 0 10px rgba(239,87,254,.54);
}
#aceStudioAzVoiceBar.ace-hidden{display:none!important}
#aceStudioAzWebcamDock[hidden],#aceStudioAzWebcamDock.ace-hidden{display:none!important}
#aceStudioAzWebcamDock:not([hidden]){
  position:fixed;z-index:22;top:16px;right:16px;
  width:min(24vw,290px);height:auto;aspect-ratio:16/9;
  border:1px solid rgba(75,189,236,.35);border-radius:14px;
  background:rgba(5,18,42,.72);
}
@media(max-width:850px){
 #aceStudioAzSignature{left:36%;top:78.5%}
 #aceStudioAzSignature strong{font-size:clamp(23px,4.5vw,40px)!important}
 #aceStudioAzGlobeHit{left:36%!important;top:45%!important;width:50vw!important;height:60vh!important}
 #aceStudioAzVoiceBar{left:36%;top:96%}
 body:not(:has(#aceUnifiedChat.open)) #aceStudioAzGlobeHit,
 body:not(:has(#aceUnifiedChat.open)) #aceStudioAzSignature,
 body:not(:has(#aceUnifiedChat.open)) #aceStudioAzVoiceBar{left:50%!important}
}

/* ACE V4 TRUE MASTER GLOBE, progressive responsiveness and developer state. */
#aceStudioAzGlobeHit{width:min(63vw,980px)!important;height:min(76vh,820px)!important;top:46%!important}
body:has(#aceUnifiedChat.open) #aceStudioAzGlobeHit{
 width:min(49vw,810px)!important;height:min(72vh,790px)!important;
}
#aceStudioAzSignature{top:83%!important}
#aceCommands #micBtn{top:92.5%!important}
#aceStudioAzVoiceBar{top:98%!important}
#aceDeveloperLiveDock{
 position:fixed;left:16px;top:92px;z-index:180;
 box-sizing:border-box;width:min(300px,24vw);max-height:310px;overflow:hidden;
 border:1px solid rgba(82,188,245,.48);border-radius:12px;
 background:rgba(5,19,43,.90);box-shadow:0 18px 35px rgba(0,9,24,.28);
 color:#d3e9ff;backdrop-filter:blur(14px);
 font:12px/1.5 "Segoe UI",Arial,sans-serif;
}
#aceDeveloperLiveDock[hidden]{display:none!important}
#aceDeveloperLiveDock header{
 display:flex;gap:8px;align-items:center;justify-content:space-between;
 border-bottom:1px solid rgba(99,191,251,.27);padding:9px 11px;
}
#aceDeveloperLiveDock header strong{font-size:12px;letter-spacing:.10em;color:#a6deff}
#aceDevDockStatus{font-size:10px;color:#f8ca8c}
#aceDevDockClose{border:0;border-radius:6px;padding:2px 8px;color:#d5efff;background:rgba(38,79,115,.8);cursor:pointer}
#aceDevDockMain{padding:10px 12px;max-height:252px;overflow-y:auto}
#aceDevDockPhase{margin:0 0 10px}
#aceDevDockJobs{font-size:11px;line-height:1.55;white-space:pre-line;max-height:165px;overflow-y:auto;color:#92c8f1}
#aceDevDockUpdated{display:block;margin-top:10px;color:#93a9c8}
#aceDevDockToggle{
 position:fixed;left:17px;top:61px;z-index:182;
 border:1px solid rgba(67,191,249,.54);border-radius:8px;
 padding:5px 12px;color:#b6e4ff;background:rgba(5,19,43,.9);
 cursor:pointer;font:700 11px "Segoe UI",Arial,sans-serif;
}
@media(max-width:1100px){
 #aceDeveloperLiveDock{width:min(250px,28vw);max-height:260px}
 #aceDevDockJobs{max-height:115px}
}
@media(max-height:740px){
 #aceDeveloperLiveDock{top:83px;max-height:220px}
 #aceStudioAzSignature{top:81%!important}
 #aceCommands #micBtn{top:91.5%!important}
}

/* V4 full-screen QA: no overlap between executions header and Developer window. */
#aceDeveloperLiveDock{top:175px!important}
#aceDevDockToggle{top:150px!important}
@media(max-height:740px){
 #aceDeveloperLiveDock{top:145px!important;max-height:190px}
 #aceDevDockToggle{top:118px!important}
}
