/* === COAI Office View — mascot scene, extracted from /mc/deck === */
.coai-office-scene{position:relative;height:100%;width:100%;overflow:hidden;background:#030407;
  --coai-core:#4DF58F; --coai-core2:#7CF7B0; --coai-cyan:#00e1ff; --coai-teal:#14b8a6;
  --coai-juno:#37E96A; --coai-sen:#6ea8ff; --coai-atl:#ff8a3d; --coai-gro:#43e3a0;
  --coai-text:#f4f6ff; --coai-sub:#9aa4bf; --coai-muted:#5f6b8a; --coai-border:rgba(0,225,255,.14);
  --coai-amber:#fbbf24;}
.coai-office-scene .stage{position:absolute;inset:0;}
.coai-office-scene .sky{position:absolute;inset:0;pointer-events:none;
  background:
   radial-gradient(ellipse 60% 40% at 12% 18%, rgba(77,245,143,.070), transparent 60%),
   radial-gradient(ellipse 50% 36% at 88% 20%, rgba(0,225,255,.065), transparent 60%),
   radial-gradient(ellipse 55% 40% at 85% 88%, rgba(139,92,246,.055), transparent 60%),
   radial-gradient(ellipse 45% 32% at 10% 85%, rgba(20,184,166,.050), transparent 60%);}
.coai-office-scene .aurora{position:absolute;left:-10%;right:-10%;top:6%;height:150px;pointer-events:none;opacity:.34;filter:blur(34px);
  background:linear-gradient(90deg,transparent,rgba(77,245,143,.12) 25%,rgba(0,225,255,.10) 55%,rgba(139,92,246,.085) 80%,transparent);
  animation:coai-aur 14s ease-in-out infinite alternate}
@keyframes coai-aur{from{transform:translateX(-4%) skewY(-2deg)}to{transform:translateX(4%) skewY(2deg)}}
.coai-office-scene .planet{position:absolute;left:50%;bottom:-34vmin;transform:translateX(-50%);width:120vmin;height:60vmin;border-radius:50% 50% 0 0/100% 100% 0 0;pointer-events:none;
  background:radial-gradient(ellipse at 50% 0%, rgba(77,245,143,.07), rgba(3,4,7,.0) 55%);
  border-top:1px solid rgba(77,245,143,.15);box-shadow:0 -18px 70px rgba(77,245,143,.06)}
.coai-office-scene .stars i{position:absolute;border-radius:50%;background:rgba(220,245,255,.75);animation:coai-tw 3s infinite}
.coai-office-scene .stars i.far{width:1.5px;height:1.5px;opacity:.4}
.coai-office-scene .stars i.near{width:2.5px;height:2.5px}
@keyframes coai-tw{0%,100%{opacity:.12}50%{opacity:.85}}
.coai-office-scene .comet{position:absolute;width:2.5px;height:2.5px;border-radius:50%;background:#fff;box-shadow:0 0 8px #fff;opacity:0;pointer-events:none}
.coai-office-scene .comet::after{content:'';position:absolute;right:1px;top:1px;width:90px;height:1.5px;background:linear-gradient(90deg,rgba(255,255,255,.8),transparent);transform-origin:right}
.coai-office-scene .ring{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none}
.coai-office-scene .ring.r1{width:72vmin;height:48vmin;border:1.5px dashed rgba(0,225,255,.15);animation:coai-ringspin 70s linear infinite}
.coai-office-scene .ring.r2{width:88vmin;height:60vmin;border:1px solid rgba(0,225,255,.055)}
.coai-office-scene .ring.r3{width:56vmin;height:37vmin;border:1px dotted rgba(77,245,143,.17);animation:coai-ringspin 45s linear infinite reverse}
@keyframes coai-ringspin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.coai-office-scene .orbit-dot{position:absolute;width:5px;height:5px;border-radius:50%;background:var(--coai-cyan);box-shadow:0 0 8px var(--coai-cyan);opacity:.6}
.coai-office-scene .node{position:absolute;transform:translate(-50%,-50%);text-align:center;z-index:5}
.coai-office-scene .hub{z-index:6}
.coai-office-scene .core-face{width:128px;height:128px;border-radius:50%;margin:0 auto;position:relative;display:flex;align-items:center;justify-content:center;gap:15px;
  border:3px solid var(--coai-juno);background:radial-gradient(circle at 38% 30%, rgba(55,233,106,.20), #04101a 68%);
  box-shadow:0 0 52px rgba(55,233,106,.4), inset 0 0 30px rgba(55,233,106,.14)}
.coai-office-scene .core-face .hb{position:absolute;inset:-15px;border-radius:50%;border:1.5px dashed rgba(55,233,106,.4);animation:coai-ringspin 24s linear infinite}
.coai-office-scene .core-face .hb2{position:absolute;inset:-26px;border-radius:50%;border:1px solid rgba(55,233,106,.14)}
.coai-office-scene .ceye{width:22px;height:32px;border-radius:11px;background:var(--coai-juno);box-shadow:0 0 22px var(--coai-juno);transition:.35s;animation:coai-blink 4.2s infinite}
.coai-office-scene .core-face.happy .ceye{width:26px;height:15px;border:6px solid var(--coai-juno);border-bottom:0;border-radius:26px 26px 0 0;background:none;box-shadow:0 0 14px rgba(55,233,106,.6);animation:none}
.coai-office-scene .core-face.think .ceye{height:12px;border-radius:6px}
@keyframes coai-blink{0%,93%,100%{transform:scaleY(1)}96%{transform:scaleY(.12)}}
.coai-office-scene .n-label{margin-top:7px;font-size:12px;font-weight:800;letter-spacing:.14em;font-family:'JetBrains Mono',monospace}
.coai-office-scene .n-role{font-size:10px;color:var(--coai-muted);margin-top:1px}
.coai-office-scene .n-status{margin-top:6px;font-size:11.5px;color:var(--coai-sub);background:rgba(3,4,7,.85);border:1px solid var(--coai-border);border-radius:12px;padding:4px 14px;display:inline-block;transition:.3s;white-space:nowrap;max-width:230px;overflow:hidden;text-overflow:ellipsis}
.coai-office-scene .n-status.busy{color:#d7ffe9;border-color:rgba(77,245,143,.5)}
.coai-office-scene .bubble{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);background:#0a1420;border:1.5px solid rgba(77,245,143,.4);color:var(--coai-text);border-radius:12px;padding:6px 14px;font-size:12.5px;font-weight:600;white-space:nowrap;opacity:0;transition:.35s;pointer-events:none;box-shadow:0 0 18px rgba(77,245,143,.2);z-index:8}
.coai-office-scene .bubble.show{opacity:1;bottom:calc(100% + 14px)}
.coai-office-scene .agent{cursor:pointer}
.coai-office-scene .agent:hover .bot{transform:translateY(-5px) scale(1.07)}
.coai-office-scene .agent .tip{position:absolute;left:50%;top:calc(100% + 10px);transform:translateX(-50%) scale(.95);background:#0a1420;border:1px solid rgba(0,225,255,.35);border-radius:12px;padding:11px 15px;font-size:11.5px;color:var(--coai-sub);white-space:nowrap;opacity:0;pointer-events:none;transition:.25s;z-index:9;text-align:left;box-shadow:0 8px 30px rgba(0,0,0,.5);line-height:1.55}
.coai-office-scene .agent:hover .tip{opacity:1;transform:translateX(-50%) scale(1)}
.coai-office-scene .agent:hover .bubble{opacity:0 !important}
.coai-office-scene #nGro .tip{top:50%;bottom:auto;left:calc(100% + 16px);transform:translate(0,-50%) scale(.95)}
.coai-office-scene #nGro:hover .tip{transform:translate(0,-50%) scale(1)}
.coai-office-scene .tip b{color:var(--coai-text);font-size:12px;display:block;margin-bottom:3px}
.coai-office-scene .tip em{color:var(--coai-core);font-style:normal}
/* ===== chibi bots ===== */
.coai-office-scene .bot{position:relative;width:74px;height:88px;margin:0 auto;animation:coai-bob 3.2s ease-in-out infinite;transition:transform .5s}
@keyframes coai-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.coai-office-scene .bot .ant{position:absolute;top:0;left:50%;width:2.5px;height:13px;background:currentColor;transform:translateX(-50%);opacity:.85}
.coai-office-scene .bot .ant::after{content:'';position:absolute;top:-8px;left:50%;transform:translateX(-50%);width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 12px currentColor;animation:coai-antp 2s ease-in-out infinite}
@keyframes coai-antp{0%,100%{opacity:.7}50%{opacity:1;transform:translateX(-50%) scale(1.3)}}
.coai-office-scene .bot .head{width:62px;height:50px;margin:11px auto 0;border-radius:19px;background:linear-gradient(160deg,#101b2b,#070d16);border:2.5px solid currentColor;box-shadow:0 0 22px currentColor, inset 0 2px 7px rgba(255,255,255,.08);position:relative}
.coai-office-scene .bot .visor{position:absolute;inset:7px 8px 8px;background:#02070c;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:9px;overflow:hidden}
.coai-office-scene .bot .visor::after{content:'';position:absolute;top:0;left:-70%;width:45%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.09),transparent);animation:coai-vshine 4.5s linear infinite}
@keyframes coai-vshine{to{left:130%}}
.coai-office-scene .bot .eye{position:relative;width:11px;height:16px;border-radius:6px;background:currentColor;box-shadow:0 0 6px currentColor,inset 0 0 5px rgba(255,255,255,.6);transition:.3s}
.coai-office-scene .bot .eye::after{content:'';position:absolute;top:2px;left:2px;width:3.5px;height:3.5px;border-radius:50%;background:rgba(255,255,255,.92)}
.coai-office-scene .bot.sleep .eye::after{display:none}
.coai-office-scene .bot.happy .eye{height:9px;border-radius:0 0 8px 8px;transform:translateY(-3px)}
.coai-office-scene .bot.focus .eye{height:8px;border-radius:4px}
.coai-office-scene .bot .thruster{width:32px;height:10px;margin:6px auto 0;border-radius:50%;background:currentColor;filter:blur(6px);opacity:.55;animation:coai-thr 1.1s ease-in-out infinite}
@keyframes coai-thr{0%,100%{opacity:.45;transform:scaleX(1)}50%{opacity:.85;transform:scaleX(1.3)}}
.coai-office-scene .bot.moving{animation:none;transform:rotate(8deg)}
.coai-office-scene .bot.moving .thruster{opacity:1;filter:blur(7px)}
.coai-office-scene .bot.sleep .eye{height:3px;border-radius:2px;animation:none;box-shadow:none}
.coai-office-scene .bot.sleep .thruster{opacity:.15;animation:none}
/* ===== docks ===== */
.coai-office-scene .dock{position:absolute;transform:translate(-50%,-50%);text-align:center;z-index:4;cursor:pointer}
.coai-office-scene .dock-panel{width:96px;height:70px;border:1px solid rgba(0,225,255,.18);border-radius:14px;background:rgba(12,26,32,.40);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 6px 22px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;position:relative;overflow:hidden;transition:transform .16s cubic-bezier(.2,.6,.2,1), border-color .16s cubic-bezier(.2,.6,.2,1), background .16s cubic-bezier(.2,.6,.2,1), box-shadow .16s cubic-bezier(.2,.6,.2,1)}
/* hover doctrine: docks are cards -> lift. :focus-visible mirrors hover. */
.coai-office-scene .dock:hover .dock-panel,
.coai-office-scene .dock:focus-visible .dock-panel{border-color:rgba(0,225,255,.42);background:rgba(18,38,45,.55);transform:translateY(-3px) scale(1.04);box-shadow:0 12px 30px rgba(0,0,0,.36), 0 0 22px rgba(0,225,255,.12), inset 0 1px 0 rgba(255,255,255,.10)}
.coai-office-scene .dock:focus-visible{outline:none}
@media (prefers-reduced-motion:reduce){.coai-office-scene .dock:hover .dock-panel{transform:none}}
.coai-office-scene .dock-panel svg{width:24px;height:24px;stroke:var(--coai-cyan);fill:none;stroke-width:1.6}
.coai-office-scene .dock-panel .st-name{font-size:9px;letter-spacing:.18em;color:var(--coai-sub);font-family:'JetBrains Mono',monospace;text-transform:uppercase}
.coai-office-scene .dock-panel.active{border-color:var(--coai-core);background:rgba(18,44,34,.52);box-shadow:0 0 28px rgba(77,245,143,.34), inset 0 1px 0 rgba(255,255,255,.08)}
.coai-office-scene .dock-panel.active svg{stroke:var(--coai-core)}
.coai-office-scene .dock-panel.active::after{content:'';position:absolute;left:0;right:0;top:0;height:2px;background:var(--coai-core);box-shadow:0 0 8px var(--coai-core);animation:coai-scanline 1s linear infinite}
@keyframes coai-scanline{from{top:0}to{top:100%}}
.coai-office-scene .dock .st-badge{position:absolute;top:-8px;right:-8px;background:var(--coai-amber);color:#000;font-size:10px;font-weight:800;border-radius:10px;padding:1.5px 7px;opacity:0;transition:.3s;z-index:5}
.coai-office-scene .dock .st-badge.show{opacity:1}
.coai-office-scene .beam{position:absolute;height:2.5px;background:linear-gradient(90deg,transparent,rgba(77,245,143,.7),transparent);z-index:3;transform-origin:left center;opacity:0;transition:opacity .4s;box-shadow:0 0 10px rgba(77,245,143,.5);pointer-events:none}
.coai-office-scene .packet{position:absolute;width:9px;height:9px;border-radius:50%;background:var(--coai-core);box-shadow:0 0 12px var(--coai-core);z-index:4;transform:translate(-50%,-50%);opacity:0}
.coai-office-scene .tpart{position:absolute;width:5px;height:5px;border-radius:50%;z-index:3;transform:translate(-50%,-50%);pointer-events:none;transition:opacity 1s}
.coai-office-scene .ticker{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);background:rgba(3,4,7,.85);border:1px solid rgba(77,245,143,.25);border-radius:22px;padding:9px 24px;font-size:12.5px;color:var(--coai-sub);backdrop-filter:blur(10px);white-space:nowrap;z-index:7;box-shadow:0 0 24px rgba(77,245,143,.08)}
.coai-office-scene .ticker b{color:var(--coai-core)}
.coai-office-scene .office-ctl{position:absolute;top:14px;right:20px;display:flex;gap:8px;z-index:7}
.coai-office-scene .office-ctl div{padding:6px 15px;border-radius:14px;border:1px solid rgba(0,225,255,.14);background:rgba(3,4,7,.75);font-size:11px;color:var(--coai-sub);cursor:pointer;transition:.2s}
.coai-office-scene .office-ctl div:hover{border-color:var(--coai-core);color:var(--coai-core)}
.coai-office-scene .hud{position:absolute;top:14px;left:20px;z-index:7;font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--coai-muted);letter-spacing:.16em;line-height:1.9}
.coai-office-scene .hud b{color:var(--coai-core);font-weight:600}
.coai-office-scene .cmd-ava{width:62px;height:62px;border-radius:50%;margin:0 auto;border:2.5px solid var(--coai-core);box-shadow:0 0 26px rgba(77,245,143,.4);display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 38% 32%, rgba(77,245,143,.2), #04140d 70%);background-size:cover;background-position:center;overflow:hidden}
.coai-office-scene .cmd-ava b{font-size:15px;color:#d7ffe9;font-family:'JetBrains Mono',monospace}
@media(max-width:900px){
  .coai-office-scene .core-face{width:96px;height:96px}
  .coai-office-scene .ceye{width:16px;height:24px}
  .coai-office-scene .bot{width:58px;height:70px}
  .coai-office-scene .bot .head{width:48px;height:40px}
  .coai-office-scene .dock-panel{width:78px;height:58px}
  .coai-office-scene .dock-panel svg{width:20px;height:20px}
  .coai-office-scene .n-label{font-size:10px}
  .coai-office-scene .n-status{font-size:10px;max-width:160px}
  .coai-office-scene .jcore{width:124px;height:124px}
}
/* ===== JUNO office mascot — ss2 style: CYAN shell + dark screen, SOLID matte eyes (no glow/fade), clean ears, HEAD-ONLY ===== */
.coai-office-scene .jcore{position:relative;width:150px;height:148px;margin:0 auto;--jg:#38e8ff;--jgr:56,232,255;filter:drop-shadow(0 0 22px rgba(56,232,255,.3));animation:jfloat 3.6s ease-in-out infinite;transform-origin:50% 88%}
@keyframes jfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.coai-office-scene .jcore .jant{position:absolute;left:50%;top:2px;transform:translateX(-50%);width:3px;height:20px;background:linear-gradient(var(--jg),rgba(56,232,255,.25))}
.coai-office-scene .jcore .jant::after{content:'';position:absolute;top:-6px;left:50%;transform:translateX(-50%);width:10px;height:10px;border-radius:50%;background:var(--jg);box-shadow:0 0 11px var(--jg)}
.coai-office-scene .jcore .jear{position:absolute;top:70px;width:20px;height:34px;border-radius:9px;background:linear-gradient(180deg,#63ecff,#2bbfd8);box-shadow:0 0 11px rgba(var(--jgr),.4)}
.coai-office-scene .jcore .jear.l{left:2px}.coai-office-scene .jcore .jear.r{right:2px}
.coai-office-scene .jcore .jhead{position:absolute;left:50%;top:20px;transform:translateX(-50%);width:128px;height:106px;border-radius:35px;background:linear-gradient(158deg,#7af1ff 0%,#38d6ef 46%,#1ba7c2 100%);box-shadow:inset 0 7px 11px rgba(255,255,255,.5), inset 0 -13px 19px rgba(0,55,72,.42), 0 7px 20px rgba(0,0,0,.38);z-index:2}
.coai-office-scene .jcore .jface{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);width:102px;height:80px;border-radius:26px;background:radial-gradient(circle at 50% 38%,#102630,#050f14 78%);display:flex;align-items:center;justify-content:center;gap:20px;box-shadow:inset 0 3px 12px rgba(0,0,0,.7)}
.coai-office-scene .jcore .jeye{position:relative;width:20px;height:30px;border-radius:11px;background:linear-gradient(180deg,#d6f9ff 0%,#63e6ff 46%,#33cdea 100%)}
.coai-office-scene .jcore .jeye::after{content:'';position:absolute;top:4px;left:4px;width:6px;height:10px;border-radius:4px;background:rgba(255,255,255,.92)}
/* solid expressions (shape only, NO glow) — driven by coreMood('happy'|'think') */
.coai-office-scene .jcore.happy .jeye{height:15px;border-radius:12px 12px 5px 5px}
.coai-office-scene .jcore.happy .jeye::after{display:none}
.coai-office-scene .jcore.think .jeye,.coai-office-scene .jcore.working .jeye{height:13px}

/* ===== Option B 2026-07-24: continuous background =====
   .coai-office-scene is now inset:0 so sky/aurora/planet/stars/comet run behind the
   transparent 60px top bar with no seam. The composition (rings, HUD, nodes, docks,
   beam, packet, ticker) lives in .coai-stagec, whose box is identical to the OLD scene
   box - which is why no %-position, no polar constant and no mascot needed retuning. */
.coai-office-scene .coai-stagec{position:absolute;left:0;right:0;top:60px;bottom:0}

/* JUNO -> agent idle connectors. z-index:2 keeps them under docks (z4) and nodes (z5),
   pointer-events:none so they can never eat a click. Endpoints are driven from the same
   polar coords the nodes use - not a second geometry system. */
.coai-office-scene .jbeams{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;overflow:visible}
.coai-office-scene .jbeams line{stroke:rgba(77,245,143,.20);stroke-width:1;vector-effect:non-scaling-stroke;stroke-linecap:round}
.coai-office-scene .jbeams line.dim{stroke:rgba(255,255,255,.07)}
@media (prefers-reduced-motion:no-preference){
  .coai-office-scene .jbeams line{stroke-dasharray:3 7;animation:coai-jflow 3.4s linear infinite}
}
@keyframes coai-jflow{to{stroke-dashoffset:-20}}
