:root{font-family:Segoe UI,Microsoft YaHei UI,sans-serif;color:#e8edf7;background:#071424;font-synthesis:none;--panel:#0c1b30;--surface:#15263e;--line:#223751;--muted:#91a1b8;--accent:#67acfa}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{color:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:9px;background:transparent;padding:9px 12px;cursor:pointer}button:hover,a:hover{background:#1b304b}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{text-decoration:none;border-radius:8px;padding:10px}.primary{background:var(--accent);color:#081b31;border-color:transparent;font-weight:600}.primary:hover{background:#86beff}.workbench{height:100dvh;display:flex;flex-direction:column;min-height:450px}.brand{display:flex;align-items:center;gap:10px;height:42px;flex:none;padding:0 18px;border-bottom:1px solid var(--line);background:var(--panel);font-size:13px}.brand>span{color:var(--muted);font-size:12px}.brand .connection{margin-left:auto}.simulation{padding:6px 15px;background:#283548;color:#dee7f2;font-size:12px;text-align:center}.workspace{display:flex;flex:1;min-height:0}.sidebar{width:278px;flex:none;background:var(--panel);border-right:1px solid var(--line);padding:22px 13px 12px;display:flex;flex-direction:column;gap:17px}.new-chat{width:100%;padding:12px}.summary{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted);padding:0 5px}.summary span:first-child{color:#e8edf7}.search{display:flex;align-items:center;gap:9px;background:#172840;border-radius:9px;padding:11px;color:var(--muted)}.search input{width:100%;min-width:0;background:none;border:0;outline:none;color:inherit}.conversation-list{display:flex;flex-direction:column;gap:7px;overflow:auto;flex:1}.conversation-list button{flex:none;width:100%;text-align:left;justify-content:flex-start;padding:13px;border:0}.conversation-list button.selected{background:#1b2e49}.conversation-list button span{display:flex;flex-direction:column;gap:5px;min-width:0}.conversation-list strong{font-size:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.conversation-list small{color:var(--muted);font-size:12px}.sidebar-bottom{display:flex;flex-direction:column;gap:3px}.sidebar-bottom button{justify-content:flex-start;border:0;padding:11px}.workspace main{position:relative;display:flex;min-width:0;min-height:0;flex:1;flex-direction:column}.tabs{display:flex;gap:5px;padding:10px 13px;border-bottom:1px solid var(--line);background:var(--panel);overflow:auto;flex:none}.tabs>button{flex:none;min-width:140px;align-items:flex-start;flex-direction:column;gap:3px;padding:10px 13px;max-width:235px}.tabs>button[aria-selected=true]{background:#1b2f4b}.tabs strong{font-size:14px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tabs small{font-size:11px;color:var(--muted)}.tabs .new-tab{min-width:78px;flex-direction:row;align-items:center}.chat-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 24px;flex:none}.chat-heading div{display:flex;gap:14px;align-items:center}.chat-heading small{color:var(--muted)}.chat-heading button{border:0}.queue-status{margin:0 22px 8px;padding:10px 13px;border-radius:8px;background:var(--surface);color:var(--muted);font-size:13px}.messages{overflow:auto;flex:1;min-height:0;padding:15px 28px 25px;display:flex;flex-direction:column;gap:24px}.message{width:min(88%,820px);padding:18px 20px;border:1px solid var(--line);border-radius:17px;background:var(--surface);align-self:flex-start}.message.user{align-self:flex-end;background:#244060;width:auto;max-width:80%}.message-label{display:flex;gap:16px;align-items:center;font-size:12px;color:#c2d0e2;margin-bottom:10px}.message-label time{color:var(--muted);font-size:11px}.message-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.75}.empty-chat{margin:auto;text-align:center;color:var(--muted);padding:28px}.empty-chat h2{font-size:21px;font-weight:600;color:#e8edf7}.empty-chat p{font-size:14px}.composer{margin:10px 22px 18px;border:1px solid var(--line);border-radius:20px;background:#12243b;padding:12px 14px;flex:none}.composer textarea{width:100%;min-height:48px;max-height:180px;resize:vertical;border:0;background:none;color:inherit;line-height:1.6;padding:7px;outline:none}.composer-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.composer label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.composer select{color:#dee9f9;background:#12243b;max-width:190px;border:1px solid var(--line);border-radius:20px;padding:7px;font-size:12px}.composer-spacer{flex:1}.send{border-radius:50%;padding:10px}.stop{font-size:12px}.welcome{margin:auto;max-width:540px;text-align:center;padding:35px;display:flex;align-items:center;flex-direction:column;gap:12px}.welcome h1{font-size:26px;margin:8px}.welcome p{color:var(--muted);line-height:1.7;margin:0}.welcome-actions{display:flex;gap:12px;margin:14px}.welcome small{color:var(--muted);font-size:12px}.error{position:absolute;left:22px;right:22px;bottom:155px;display:flex;justify-content:space-between;align-items:center;background:#552a34;padding:12px 16px;border-radius:9px;font-size:13px}.error button{border:0;padding:3px}.modal-backdrop{position:fixed;inset:0;background:#0008;display:flex;align-items:center;justify-content:center;padding:24px;z-index:10}.dialog{width:500px;max-width:100%;max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:23px}.dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.dialog h2{font-size:19px;margin:0}.dialog p{font-size:14px;line-height:1.7}.dialog a{display:inline-block;margin:10px 0}.dialog form{display:flex;flex-direction:column;gap:13px}.dialog label{display:flex;flex-direction:column;gap:9px}.dialog input{border:1px solid var(--line);padding:10px;border-radius:8px;background:var(--surface);color:inherit}.muted{color:var(--muted)}.device-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.device-row small{margin-left:auto;color:var(--muted)}@media(max-width:900px){.sidebar{width:215px;padding:16px 9px}.messages{padding:15px}.composer{margin:8px 13px 13px}.composer label{font-size:0}.composer label select{font-size:12px;max-width:150px}.chat-heading{padding:12px 17px}.message{max-width:95%;padding:14px}.message-content{font-size:15px}}@media(max-width:600px){.sidebar{width:64px;padding:12px 6px}.sidebar .new-chat{font-size:0;padding:10px}.sidebar .summary,.sidebar .search,.sidebar .conversation-list{display:none}.sidebar-bottom{margin-top:auto}.sidebar-bottom button{font-size:0;padding:13px}.brand span{display:none}.tabs>button{min-width:125px}.chat-heading small{display:none}.message.user{max-width:95%}.composer-controls{gap:5px}.stop{font-size:0;padding:8px}.welcome{padding:20px}.welcome h1{font-size:23px}.composer-spacer{display:none}.send{margin-left:auto}.message-content{font-size:14px}}.usage-summary{margin:0 28px 10px;color:var(--muted, #a1a1aa);font-size:12px}.usage-summary summary{cursor:pointer}.usage-summary p{margin:7px 0;line-height:1.5}.conversation-panel{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}.tab-item{display:flex;align-items:center;flex:none;min-width:140px;max-width:235px;border:1px solid var(--line);border-radius:9px}.tab-item.selected{background:#1b2f4b}.tab-item>[role=tab]{min-width:0;flex:1;flex-direction:column;align-items:flex-start;gap:3px;border:0;padding:10px 13px}.tab-item>.close-tab{flex:none;border:0;padding:7px;margin-right:4px;gap:0}.pending-status{margin:0 22px 4px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:12px;line-height:1.6;color:var(--muted)}.notice{padding:12px 22px;color:var(--muted);font-size:13px}.dialog-error{padding:10px;border-radius:8px;background:#552a34;color:#fbd3dc}.recovered-result{margin:12px 0 0;padding-left:9px;border-left:2px solid var(--accent);font-size:12px;line-height:1.5;color:var(--muted)}@media(max-width:600px){.tab-item{min-width:125px}.pending-status{margin:0 13px 4px}.tab-item>[role=tab]{padding:9px}}.resource-panel{display:flex;flex-direction:column;gap:14px;min-width:0}.resource-panel p{margin:0;overflow-wrap:anywhere}.resource-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.resource-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.resource-list>li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.resource-list>li>div:first-child{min-width:0;flex:1}.resource-list strong,.resource-list small{display:block;overflow-wrap:anywhere}.resource-list small{margin:5px 0;color:var(--muted);font-size:12px}.resource-list p,.resource-origin{font-size:12px;color:var(--muted)}.resource-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.resource-actions button{font-size:13px}.resource-confirm{padding:15px;border:1px solid var(--accent);border-radius:12px;background:var(--surface);display:flex;flex-direction:column;gap:13px}.resource-confirm h3{margin:0;font-size:16px;overflow-wrap:anywhere}.resource-panel fieldset{border:1px solid var(--line);border-radius:8px;display:flex;flex-direction:column;gap:12px;padding:14px}.resource-panel .resource-check{display:flex;flex-direction:row;align-items:center;gap:9px}.resource-check input{accent-color:var(--accent)}.resource-panel .text-button{border:0;font-size:12px;color:var(--accent);padding:6px 0}.resource-list>.approval-item{display:flex;flex-direction:column;align-items:stretch}.approval-action{white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;max-height:240px;font:12px/1.7 Consolas,monospace;margin:12px 0 0;padding:12px;background:var(--surface);border-radius:8px}.approval-count{font-size:11px;line-height:18px;min-width:22px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:10px;margin-left:auto}.resource-status{color:var(--muted);font-size:11px;line-height:1.6;padding:0 10px}.sidebar-bottom .resource-status button{font-size:11px;color:var(--accent);padding:4px 0}.dialog .artifact-filter{display:flex;flex-direction:row;align-items:center;gap:12px;margin-bottom:18px;font-size:13px}.artifact-filter select{background:var(--surface);color:inherit;border:1px solid var(--line);border-radius:8px;padding:8px}@media(max-width:600px){.resource-list>li{flex-direction:column;align-items:stretch}.resource-toolbar strong{font-size:14px}.resource-actions{justify-content:flex-start}.sidebar-bottom>button:has(.approval-count){position:relative}.approval-count{position:absolute;right:0;top:0;min-width:17px;font-size:10px}.resource-status{font-size:10px;padding:2px}.sidebar-bottom .resource-status button{font-size:10px}}
