.chat-shell{height:calc(100vh - 69px)}.chat-shell,.chat-side{display:flex;overflow:hidden}.chat-side{width:272px;flex-shrink:0;background:var(--bg-gray);padding:18px 14px;flex-direction:column}.chat-side-backdrop,.chat-side.collapsed{display:none}.chat-new{height:38px;background:var(--bg);border-radius:10px;display:flex;align-items:center;gap:8px;padding:0 10px;font-size:13.5px;font-weight:500;color:var(--ink-85);transition:opacity .15s ease;flex-shrink:0}.chat-new:hover{opacity:.75}.chat-groups{flex:1 1;overflow-y:auto;margin-top:14px;scrollbar-width:thin;scrollbar-color:transparent transparent}.chat-groups:hover{scrollbar-color:var(--ink-14) transparent}.chat-groups::-webkit-scrollbar{width:4px}.chat-groups::-webkit-scrollbar-thumb{background:transparent;border-radius:2px}.chat-groups:hover::-webkit-scrollbar-thumb{background:var(--ink-14)}.chat-groups::-webkit-scrollbar-track{background:transparent}.chat-group{margin-bottom:14px}.chat-group-label{font-weight:500;padding:0 10px;margin-bottom:2px}.chat-group-label,.chat-group-toggle{font-family:var(--font-mono);font-size:10px;line-height:13px;color:var(--ink-32)}.chat-group-toggle{display:block;width:100%;padding:6px 10px 2px;background:none;border:none;text-align:left;letter-spacing:.02em;cursor:pointer;transition:color .15s ease}.chat-group-toggle:hover{color:var(--ink-70)}.chat-session{position:relative;display:flex;align-items:center;width:100%;height:34px;border-radius:8px;padding:0 6px 0 10px;font-size:13.5px;color:var(--ink-60);transition:background .15s ease,color .15s ease}.chat-session,.chat-session-title{line-height:34px;white-space:nowrap}.chat-session-title{flex:1 1;min-width:0;background:none;border:none;padding:0;font:inherit;text-align:left;color:inherit;overflow:hidden;text-overflow:ellipsis}.chat-session-more{width:24px;height:24px;margin-top:5px;align-self:flex-start;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;opacity:0;flex-shrink:0;transition:opacity .12s ease}.chat-session-more.show,.chat-session-more:focus-visible,.chat-session:hover .chat-session-more{opacity:1}.chat-session-more:hover{background:var(--ink-06)}.chat-menu{position:absolute;top:34px;right:6px;z-index:30;min-width:100px;padding:5px;background:var(--bg);border:1px solid var(--ink-08);border-radius:10px;box-shadow:0 8px 20px var(--shadow-c3);display:flex;flex-direction:column}.chat-menu button{background:none;border:none;border-radius:6px;padding:7px 10px;font-size:12.5px;line-height:18px;text-align:left;color:var(--ink-70);cursor:pointer}.chat-menu button:hover{background:var(--ink-05);color:var(--ink-95)}.chat-menu button.danger{color:var(--red)}.chat-menu button.danger:hover{background:var(--red-bg);color:var(--red)}.chat-session:hover{background:var(--ink-04)}.chat-session.active{background:var(--bg);color:var(--ink-95);font-weight:500}.chat-user{flex-shrink:0;margin-top:14px;height:44px;display:flex;align-items:center;gap:9px;cursor:pointer;border-radius:10px;transition:background .15s ease}.chat-user:hover{background:var(--ink-06)}.chat-user-avatar{width:24px;height:24px;border-radius:12px;background:var(--bg);border:1px solid var(--ink-08);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}.chat-user-avatar img{width:100%;height:100%;object-fit:cover}.chat-user-meta{display:flex;flex-direction:column;gap:1px;min-width:0}.chat-user-name{font-size:13px;font-weight:500;line-height:19px;color:var(--ink-85)}.chat-user-model{font-family:var(--font-mono);font-size:9.5px;line-height:12px;color:var(--ink-35);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-main{flex:1 1;min-width:0;display:flex;flex-direction:column;border-left:1px solid var(--ink-08)}.chat-topbar{height:60px;flex-shrink:0;justify-content:space-between;padding:0 28px}.chat-topbar,.chat-topbar-left{display:flex;align-items:center}.chat-topbar-left{gap:10px;min-width:0}.chat-side-toggle{width:28px;height:28px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;color:var(--ink-45);cursor:pointer;flex-shrink:0;transition:background .15s ease,color .15s ease}.chat-side-toggle:hover{background:var(--ink-05);color:var(--ink-80)}.chat-thread-title{font-size:14px;font-weight:500;line-height:20px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-status{display:inline-flex;align-items:center;gap:6px;height:20px;padding:0 10px;border-radius:10px;background:var(--green-bg);font-family:var(--font-mono);font-weight:500;font-size:9.5px;line-height:12px;color:var(--ink-70);flex-shrink:0}.chat-status i{width:6px;height:6px;border-radius:50%;background:var(--green)}.chat-status.wait{background:var(--yellow-bg)}.chat-status.wait i{background:var(--yellow)}.chat-topbar-right{display:flex;align-items:center;gap:14px;flex-shrink:0}[data-tip]{position:relative}[data-tip]:hover:after{content:attr(data-tip);position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:4px 8px;background:var(--inv-bg);color:var(--inv-ink);font-size:11px;line-height:14px;letter-spacing:.02em;border-radius:6px;white-space:nowrap;z-index:60;pointer-events:none}.chat-session-more[data-tip]:hover:after{left:auto;right:0;transform:none}.chat-export{font-size:12.5px;line-height:18px;color:var(--ink-60);transition:color .15s ease;display:inline-flex;align-items:center}.chat-export.on,.chat-export:hover{color:var(--ink-95)}.chat-export.on{font-weight:500}.chat-thread{flex:1 1;overflow-y:auto;padding:40px 0 26px}.chat-col{width:720px;max-width:100%;margin:0 auto;padding:0 16px;display:flex;flex-direction:column;gap:26px}.chat-thread-wrap{position:relative;flex:1 1;min-height:0}.chat-rail,.chat-thread-wrap{display:flex;flex-direction:column}.chat-rail{position:absolute;left:10px;top:50%;transform:translateY(-50%);z-index:20;align-items:center;gap:6px;max-height:min(60vh,460px);overflow-y:auto;padding:6px 0;scrollbar-width:none}.chat-rail::-webkit-scrollbar{display:none}.chat-rail-dot{width:14px;height:14px;padding:0;border:none;background:none;cursor:pointer;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}.chat-rail-dot i{width:6px;height:6px;border-radius:50%;background:var(--ink-20);transition:background .15s ease,transform .15s ease}.chat-rail-dot:hover i{background:var(--ink-50);transform:scale(1.3)}.chat-rail-dot.on i{background:var(--ink-80);transform:scale(1.3)}.chat-rail-tip{position:absolute;left:36px;transform:translateY(-50%);z-index:40;max-width:280px;padding:5px 9px;background:var(--inv-bg);color:var(--inv-ink);font-size:11px;line-height:16px;letter-spacing:.02em;border-radius:6px;white-space:normal;word-break:break-word;box-shadow:0 8px 20px var(--shadow-c3);pointer-events:none;animation:chat-tip-in .15s ease}@keyframes chat-tip-in{0%{opacity:0}to{opacity:1}}.chat-jump{position:absolute;left:50%;margin-left:-15px;bottom:12px;z-index:20;width:30px;height:30px;border-radius:9px;background:none;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--ink-60);transition:background .15s ease,color .15s ease;animation:chat-jump-in .18s ease}.chat-jump:hover{background:var(--ink-06);color:var(--ink-90)}@keyframes chat-jump-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.chat-jump-dot{position:absolute;top:0;right:0;width:7px;height:7px;border-radius:50%;background:var(--green);animation:chat-run-pulse 1.2s ease-in-out infinite}.chat-jump[data-tip]:hover:after{top:auto;bottom:calc(100% + 8px)}.msg-user-row{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.msg-copy{background:none;border:none;padding:0;cursor:pointer;font-family:var(--font-mono);font-size:10px;line-height:13px;letter-spacing:.05em;color:var(--ink-30)}.msg-copy:hover{color:var(--ink-60)}.msg-copy.fail{color:var(--red)}.msg-user-bubble{max-width:470px;background:var(--bg-gray);border-radius:14px;padding:11px 15px;font-size:14px;line-height:24px;color:var(--ink-90);white-space:pre-wrap;word-break:break-word}.msg-agent{display:flex;gap:12px;align-items:flex-start}.msg-agent-avatar{width:26px;height:26px;border-radius:13px;background:var(--bg-gray);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}.msg-agent-body{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:12px}.msg-actions{display:inline-flex;gap:2px}.msg-actions,.msg-meta{align-self:flex-start;align-items:center}.msg-meta{display:flex;gap:10px;margin-top:4px;font-size:12px;color:var(--ink-45);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.msg-meta-item{white-space:nowrap}.msg-copy-answer,.msg-thumb{width:26px;height:26px;border:none;border-radius:7px;background:none;color:var(--ink-45);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s ease,color .15s ease}.msg-copy-answer:hover,.msg-thumb:hover{background:var(--ink-06);color:var(--ink-80)}.msg-thumb.on{color:var(--ink-80)}.msg-thumb:disabled{cursor:default}.msg-thumb:disabled:hover{background:none}.msg-thumb.on:disabled{color:var(--ink-80)}.msg-copy-answer-done{font-family:var(--font-mono);font-size:10px;line-height:1;letter-spacing:.02em}.msg-copy-answer-fail{font-family:var(--font-mono);font-size:13px;font-weight:700;line-height:1;color:var(--red)}.msg-fb-card{border:1px solid var(--ink-10);border-radius:12px;padding:10px;background:var(--glass-bg);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);display:flex;flex-direction:column;gap:8px}.msg-fb-input{font-family:inherit;font-size:12px;line-height:1.6;color:var(--ink-85);background:none;border:none;border-bottom:1px solid var(--ink-10);padding:4px 2px 8px;resize:vertical;outline:none}.msg-fb-input:focus{border-bottom-color:var(--ink-40)}.msg-fb-ops{display:flex;justify-content:flex-end;gap:8px}.msg-fb-plain,.msg-fb-primary{font-family:var(--font-mono);font-size:10px;letter-spacing:.05em;padding:5px 12px;border-radius:7px;cursor:pointer;border:1px solid var(--ink-20);background:none;color:var(--ink-60);transition:background .15s ease,color .15s ease,border-color .15s ease}.msg-fb-primary{background:var(--inv-bg);border-color:var(--inv-bg);color:var(--inv-ink)}.msg-fb-primary:hover{opacity:.85}.msg-fb-plain:hover{background:var(--ink-06);color:var(--ink-80)}.msg-fb-plain.confirm,.msg-fb-primary.confirm{animation:fb-confirm-pulse 1.1s ease infinite}@keyframes fb-confirm-pulse{0%,to{opacity:1}50%{opacity:.45}}.msg-agent-text{font-size:14.5px;line-height:26px;color:var(--ink-90);word-break:break-word}.msg-error{font-size:13.5px;line-height:20px;color:var(--red)}.chat-empty{flex:1 1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 40px}.chat-empty-mark{font-family:var(--font-script);font-size:30px;line-height:42px;color:var(--text);margin-bottom:22px}.chat-thinking{justify-content:flex-start;align-items:flex-start;padding-top:26px}.chat-thinking-label{font-size:13px;line-height:18px;color:var(--text);opacity:.55}.chat-thinking-dots{display:inline-flex;gap:3px;margin-left:6px;align-items:center;height:18px}.chat-thinking-dots i{width:4px;height:4px;border-radius:50%;background:var(--text);opacity:.45;animation:chat-think-bounce 1.2s infinite}.chat-thinking-dots i:nth-child(2){animation-delay:.18s}.chat-thinking-dots i:nth-child(3){animation-delay:.36s}@keyframes chat-think-bounce{0%,60%,to{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}.chat-empty .hero-panel{width:min(640px,100%);background:var(--bg-gray);border:1.5px solid var(--ink-12);border-radius:28px;box-shadow:0 12px 20px var(--shadow-c1);padding:24px 26px 22px;display:flex;flex-direction:column;gap:16px}.chat-empty .hero-status{display:flex;align-items:center;gap:6px}.chat-empty .hero-status i{width:7px;height:7px;border-radius:50%;display:inline-block}.chat-empty .hero-status em{font-family:var(--font-mono);font-style:normal;font-weight:500;font-size:10px;line-height:13px;letter-spacing:.8px}.chat-empty .status-pill{display:inline-flex;align-items:center;gap:7px;height:23px;padding:0 9px;border-radius:11.5px;background:var(--green-bg)}.chat-empty .status-pill i{background:var(--green)}.chat-empty .status-pill em{color:var(--ink-80)}.chat-empty .hero-input{position:relative;min-height:56px;background:var(--bg);border:1.5px solid var(--ink-10);border-radius:16px;display:flex;align-items:center;gap:12px;padding:0 18px;cursor:text}.chat-empty .hero-input.with-upload{flex-direction:column;align-items:stretch;padding:0}.chat-empty .hero-input.with-upload>.file-card-list{margin:12px 18px 0}.chat-empty .hero-input-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:0 18px;width:100%}.chat-empty .hero-attach{width:30px;height:30px;border-radius:6px;background:transparent;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s ease;color:var(--ink)}.chat-empty .hero-attach:disabled{opacity:.3;cursor:not-allowed}.chat-empty .hero-attach:not(:disabled):hover{background:var(--ink-04)}.chat-empty .hero-input textarea{flex:1 1;min-width:0;border:none;background:transparent;outline:none;resize:none;overflow-y:auto;font-family:inherit;font-size:15px;line-height:22px;color:var(--text);padding:0}.chat-empty .hero-send{width:30px;height:30px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.chat-empty .hero-send-btn{border:none;background:var(--blue);cursor:pointer}.chat-empty .hero-send-btn:disabled{opacity:.45;cursor:default}.chat-empty .hero-hint{font-family:var(--font-script);font-size:14px;line-height:18px;color:var(--ink-32);margin-top:10px;padding-left:4px}.chat-empty .hero-chips{display:flex;gap:8px;flex-wrap:wrap}.chat-empty .chip{height:34px;padding:0 14px;border-radius:17px;background:var(--bg);border:1.5px solid var(--ink-08);display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink-60);font-family:inherit;cursor:pointer;transition:border-color .15s ease,color .15s ease}.chat-empty .chip:hover:not(:disabled){border-color:var(--ink-20);color:var(--ink-95)}.chat-empty .chip:disabled{opacity:.5;cursor:default}@media (max-width:1160px){.chat-empty{padding:24px 16px}.chat-empty .hero-panel{padding:20px 18px 18px}}.msg-think{border-left:2px solid var(--ink-08);padding:0 0 2px 14px;min-width:0}.msg-think-head{display:inline-flex;align-items:center;gap:7px;padding:0;background:none;border:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:var(--font-mono);font-size:9.5px;font-weight:500;letter-spacing:.08em;line-height:13px;color:var(--ink-30)}.msg-think-icon{color:var(--ink-20);flex-shrink:0;display:block}.msg-think-head em{font-style:normal;font-size:9px;color:var(--ink-25)}.msg-think.live .msg-think-head{color:var(--ink-45)}.msg-think.live .msg-think-icon{color:var(--yellow);animation:think-pulse 1s ease-in-out infinite}@keyframes think-pulse{0%,to{opacity:1}50%{opacity:.25}}.msg-think-body{margin-top:7px;font-size:13px;line-height:22px;color:var(--ink-45);white-space:pre-wrap;word-break:break-word}.card-cmd{height:33px;background:var(--bg-gray);border-radius:10px;display:flex;align-items:center;gap:9px;padding:0 10px;min-width:0}.card-cmd-text{font-family:var(--font-mono);font-size:11.5px;line-height:15px;color:var(--ink-60);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.card-flex{flex:1 1}.card-status{display:inline-flex;align-items:center;gap:5px;font-family:var(--font-mono);font-weight:500;font-size:9.5px;line-height:12px;color:var(--ink-45);flex-shrink:0}.heartbeat-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);animation:heartbeat-pulse .5s ease-in-out}@keyframes heartbeat-pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.3)}to{opacity:1;transform:scale(1)}}.card-status i{width:6px;height:6px;border-radius:50%}.card-status.done i{background:var(--green)}.card-status.run i{background:var(--yellow)}.card-artifact{min-height:60px;background:var(--bg);border:1px solid var(--ink-08);border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 16px}.card-artifact-meta{display:flex;flex-direction:column;gap:2px;min-width:0}.card-artifact-name{font-size:13px;font-weight:500;line-height:19px;color:var(--text)}.card-artifact-info,.card-artifact-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-artifact-info{font-size:11.5px;line-height:17px;color:var(--ink-45)}.card-open{font-size:12.5px;line-height:18px;color:var(--ink-70);flex-shrink:0;transition:color .15s ease}.card-open:hover{color:var(--ink-95)}.card-output{background:var(--bg);border:1px solid var(--ink-08);border-radius:10px;padding:10px 12px;font-family:var(--font-mono);font-size:11px;line-height:18px;color:var(--ink-60);white-space:pre-wrap;word-break:break-word;max-height:200px;overflow-y:auto}.msg-compaction{display:flex;flex-direction:column;gap:6px;padding:8px 12px;border:1px dashed var(--ink-10);border-radius:10px;margin:6px 0}.msg-compaction-label{font-family:var(--font-mono);font-size:10.5px;line-height:14px;color:var(--ink-45)}.msg-compaction-details summary{cursor:pointer;font-size:11px;color:var(--ink-55)}.msg-compaction-summary{margin-top:6px;font-size:12px;line-height:1.6;color:var(--ink-70);white-space:pre-wrap;word-break:break-word}.card-confirm{background:var(--bg);border:1px solid var(--ink-08);border-radius:12px;padding:13px 16px;display:flex;flex-direction:column;gap:10px}.card-confirm-label{display:flex;align-items:center;gap:7px;font-family:var(--font-mono);font-weight:500;font-size:9.5px;line-height:12px;color:var(--ink-55)}.card-confirm-label i{width:6px;height:6px;border-radius:50%;background:var(--yellow)}.card-confirm-text{font-size:13.5px;line-height:20px;color:var(--ink-85);word-break:break-word}.card-confirm-btns{display:flex;gap:8px}.btn-allow{width:76px;height:31px;border-radius:15.5px;background:var(--inv-bg);color:var(--inv-ink);font-size:12px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;transition:opacity .15s ease}.btn-allow:hover{opacity:.82}.btn-later{width:64px;height:31px;border-radius:15.5px;border:1px solid var(--ink-08);background:var(--bg);color:var(--ink-70);font-size:12px;display:inline-flex;align-items:center;justify-content:center;transition:opacity .15s ease}.btn-later:hover{opacity:.75}.card-confirm-result{font-family:var(--font-mono);font-weight:500;font-size:9.5px;line-height:12px;color:var(--ink-45)}.card-confirm-result.allow{color:var(--green)}.card-confirm-result.deny{color:var(--red)}.ask-wrap{margin:4px 0}.ask-card{background:var(--bg);border:1px solid var(--ink-08);border-radius:12px;padding:13px 16px;display:flex;flex-direction:column;gap:12px}.ask-card-label{display:flex;align-items:center;gap:7px;font-family:var(--font-mono);font-weight:500;font-size:9.5px;line-height:12px;color:var(--ink-55)}.ask-card-label i{width:6px;height:6px;border-radius:50%;background:var(--blue)}.ask-q{display:flex;flex-direction:column;gap:8px}.ask-q-title{font-size:13.5px;line-height:20px;color:var(--ink-85);word-break:break-word}.ask-q-opts{display:flex;flex-wrap:wrap;gap:8px}.ask-opt{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:7px 12px;border-radius:18px;border:1px solid var(--ink-08);background:var(--bg);color:var(--ink-75);font-size:12.5px;line-height:16px;cursor:pointer;transition:all .12s ease}.ask-opt.on,.ask-opt:hover{border-color:var(--blue)}.ask-opt.on{background:var(--blue-bg,rgba(59,130,246,.08));color:var(--blue)}.ask-opt-dot{flex:none;width:12px;height:12px;border-radius:50%;border:1px solid var(--ink-25);display:inline-flex;align-items:center;justify-content:center;transition:all .12s ease}.ask-opt.on .ask-opt-dot{border-color:var(--blue);background:var(--blue);box-shadow:inset 0 0 0 3px var(--bg)}.ask-opt-desc{color:var(--ink-40);font-size:11px}.ask-q-input{width:100%;box-sizing:border-box;height:32px;padding:0 12px;border-radius:8px;border:1px solid var(--ink-08);background:var(--bg);color:var(--text);font-size:13px}.ask-q-input::placeholder{color:var(--ink-40)}.ask-q-input:focus{outline:none;border-color:var(--blue)}.ask-q-answer{font-size:12.5px;line-height:18px;color:var(--ink-55)}.ask-card-btns{display:flex;gap:8px}.ask-card-result{font-family:var(--font-mono);font-weight:500;font-size:9.5px;line-height:12px;color:var(--ink-45)}.ask-card-result.approve{color:var(--green)}.ask-card-result.reject{color:var(--red)}.ask-card.plan .ask-card-label i{background:var(--yellow)}.plan-body{display:flex;flex-direction:column;gap:10px}.plan-goal{font-size:13.5px;line-height:20px;color:var(--ink-85);font-weight:500}.plan-steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}.plan-steps li{font-size:13px;line-height:19px;color:var(--ink-70)}.plan-step-title{font-weight:500}.plan-step-detail{display:block;color:var(--ink-45);font-size:12px;margin-top:2px}.plan-risks{font-size:12px;line-height:18px;color:var(--ink-55)}.task-graph-wrap{position:fixed;right:20px;bottom:24px;z-index:40;width:340px;max-width:calc(100vw - 40px)}@keyframes task-graph-in{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.task-graph{background:linear-gradient(135deg,var(--glass-1) 0,var(--glass-2) 100%);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border:1px solid var(--ink-08);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 12px 32px var(--shadow-c3),inset 0 1px 0 var(--glass-hi);animation:task-graph-in .32s cubic-bezier(.22,.61,.36,1)}.task-graph-head{display:flex;align-items:center;justify-content:space-between;cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.task-graph-title{font-size:9.5px;line-height:12px;letter-spacing:.5px;color:var(--ink-55)}.task-graph-count,.task-graph-title{font-family:var(--font-mono);font-weight:500}.task-graph-count{font-size:11px;line-height:14px;color:var(--ink-70)}.task-graph-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.task-graph-toggle{width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease}.task-graph-toggle:hover{color:var(--ink-80);background:var(--bg-gray)}.task-graph.minimized{gap:0;padding:10px 16px}.task-graph-bar{height:3px;border-radius:2px;background:var(--bg-gray);overflow:hidden}.task-graph-bar i{display:block;height:100%;border-radius:2px;background:var(--blue);transition:width .3s ease}.task-graph-nodes{display:flex;flex-direction:column;gap:7px}.task-graph-node{display:flex;align-items:center;gap:8px;min-width:0}.task-graph-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.task-graph-dot.completed{background:var(--green)}.task-graph-dot.in_progress{background:var(--blue)}.task-graph-dot.blocked{background:var(--yellow)}.task-graph-dot.pending{background:var(--ink-30)}.task-graph-subject{font-size:13px;line-height:19px;color:var(--ink-85);flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-graph-subject.completed{color:var(--ink-35);text-decoration:line-through}.task-graph-tag{font-family:var(--font-mono);font-weight:500;font-size:9px;line-height:12px;color:var(--blue);flex-shrink:0}.task-graph-blocked{font-size:11.5px;line-height:17px;color:var(--yellow);flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-graph [data-tip]:hover:after{white-space:normal;width:max-content;max-width:280px;word-break:break-word;text-align:left;left:0;transform:none}.chat-composer-wrap{flex-shrink:0;padding:0 16px 18px}.chat-composer{width:720px;max-width:100%;margin:0 auto;background:var(--bg);border-radius:16px;box-shadow:0 14px 28px var(--shadow-c1);padding:12px 14px;display:flex;flex-direction:column;gap:10px}.chat-input-row{position:relative;display:flex;align-items:center;gap:10px;min-height:30px;cursor:text}.chat-input-row textarea{flex:1 1;min-width:0;height:30px;font-size:14px;line-height:30px;color:var(--text);resize:none;overflow-y:auto}.chat-input-row textarea::placeholder{color:var(--ink-40)}.chat-plan-toggle{flex:none;display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:13px;border:1px solid var(--ink-08);background:var(--bg);color:var(--ink-55);font-size:12px;line-height:1;cursor:pointer;transition:all .15s ease}.chat-plan-toggle .chat-plan-toggle-dot{width:6px;height:6px;border-radius:50%;background:var(--ink-25);transition:background .15s ease}.chat-plan-toggle.on{border-color:var(--blue);color:var(--blue);background:var(--blue-bg,rgba(59,130,246,.08))}.chat-plan-toggle.on .chat-plan-toggle-dot{background:var(--blue)}.chat-plan-toggle:disabled{opacity:.45;cursor:default}.chat-send{width:30px;height:30px;border-radius:9px;background:var(--blue);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:opacity .15s ease}.chat-send:disabled{opacity:.45;cursor:default}.chat-send:not(:disabled):hover{opacity:.85}.chat-send.stop{background:var(--bg);border:1px solid var(--ink-08);box-sizing:border-box}.chat-send.stop:not(:disabled):hover{opacity:1;border-color:var(--ink-20)}.chat-attach{width:30px;height:30px;border-radius:6px;background:transparent;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s ease;color:var(--ink);margin-right:6px}.chat-attach:disabled{opacity:.3;cursor:not-allowed}.chat-attach:not(:disabled):hover{background:var(--ink-04)}.file-card-list{display:flex;flex-wrap:wrap;gap:8px}.file-card{gap:10px;padding:8px 10px;background:var(--ink-04);border:1px solid var(--line);border-radius:10px;font-size:13px;line-height:18px;color:var(--ink);max-width:320px;min-width:0}.file-card,.file-card-badge{display:flex;align-items:center}.file-card-badge{justify-content:center;font-size:10px;font-weight:600;letter-spacing:.3px;color:#ffffff;text-transform:uppercase}.file-card-badge,.file-card-thumb{flex-shrink:0;width:34px;height:34px;border-radius:8px}.file-card-thumb{object-fit:cover;background:var(--ink-04);border:1px solid var(--line)}.file-card-info{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:1px}.file-card-name{font-size:13px;line-height:18px;color:var(--ink)}.file-card-meta,.file-card-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-card-meta{font-size:11px;line-height:15px;color:var(--ink-42)}.file-card-remove{flex-shrink:0;width:20px;height:20px;border-radius:50%;background:transparent;display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;color:var(--ink-42);transition:all .15s ease}.file-card-remove:hover{background:var(--ink-08);color:var(--ink)}.msg-user-files{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}.msg-user-files .file-card{padding:6px 9px;gap:8px}.msg-user-files .file-card-badge{width:28px;height:28px;border-radius:6px;font-size:9px}.msg-user-text{white-space:pre-wrap;word-break:break-word}.chat-composer.drag-over{background:var(--ink-02);border:2px dashed var(--blue);border-radius:12px}.chat-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;font-family:var(--font-script);font-size:14px;line-height:18px;color:var(--ink-32)}.chat-hint-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-quota-badge{flex:none;font-family:var(--font-body);font-size:11px;line-height:16px;padding:2px 8px;border:1px solid var(--ink-12);border-radius:999px;color:var(--ink-55);letter-spacing:.02em;white-space:nowrap}.chat-ctx-badge{flex:none;display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border:1px solid var(--ink-16);border-radius:999px;background:var(--ink-04);color:var(--ink-72);font-family:var(--font-mono,monospace);font-size:12px;line-height:1;cursor:pointer;transition:border-color .15s,background .15s,color .15s}.chat-ctx-badge:hover{border-color:var(--ink-32);background:var(--ink-08);color:var(--ink-96)}.chat-ctx-badge-pct{font-weight:600}.chat-ctx-badge-abs{color:var(--ink-48)}@media (max-width:1160px){.chat-col,.chat-composer{width:100%}.chat-rail{display:none}}@media (max-width:960px){.chat-side{display:none}.chat-side.drawer-open{display:flex;position:fixed;left:0;top:69px;bottom:0;width:min(300px,84vw);z-index:70;box-shadow:var(--shadow-c2);animation:chat-side-in .22s ease}.chat-side-backdrop{display:block;position:fixed;inset:69px 0 0 0;background:var(--overlay-light);z-index:65;animation:chat-fade-in .2s ease}.chat-main{border-left:none}}@media (hover:none){[data-tip]:hover:after{content:none}}@media (max-width:640px){.chat-topbar{padding:0 12px}.chat-topbar-left{gap:8px}.chat-topbar-right{gap:10px}.chat-side-toggle{width:40px;height:40px}.chat-composer-wrap{padding:0 10px 12px}.chat-composer{padding:10px}.chat-hint-text{display:none}.chat-hint{justify-content:flex-end}.chat-attach,.chat-send{width:40px;height:40px}}@keyframes chat-side-in{0%{transform:translateX(-14px);opacity:0}to{transform:translateX(0);opacity:1}}@keyframes chat-fade-in{0%{opacity:0}to{opacity:1}}.md>:first-child{margin-top:0}.md>:last-child{margin-bottom:0}.md p{margin:10px 0}.md h1,.md h2,.md h3,.md h4,.md h5,.md h6{margin:20px 0 8px;font-weight:600;line-height:26px;color:var(--ink-95)}.md h1{font-size:18px}.md h2{font-size:17px}.md h3{font-size:16px}.md h4,.md h5,.md h6{font-size:15px}.md ol,.md ul{margin:10px 0;padding-left:24px;display:flex;flex-direction:column;gap:2px}.md li>ol,.md li>ul{margin:2px 0}.md li::marker{color:var(--ink-45);font-size:13px}.md blockquote{margin:10px 0;padding:2px 0 2px 14px;border-left:3px solid var(--ink-20);color:var(--ink-60)}.md hr{border:none;border-top:1px solid var(--ink-08);margin:16px 0}.md a{color:var(--ink-95);text-decoration:underline;-webkit-text-decoration-color:var(--ink-35);text-decoration-color:var(--ink-35);text-underline-offset:3px}.md a:hover{-webkit-text-decoration-color:var(--ink-95);text-decoration-color:var(--ink-95)}.md code{font-family:var(--font-mono);font-size:12.5px;line-height:20px;background:var(--bg-gray);border:1px solid var(--ink-08);border-radius:5px;padding:1px 6px;word-break:break-all}.md pre{margin:12px 0;padding:12px 14px;background:var(--code-bg);border-radius:10px;overflow-x:auto}.md pre code{font-size:12.5px;line-height:21px;color:var(--code-ink);background:none;border:none;padding:0;white-space:pre;word-break:normal}.md table{margin:12px 0;border-collapse:collapse;font-size:13.5px;line-height:22px;display:block;max-width:100%;overflow-x:auto}.md td,.md th{border:1px solid var(--ink-08);padding:6px 12px;text-align:left;vertical-align:top}.md th{background:var(--bg-gray);font-weight:600;color:var(--ink-70);white-space:nowrap}.md input[type=checkbox]{margin-right:6px;accent-color:var(--green)}.md .md-img{display:block;max-width:min(420px,100%);max-height:320px;margin:12px 0;border-radius:10px;border:1px solid var(--ink-08);cursor:zoom-in}.md-lightbox{position:fixed;inset:0;z-index:200;background:var(--overlay);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:32px;cursor:zoom-out}.md-lightbox-img{max-width:min(1080px,92vw);max-height:82vh;border-radius:8px;box-shadow:0 24px 64px rgba(0,0,0,.4);cursor:default}.md-lightbox-caption{font-size:13px;line-height:18px;color:rgba(255,255,255,.75);text-align:center;max-width:70vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bg-banner{margin:10px 20px 0;padding:4px 8px 6px;background:var(--ink-04);border:1px solid var(--ink-08);border-radius:8px;display:flex;flex-direction:column;gap:2px}.bg-banner-head{display:flex;align-items:center;gap:7px;padding:1px 4px 0;font-size:11px;font-weight:500;letter-spacing:.02em;color:var(--ink-45)}.bg-banner-dot{width:6px;height:6px;border-radius:50%;background:var(--ink-70);animation:bg-pulse 1.2s ease-in-out infinite}@keyframes bg-pulse{0%,to{opacity:1}50%{opacity:.3}}.bg-task{display:flex;align-items:center;gap:10px;font-size:12px;min-height:26px}.bg-task-cmd{flex:1 1;font-family:var(--font-mono);color:var(--ink-70);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bg-task-stop{flex-shrink:0;padding:2px 12px;border-radius:6px;background:var(--inv-bg);color:var(--inv-ink);font-size:11px;font-weight:500;transition:opacity .15s ease}.bg-task-stop:hover{opacity:.75}.chat-side-tools{display:flex;flex-direction:column;gap:6px;margin-top:8px}.chat-tool-btn{height:34px;background:transparent;border-radius:10px;display:flex;align-items:center;gap:8px;padding:0 10px;font-size:12.5px;font-weight:400;color:var(--ink-50);cursor:pointer;transition:color .15s ease,background .15s ease}.chat-tool-btn:hover{color:var(--ink-85);background:var(--ink-04)}.chat-tool-btn.on{color:var(--ink-95);font-weight:500;background:var(--bg);box-shadow:inset 0 0 0 1px var(--ink-10)}.panel-wrap{flex:1 1;min-height:0;overflow-y:auto;padding:34px 28px 80px}.panel-wrap>*{max-width:780px;margin-left:auto;margin-right:auto;width:100%}.panel-head{display:flex;align-items:center;gap:18px;margin-bottom:22px}.panel-title{font-size:18px;font-weight:600;letter-spacing:-.01em;color:var(--text);white-space:nowrap}.panel-spacer{flex:1 1}.panel-tabs{display:flex;gap:4px;background:var(--ink-05);border-radius:11px;padding:3px}.panel-tab{height:28px;padding:0 12px;border-radius:8px;border:none;background:transparent;font-size:12.5px;color:var(--ink-50);cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:color .15s ease}.panel-tab:hover{color:var(--ink-85)}.panel-tab.on{background:var(--bg);color:var(--text);font-weight:500;box-shadow:0 1px 4px rgba(var(--ink),.08)}.panel-tab-count{font-family:var(--font-mono);font-size:10px;color:var(--ink-35)}.panel-close{width:30px;height:30px;border-radius:9px;border:1px solid var(--ink-10);background:var(--bg);color:var(--ink-45);font-size:16px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:color .15s ease,background .15s ease}.panel-close:hover{color:var(--ink-95);background:var(--ink-04)}.panel-msg{padding:10px 14px;border-radius:10px;font-size:12.5px;line-height:18px;margin-bottom:14px}.panel-msg.ok{background:var(--green-bg);color:var(--ink-70)}.panel-msg.err{background:rgba(var(--red-rgb,220,38,38),.08);color:var(--red)}.panel-actions{display:flex;align-items:center;gap:12px;margin-bottom:16px}.panel-hint{font-size:11.5px;line-height:16px;color:var(--ink-38)}.panel-btn{height:30px;padding:0 13px;border-radius:9px;font-size:12.5px;font-weight:500;display:inline-flex;align-items:center;gap:6px;cursor:pointer;border:none;transition:opacity .15s ease,color .15s ease,background .15s ease}.panel-btn:disabled{opacity:.45;cursor:not-allowed}.panel-btn.primary{background:var(--inv-bg);color:var(--inv-ink)}.panel-btn.primary:hover:not(:disabled){opacity:.85}.panel-btn.ghost{border:1px solid var(--ink-10);background:var(--bg);color:var(--ink-70)}.panel-btn.ghost:hover:not(:disabled){color:var(--ink-95);background:var(--ink-04)}.panel-btn.ghost.on{color:var(--ink-95);background:var(--ink-06)}.panel-btn.ghost.danger:hover:not(:disabled){color:var(--red);border-color:rgba(var(--red-rgb,220,38,38),.25)}.panel-list{display:flex;flex-direction:column;gap:8px}.panel-row{display:flex;align-items:flex-start;gap:14px;padding:14px 16px;border-radius:14px;background:var(--bg);box-shadow:inset 0 0 0 1px var(--ink-08);transition:box-shadow .15s ease}.panel-row:hover{box-shadow:inset 0 0 0 1px var(--ink-14)}.panel-row.off .panel-desc,.panel-row.off .panel-name{opacity:.45}.panel-row-main{flex:1 1;min-width:0}.panel-row-top{display:flex;align-items:center;gap:8px;margin-bottom:4px;flex-wrap:wrap}.panel-name{font-size:13.5px;font-weight:600;color:var(--text);white-space:nowrap}.mono{font-family:var(--font-mono);font-size:12.5px}.panel-desc{font-size:12px;line-height:17px;color:var(--ink-45);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.panel-row-ops{display:flex;align-items:center;gap:8px;flex-shrink:0}.panel-tag{font-family:var(--font-mono);font-size:9.5px;line-height:12px;padding:2px 7px;border-radius:7px;background:var(--ink-06);color:var(--ink-55);white-space:nowrap}.panel-tag.dim{color:var(--ink-35)}.panel-tag.t-http{background:var(--blue-bg,rgba(59,130,246,.1));color:var(--blue,#3b82f6)}.panel-tag.t-stdio{background:var(--yellow-bg);color:var(--yellow,#b45309)}.panel-dot{width:6px;height:6px;border-radius:50%;background:var(--ink-15);flex-shrink:0}.panel-dot.on{background:var(--green)}.panel-run{font-size:11.5px;color:var(--ink-45);white-space:nowrap}.panel-run.dim{color:var(--ink-32)}.panel-empty{padding:42px 0;text-align:center;font-size:13px;color:var(--ink-38)}.switch{width:34px;height:20px;border-radius:10px;background:var(--ink-12);border:none;cursor:pointer;position:relative;transition:background .15s ease;flex-shrink:0}.switch:disabled{opacity:.5;cursor:not-allowed}.switch-knob{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--bg);box-shadow:0 1px 3px rgba(var(--ink),.2);transition:transform .15s ease}.switch.on{background:var(--green)}.switch.on .switch-knob{transform:translateX(14px)}.panel-form{padding:14px 16px;border-radius:14px;background:var(--bg);box-shadow:inset 0 0 0 1px var(--ink-08);margin-bottom:14px;display:flex;flex-direction:column;gap:10px}.panel-form-row{display:flex;gap:10px;align-items:center}.panel-form-row .panel-input{flex:1 1}.panel-input{height:34px;padding:0 12px;border-radius:10px;border:1px solid var(--ink-10);background:var(--bg);font-size:13px;color:var(--text);outline:none;transition:border-color .15s ease;width:100%}.panel-input:focus{border-color:var(--ink-30)}.panel-input.area{height:auto;padding:10px 12px;resize:vertical;line-height:19px}.segment{display:flex;gap:3px;background:var(--ink-05);border-radius:10px;padding:3px;flex-shrink:0}.segment-btn{height:28px;padding:0 12px;border:none;border-radius:8px;background:transparent;font-size:12px;color:var(--ink-50);cursor:pointer;transition:color .15s ease,background .15s ease}.segment-btn.on{background:var(--bg);color:var(--text);font-weight:500;box-shadow:0 1px 4px rgba(var(--ink),.08)}.panel-form-ops{display:flex;gap:8px}.panel-check{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--ink-60);cursor:pointer;white-space:nowrap}.panel-check input{accent-color:var(--text)}.panel-cron{font-family:var(--font-mono);font-size:12px;font-weight:500;color:var(--text);background:var(--ink-06);padding:2px 8px;border-radius:7px;white-space:nowrap}.report-list{flex-basis:100%;display:flex;flex-direction:column;gap:6px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--ink-10)}.report-item{font-size:12px;color:var(--ink-55)}.report-meta{display:flex;gap:10px;align-items:center;margin-bottom:3px;font-family:var(--font-mono);font-size:10.5px;color:var(--ink-35)}.report-status.s-success{color:var(--green)}.report-status:not(.s-success){color:var(--red)}.report-text{line-height:17px;white-space:pre-wrap;word-break:break-word}.dim{color:var(--ink-32)}.chat-run-dot{width:6px;height:6px;border-radius:50%;background:var(--green);flex-shrink:0;margin-right:2px;animation:chat-run-pulse 1.2s ease-in-out infinite}@keyframes chat-run-pulse{0%,to{opacity:1}50%{opacity:.35}}.ctx-ring{flex-shrink:0;margin-right:7px;padding:0;background:none;border:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.ctx-ring-track{stroke:var(--ink-14)}.ctx-ring-bar{stroke:var(--ink-80);transition:stroke-dasharray .3s ease}.ctx-ring:hover .ctx-ring-bar{stroke:var(--ink)}.ctx-ring.near-full .ctx-ring-bar{stroke:var(--ink-95)}.ctx-ring-trigger{stroke:var(--ink-45)}.ctx-usage-mask{position:fixed;inset:0;z-index:60}.ctx-usage-panel{position:fixed;z-index:61;width:240px;padding:14px 16px;background:var(--bg);border:1px solid var(--ink-12);border-radius:12px;box-shadow:0 8px 20px var(--shadow-c3);display:flex;flex-direction:column;gap:10px}.ctx-usage-head{display:flex;justify-content:space-between;align-items:center}.ctx-usage-title{font-size:12.5px;font-weight:600;color:var(--ink-60)}.ctx-usage-close{background:none;border:none;color:var(--ink-40);font-size:16px;line-height:1;cursor:pointer;padding:0 2px}.ctx-usage-close:hover{color:var(--ink-80)}.ctx-usage-main{display:flex;align-items:baseline;gap:8px}.ctx-usage-pct{font-size:22px;font-weight:650;color:var(--ink-95);letter-spacing:-.5px}.ctx-usage-abs{font-size:11.5px;color:var(--ink-45)}.ctx-usage-bar{height:6px;border-radius:3px;background:var(--ink-08);display:flex;overflow:hidden}.ctx-usage-seg{height:100%;min-width:2px}.ctx-usage-seg.sys{background:var(--ink-90)}.ctx-usage-seg.tools{background:var(--ink-50)}.ctx-usage-seg.msgs{background:var(--ink-25)}.ctx-usage-seg.mcp{background:var(--ink-20)}.ctx-usage-seg.skills{background:var(--ink-12)}.ctx-usage-legend{display:flex;flex-direction:column;gap:5px}.ctx-usage-row{display:flex;align-items:center;gap:8px;font-size:12px}.ctx-usage-dot{width:7px;height:7px;border-radius:2px;flex-shrink:0}.ctx-usage-dot.sys{background:var(--ink-90)}.ctx-usage-dot.tools{background:var(--ink-50)}.ctx-usage-dot.msgs{background:var(--ink-25)}.ctx-usage-dot.mcp{background:var(--ink-20)}.ctx-usage-dot.skills{background:var(--ink-12)}.ctx-usage-name{color:var(--ink-70);flex:1 1}.ctx-usage-val{color:var(--ink-45);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ctx-window{padding-top:10px;border-top:1px solid var(--ink-08);display:flex;flex-direction:column;gap:10px}.ctx-window-title{text-align:center;font-size:13px;font-weight:600;color:var(--ink-85);letter-spacing:.2px}.ctx-window-slider{position:relative;height:22px;margin:0 2px}.ctx-window-tick{position:absolute;top:50%;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--ink-25);transform:translateY(-50%);pointer-events:none;z-index:1}.ctx-window-slider input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;display:block;width:100%;height:22px;margin:0;padding:0;background:transparent;cursor:pointer;outline:none}.ctx-window-slider input[type=range]::-webkit-slider-runnable-track{height:18px;border-radius:9px;background:var(--ink-06)}.ctx-window-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:22px;height:22px;margin-top:-2px;border-radius:50%;background:var(--bg);border:1px solid var(--ink-10);box-shadow:0 1px 3px var(--shadow-c2);-webkit-transition:box-shadow .15s ease;transition:box-shadow .15s ease}.ctx-window-slider input[type=range]:focus-visible::-webkit-slider-thumb,.ctx-window-slider input[type=range]:hover::-webkit-slider-thumb{box-shadow:0 1px 5px var(--shadow-c3)}.ctx-window-slider input[type=range]::-moz-range-track{height:18px;border-radius:9px;background:var(--ink-06)}.ctx-window-slider input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--bg);border:1px solid var(--ink-10);box-shadow:0 1px 3px var(--shadow-c2)}.chat-loading{min-height:100vh;background:var(--bg)}.msg-sources{margin-top:10px;padding:10px 12px;border:1px solid var(--ink-08);border-radius:10px;background:var(--ink-04)}.msg-sources-title{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-45);margin-bottom:6px}.msg-sources-list{display:flex;flex-wrap:wrap;gap:6px}.msg-source-pill{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:3px 8px;border:1px solid var(--ink-08);border-radius:999px;background:var(--bg);font-size:12px;color:var(--ink-70);text-decoration:none;transition:background .15s ease,color .15s ease}.msg-source-pill:hover{background:var(--ink-06);color:var(--ink-90)}.msg-source-at{font-weight:700;color:var(--ink-60)}.msg-source-host{font-weight:600;color:var(--ink-85);white-space:nowrap}.msg-source-path{color:var(--ink-45);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}.msg-source-kb{cursor:default}.msg-sources-sub{margin-top:8px}.msg-sources-sub-title{font-size:11px;color:var(--ink-45);margin-bottom:4px}.msg-source-file{font-size:12px;color:var(--ink-70);font-family:var(--mono,ui-monospace,SFMono-Regular,Menlo,monospace)}.msg-sources-tools{margin-top:8px;border-top:1px solid var(--ink-06);padding-top:6px}.msg-sources-tools summary{font-size:11px;color:var(--ink-45);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.msg-sources-tools summary:hover{color:var(--ink-70)}.msg-sources-tools-body{margin-top:6px;display:flex;flex-direction:column;gap:4px}.msg-source-tool{display:flex;gap:8px;font-size:12px;line-height:1.4}.msg-source-tool-name{flex:none;min-width:84px;color:var(--ink-60);font-weight:600}.msg-source-tool-detail{color:var(--ink-70);word-break:break-all;font-family:var(--mono,ui-monospace,SFMono-Regular,Menlo,monospace)}.trace-panel{position:fixed;top:0;right:0;bottom:0;width:340px;max-width:88vw;background:var(--bg);border-left:1px solid var(--ink-08);box-shadow:-8px 0 24px var(--shadow-c2);z-index:60;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .22s ease}.trace-panel.open{transform:translateX(0)}.trace-panel-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--ink-08)}.trace-panel-title{font-size:13px;font-weight:600;color:var(--ink-85)}.trace-panel-close{width:26px;height:26px;border:none;border-radius:7px;background:none;color:var(--ink-45);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.trace-panel-close:hover{background:var(--ink-06);color:var(--ink-80)}.trace-panel-body{flex:1 1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:18px}.trace-section-title{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-45);margin-bottom:8px}.trace-env-grid{display:flex;flex-direction:column;gap:6px}.trace-env-row{display:flex;justify-content:space-between;font-size:12px}.trace-env-row .k{color:var(--ink-45)}.trace-env-row .v{color:var(--ink-85);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.trace-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:6px;font-size:11px;background:var(--ink-06);color:var(--ink-60)}.trace-badge.dirty{background:rgba(255,176,32,.14);color:#b97800}.trace-list{display:flex;flex-direction:column;gap:6px}.trace-web-item{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--ink-08);border-radius:8px;text-decoration:none;color:var(--ink-80);font-size:12px}.trace-web-favicon,.trace-web-item:hover{background:var(--ink-06)}.trace-web-favicon{flex:none;width:16px;height:16px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:var(--ink-60);text-transform:uppercase}.trace-web-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trace-kb-item{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--ink-08);border-radius:8px;font-size:12px;color:var(--ink-80)}.trace-file-item{font-family:var(--mono,ui-monospace,SFMono-Regular,Menlo,monospace);word-break:break-all}.trace-file-item,.trace-tool-item{font-size:12px;color:var(--ink-70)}.trace-tool-item{line-height:1.4}.trace-tool-item b{color:var(--ink-85);font-weight:600}.trace-empty{font-size:12px;color:var(--ink-35)}