












.tj-robot, .tj-robot-petbox, .tj-robot-dbg, .tj-robot-ctx{
--rb-bg:#131922;--rb-bg2:#1a2233;--rb-bg3:#232e40;--rb-border:#2a3444;
--rb-text:#e6e9ef;--rb-text2:#9aa3b2;--rb-dim:#7e889a;
--rb-accent:#e0a030;--rb-accent-ink:#1a1408;--rb-face:#7cc4ff;--rb-face-ink:#0b1a2a;--rb-danger:#ff6b6b;
--rb-torso:#4f8fd6;--rb-leg:#3b6fb0;--rb-shadow-ink:rgba(0,0,0,0.35);
--rb-shadow:0 8px 28px rgba(0,0,0,0.4);
--rb-long:#26a69a;--rb-short:#ef5350;
--rb-font:'Space Grotesk','Microsoft YaHei','PingFang SC',system-ui,sans-serif;
position:relative;display:inline-flex;align-items:center;align-self:center;
margin-left:10px;font-family:var(--rb-font);color:var(--rb-text);
}
:root[data-theme="light"] .tj-robot, :root[data-theme="light"] .tj-robot-petbox, :root[data-theme="light"] .tj-robot-dbg, :root[data-theme="light"] .tj-robot-ctx{
--rb-bg:#ffffff;--rb-bg2:#f3f5f8;--rb-bg3:#e8ecf2;--rb-border:#d9dee7;
--rb-text:#1b2230;--rb-text2:#5b6574;--rb-dim:#6a7386;
--rb-accent:#b8741a;--rb-accent-ink:#ffffff;--rb-face:#2f7fd1;--rb-face-ink:#ffffff;
--rb-torso:#2f6fb8;--rb-leg:#245a99;--rb-shadow-ink:rgba(20,30,50,0.25);
--rb-shadow:0 8px 28px rgba(20,30,50,0.18);
--rb-long:#05705d;--rb-short:#b81f2c;
}
.tj-robot[hidden], .tj-robot-petbox[hidden]{display:none !important;}

body.tj-touring .tj-robot, body.tj-touring .tj-robot-petbox{display:none !important;}


.tj-robot-mini{
position:relative;display:inline-flex;align-items:center;justify-content:center;
width:28px;height:28px;padding:0;border-radius:50%;
border:1px solid var(--rb-border);background:transparent;cursor:pointer;color:var(--rb-face);
}
.tj-robot-mini:hover{background:var(--rb-bg3);}
.tj-robot-mini:focus-visible, .tj-robot-tab:focus-visible, .tj-robot-chip:focus-visible, .tj-robot-btn:focus-visible, .tj-robot-item:focus-visible, .tj-robot-pipback:focus-visible, .tj-robot-petpip:focus-visible{outline:2px solid var(--rb-accent);outline-offset:2px;}
.tj-robot-face{width:22px;height:22px;display:block;}
.tj-robot-face.rb-big{width:44px;height:44px;}
.tj-robot-pet{display:none;}
.tj-robot-face .rb-head, .tj-robot-pet .rb-head{fill:var(--rb-face);}
.tj-robot-face .rb-ant, .tj-robot-pet .rb-ant{stroke:var(--rb-face);stroke-width:3;stroke-linecap:round;}
.tj-robot-face .rb-ant-dot, .tj-robot-pet .rb-ant-dot{fill:var(--rb-face);}
.tj-robot-face .rb-eye, .tj-robot-pet .rb-eye{fill:var(--rb-face-ink);transform-box:fill-box;transform-origin:center;animation:rb-blink 4s infinite;}
.tj-robot-face .rb-mouth, .tj-robot-pet .rb-mouth{fill:none;stroke:var(--rb-face-ink);stroke-width:3;stroke-linecap:round;}
.tj-robot-pet .rb-ant{stroke-width:4;}.tj-robot-pet .rb-mouth{stroke-width:4;}
.tj-robot-pet .rb-torso{fill:var(--rb-torso);}.tj-robot-pet .rb-arm{stroke:var(--rb-torso);stroke-width:8;stroke-linecap:round;}.tj-robot-pet .rb-leg{fill:var(--rb-leg);}
.tj-robot-pet .rb-shadow{fill:var(--rb-shadow-ink);}
.tj-robot-badge{
position:absolute;top:-6px;right:-8px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;
background:var(--rb-danger);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;
}
.tj-robot-follower{position:absolute;bottom:-2px;right:-2px;width:8px;height:8px;border-radius:50%;background:var(--rb-dim);border:1px solid var(--rb-bg);}
.tj-robot-badge[hidden], .tj-robot-follower[hidden], .tj-robot-bubble[hidden], .tj-robot-panel[hidden], .tj-robot-settings[hidden], .tj-robot-list[hidden], .tj-robot-btn[hidden], .tj-robot-pipnote[hidden], .tj-robot-pipback[hidden], .tj-robot-petpip[hidden]{display:none !important;}

.tj-robot-pipback{margin-left:6px;font-family:var(--rb-font);font-size:11px;line-height:1;padding:4px 8px;border-radius:10px;border:1px solid var(--rb-accent);background:transparent;color:var(--rb-accent);cursor:pointer;white-space:nowrap;}
.tj-robot-pipback:hover{background:var(--rb-bg3);}

.tj-robot-avatar-dot{position:absolute;top:6px;right:8px;width:9px;height:9px;border-radius:50%;background:#ff6b6b;border:2px solid #131922;pointer-events:none;}
:root[data-theme="light"] .tj-robot-avatar-dot{border-color:#ffffff;}


@keyframes rb-blink{0%,92%,100%{transform:scaleY(1);}95%{transform:scaleY(0.1);}}
@keyframes rb-bounce{0%,100%{transform:translateY(0);}30%{transform:translateY(-4px);}60%{transform:translateY(0);}80%{transform:translateY(-2px);}}
@keyframes rb-talk{0%,100%{d:path("M22 42 Q32 48 42 42");}50%{d:path("M24 41 Q32 53 40 41");}}
@keyframes rb-talk-pet{0%,100%{d:path("M50 92 Q70 104 90 92");}50%{d:path("M54 90 Q70 114 86 90");}}
@keyframes rb-glow{0%,100%{opacity:1;}50%{opacity:0.35;}}
@keyframes rb-breathe{0%,100%{transform:translateY(0);}50%{transform:translateY(-3px);}}
@keyframes rb-hop{0%,100%{transform:translateY(0);}30%{transform:translateY(-14px);}55%{transform:translateY(0);}75%{transform:translateY(-6px);}}
@keyframes rb-wave{0%,100%{transform:rotate(0);}40%{transform:rotate(-35deg);}70%{transform:rotate(15deg);}}
.tj-robot[data-state="alert"] .tj-robot-mini{animation:rb-bounce 0.7s ease-out 2;}
.tj-robot[data-state="alert"] .rb-ant-dot, .tj-robot-petbox[data-state="alert"] .rb-ant-dot{fill:var(--rb-accent);animation:rb-glow 0.5s ease-in-out 3;}
.tj-robot[data-state="speaking"] .tj-robot-face .rb-mouth{animation:rb-talk 0.35s ease-in-out infinite;}
.tj-robot-petbox[data-state="speaking"] .rb-mouth-pet{animation:rb-talk-pet 0.35s ease-in-out infinite;}
.tj-robot[data-state="speaking"] .rb-ant-dot, .tj-robot-petbox[data-state="speaking"] .rb-ant-dot{fill:var(--rb-accent);}
.tj-robot[data-state="muted"] .tj-robot-face .rb-mouth{d:path("M24 43 L40 43");}
.tj-robot-petbox[data-state="muted"] .rb-mouth-pet{d:path("M54 94 L86 94");}
@media (prefers-reduced-motion: reduce){
.tj-robot .rb-eye, .tj-robot .rb-mouth, .tj-robot .rb-ant-dot, .tj-robot .tj-robot-mini, .tj-robot-petbox .rb-eye, .tj-robot-petbox .rb-mouth-pet, .tj-robot-petbox .rb-ant-dot, .tj-robot-petbox .rb-pet-body, .tj-robot-petbox .rb-arm-r, .tj-robot-petbox .rb-jf-zz b, .tj-robot-petbox .rb-jf-confetti i, .tj-robot-petbox .rb-jf-fx, .tj-robot-petbox .rb-jf-spark b, .tj-robot-petbox .rb-jf-snow i, .tj-robot-petbox .rb-jf-poof{animation:none !important;}
}


.tj-robot-bubble{
position:absolute;top:calc(100% + 8px);right:0;width:max-content;max-width:320px;min-width:160px;
background:var(--rb-bg2);color:var(--rb-text);border:1px solid var(--rb-border);border-radius:10px;
padding:8px 12px;font-size:13px;line-height:1.4;box-shadow:var(--rb-shadow);z-index:1010;
white-space:normal;word-break:break-word;
}
.tj-robot-bubble::before{content:'';position:absolute;top:-6px;right:10px;width:10px;height:10px;background:var(--rb-bg2);border-left:1px solid var(--rb-border);border-top:1px solid var(--rb-border);transform:rotate(45deg);}



.tj-robot-kw{font-weight:700;padding:0 2px;border-radius:3px;}
.tj-robot-kw.long{color:var(--rb-long);background:color-mix(in srgb, var(--rb-long) 15%, transparent);}
.tj-robot-kw.short{color:var(--rb-short);background:color-mix(in srgb, var(--rb-short) 15%, transparent);}


.tj-robot-panel{
position:absolute;top:calc(100% + 6px);right:0;width:320px;max-height:440px;
display:flex;flex-direction:column;
background:var(--rb-bg2);border:1px solid var(--rb-border);border-radius:10px;box-shadow:var(--rb-shadow);
z-index:1010;overflow:hidden;text-align:left;cursor:default;
}
.tj-robot-head{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--rb-border);background:var(--rb-bg);}
.tj-robot-say{flex:1;font-size:13px;line-height:1.4;color:var(--rb-text);min-height:36px;display:flex;align-items:center;}
.tj-robot-pipnote{font-family:var(--rb-font);font-size:11px;padding:3px 8px;border-radius:10px;border:1px solid var(--rb-danger);background:transparent;color:var(--rb-danger);cursor:pointer;white-space:nowrap;}
.tj-robot-body{flex:1;overflow:auto;min-height:120px;}
.tj-robot-list{padding:4px;}
.tj-robot-empty{padding:18px 12px;font-size:12px;color:var(--rb-text2);text-align:center;line-height:1.5;}

.tj-robot-lock .tj-robot-upbtn{display:block;margin:12px auto 0;}
.tj-robot-group{padding:8px 10px 2px;font-size:11px;color:var(--rb-dim);letter-spacing:.04em;}
.tj-robot-item{padding:8px 10px;border-radius:6px;}
.tj-robot-item.is-link{cursor:pointer;}
.tj-robot-item.is-link:hover{background:var(--rb-bg3);}
.tj-robot-item-src{font-size:11px;color:var(--rb-accent);letter-spacing:.02em;}
.tj-robot-item-title{font-size:13px;color:var(--rb-text);line-height:1.35;margin:2px 0;word-break:break-word;}
.tj-robot-item-body{font-size:12px;color:var(--rb-text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tj-robot-item-time{font-size:11px;color:var(--rb-dim);display:flex;justify-content:space-between;align-items:baseline;gap:8px;}
.tj-robot-item-go{color:var(--rb-accent);opacity:.75;white-space:nowrap;}
.tj-robot-item.is-link:hover .tj-robot-item-go{opacity:1;}
.tj-robot-foot{display:flex;gap:6px;padding:8px;border-top:1px solid var(--rb-border);background:var(--rb-bg);flex-wrap:wrap;}
.tj-robot-btn{
font-family:var(--rb-font);font-size:12px;padding:5px 9px;border-radius:6px;cursor:pointer;
border:1px solid var(--rb-border);background:var(--rb-bg2);color:var(--rb-text);
}
.tj-robot-btn:hover{background:var(--rb-bg3);}
.tj-robot-btn-dim{color:var(--rb-text2);}


.tj-robot-settings{padding:8px;font-size:12px;}
.tj-robot-stools{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 8px;}
.tj-robot-srow{display:flex;align-items:center;gap:10px;padding:6px 4px;border-top:1px solid var(--rb-border);}
.tj-robot-srow:first-of-type{border-top:0;}
.tj-robot-master .tj-robot-slabel{font-weight:700;}
.tj-robot-slabel{flex:1;color:var(--rb-text);}
.tj-robot-srow label{display:inline-flex;align-items:center;gap:4px;color:var(--rb-text2);cursor:pointer;white-space:nowrap;}
.tj-robot-srow input[type="checkbox"]{accent-color:var(--rb-accent);}
.tj-robot-srow select{max-width:170px;font-family:var(--rb-font);font-size:12px;background:var(--rb-bg);color:var(--rb-text);border:1px solid var(--rb-border);border-radius:6px;padding:3px 6px;}


.tj-robot-srow[data-key]{gap:6px;}
.tj-robot-srow[data-key] label{gap:3px;}
.tj-robot-srow[data-key] input[type="checkbox"]{margin:0;}
.tj-robot-srow[data-key] .tj-robot-slabel{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.tj-robot-cats{margin:0 4px 8px 14px;padding:6px 8px;background:var(--rb-bg);border:1px solid var(--rb-border);border-radius:6px;}
.tj-robot-catshead{font-size:11px;margin-bottom:5px;}
.tj-robot-catgrid{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:5px 8px;}
.tj-robot-cat{display:inline-flex;align-items:center;gap:4px;color:var(--rb-text2);cursor:pointer;white-space:nowrap;}
.tj-robot-cat input{margin:0;accent-color:var(--rb-accent);}
.tj-robot-dim{color:var(--rb-dim);}


.tj-robot-tabs{display:flex;border-bottom:1px solid var(--rb-border);background:var(--rb-bg);}
.tj-robot-tab{
flex:1;font-family:var(--rb-font);font-size:13px;padding:7px 0;text-align:center;cursor:pointer;
background:transparent;border:0;border-bottom:2px solid transparent;color:var(--rb-text2);
}
.tj-robot-tab:hover{background:var(--rb-bg3);}
.tj-robot-tab[aria-selected="true"]{color:var(--rb-text);border-bottom-color:var(--rb-accent);}
.tj-robot-chips{display:flex;flex-wrap:wrap;gap:3px;padding:6px 8px 4px;position:sticky;top:0;z-index:1;background:var(--rb-bg2);border-bottom:1px solid var(--rb-border);}
.tj-robot-chip{
font-family:var(--rb-font);font-size:11px;line-height:1.2;padding:3px 6px;border-radius:10px;cursor:pointer;
border:1px solid var(--rb-border);background:transparent;color:var(--rb-text2);
}
.tj-robot-chip:hover{background:var(--rb-bg3);}
.tj-robot-chip[aria-pressed="true"]{background:var(--rb-accent);color:var(--rb-accent-ink);border-color:var(--rb-accent);}
.tj-robot-hint{padding:4px 12px 0;font-size:11px;color:var(--rb-dim);}
.tj-robot-hint[hidden], .tj-robot-live[hidden], .tj-robot-notice[hidden]{display:none !important;}
.tj-robot-item.is-unread .tj-robot-item-title{font-weight:700;}
.tj-robot-item.is-unread .tj-robot-item-src::before{content:'●';margin-right:4px;font-size:8px;color:var(--rb-danger);vertical-align:middle;}
.tj-robot-shead{padding:8px 4px 2px;font-size:11px;color:var(--rb-accent);letter-spacing:.04em;}


.tj-robot-petbox{position:fixed;margin:0;z-index:90;touch-action:none;font-family:var(--rb-font);color:var(--rb-text);}
.tj-robot-petbtn{display:block;width:96px;height:103px;padding:0;border:0;background:transparent;cursor:grab;}
.tj-robot-petbox.is-dragging .tj-robot-petbtn{cursor:grabbing;}
.tj-robot-petbtn:focus-visible{outline:2px solid var(--rb-accent);outline-offset:2px;border-radius:12px;}

.tj-robot-pethide{position:absolute;top:-2px;right:-6px;width:18px;height:18px;padding:0;border-radius:50%;border:1px solid var(--rb-border);background:var(--rb-bg2);color:var(--rb-text2);font-size:12px;line-height:16px;cursor:pointer;opacity:0;transition:opacity .15s;}
.tj-robot-petbox:hover .tj-robot-pethide, .tj-robot-pethide:focus-visible, .tj-robot-petbox:focus-within .tj-robot-pethide{opacity:1;}
.tj-robot-pethide:hover{background:var(--rb-bg3);color:var(--rb-text);}
@media (hover: none){.tj-robot-pethide{opacity:1;}}

.tj-robot-petpip{position:absolute;top:-2px;left:-6px;width:18px;height:18px;padding:0;border-radius:50%;border:1px solid var(--rb-border);background:var(--rb-bg2);color:var(--rb-text2);font-size:11px;line-height:16px;cursor:pointer;opacity:0;transition:opacity .15s;}
.tj-robot-petbox:hover .tj-robot-petpip, .tj-robot-petpip:focus-visible, .tj-robot-petbox:focus-within .tj-robot-petpip{opacity:1;}
.tj-robot-petpip:hover{background:var(--rb-bg3);color:var(--rb-text);}
@media (hover: none){.tj-robot-petpip{opacity:1;}}

.tj-robot-panel.is-at-pet{position:fixed;right:auto;}
.tj-robot-petbox .tj-robot-pet{display:block;width:96px;height:103px;filter:drop-shadow(0 6px 12px rgba(0,0,0,0.4));}
.tj-robot-petbox[data-state="idle"] .rb-pet-body{animation:rb-breathe 3s ease-in-out infinite;}
.tj-robot-petbox[data-state="alert"] .rb-pet-body{animation:rb-hop 0.8s ease-out 2;}
.tj-robot-petbox[data-state="alert"] .rb-arm-r{transform-origin:106px 118px;animation:rb-wave 0.9s ease-in-out 2;}

.tj-robot-petbox .tj-robot-bubble{top:auto;bottom:calc(100% + 6px);right:auto;left:50%;transform:translateX(-50%);}
.tj-robot-petbox .tj-robot-bubble::before{top:auto;bottom:-6px;right:auto;left:calc(50% - 5px);transform:rotate(225deg);}
.tj-robot-petbox[data-hside="left"] .tj-robot-bubble{left:0;transform:none;}
.tj-robot-petbox[data-hside="left"] .tj-robot-bubble::before{left:38px;}
.tj-robot-petbox[data-hside="right"] .tj-robot-bubble{left:auto;right:0;transform:none;}
.tj-robot-petbox[data-hside="right"] .tj-robot-bubble::before{left:auto;right:38px;}
.tj-robot-petbox[data-bside="down"] .tj-robot-bubble{top:calc(100% + 6px);bottom:auto;}
.tj-robot-petbox[data-bside="down"] .tj-robot-bubble::before{top:-6px;bottom:auto;transform:rotate(45deg);}


.rb-fx{position:absolute;bottom:0;left:50%;pointer-events:none;}
.rb-fx > *{position:absolute;pointer-events:none;-webkit-user-drag:none;user-select:none;}
.rb-fx-c img{display:block;width:100%;height:auto;}
.rb-fx-cb{transform:translate(-50%,-100%);}.rb-fx-ct{transform:translate(-50%,0);}.rb-fx-cm{transform:translate(-50%,-50%);}
.rb-fx-galaxy img{animation:rb-fx-float 3.2s ease-in-out infinite;filter:drop-shadow(0 0 3px rgba(170,150,255,.75));}
@keyframes rb-fx-float{0%,100%{transform:translateY(0);opacity:.82;}50%{transform:translateY(-2px);opacity:1;}}
.rb-fx-tw{color:#fff;font-style:normal;font-weight:400;line-height:1;opacity:0;transform:translate(-50%,-50%);animation:rb-fx-tw 2.4s ease-in-out infinite;}
.rb-fx-tw.violet{color:#efeaff;text-shadow:0 0 4px #9f8bff, 0 0 9px #6f5dff;}.rb-fx-tw.gold{color:#fff6c8;text-shadow:0 0 4px #ffcc33, 0 0 9px #ff9d00;}.rb-fx-tw.white{color:#fff;text-shadow:0 0 4px #9fd0ff, 0 0 8px #6aa8ff;}
@keyframes rb-fx-tw{0%,60%,100%{opacity:0;transform:translate(-50%,-50%) scale(.3);}75%{opacity:1;transform:translate(-50%,-50%) scale(1.15);}88%{opacity:.25;}}
.rb-fx-ering img{animation:rb-fx-flick 1.2s steps(3) infinite;filter:drop-shadow(0 0 4px rgba(90,190,255,.8));}
@keyframes rb-fx-flick{0%{opacity:.55;transform:rotate(0);}33%{opacity:.95;transform:rotate(4deg);}66%{opacity:.7;transform:rotate(-3deg);}}
.rb-fx-eground img{opacity:.9;animation:rb-fx-pulse 2s ease-in-out infinite;}
@keyframes rb-fx-pulse{0%,100%{opacity:.65;}50%{opacity:1;}}
.rb-fx-bolt{width:auto;opacity:0;filter:drop-shadow(0 0 4px rgba(120,210,255,.9));}
.rb-fx-flame{width:13px;height:25px;margin-left:-6.5px;transform-origin:50% 0;animation:rb-fx-flk .11s steps(2) infinite alternate;}
.rb-fx-flame::before{content:'';position:absolute;inset:0;border-radius:50% 50% 50% 50% / 30% 30% 70% 70%;background:radial-gradient(ellipse at 50% 25%, #fffbe6 0 20%, #ffd24a 45%, #ff7a1a 75%, rgba(255,80,0,0) 100%);filter:drop-shadow(0 0 4px #ff9a2a);}
@keyframes rb-fx-flk{from{transform:scaleY(.75) scaleX(.95);opacity:.85;}to{transform:scaleY(1.25) scaleX(1.05);opacity:1;}}
.rb-fx-smoke{width:11px;height:11px;border-radius:50%;background:radial-gradient(circle, rgba(255,255,255,.9), rgba(200,210,225,.5) 60%, rgba(200,210,225,0));}
.rb-fx-coin{width:11px;height:11px;margin:-5.5px 0 0 -5.5px;border-radius:50%;background:radial-gradient(circle at 35% 30%, #fff6c0 0 18%, #ffd34d 30%, #e9a400 70%, #b77400 100%);box-shadow:0 0 4px rgba(255,200,60,.85), inset 0 0 0 1px #b77400;}
.rb-fx-coin::after{content:'';position:absolute;left:4px;top:4px;width:3px;height:3px;background:#9a5d00;}
.rb-fx-ingot{width:14px;height:9px;margin:-4.5px 0 0 -7px;border-radius:40% 40% 55% 55% / 30% 30% 70% 70%;background:linear-gradient(#fff1a8, #ffcf3a 45%, #d99200);box-shadow:0 0 4px rgba(255,200,60,.85);}
.rb-fx-aura{border-radius:50%;background:radial-gradient(ellipse at 50% 55%, rgba(255,214,90,.42), rgba(255,170,30,.16) 55%, rgba(255,170,30,0) 72%);animation:rb-fx-pulse 2.2s ease-in-out infinite;}
.rb-fx-ember{width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;background:#fff3b0;box-shadow:0 0 4px #ffb300, 0 0 8px #ff7a00;}

.rb-fx-mist{width:22px;height:13px;border-radius:50%;background:radial-gradient(ellipse, rgba(255,255,255,.9), rgba(200,240,230,.45) 45%, rgba(220,240,255,0) 70%);}
.rb-fx-halo{border-radius:50%;background:radial-gradient(circle, rgba(200,255,240,.38), rgba(150,230,215,.18) 45%, rgba(150,230,215,0) 68%);animation:rb-fx-pulse 2.8s ease-in-out infinite;}
.rb-fx-tw.jade{color:#f2fffb;text-shadow:0 0 4px #7fe0c8, 0 0 9px #3fbfa0;}
:root[data-theme="light"] .rb-fx-mist{filter:drop-shadow(0 0 2px rgba(90,120,170,.55));}
:root[data-theme="light"] .rb-fx-tw.white{text-shadow:0 0 3px #4a7fd0, 0 0 6px #2f63b8;}
@media (prefers-reduced-motion: reduce){.rb-fx *, .rb-fx *::before, .rb-fx *::after{animation:none !important;}.rb-fx-tw{opacity:.8;}}




.tj-robot, .tj-robot-petbox{
--rb-g-body:#f8f6ff;--rb-g-shade:#e4def8;--rb-g-line:#2a2340;--rb-g-hat:#4a3a8f;--rb-g-hat-hi:#6a58b8;--rb-g-band:#e0a030;
--rb-g-ear:#f4a9c6;--rb-g-eye:#1b1830;--rb-g-blush:#ff8fb6;--rb-g-staff:#9a6a3a;--rb-g-ring:#e0a030;--rb-g-spark:#ffd36b;
--rb-g-tail:#5a47a8;--rb-g-aura:rgba(110,90,200,0.28);
}
:root[data-theme="light"] .tj-robot, :root[data-theme="light"] .tj-robot-petbox{--rb-g-tail:#3a2d70;--rb-g-aura:rgba(110,90,200,0.18);}
.rb-ghost .rb-g-line{stroke:var(--rb-g-line);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round;}
.rb-ghost .rb-g-body{fill:var(--rb-g-body);}.rb-ghost .rb-g-shade{fill:var(--rb-g-shade);opacity:.7;}
.rb-ghost .rb-g-hat{fill:var(--rb-g-hat);}.rb-ghost .rb-g-hat-hi{fill:var(--rb-g-hat-hi);}.rb-ghost .rb-g-band{fill:var(--rb-g-band);}.rb-ghost .rb-g-ear{fill:var(--rb-g-ear);}
.rb-ghost .rb-g-eye{fill:var(--rb-g-eye);}.rb-ghost .rb-g-hl{fill:#ffffff;}.rb-ghost .rb-g-blush{fill:var(--rb-g-blush);opacity:.55;}
.rb-ghost .rb-g-mouth{fill:var(--rb-g-eye);}
.rb-ghost .rb-g-wink, .rb-ghost .rb-g-mouth-flat{display:none;fill:none;stroke:var(--rb-g-eye);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;}
.rb-ghost .rb-g-staff{stroke:var(--rb-g-staff);stroke-width:3.6;stroke-linecap:round;}.rb-ghost .rb-g-ring{fill:none;stroke:var(--rb-g-ring);stroke-width:3;}
.rb-ghost .rb-g-spark{fill:var(--rb-g-spark);}
.rb-ghost .rb-g-sparks .rb-g-spark:nth-child(2){animation-delay:.17s;}.rb-ghost .rb-g-sparks .rb-g-spark:nth-child(3){animation-delay:.34s;}
.rb-ghost .rb-g-tail{fill:none;stroke:var(--rb-g-tail);stroke-width:3.6;stroke-linecap:round;}.rb-ghost .rb-g-tail-tip{fill:var(--rb-g-tail);}.rb-ghost .rb-g-aura{fill:var(--rb-g-aura);}
@keyframes rb-g-tail{0%,100%{transform:rotate(0);}50%{transform:rotate(-10deg);}}
@keyframes rb-g-talk{0%,100%{transform:scale(1,1);}50%{transform:scale(1.25,1.7);}}
@keyframes rb-g-twinkle{0%,100%{opacity:1;}50%{opacity:.25;}}
.rb-ghost .rb-g-eye-l, .rb-ghost .rb-g-eye-r{transform-box:fill-box;transform-origin:center;animation:rb-blink 4s infinite;}
.rb-ghost .rb-g-tailg{transform-origin:100px 124px;animation:rb-g-tail 2.6s ease-in-out infinite;}
.tj-robot[data-state="alert"] .rb-g-eye-r, .tj-robot-petbox[data-state="alert"] .rb-g-eye-r{display:none;}
.tj-robot[data-state="alert"] .rb-g-wink, .tj-robot-petbox[data-state="alert"] .rb-g-wink{display:inline;}
.tj-robot-petbox[data-state="alert"] .rb-g-arm-r{transform-origin:104px 90px;animation:rb-wave 0.9s ease-in-out 2;}
.tj-robot-petbox[data-state="alert"] .rb-g-spark{animation:rb-g-twinkle 0.5s ease-in-out 3;}
.tj-robot-petbox[data-state="speaking"] .rb-g-spark{animation:rb-g-twinkle 0.5s ease-in-out infinite;}
.tj-robot[data-state="speaking"] .rb-g-mouth, .tj-robot-petbox[data-state="speaking"] .rb-g-mouth{transform-box:fill-box;transform-origin:center;animation:rb-g-talk 0.35s ease-in-out infinite;}
.tj-robot[data-state="muted"] .rb-g-mouth, .tj-robot-petbox[data-state="muted"] .rb-g-mouth{display:none;}
.tj-robot[data-state="muted"] .rb-g-mouth-flat, .tj-robot-petbox[data-state="muted"] .rb-g-mouth-flat{display:inline;}
@media (prefers-reduced-motion: reduce){
.rb-ghost .rb-g-eye-l, .rb-ghost .rb-g-eye-r, .rb-ghost .rb-g-tailg, .rb-ghost .rb-g-arm-r, .rb-ghost .rb-g-spark, .rb-ghost .rb-g-mouth{animation:none !important;}
}





.rb-jf .rb-jf-f{display:block;pointer-events:none;-webkit-user-drag:none;user-select:none;}
.tj-robot-face.rb-jf .rb-jf-f{width:100%;height:100%;object-fit:contain;}
.tj-robot-petbtn:has(> .rb-jf), .tj-robot-petbox .tj-robot-pet.rb-jf{width:96px;height:130px;}
.tj-robot-petbox .tj-robot-pet.rb-jf{filter:none;}
.rb-jf .rb-pet-body{display:block;position:relative;width:100%;height:100%;transform-origin:50% 100%;}
.tj-robot-pet.rb-jf .rb-jf-f{position:absolute;bottom:0;left:50%;max-height:100%;width:auto;height:auto;transform:translateX(-50%);}
.rb-jf-zz{display:none;position:absolute;right:-6px;top:-2px;width:40px;height:40px;color:var(--rb-text2);font-weight:700;}
.rb-jf-zz b{position:absolute;left:0;top:18px;font-size:13px;animation:rb-jf-z 2.4s ease-out infinite;}
.rb-jf-zz b + b{left:9px;top:8px;font-size:17px;animation-delay:1.2s;}
.tj-robot-petbox[data-scene="nap"] .rb-jf-zz, .tj-robot-petbox[data-scene="sleep"] .rb-jf-zz{display:block;}

.rb-jf-confetti{display:none;position:absolute;inset:0;overflow:hidden;pointer-events:none;}
.rb-jf-confetti i{position:absolute;top:-10px;width:6px;height:9px;border-radius:1px;opacity:0;animation:rb-jf-confetti 1.7s ease-in infinite;}
.rb-jf-confetti i:nth-child(1){left:6%;background:#e0a030;animation-delay:0s;}.rb-jf-confetti i:nth-child(2){left:20%;background:#3db8a8;animation-delay:.25s;}
.rb-jf-confetti i:nth-child(3){left:34%;background:#6495ed;animation-delay:.5s;}.rb-jf-confetti i:nth-child(4){left:48%;background:#e07a78;animation-delay:.1s;}
.rb-jf-confetti i:nth-child(5){left:60%;background:#f3d690;animation-delay:.65s;}.rb-jf-confetti i:nth-child(6){left:72%;background:#b06bff;animation-delay:.35s;}
.rb-jf-confetti i:nth-child(7){left:84%;background:#26a69a;animation-delay:.8s;}.rb-jf-confetti i:nth-child(8){left:94%;background:#ff8fa3;animation-delay:.2s;}
.tj-robot-petbox[data-scene="bigwin"] .rb-jf-confetti{display:block;}
@keyframes rb-jf-confetti{0%{transform:translateY(0) rotate(0);opacity:1;}100%{transform:translateY(150px) rotate(540deg);opacity:0;}}
@keyframes rb-jf-shake{0%,100%{transform:rotate(0);}25%{transform:rotate(-5deg);}75%{transform:rotate(5deg);}}
@keyframes rb-jf-bounce{0%,100%{transform:translateY(0) scale(1,1);}30%{transform:translateY(-14px) scale(1.04,.96);}60%{transform:translateY(0) scale(.98,1.02);}}
@keyframes rb-jf-z{0%{opacity:0;transform:translate(0,0) scale(.8);}25%{opacity:1;}100%{opacity:0;transform:translate(14px,-34px) scale(1.15);}}
@keyframes rb-jf-swing{0%,100%{transform:rotate(-9deg);}50%{transform:rotate(9deg);}}


@keyframes rb-jf-breathe{0%,100%{transform:translateY(0);}50%{transform:translateY(-2px);}}
@keyframes rb-jf-sip{0%,55%,100%{transform:translateY(0);}68%,86%{transform:translateY(-3px);}}
@keyframes rb-jf-sway{0%,100%{transform:translate(0,0);}25%{transform:translate(1px,-1px);}50%{transform:translate(0,0);}75%{transform:translate(-1px,-1px);}}
@keyframes rb-jf-type{0%,100%{transform:translateY(0);}25%{transform:translateY(-2px);}50%{transform:translateY(0);}75%{transform:translateY(-1px);}}
@keyframes rb-jf-nap{0%,100%{transform:translateY(0);}50%{transform:translateY(-1px);}}
@keyframes rb-jf-rock{0%,100%{transform:translateX(0);}50%{transform:translateX(1px);}}
@keyframes rb-jf-pop{0%,55%,100%{transform:scale(1,1);}10%{transform:scale(.9,1.08);}22%{transform:scale(1.06,.95);}34%{transform:scale(1,1);}}

.tj-robot-petbox[data-state="alert"][data-scene="info"] .rb-jf .rb-pet-body{animation:rb-jf-breathe 1.6s steps(2) 2;}
.tj-robot-petbox[data-state="alert"][data-scene="catchup"] .rb-jf .rb-pet-body{animation:rb-jf-sway 1.2s steps(1, end) 2;}
.tj-robot-petbox[data-state="alert"][data-scene="greet"] .rb-jf .rb-pet-body{animation:rb-jf-pop 1.5s ease-out 1;}
.tj-robot-petbox[data-state="speaking"] .rb-jf .rb-pet-body{animation:rb-jf-breathe 0.8s steps(2) infinite;}
.tj-robot-petbox[data-state="idle"] .rb-jf .rb-pet-body{animation:rb-jf-breathe 3s steps(2) infinite;}

.tj-robot-petbox[data-scene="drag"] .rb-jf .rb-pet-body{transform-origin:50% 0;animation:rb-jf-swing 1.1s ease-in-out infinite;}
.tj-robot-petbox[data-scene="poke"] .rb-jf .rb-pet-body{animation:rb-jf-pop 1s ease-out 1;}
.tj-robot-petbox[data-scene="coffee"] .rb-jf .rb-pet-body{animation:rb-jf-sip 4s steps(1, end) infinite;}
.tj-robot-petbox[data-scene="read"] .rb-jf .rb-pet-body, .tj-robot-petbox[data-scene="cheek"] .rb-jf .rb-pet-body, .tj-robot-petbox[data-scene="ponder"] .rb-jf .rb-pet-body, .tj-robot-petbox[data-scene="cat"] .rb-jf .rb-pet-body, .tj-robot-petbox[data-scene="gym"] .rb-jf .rb-pet-body, .tj-robot-petbox[data-scene="travel"] .rb-jf .rb-pet-body{animation:rb-jf-sway 3.6s steps(1, end) infinite;}
.tj-robot-petbox[data-scene="laptop"] .rb-jf .rb-pet-body, .tj-robot-petbox[data-scene="work"] .rb-jf .rb-pet-body{animation:rb-jf-type 2.4s steps(1, end) infinite;}
.tj-robot-petbox[data-scene="nap"] .rb-jf .rb-pet-body, .tj-robot-petbox[data-scene="sleep"] .rb-jf .rb-pet-body{animation:rb-jf-nap 4.2s steps(1, end) infinite;}
.tj-robot-petbox[data-scene="lie"] .rb-jf .rb-pet-body{animation:rb-jf-rock 2.6s steps(1, end) infinite;}

.tj-robot-petbox[data-scene="shy"] .rb-jf .rb-pet-body{animation:rb-jf-sway 1.2s steps(1, end) 2;}
.tj-robot-petbox[data-scene="annoyed"] .rb-jf .rb-pet-body{animation:rb-jf-shake .4s ease-in-out 3;}
.tj-robot-petbox[data-state="alert"][data-scene="bigwin"] .rb-jf .rb-pet-body{animation:rb-jf-bounce .7s ease-out 5;}





.rb-jf-fx{display:none;position:absolute;left:50%;pointer-events:none;-webkit-user-drag:none;user-select:none;}
.tj-robot-petbox[data-fx="ring"] .rb-jf-fxb, .tj-robot-petbox[data-fx="ring"] .rb-jf-fxf, .tj-robot-petbox[data-fx="ring"] .rb-jf-fxbg, .tj-robot-petbox[data-fx="ring"] .rb-jf-fxfg{display:block;}
.rb-jf-fxb, .rb-jf-fxf{bottom:-24px;animation:rb-jf-glow 3.2s ease-in-out infinite;}
.rb-jf-fxbg, .rb-jf-fxfg{bottom:-24px;opacity:.6;animation:rb-jf-kglow 2.4s ease-in-out infinite;}
@keyframes rb-jf-kglow{0%,100%{opacity:0;}50%{opacity:1;}}
.tj-robot-petbox[data-fx="sack"] .rb-jf-sack{display:block;left:calc(50% - 42px);bottom:0;}
.rb-jf-spark{display:none;position:absolute;inset:0;pointer-events:none;}
.tj-robot-petbox[data-fx="spark"] .rb-jf-spark{display:block;}
.rb-jf-spark b{position:absolute;font-size:14px;line-height:1;font-weight:400;opacity:0;animation:rb-jf-twinkle 6s ease-in-out infinite;}
.rb-jf-spark b:nth-child(1){left:2%;top:36%;}.rb-jf-spark b:nth-child(2){left:80%;top:16%;animation-delay:2s;}.rb-jf-spark b:nth-child(3){left:82%;top:66%;font-size:11px;animation-delay:4s;}
.tj-robot-petbox[data-outfit="emperor"] .rb-jf-spark b{color:#fffbe8;text-shadow:0 0 2px #b36b00, 0 0 7px rgba(255,190,60,1);}
.tj-robot-petbox[data-outfit="platinum"] .rb-jf-spark b{color:#ffffff;text-shadow:0 0 2px #2f5fb8, 0 0 7px rgba(120,170,255,1);}
.rb-jf-snow{display:none;position:absolute;left:-12px;right:-12px;top:-10px;bottom:0;overflow:hidden;pointer-events:none;}
.tj-robot-petbox[data-outfit="santa"] .rb-jf-snow, .tj-robot-petbox[data-outfit="elf"] .rb-jf-snow{display:block;}
.rb-jf-snow i{position:absolute;top:-8px;width:5px;height:5px;border-radius:50%;background:#f4fbff;box-shadow:0 0 2px rgba(70,110,160,0.85);opacity:0;animation:rb-jf-snow 2.6s linear infinite;}
.rb-jf-snow i:nth-child(1){left:8%;}.rb-jf-snow i:nth-child(2){left:22%;animation-delay:.9s;width:4px;height:4px;}.rb-jf-snow i:nth-child(3){left:36%;animation-delay:1.7s;}
.rb-jf-snow i:nth-child(4){left:50%;animation-delay:.4s;width:3px;height:3px;}.rb-jf-snow i:nth-child(5){left:62%;animation-delay:1.3s;}.rb-jf-snow i:nth-child(6){left:74%;animation-delay:2.1s;width:4px;height:4px;}
.rb-jf-snow i:nth-child(7){left:86%;animation-delay:.6s;}.rb-jf-snow i:nth-child(8){left:94%;animation-delay:1.9s;width:3px;height:3px;}
.rb-jf-poof{display:none;opacity:0;position:absolute;left:50%;bottom:24px;width:120px;height:120px;margin-left:-60px;border-radius:50%;pointer-events:none;background:radial-gradient(circle, rgba(255,255,255,0.95) 0, rgba(255,226,140,0.6) 35%, rgba(255,226,140,0) 70%);}
.tj-robot-petbox.rb-outfit-in .rb-jf-poof{display:block;animation:rb-jf-poof .7s ease-out 1 forwards;}
@keyframes rb-jf-glow{0%,100%{opacity:.78;}50%{opacity:1;}}
@keyframes rb-jf-twinkle{0%,70%,100%{opacity:0;transform:scale(.4);}80%{opacity:1;transform:scale(1.15);}90%{opacity:.2;transform:scale(.8);}}
@keyframes rb-jf-snow{0%{opacity:0;transform:translate(0,0);}12%{opacity:1;}100%{opacity:0;transform:translate(10px,150px);}}
@keyframes rb-jf-poof{0%{opacity:0;transform:scale(.3);}30%{opacity:1;}100%{opacity:0;transform:scale(1.25);}}


.tj-robot[data-host="pip"]{position:static;display:flex;flex-direction:column;margin:0;width:100%;height:100%;background:var(--rb-bg);}
.tj-robot[data-host="pip"] .tj-robot-mini{display:none;}
.tj-robot[data-host="pip"] .tj-robot-pipback{display:none;}
.tj-robot[data-host="pip"] [data-act="pet"]{display:none;}
.tj-robot[data-host="pip"] .tj-robot-bubble{position:static;width:auto;max-width:none;margin:8px;transform:none;}
.tj-robot[data-host="pip"] .tj-robot-bubble::before{display:none;}
.tj-robot[data-host="pip"] .tj-robot-panel{position:static;width:auto;max-height:none !important;flex:1;border:0;border-radius:0;box-shadow:none;transform:none;}
.tj-robot[data-host="pip"] .tj-robot-tabs, .tj-robot[data-host="pip"] .tj-robot-chips{display:none;}
.tj-robot[data-host="pip"] .tj-robot-body{min-height:0;}


@media (max-width: 380px){.tj-robot-panel{width:calc(100vw - 24px);}}
@media print{.tj-robot, .tj-robot-petbox{display:none !important;}}





.tj-robot-dbg{position:fixed;right:12px;bottom:52px;z-index:1009;font-family:var(--rb-font);color:var(--rb-text);}
.tj-robot-dbgbtn{width:30px;height:30px;border-radius:50%;border:1px solid var(--rb-border);background:var(--rb-bg2);color:var(--rb-text);font-size:15px;line-height:1;cursor:pointer;opacity:.55;}
.tj-robot-dbgbtn:hover, .tj-robot-dbg:has(.tj-robot-dbgpanel:not([hidden])) .tj-robot-dbgbtn{opacity:1;}
.tj-robot-dbgpanel{position:absolute;right:0;bottom:36px;width:340px;max-height:70vh;overflow:auto;background:var(--rb-bg);border:1px solid var(--rb-border);border-radius:10px;box-shadow:var(--rb-shadow);padding:8px 10px;font-size:12px;line-height:1.45;text-align:left;}
.tj-robot-dbgpanel[hidden]{display:none;}
.tj-robot-dbgpanel .st{font-family:ui-monospace, Consolas, monospace;font-size:11px;white-space:pre-wrap;color:var(--rb-text2);margin-bottom:6px;}
.tj-robot-dbgpanel .hd{color:var(--rb-dim);margin:6px 0 2px;}
.tj-robot-dbgpanel .row{display:flex;flex-wrap:wrap;gap:4px;}
.tj-robot-dbgpanel button{font:inherit;font-size:11px;padding:3px 7px;border-radius:6px;border:1px solid var(--rb-border);background:var(--rb-bg2);color:var(--rb-text);cursor:pointer;}
.tj-robot-dbgpanel button:hover{border-color:var(--rb-accent);}
.tj-robot-dbgpanel button.on{background:var(--rb-accent);color:#111;}
@media (max-width:480px){.tj-robot-dbg{display:none;}}



.tj-robot-ctx{position:fixed;display:block;margin:0;z-index:1010;min-width:176px;max-width:260px;max-height:calc(100vh - 16px);overflow:auto;padding:4px;box-sizing:border-box;
background:var(--rb-bg);border:1px solid var(--rb-border);border-radius:10px;box-shadow:var(--rb-shadow);font-size:13px;line-height:1.3;text-align:left;user-select:none;-webkit-user-select:none;}
.tj-robot-ctx[hidden]{display:none !important;}
.tj-robot-ctx:focus{outline:none;}
.tj-robot-ctx-it{display:flex;align-items:center;gap:8px;width:100%;padding:6px 10px;border:0;border-radius:6px;background:transparent;color:var(--rb-text);font:inherit;text-align:left;cursor:pointer;}
.tj-robot-ctx-it:hover, .tj-robot-ctx-it:focus-visible{background:var(--rb-bg3);outline:none;}
.tj-robot-ctx-it .ic{flex:none;width:18px;text-align:center;}
.tj-robot-ctx-it .tx{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tj-robot-ctx-it .ar{flex:none;color:var(--rb-text2);}
.tj-robot-ctx-it[aria-checked="true"]{font-weight:600;}
.tj-robot-ctx-sep{height:1px;margin:4px 6px;background:var(--rb-border);}
.tj-robot-ctx-sub{margin:0 0 2px 14px;padding-left:4px;border-left:1px solid var(--rb-border);}
.tj-robot-ctx-sub .tj-robot-ctx-it{padding:5px 8px;}
.tj-robot-ctx-hint{padding:4px 8px 2px;font-size:11px;color:var(--rb-text2);}
@media print{.tj-robot-ctx{display:none !important;}}
