/* Assistant visual refresh; scoped to the existing canvas panel. */
.kw-tools-root.kw-tools-root .kw-right-agent{top:12px;bottom:84px;width:400px;right:16px;border-radius:28px!important;border:1px solid #383838!important;background:#1f1f1f!important;box-shadow:0 12px 40px #0003!important;color:#e8e8e8;isolation:isolate}
.kw-tools-root.kw-tools-root .kw-right-agent>header{height:50px;min-height:50px;padding:0 18px!important;background:transparent!important;border:0!important;gap:8px}
.kw-right-agent>header>strong{font-size:13px!important;font-weight:600;gap:8px}.kw-right-agent>header>strong>img{display:none}.kw-right-agent>header>button{border:0!important;background:transparent!important;color:#aaa!important;box-shadow:none!important;width:28px;height:28px;border-radius:7px;cursor:pointer}.kw-right-agent>header>button:hover{background:#ffffff0c!important;color:white!important}
.kw-right-agent>header .tyd-head-action{display:grid;place-items:center;margin-left:0}.tyd-head-action svg{width:15px;height:15px;fill:none;stroke:currentColor}.kw-right-agent>header>strong{margin-right:auto}.kw-right-agent>header>button:last-child{font-size:0}.kw-right-agent>header>button:last-child img{display:none}.kw-right-agent>header>button:last-child::after{content:'−';font:18px/1 system-ui}
.kw-tools-root.kw-tools-root .kw-right-agent>aside.agent{background:#1f1f1f!important;color:#ddd!important}.kw-right-agent .tya-bar{background:transparent!important;border:0!important;gap:6px!important;padding:0 16px 8px!important;min-height:0!important}.kw-right-agent .tya-status{font-size:11px!important;color:#8fa5b6!important}.kw-right-agent .tya-skill-button{background:#292929!important;border-color:#414141!important;color:#ccc!important;border-radius:8px!important}
.kw-right-agent .target{margin:0 12px 8px!important;width:auto!important;align-self:stretch!important;background:#252525!important;border:1px solid #373737!important;border-radius:12px!important;color:#aaa!important;padding:9px 12px!important}.kw-right-agent .target.empty{display:none!important}
.kw-right-agent .msgs{padding:14px 18px!important;min-height:0!important;scrollbar-width:thin;scrollbar-color:#555 transparent}.kw-right-agent .msg-avatar{width:22px;height:22px;flex:0 0 22px}.kw-right-agent .msg-avatar img{content:url('/assets/assistant-cyan-orb.png')}.kw-right-agent .msg.assistant>.bubble{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0!important}.kw-right-agent .msg.user>.bubble{background:#303030!important;border:1px solid #3b3b3b!important;border-radius:16px!important;padding:10px 13px!important}.kw-right-agent .bubble{font-size:13px!important;line-height:1.85!important;color:#d0d0d0!important;overflow-wrap:anywhere}.kw-right-agent .chips{padding:5px 14px!important;gap:6px!important}.kw-right-agent .chips button{background:transparent!important;border-color:#3a3a3a!important;color:#999!important}.kw-right-agent .tya-execution-card{background:#25282b!important;border-color:#3b434a!important;border-radius:15px!important}
.kw-tools-root.kw-tools-root .kw-right-agent .composer{flex:none!important;position:relative!important;left:auto!important;bottom:auto!important;transform:none!important;align-self:stretch!important;width:auto!important;margin:7px 8px 8px!important;padding:0!important;border:0!important;background:transparent!important}.kw-tools-root.kw-tools-root .kw-right-agent .composer .box{padding:13px 12px 9px!important;border-radius:23px!important;border:1px solid #3c3c3c!important;background:#222!important;box-shadow:none!important;backdrop-filter:none!important}.kw-right-agent .composer .box:focus-within{border-color:#697b80!important}.kw-tools-root.kw-tools-root .kw-right-agent .composer textarea{height:72px!important;min-height:72px!important;max-height:150px!important;background:transparent!important;color:#e3e3e3!important;border:0!important;font-size:13px!important;line-height:1.7!important;padding:2px 3px 9px!important}.kw-right-agent textarea::placeholder{color:#707070!important}.kw-right-agent .composer .bar{gap:4px!important;flex-wrap:wrap!important}.kw-right-agent .bar-btn{font-size:11px!important;border:0!important;background:transparent!important;color:#b6b6b6!important;padding:5px 7px!important}.kw-right-agent .composer .icon-act{width:32px!important;height:32px!important;border-radius:50%!important;background:#a6a6a6!important;color:#222!important;border:0!important;margin-left:auto!important;flex-shrink:0}.kw-right-agent .composer .icon-act:disabled{opacity:.4!important}.kw-right-agent .kw-super-toggle{right:14px;bottom:184px;background:#292929;border-color:#404040;border-radius:8px}
.tyd-welcome{display:flex;flex-direction:column;align-items:center;margin:auto 0 8px;padding:18px 20px 0;flex-shrink:0}.tyd-welcome img{width:42px;height:42px;margin-bottom:14px;object-fit:contain}.tyd-welcome h2{font:500 16px/1.6 system-ui,'Microsoft YaHei';color:#ededed;margin:0 0 24px;text-align:center;white-space:nowrap}.tyd-welcome nav{width:100%;display:grid;gap:2px}.tyd-welcome button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 0;border:0;background:transparent;color:#a0a0a0;font:13px/1.6 system-ui,'Microsoft YaHei';text-align:left;cursor:pointer}.tyd-welcome button:hover{color:#ecf8fb}.tyd-welcome button img{width:17px;height:17px;opacity:.6;margin:0;filter:grayscale(1)}.tyd-welcome button small{margin-left:auto;font-size:17px;color:#666}.tyd-empty .msgs,.tyd-empty>.chips,.tyd-empty>.tya-bar{display:none!important}.tyd-welcome[hidden]{display:none!important}.kw-right-agent.tyd-is-empty .kw-super-toggle{display:none!important}
.kw-tools-root.kw-tools-root .kw-agent-orb{width:48px!important;height:48px!important;left:var(--tyd-orb-x,50%)!important;top:var(--tyd-orb-y,auto)!important;right:auto!important;bottom:auto!important;background:#262626!important;border:1px solid #3d3d3d!important;box-shadow:0 3px 14px #0003!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;transition:background .2s,box-shadow .2s!important}.kw-agent-orb picture{position:static!important;width:30px!important;height:30px!important;inset:auto!important}.kw-agent-orb picture img{content:url('/assets/assistant-cyan-orb.png');width:30px!important;height:30px!important}.kw-agent-orb .kw-orb-wave{display:none!important}.kw-tools-root.kw-tools-root .kw-agent-orb:hover{background:#303536!important;box-shadow:0 0 15px #34d7e025!important;transform:scale(1.04)!important}.kw-tools-root.kw-tools-root .kw-agent-orb:focus-visible{outline:2px solid #6bdbe3!important;outline-offset:3px}.kw-tools-root.kw-tools-root .kw-toolbar{background:#262626!important;border-color:#3b3b3b!important;border-radius:16px!important;box-shadow:0 5px 20px #0003!important}.kw-toolbar>button:last-of-type{display:none!important}.kw-tools-root.kw-tools-root .kw-map{bottom:84px!important}
@media(max-width:800px){.kw-tools-root.kw-tools-root .kw-right-agent{top:8px;bottom:80px;right:8px;width:min(400px,calc(100% - 16px));max-width:calc(100% - 16px);border-radius:24px!important}.tyd-welcome{padding:15px 20px 0}.tyd-welcome h2{font-size:15px}.kw-right-agent.kw-super-open{width:calc(100% - 16px)!important}.kw-tools-root.kw-tools-root .kw-agent-orb{width:44px!important;height:44px!important}.kw-tools-root.kw-tools-root .kw-right-agent .composer textarea{height:64px!important;min-height:64px!important}}
@media(max-height:650px){.tyd-welcome{padding-top:8px}.tyd-welcome h2{margin-bottom:10px}.tyd-welcome button{padding:6px 0}.tyd-welcome img{width:32px;height:32px;margin-bottom:8px}.kw-tools-root.kw-tools-root .kw-right-agent .composer textarea{height:48px!important;min-height:48px!important}}

.tyd-head-action{white-space:nowrap;font-size:11px!important}.tyd-welcome button small{pointer-events:none}.tyd-welcome button{min-height:40px} 


.kw-tools-root.kw-tools-root .kw-right-agent aside.agent>.head{display:contents!important}.kw-right-agent .head>.head-id,.kw-right-agent .head>button,.kw-right-agent .head>.mem-pop>.head-btn{display:none!important}.kw-right-agent .head>.mem-pop{position:absolute;right:12px;top:46px;z-index:60}


.tyd-welcome nav{gap:0;padding:0 8px}.tyd-welcome nav button{height:40px!important;min-height:40px!important;padding:8px 0!important}



.tyd-welcome button img{filter:invert(1)!important;opacity:.55}


/* Keep the original artwork and toolbar icons; compact lower-right panel. */
.kw-tools-root.kw-tools-root.kw-tools-root .kw-right-agent{top:auto!important;right:16px!important;bottom:108px!important;width:360px!important;height:min(600px,calc(100% - 124px))!important;max-height:calc(100% - 124px)!important;border-radius:24px!important}
.kw-tools-root.kw-tools-root.kw-tools-root .kw-right-agent.kw-super-open{top:12px!important;bottom:108px!important;height:auto!important;width:min(1050px,calc(100% - 32px))!important;max-height:none!important}
.kw-tools-root.kw-tools-root.kw-tools-root .kw-agent-orb{left:auto!important;top:auto!important;right:24px!important;bottom:18px!important;width:75px!important;height:75px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.kw-tools-root.kw-tools-root.kw-tools-root .kw-agent-orb picture{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.kw-tools-root.kw-tools-root.kw-tools-root .kw-agent-orb picture img{content:normal!important;width:100%!important;height:100%!important}
.kw-tools-root.kw-tools-root .kw-agent-orb:hover{background:transparent!important;box-shadow:none!important}
.kw-tools-root.kw-tools-root .kw-toolbar>button:last-of-type{display:grid!important}
.kw-right-agent .msg-avatar{width:22px!important;height:22px!important;min-width:22px!important;flex:0 0 22px!important;overflow:hidden}
.kw-right-agent .msg-avatar img{content:normal!important;width:22px!important;height:22px!important;max-width:22px!important;object-fit:contain}
.kw-right-agent .msg{align-items:flex-start;gap:9px}.kw-right-agent .msg>.bubble{min-width:0}
.kw-right-agent .tyd-welcome{padding-left:12px;padding-right:12px}.kw-right-agent .tyd-welcome h2{font-size:14px!important;white-space:normal}.kw-right-agent .tyd-welcome button{font-size:12px!important}
@media(max-width:800px){.kw-tools-root.kw-tools-root.kw-tools-root .kw-right-agent{right:8px!important;bottom:98px!important;width:min(360px,calc(100% - 16px))!important;height:min(560px,calc(100% - 114px))!important;max-height:calc(100% - 114px)!important}.kw-tools-root.kw-tools-root.kw-tools-root .kw-right-agent.kw-super-open{top:8px!important;bottom:98px!important;height:auto!important;width:calc(100% - 16px)!important}.kw-tools-root.kw-tools-root.kw-tools-root .kw-agent-orb{right:12px!important;bottom:12px!important;width:64px!important;height:64px!important}}

@media(max-width:800px){.kw-tools-root.kw-tools-root .kw-toolbar,.kw-tools-root.kw-has-right .kw-toolbar{left:8px!important;transform:none!important;margin-left:0!important;gap:1px!important;padding:5px!important;max-width:calc(100% - 98px)!important}.kw-tools-root.kw-tools-root .kw-toolbar>button{width:30px!important}.kw-tools-root.kw-tools-root .kw-tool-sep{margin:0 3px!important}}


/* The spirit is a real flex item in the toolbar, replacing the previous assistant button. */
.kw-tools-root.kw-tools-root.kw-tools-root .kw-agent-orb{display:none!important}
.kw-tools-root.kw-tools-root.kw-tools-root .kw-toolbar>.tyd-old-agent{display:none!important}
.kw-tools-root.kw-tools-root.kw-tools-root .kw-toolbar>.tyd-toolbar-spirit{display:grid!important;place-items:center!important;width:46px!important;height:42px!important;flex:0 0 46px!important;padding:2px!important;border:0!important;border-left:1px solid #ffffff18!important;border-radius:0 12px 12px 0!important;background:transparent!important;margin-left:2px!important}
.kw-toolbar>.tyd-toolbar-spirit img{width:40px!important;height:40px!important;object-fit:contain!important;filter:none!important;pointer-events:none;transition:transform .18s}
.kw-toolbar>.tyd-toolbar-spirit:hover img{transform:scale(1.08)}
.kw-toolbar>.tyd-toolbar-spirit:focus-visible{outline:2px solid #9abefa;outline-offset:2px}
@media(max-width:800px){.kw-tools-root.kw-tools-root .kw-toolbar,.kw-tools-root.kw-has-right .kw-toolbar{left:50%!important;transform:translateX(-50%)!important;margin-left:0!important;max-width:calc(100% - 16px)!important}}

.kw-tools-root.kw-tools-root.kw-tools-root .kw-toolbar>button:nth-of-type(6):not(.tyd-toolbar-spirit){display:none!important}
/* Separate circular entrance, positioned relative to the toolbar itself. */
.kw-tools-root.kw-tools-root.kw-tools-root .kw-toolbar>.tyd-toolbar-spirit{position:absolute!important;left:calc(100% + 10px)!important;top:50%!important;transform:translateY(-50%)!important;width:48px!important;height:48px!important;min-width:48px!important;flex:none!important;margin:0!important;padding:3px!important;border:1px solid #3d3d3d!important;border-radius:50%!important;background:#262626!important;box-shadow:0 4px 14px #0003!important}
.kw-tools-root.kw-tools-root.kw-tools-root .kw-toolbar>.tyd-toolbar-spirit img{width:40px!important;height:40px!important}
@media(max-width:800px){.kw-tools-root.kw-tools-root .kw-toolbar,.kw-tools-root.kw-has-right .kw-toolbar{left:calc(50% - 29px)!important;max-width:calc(100% - 74px)!important}}
