[hidden]{display:none!important}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}
body{font:700 13px Inter,system-ui,sans-serif;color:#fff;background:radial-gradient(ellipse at 50% 45%,#fbfbfc 0,#f1f1f3 55%,#e6e6ea 100%)}
button{font:inherit;color:inherit;cursor:pointer}
#stage{position:fixed;inset:0;cursor:grab;touch-action:none}#stage.drag{cursor:grabbing}
#world{position:absolute;left:50%;top:50%;width:1000px;height:900px;transform-origin:0 0}
#scene{width:100%;height:100%;overflow:visible}#botsLayer{position:absolute;inset:0}
.glass,.pill{background:rgba(30,30,33,.9);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.06)}
.glass{position:fixed;border-radius:16px;z-index:5;padding:12px}
.pill{border-radius:999px;display:flex;align-items:center;gap:8px;height:44px;padding:0 16px;border:0}
#top{position:fixed;top:20px;left:24px;right:24px;display:flex;gap:10px;z-index:6;pointer-events:none}#top>*{pointer-events:auto}
#brand{font-size:15px}#brand b{font-weight:800}.logo svg{width:28px;height:28px;display:block}
#conn{font-size:12px;color:#ddd;display:flex;align-items:center;gap:4px}#conn i{width:7px;height:7px;border-radius:50%;background:#888;margin-right:2px}
#conn.live i{background:#34d058;box-shadow:0 0 6px #34d058}#conn.re i{background:#f5a524;animation:pul 1s infinite}
#counts{margin:0 auto;padding:0 8px;gap:4px}.cnt{display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;color:#ddd}
.cnt b{font-size:17px;color:#fff}.cnt i{width:7px;height:7px;border-radius:50%}.cnt.w{background:#5b4521;color:#f5c869}.cnt.e{background:#5e2429;color:#ff8a8a}
.round{width:44px;padding:0;justify-content:center}.tag{font-size:11px;letter-spacing:1px;height:32px;align-self:center}
#usage{min-width:174px}#usage .lbl{font-size:13px;color:#ddd}.bar{flex:1;height:10px;border-radius:6px;background:#3a3a3e;overflow:hidden;min-width:70px}
#uFill{display:block;height:100%;width:0;border-radius:6px;background:linear-gradient(90deg,#fff,#cfcfd4)}#uPct{font-size:16px;font-weight:900}
.pop{top:72px;right:24px;width:250px}
.ph{display:flex;align-items:center;gap:8px;font-size:12px;color:#bbb;margin:0 4px 8px}.ph span:not(.badge){margin-left:auto;color:#999;font-size:11px}
.badge{background:#8b2e37;color:#ffb3b3;border-radius:8px;padding:0 7px;font-size:11px}
.ic{background:none;border:0;color:#bbb;font-size:16px;margin-left:auto;padding:0 4px}.x{font-size:22px;line-height:1}
#floorsP{top:76px;left:24px;width:212px}
.fl{display:flex;align-items:center;gap:10px;padding:5px 8px;border-radius:12px;cursor:pointer}.fl:hover{background:rgba(255,255,255,.05)}
.fl.on{background:rgba(255,255,255,.1)}.fl .n{width:26px;height:26px;border-radius:8px;background:#3a3a3e;display:grid;place-items:center;font-weight:900;flex:none}
.fl.on .n{background:#fff;color:#111}.fl .nm{flex:1;min-width:0}.fl .nm div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dots{display:flex;gap:3px;margin-top:3px}.dots i{width:5px;height:5px;border-radius:50%}.fl .c{color:#bbb}
#waitP{left:24px;width:272px;max-height:calc(100vh - 560px);min-height:90px;display:flex;flex-direction:column}#waits{overflow:auto}
#waitP.col #waits{display:none}
.card{display:flex;gap:10px;padding:10px;border-radius:12px;margin-bottom:6px;cursor:pointer;background:rgba(255,255,255,.04)}
.card.w{background:linear-gradient(135deg,#6b5326,#4d3c1d)}.card.e{background:linear-gradient(135deg,#6e2a33,#4b1f26)}
.card .t{font-size:13px}.card .s{font-size:11px;margin-top:2px;color:#eee;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card.w .s em{color:#f5c869;font-style:normal}.card.e .s em{color:#ff9a9a;font-style:normal}
.mini{position:relative;width:30px;height:30px;flex:none}.mini svg{width:100%;height:100%;overflow:visible}.mini i{position:absolute;right:-2px;bottom:-1px;width:9px;height:9px;border-radius:50%;border:2px solid #232326}
#actP{left:24px;bottom:24px;width:368px;max-height:150px;overflow:hidden}
.act{display:flex;gap:10px;align-items:center;font-size:11.5px;color:#ccc;padding:3px 4px;white-space:nowrap}.act b{color:#fff}.act i{width:6px;height:6px;border-radius:50%;flex:none}.act .tx{overflow:hidden;text-overflow:ellipsis}
#right{position:fixed;top:96px;right:24px;width:282px;z-index:5;display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 120px)}
.summary{border-radius:16px;padding:14px 16px;background:linear-gradient(135deg,#7cb342,#4e8a23);box-shadow:0 10px 30px rgba(80,140,30,.3);display:grid;grid-template-columns:1fr auto;gap:2px 10px}
.summary.grey{background:linear-gradient(135deg,#6b6b70,#45454a);box-shadow:0 10px 30px rgba(0,0,0,.2)}
.summary h2{margin:0;font-size:17px;font-weight:900;color:#f1ffd9}.summary .bc{font-size:11px;color:#e4f5cc;align-self:center}
.summary .big{font-size:13px;color:#eaffcf;align-self:end}.summary .big b{font-size:28px;color:#e7ff9b;margin-right:4px}
.summary .we{font-size:11px;color:#e4f5cc;text-align:right;line-height:1.6}.summary .we b{display:inline-block;width:22px;text-align:right;color:#fff}
#listP{position:static;overflow:auto;padding:6px}
.bi{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;cursor:pointer}.bi:hover{background:rgba(255,255,255,.05)}
.bi.w{background:linear-gradient(135deg,#6b5326,#4d3c1d)}.bi.e{background:linear-gradient(135deg,#6e2a33,#4b1f26)}
.bi .mini{width:34px;height:34px}.bi .tx{flex:1;min-width:0}.bi .s{font-size:11px;color:#c8c8c8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bi.w .s{color:#f5c869}.bi.e .s{color:#ff9a9a}.bi a{color:#888;text-decoration:none;font-size:14px}.bi.stale{opacity:.5}
#zoom{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:0 6px;height:38px;z-index:5;gap:0}
#zoom button{background:none;border:0;font-size:20px;width:32px;height:32px}#zoom span{width:1px;height:16px;background:#555}
#detail{top:96px;right:320px;width:300px;z-index:8}#detail h2{margin:0 0 4px;font-size:18px;font-weight:900}
#detail h3{font-size:11px;color:#999;margin:12px 0 4px;text-transform:uppercase;letter-spacing:.5px}#detail p{margin:0;font-weight:600;color:#eee}
#detail ul{margin:0;padding-left:16px;font-weight:600;font-size:12px;color:#ddd}#detail a.chat{display:inline-block;margin-top:12px;background:#fff;color:#111;padding:7px 14px;border-radius:999px;text-decoration:none;font-weight:800}
.dh{display:flex;gap:12px;align-items:center}.dh .mini{width:46px;height:46px}.st{font-size:12px;color:#ccc}
#rtP{top:76px;left:50%;transform:translateX(-50%);width:min(560px,94vw);max-height:70vh;overflow:auto;z-index:9}
.rt{display:grid;grid-template-columns:1fr 1.2fr 1fr 1.1fr;gap:8px;padding:7px 6px;border-top:1px solid rgba(255,255,255,.07);font-size:12px;font-weight:600;color:#ddd}.rt.h{color:#999;border:0;font-size:11px}
#msg{position:fixed;inset:0;display:grid;place-items:center;z-index:20;background:rgba(240,240,243,.85)}#msg div{background:rgba(30,30,33,.92);padding:26px 30px;border-radius:18px;max-width:420px;text-align:center;font-size:16px}
#sheet{display:none}
/* bots */
.bot{position:absolute;width:56px;height:64px;transform:translate(-50%,-100%);cursor:pointer;z-index:1}
.bot .sh{position:absolute;left:8px;right:8px;bottom:-3px;height:8px;border-radius:50%;background:rgba(0,0,0,.22);filter:blur(1.5px);animation:shd 2.6s ease-in-out infinite}
.bot .fig{position:absolute;inset:0 0 6px;animation:flt 2.6s ease-in-out infinite}.bot svg{width:100%;height:100%;overflow:visible}
.bot .dot{position:absolute;right:2px;bottom:6px;width:10px;height:10px;border-radius:50%;border:2px solid #fff;z-index:2}
.bot.working .fig{animation:wrk .7s ease-in-out infinite}.bot.idle .fig{animation-duration:4.5s}.bot.idle .sh{animation-duration:4.5s}
.bot.waiting_user .fig{animation:wav 1.1s ease-in-out infinite}.bot.done .fig{animation:hop 2s ease-in-out infinite}
.bot.unknown .fig{animation:none;filter:grayscale(.85) opacity(.85)}.bot.stale{opacity:.5}
.bot.error::before{content:"";position:absolute;left:-6px;right:-6px;bottom:-8px;height:18px;border-radius:50%;border:2.5px solid #ff4d4f;animation:ring 1.2s ease-out infinite}
.bub{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);background:#fff;color:#111;border-radius:10px;padding:1px 7px;font-size:12px;font-weight:900;box-shadow:0 3px 8px rgba(0,0,0,.2);white-space:nowrap}
.bub.e{background:#ff4d4f;color:#fff}.bub.d{background:#34d058;color:#fff}.bub.z{background:#ddd;color:#666}
.bot .lab{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:4px;background:rgba(30,30,33,.85);font-size:10px;padding:1px 7px;border-radius:7px;white-space:nowrap;opacity:0;transition:.15s;pointer-events:none}
.bot:hover .lab,.bot.sel .lab{opacity:1}.bot.sel .sh{background:rgba(52,120,246,.5)}
.s-working{background:#34d058}.s-waiting_user{background:#f5a524}.s-error{background:#ff4d4f}.s-idle{background:#9a9aa0}.s-done{background:#5b8def}.s-unknown{background:#5e5e63}
@keyframes flt{50%{transform:translateY(-5px)}}@keyframes shd{50%{transform:scale(.82);opacity:.7}}@keyframes wrk{50%{transform:translateY(-2px) rotate(-3deg)}}
@keyframes wav{0%,100%{transform:rotate(0)}25%{transform:rotate(-9deg) translateY(-3px)}75%{transform:rotate(9deg) translateY(-3px)}}
@keyframes hop{0%,60%,100%{transform:none}30%{transform:translateY(-10px) scale(1.04,.96)}}@keyframes ring{0%{transform:scale(.6);opacity:1}100%{transform:scale(1.5);opacity:0}}@keyframes pul{50%{opacity:.3}}
/* mobile */
@media(max-width:760px){
#top{top:10px;left:10px;right:10px;gap:6px}.pill{height:40px;padding:0 10px}#brand b,#conn,#usage .lbl,#usage .bar{display:none}#usage{min-width:0}
#counts{gap:0;padding:0 4px;overflow:hidden}.cnt{padding:5px 6px;gap:4px}.cnt span{display:none}.cnt b{font-size:14px}.round{width:40px}.tag{display:none}
#floorsP{top:58px;left:0;right:0;width:auto;background:none;box-shadow:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none;padding:4px 10px;overflow-x:auto}
#floorsP .ph{display:none}#floors{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:8px;width:max-content}
.fl{background:rgba(30,30,33,.9);border-radius:999px;padding:6px 12px 6px 6px}.fl.on{background:rgba(60,60,64,.95);outline:1px solid rgba(255,255,255,.2)}.fl .dots{display:none}
#right,#actP,#waitP{display:none}#zoom{left:auto;right:12px;transform:none;bottom:calc(var(--sheet,150px) + 12px)}
#sheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:7;background:rgba(30,30,33,.95);border-radius:22px 22px 0 0;padding:8px 14px 14px;max-height:52vh;display:flex;flex-direction:column;box-shadow:0 -10px 30px rgba(0,0,0,.2)}
.handle{width:40px;height:5px;border-radius:3px;background:#666;margin:0 auto 8px;cursor:pointer}
#sheet .summary{background:none;box-shadow:none;padding:2px 6px}#sheet .summary h2{color:#fff}#sheet .summary .big b{color:#8fdc4f}#sheet .summary *{color:#ddd}
.tabs{display:flex;gap:6px;margin:8px 0}.tabs button{flex:1;background:#3a3a3e;border:0;border-radius:999px;padding:6px 0;font-size:12px}.tabs button.on{background:#fff;color:#111}
#sheetBody{overflow:auto;flex:1}#sheetBody>.glass{display:block!important;position:static;width:auto;max-height:none;background:none;box-shadow:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0}
#sheetBody>.glass.hide{display:none!important}#sheet.min .tabs,#sheet.min #sheetBody{display:none}
#detail{left:8px;right:8px;width:auto;top:auto;bottom:8px;max-height:60vh;overflow:auto;z-index:9}#rtP{top:60px}.rt{grid-template-columns:1fr 1fr 1fr}.rt>:nth-child(3){display:none}
.pop{top:58px;right:10px}}
#rtBtn{font-size:13px;font-weight:800}.rb{background:#fff;color:#111;border-radius:9px;padding:0 7px;font-size:11px;font-weight:900}
.fl .n{width:auto;min-width:30px;padding:0 5px;font-size:11px}.fl .c{font-size:11px;background:#3a3a3e;border-radius:8px;padding:1px 7px;white-space:nowrap}.fl.on .c{background:#555}
@media(max-width:760px){.rl{display:none}#rtBtn{padding:0 10px}#counts .cnt span{display:none}}

body{font-weight:600;letter-spacing:-.1px}#world.anim{transition:transform .6s cubic-bezier(.2,.8,.2,1)}#scene,#botsLayer{transition:opacity .25s}.swap #scene,.swap #botsLayer{opacity:0}
.chev svg{transition:transform .2s}#waitP.col .chev svg{transform:rotate(180deg)}#waitP .ic{margin-left:0}#waitP .ph .badge+.ic{margin-left:auto}
.noBub .bub{display:none}
.bot .lab{top:auto;bottom:100%;margin:0 0 8px;background:#fff;color:#111;font-size:12px;font-weight:700;padding:4px 10px 4px 8px;border-radius:9px;box-shadow:0 4px 12px rgba(0,0,0,.18);display:flex;gap:6px;align-items:center}
.bot .lab i{width:7px;height:7px;border-radius:50%}.bot.sel .lab,.bot:hover .lab{opacity:1}.bot:hover .bub,.bot.sel .bub{opacity:0}
.bot .fig svg{filter:drop-shadow(0 3px 3px rgba(0,0,0,.18))}
#right.det .summary,#right.det #listP{display:none}#detail{display:flex;flex-direction:column;gap:10px;position:static;width:auto;padding:0;overflow:auto}
.dtop{border-radius:16px;padding:16px;background:linear-gradient(135deg,#5f6168,#3c3d42);position:relative;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.dtop.working{background:linear-gradient(135deg,#7cb342,#4e8a23)}.dtop.error{background:linear-gradient(135deg,#d43a4a,#a51f30)}.dtop.waiting_user{background:linear-gradient(135deg,#c8902c,#8f6216)}.dtop.done{background:linear-gradient(135deg,#5b8def,#3a63c4)}
.dtop .dh{display:flex;gap:12px;align-items:center;padding-right:30px}.dtop .mini{width:48px;height:48px}.dtop h2{margin:0;font-size:18px;font-weight:800}.dtop .st{font-size:11.5px;color:rgba(255,255,255,.75)}
.chip{display:inline-flex;gap:6px;align-items:center;background:rgba(0,0,0,.22);border-radius:999px;padding:5px 10px;font-size:11.5px;margin:12px 0 8px}.chip i{width:7px;height:7px;border-radius:50%}
.dtop .big{font-size:14px;font-weight:800}.xb{position:absolute;top:12px;right:12px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(255,255,255,.2);color:#fff;font-size:16px;line-height:1}
.dcard h3{font-size:11.5px;color:#aaa;margin:10px 0 6px;font-weight:600}.dcard h3:first-child{margin-top:0}.dcard p{margin:0;font-weight:700}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stats div{background:rgba(255,255,255,.06);border-radius:12px;padding:10px}.stats b{display:block;font-size:20px}.stats span{font-size:11px;color:#aaa}
.ubot{display:flex;align-items:center;gap:10px}.ubot .bar{height:8px}.ubot b{font-size:13px;text-align:right}.rs{display:flex;gap:12px;font-size:12px;padding:3px 0}.rs span{color:#999;flex:none}
a.chatb{display:block;text-align:center;margin-top:14px;background:rgba(255,255,255,.1);color:#fff;padding:11px;border-radius:12px;text-decoration:none;font-weight:700}a.chatb:hover{background:rgba(255,255,255,.18)}
#toast{position:fixed;top:76px;left:50%;transform:translateX(-50%);background:#111;color:#fff;padding:8px 14px;border-radius:999px;z-index:30;font-size:12px}
#sheet{transition:height .28s cubic-bezier(.2,.8,.2,1)}#sheet.dragging{transition:none}.handle{width:100%;height:18px;margin:-8px 0 2px;background:none;display:flex;justify-content:center;align-items:center;cursor:grab;touch-action:none}.handle::after{content:"";width:40px;height:5px;border-radius:3px;background:#666}
@media(max-width:760px){#sheet{max-height:none}#detail.mob{position:fixed;left:8px;right:8px;bottom:8px;z-index:9;max-height:70vh}#shareBtn{display:none}}
.dtop,.dcard{flex:none}
.dcard{position:static!important;z-index:auto}
#pmBtn{cursor:pointer;color:#fff}
#pmP{position:fixed;z-index:12;top:64px;left:50%;transform:translateX(-50%);width:min(520px,calc(100vw - 16px));height:min(600px,calc(100vh - 150px));padding:10px 12px;display:flex;flex-direction:column;gap:6px;touch-action:manipulation;box-sizing:border-box;overscroll-behavior:contain}
#pmP[hidden]{display:none}#pmP .ph{display:flex;align-items:center;gap:6px}#pmP .ph #pmNote{flex:1;font-size:11px;color:#f5c26b}#pmLock{background:none;border:0;cursor:pointer;font-size:14px;padding:2px 6px;border-radius:8px}#pmLock.need{background:rgba(245,194,107,.25)}
#pmSet{background:rgba(255,255,255,.05);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:6px}#pmSet[hidden]{display:none}
#pmP .pmrow{display:flex;gap:8px;align-items:center}
#pmP select,#pmP input,#pmP textarea{font:inherit;font-size:16px;background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:7px 10px;box-sizing:border-box}
#pmP select option{color:#000}#pmKey{flex:1;min-width:0}
#pmKeyBtn{font:inherit;background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:10px;padding:8px 12px;cursor:pointer}
#pmP .pmsec{font-size:11px;color:#aaa;line-height:1.35}
#pmThread{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:4px 2px;overscroll-behavior:contain;touch-action:pan-y}
#pmThread .empty{margin:auto;color:#888;font-size:13px;text-align:center}
.pmb{max-width:80%;padding:7px 11px;border-radius:16px;font-size:14px;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere}
.pmb .meta{display:block;font-size:10.5px;opacity:.75;margin-top:3px;white-space:nowrap}.pmb .who{display:block;font-size:11px;font-weight:700;margin-bottom:2px;opacity:.85}
.pmb.me{align-self:flex-end;background:#8fdc4f;color:#111;border-bottom-right-radius:5px}.pmb.me.fail{background:#ff8a80}.pmb.me.pend{opacity:.7}
.pmb.them{align-self:flex-start;background:rgba(255,255,255,.12);color:#eee;border-bottom-left-radius:5px}.pmb.them .unv{color:#f5c26b;font-weight:500}.pmb.them.re{margin-top:-2px}
#pmStat{font-size:12px;color:#ccc;min-height:0}#pmStat:empty{display:none}#pmStat.err{color:#ff8a80}#pmStat.ok{color:#8fdc4f}
.pmComp{display:flex;gap:6px;align-items:flex-end}
#pmTo{flex:0 0 auto;max-width:34%;border-radius:999px!important;font-size:14px!important;padding:8px 10px!important;height:40px}
#pmText{flex:1;min-width:0;resize:none;height:40px;max-height:140px;line-height:1.35;overflow-y:auto}
#pmSend{flex:0 0 auto;height:40px;font:inherit;font-weight:700;background:#8fdc4f;color:#111;border:0;border-radius:999px;padding:0 16px;cursor:pointer}#pmSend:disabled{opacity:.45;cursor:not-allowed}
#pmCount{font-size:10.5px;color:#888;text-align:right;margin-top:-3px}#pmCount:empty{display:none}
#pmBtn .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#f5c26b;margin-left:4px}
@media(max-width:760px){#pmP{top:58px;height:max(300px,calc(100dvh - 72px - var(--sheet,0px)))}#pmBtn .rl{display:none}}
.pmw{align-self:flex-end;font-size:10.5px;color:#8fdc4f;margin-top:-3px}.pmw.bad{color:#f5c26b}
/* ===== FX layer ===== */
#sky{position:fixed;inset:-40px;z-index:0;pointer-events:none;--px:0;--py:0;transition:background 4s ease;background:radial-gradient(ellipse at 50% 45%,#fbfbfc 0,#f1f1f3 55%,#e3e5ea 100%)}
body[data-sky=dawn] #sky{background:radial-gradient(ellipse at var(--sx) 80%,#ffe7cf 0,#f6e9f0 40%,#dfe4f1 100%)}
body[data-sky=golden] #sky{background:radial-gradient(ellipse at var(--sx) 75%,#fff1d6 0,#f7eadf 45%,#e6e2ea 100%)}
body[data-sky=dusk] #sky{background:radial-gradient(ellipse at 50% 90%,#f0b9a6 0,#a990b8 40%,#3d3f6b 100%)}
body[data-sky=night] #sky{background:radial-gradient(ellipse at 50% 100%,#2c3460 0,#1a1f3d 50%,#0e1126 100%)}
#sky .stars{position:absolute;inset:0;opacity:0;transition:opacity 4s;transform:translate(calc(var(--px)*-6px),calc(var(--py)*-6px));
background-image:radial-gradient(1.5px 1.5px at 12% 18%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 28% 42%,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 47% 12%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 63% 33%,#fff 50%,transparent 51%),radial-gradient(2px 2px at 78% 16%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 88% 48%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 8% 62%,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 37% 72%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 93% 78%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 55% 58%,#fff 50%,transparent 51%);animation:twk 5s ease-in-out infinite alternate}
body[data-sky=night] #sky .stars{opacity:.9}body[data-sky=dusk] #sky .stars{opacity:.35}
#sky .sun{position:absolute;left:var(--sx);top:var(--sy);width:120px;height:120px;margin:-60px;border-radius:50%;background:radial-gradient(circle,rgba(255,236,190,.9),rgba(255,220,160,0) 70%);transform:translate(calc(var(--px)*-14px),calc(var(--py)*-10px));transition:opacity 4s,left 60s linear,top 60s linear}
body[data-sky=night] #sky .sun{background:radial-gradient(circle,rgba(230,235,255,.85) 0 18%,rgba(200,210,255,.15) 30%,transparent 65%)}body[data-sky=day] #sky .sun{opacity:.55}
#sky .cl{position:absolute;border-radius:50%;background:rgba(255,255,255,.7);filter:blur(18px);transition:opacity 4s}
#sky .c1{width:340px;height:90px;top:14%;left:8%;transform:translate(calc(var(--px)*-22px),calc(var(--py)*-8px));animation:drift 90s linear infinite alternate}
#sky .c2{width:260px;height:70px;top:70%;left:70%;transform:translate(calc(var(--px)*-30px),calc(var(--py)*-10px));animation:drift 120s linear infinite alternate-reverse}
#sky .c3{width:200px;height:60px;top:38%;left:85%;transform:translate(calc(var(--px)*-16px),calc(var(--py)*-6px));animation:drift 100s linear infinite alternate}
body[data-sky=night] #sky .cl{opacity:.08}body[data-sky=dusk] #sky .cl{opacity:.35}
@keyframes drift{to{margin-left:-120px}}@keyframes twk{to{filter:brightness(.6)}}
#stage{z-index:1}#world{will-change:transform}
#world.anim{transition:transform .8s cubic-bezier(.22,1,.36,1)}
#scene,#botsLayer{transition:opacity .26s ease,transform .26s ease}.swap.swu #scene,.swap.swu #botsLayer{transform:translateY(60px)}.swap.swd #scene,.swap.swd #botsLayer{transform:translateY(-60px)}
/* bots: hover / select / status pulse */
.bot svg{transition:transform .32s cubic-bezier(.34,1.7,.5,1),filter .25s}
.bot.hov svg{transform:translateY(-6px) scale(1.16);filter:drop-shadow(0 0 7px rgba(255,255,255,.95)) drop-shadow(0 4px 6px rgba(0,0,0,.18))}
.bot.sel svg{filter:drop-shadow(0 0 9px rgba(143,220,79,.95))}
.bot.hot .sh{box-shadow:0 0 calc(6px + var(--ug)*18px) calc(var(--ug)*6px) rgba(143,220,79,calc(.25 + var(--ug)*.5))}
.bot.pulse::after{content:"";position:absolute;left:50%;top:50%;width:70px;height:70px;margin:-35px;border-radius:50%;border:3px solid rgba(255,255,255,.9);animation:pls .9s ease-out forwards;pointer-events:none}
@keyframes pls{from{transform:scale(.3);opacity:1}to{transform:scale(1.6);opacity:0}}
.bot.working .fig::after{content:"";position:absolute;left:50%;bottom:2px;width:22px;height:4px;margin-left:-11px;border-radius:2px;background:repeating-linear-gradient(90deg,#1d1d1f 0 3px,transparent 3px 5px);opacity:.55;animation:typ .35s steps(2) infinite}
@keyframes typ{50%{opacity:.2}}
.bot.unknown .fig{animation:slp 4s ease-in-out infinite}@keyframes slp{50%{transform:translateY(2px) scale(1.02,.97)}}
/* tooltip */
#tip{position:fixed;left:0;top:0;z-index:20;pointer-events:none;max-width:240px;background:rgba(24,24,27,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:14px;padding:9px 12px;box-shadow:0 12px 30px rgba(0,0,0,.25);opacity:0;scale:.92;transition:opacity .16s,scale .22s cubic-bezier(.34,1.6,.5,1)}
#tip.vis{opacity:1;scale:1}#tip .tn{font-weight:800;font-size:13.5px}#tip .ts{font-size:11.5px;margin:2px 0 3px}#tip .tp{font-size:12px;color:#ccc;font-weight:600}
#tip .ts.s-working{color:#8fdc4f}#tip .ts.s-error{color:#ff7a7f}#tip .ts.s-waiting_user{color:#f5c26b}#tip .ts.s-done{color:#7aa7ff}#tip .ts.s-idle,#tip .ts.s-unknown{color:#aaa}
#backBtn{position:fixed;z-index:8;left:50%;bottom:24px;translate:-50% 0;cursor:pointer;color:#fff;font:inherit;font-weight:800;animation:popin .3s cubic-bezier(.34,1.5,.6,1)}#backBtn[hidden]{display:none}
@media(max-width:760px){#backBtn{bottom:calc(var(--sheet,0px) + 70px);left:auto;right:12px;translate:none}}
/* panels: spring in */
@keyframes popin{from{opacity:0;scale:.95;translate:0 8px}}
#detail:not([hidden]),#rtP:not([hidden]),.pop:not([hidden]),#pmP:not([hidden]),#sndPop:not([hidden]){animation:popin .34s cubic-bezier(.34,1.45,.6,1)}
#backBtn{animation-name:popin}
/* floors nav */
#floorsP .ph{display:flex;align-items:center;gap:6px}#floorsP .ph #fCount{flex:1}.fnav{display:flex;gap:4px}.fnav .ic{width:24px;height:22px;border-radius:7px;border:0;background:rgba(255,255,255,.08);color:#ddd;font-size:9px;cursor:pointer}.fnav .ic:disabled{opacity:.3;cursor:default}
.fl{transition:background .25s,box-shadow .4s,transform .25s cubic-bezier(.34,1.5,.6,1)}.fl:active{transform:scale(.97)}
.fl.act{box-shadow:inset 0 0 0 1px rgba(143,220,79,calc(var(--glow,0)*.6)),0 0 calc(var(--glow,0)*16px) rgba(143,220,79,calc(var(--glow,0)*.45))}
.fl.act .n{box-shadow:0 0 calc(4px + var(--glow,0)*10px) rgba(143,220,79,calc(.2 + var(--glow,0)*.6))}
/* usage */
.uring{width:26px;height:26px;transform:rotate(-90deg);flex:none}.uring circle{fill:none;stroke-width:4.5}.uring .bg{stroke:#3a3a3e}.uring .fg{stroke-linecap:round;transition:stroke .4s}
#usage[data-lvl=hi]{box-shadow:0 0 0 1px rgba(255,90,95,.5),0 10px 30px rgba(255,90,95,.25)}#usage[data-lvl=hi] .uring{animation:pul 1.6s infinite}
#uFill{transition:background .4s}
.ugauge{position:relative;padding:4px 4px 10px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:8px}
.garc{width:100%;height:auto;display:block}.garc path{fill:none;stroke-width:10;stroke-linecap:round}.garc .bg{stroke:#3a3a3e}.garc .fg{transition:stroke .4s}
.gnum{position:absolute;left:0;right:0;top:38%;text-align:center}.gnum b{display:block;font-size:26px;font-weight:900;letter-spacing:-.5px}.gnum span{font-size:11px;color:#aaa}
.gmeta{display:flex;justify-content:space-between;font-size:11.5px;color:#ccc;margin:6px 2px}#gTrend{color:#aaa}
.spark{width:100%;height:36px;display:block}#gSpark{fill:none;stroke:#8fdc4f;stroke-width:1.6;vector-effect:non-scaling-stroke}#gSparkF{fill:rgba(143,220,79,.15)}
/* sound */
#sndBtn{cursor:pointer}#sndBtn .w1,#sndBtn .w2{display:none}#sndBtn.on .w1,#sndBtn.on .w2{display:inline}#sndBtn.on .mx{display:none}#sndBtn.on{box-shadow:0 0 0 1px rgba(143,220,79,.5)}
#sndPop{position:fixed;top:72px;right:24px;width:230px;z-index:12;display:flex;flex-direction:column;gap:10px}#sndPop[hidden]{display:none}
#sndPop label{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}#sndPop .rg{flex-direction:column;align-items:stretch;gap:4px}#sndPop input[type=range]{width:100%;accent-color:#8fdc4f}#sndPop input[type=checkbox]{accent-color:#8fdc4f;width:16px;height:16px}
#sndPop .pmsec{font-size:11px;color:#999}
@media(max-width:760px){#sndPop{top:58px;right:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
.msgb{display:inline-block;margin-top:12px;margin-right:8px;background:#8fdc4f;color:#111;border:0;padding:7px 14px;border-radius:999px;font:inherit;font-weight:800;cursor:pointer;transition:transform .2s cubic-bezier(.34,1.6,.5,1)}.msgb:hover{transform:scale(1.05)}
@media(max-width:760px){#floorsP .ph{display:none}#backBtn{display:none!important}#rtBtn{display:none}#top .pill.round{width:40px;padding:0;justify-content:center}}
#uPop{max-height:calc(100vh - 100px);overflow:auto;outline:none}#uBots{display:flex;flex-direction:column;gap:7px;padding:2px 2px 4px}
.ubr{display:grid;grid-template-columns:minmax(0,1fr) 70px 46px;align-items:center;gap:8px;font-size:12px}.ubr .un{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ubr .ub{height:7px;border-radius:4px;background:#3a3a3e;overflow:hidden}.ubr .ub i{display:block;height:100%;width:0;border-radius:4px;transition:width .8s cubic-bezier(.22,1,.36,1),background .4s}.ubr b{text-align:right;font-variant-numeric:tabular-nums}
#uBAge{font-weight:500;color:#aaa;font-size:11px}
@media(max-width:760px){#uPop{left:8px;right:8px;width:auto;max-height:calc(100dvh - 80px - var(--sheet,0px))}}
