/* Central agent stage: steel / teal only. The surrounding UI keeps its original brand background. */
#scene-root{
  background:transparent!important;
  isolation:isolate;
}
#scene-root::before{
  content:"";
  position:absolute;
  z-index:0;
  width:min(84vw,1180px);
  height:min(72vh,700px);
  min-height:470px;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  border-radius:30px;
  border:1px solid rgba(120,148,181,.42);
  background:
    radial-gradient(ellipse 66% 62% at 52% 46%,rgba(82,169,192,.18) 0%,rgba(52,76,85,.52) 48%,transparent 78%),
    radial-gradient(ellipse 48% 42% at 48% 54%,rgba(23,107,89,.13) 0%,transparent 76%),
    linear-gradient(138deg,#263746 0%,#344C55 58%,#263746 100%);
  box-shadow:0 22px 64px rgba(38,55,70,.20),inset 0 1px 0 rgba(255,253,248,.10);
  pointer-events:none;
}
#scene-canvas{position:relative;z-index:1;background:transparent!important;}
#scene-fallback{
  background:transparent!important;
}
#scene-fallback::before{
  content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:min(84vw,1180px);height:min(72vh,700px);min-height:470px;border-radius:30px;
  border:1px solid rgba(120,148,181,.42);
  background:radial-gradient(ellipse at 52% 46%,rgba(82,169,192,.16),transparent 68%),linear-gradient(138deg,#263746,#344C55 58%,#263746);
  box-shadow:0 22px 64px rgba(38,55,70,.20),inset 0 1px 0 rgba(255,253,248,.10);
}
@media(max-width:767px){
  #scene-root::before,#scene-fallback::before{
    width:94vw;height:54vh;min-height:390px;max-height:520px;
    top:43%;border-radius:22px;
    background:radial-gradient(ellipse at 52% 40%,rgba(82,169,192,.16),transparent 68%),linear-gradient(155deg,#263746,#344C55 60%,#263746);
  }
}

/* The AI CEO brain is a distinct technology viewport, not a beige card. */
.view .ceo-brain-stage{
  background:
    radial-gradient(ellipse at 50% 44%, rgba(82,169,192,.22) 0%, rgba(52,76,85,.72) 42%, rgba(38,55,70,.98) 78%),
    linear-gradient(135deg,#263746,#344C55) !important;
  border:1px solid rgba(120,148,181,.52)!important;
  box-shadow:inset 0 1px 0 rgba(255,253,248,.12),0 12px 30px rgba(38,55,70,.18)!important;
}
.view .ceo-brain-stage:after{
  background:radial-gradient(ellipse at center,transparent 58%,rgba(38,55,70,.24) 100%)!important;
}
.view .ceo-brain-scan{background:linear-gradient(180deg,transparent,rgba(82,169,192,.10),rgba(120,148,181,.08),transparent)!important;}
.view .ceo-brain-caption span{color:#8ED9E8!important;text-shadow:none!important;}
.view .ceo-brain-caption b{color:#FFFDF8!important;text-shadow:none!important;}
.view .ceo-brain-controls button{background:rgba(255,253,248,.96)!important;color:#176B59!important;border:1px solid rgba(82,169,192,.72)!important;box-shadow:none!important;}
.view .ceo-brain-controls button:hover{background:#176B59!important;color:#FFFFFF!important;border-color:#52A9C0!important;}

.scene-veil{background:transparent!important;opacity:1!important;}
#scene-hud{position:fixed;z-index:4;top:82px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:10px 16px;border:1px solid rgba(82,169,192,.58);border-radius:16px;background:rgba(20,39,52,.92);box-shadow:0 8px 26px rgba(15,31,43,.22);color:#FFFDF8;pointer-events:none;white-space:nowrap;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#scene-hud .scene-hud-count{font-size:clamp(16px,1.35vw,20px);font-weight:800;letter-spacing:.04em;color:#FFFDF8}
#scene-hud .scene-hud-copy{font-size:11px;line-height:1.35;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:#9BDCE8}
@media(max-width:767px){#scene-hud{top:72px;gap:8px;padding:8px 11px;border-radius:13px;max-width:calc(100vw - 28px)}#scene-hud .scene-hud-count{font-size:15px}#scene-hud .scene-hud-copy{font-size:9px;white-space:normal;max-width:125px}}

/* FIX: let the fixed 3D stage show through the app shell; keep the page body beige. */
html body #app.app,
html body #app.app > .main,
html body .app,
html body .main,
html body #content {
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
}
#scene-root{z-index:0!important;overflow:visible!important;}
#scene-root::before{z-index:0!important;display:block!important;opacity:1!important;}
#scene-canvas{position:relative!important;z-index:1!important;opacity:1!important;}
#scene-hud{z-index:8!important;visibility:visible!important;opacity:1!important;}
