:root{color:#20231f;background:#f4f6f3;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #f4f6f3;--surface: #ffffff;--surface-muted: #f7f8f6;--line: #e2e6e0;--line-strong: #cfd5cd;--text: #20231f;--muted: #70776d;--faint: #9aa196;--accent: #327454;--accent-strong: #245f43;--accent-soft: #e7f1eb;--amber: #a36416;--amber-soft: #fbf1df;--red: #b2463d;--red-soft: #fbeae8;--sidebar-width: 276px;--inspector-width: 370px}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overscroll-behavior:none}html{overflow:hidden;background:var(--bg)}body{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden;touch-action:manipulation}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}button,input,textarea,select{font:inherit;letter-spacing:0}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid rgba(50,116,84,.35);outline-offset:1px}.app-shell{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr) var(--inspector-width);width:100%;height:100dvh;overflow:hidden;background:var(--bg)}.sidebar-wrap,.inspector,.workspace{min-width:0;min-height:0}.sidebar-wrap{position:relative;border-right:1px solid var(--line);background:var(--surface-muted);z-index:20}.sidebar{display:flex;flex-direction:column;height:100%}.sidebar-brand{display:flex;align-items:center;gap:10px;min-height:calc(60px + env(safe-area-inset-top));padding:calc(10px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left));border-bottom:1px solid var(--line)}.brand-mark{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:7px;color:#fff;background:#25362d;box-shadow:inset 0 0 0 1px #ffffff14}.brand-mark.large{width:46px;height:46px;border-radius:8px}.brand-copy{display:flex;flex-direction:column;line-height:1.1}.brand-copy strong{font-size:14px}.brand-copy span{margin-top:3px;color:var(--muted);font-size:11px}.icon-button{display:inline-grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid transparent;border-radius:6px;color:var(--muted);background:transparent;cursor:pointer}.icon-button:hover{color:var(--text);background:#ecefec}.icon-button.small{width:28px;height:28px}.sidebar-brand>.icon-button{margin-left:auto}.sidebar-section{padding:14px 10px 0}.section-heading{display:flex;align-items:center;min-height:28px;padding:0 7px 7px;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase}.section-heading .icon-button,.section-heading .count{margin-left:auto}.section-heading .count{color:var(--faint);font-weight:600}.project-list{display:flex;flex-direction:column;gap:2px;max-height:166px;overflow-y:auto;overscroll-behavior:none;-webkit-overflow-scrolling:touch}.project-row,.thread-row,.new-task-button,.file-row{display:flex;align-items:center;width:100%;border:0;background:transparent;cursor:pointer;text-align:left}.project-row{gap:9px;min-height:36px;padding:7px 9px;border-radius:6px;color:#50574e;font-size:13px}.project-row:hover,.project-row.active{background:#e9ede8;color:var(--text)}.project-row.active{font-weight:650}.project-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dirty-dot{width:6px;height:6px;margin-left:auto;border-radius:50%;background:var(--amber)}.threads-section{display:flex;flex:1;min-height:0;flex-direction:column;padding-bottom:8px}.new-task-button{justify-content:center;gap:7px;min-height:36px;margin-bottom:8px;border:1px solid var(--line-strong);border-radius:6px;color:#3d443b;background:var(--surface);font-size:13px;font-weight:650}.new-task-button:hover{border-color:#aeb7ac;background:#fbfcfb}.new-task-button:disabled{opacity:.45;cursor:default}.search-field{display:flex;align-items:center;gap:7px;min-height:34px;margin-bottom:7px;padding:0 9px;border:1px solid var(--line);border-radius:6px;color:var(--faint);background:#ffffffb8}.search-field:focus-within{border-color:#a8b9ab;background:var(--surface)}.search-field input{min-width:0;width:100%;border:0;outline:0;color:var(--text);background:transparent;font-size:12px}.thread-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:none;-webkit-overflow-scrolling:touch}.thread-entry{position:relative;border-radius:6px}.thread-row{gap:8px;min-height:50px;padding:7px 66px 7px 8px;border-radius:6px;color:var(--muted)}.thread-row:hover,.thread-row.active{color:var(--text);background:#e9ede8}.thread-row>svg{flex:0 0 auto}.thread-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}.thread-copy strong{overflow:hidden;color:inherit;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.thread-copy small{color:var(--faint);font-size:10px}.thread-spinner{flex:0 0 auto;color:var(--accent)}.thread-actions{position:absolute;top:50%;right:5px;display:flex;align-items:center;gap:2px;padding-left:12px;opacity:0;pointer-events:none;transform:translateY(-50%);transition:opacity .12s ease}.thread-entry:hover .thread-actions,.thread-entry:focus-within .thread-actions{opacity:1;pointer-events:auto}.thread-entry:hover .thread-actions,.thread-entry.active .thread-actions{background:linear-gradient(to right,#e9ede800,#e9ede8 12px)}.thread-actions button{display:grid;width:25px;height:25px;place-items:center;padding:0;border:0;border-radius:5px;color:var(--muted);background:transparent;cursor:pointer}.thread-actions button:hover{color:var(--text);background:#ffffffbf}.thread-actions button.delete:hover{color:var(--red);background:var(--red-soft)}.thread-actions button:disabled{color:var(--faint);background:transparent;cursor:default;opacity:.45}.muted-row{padding:12px 9px;color:var(--faint);font-size:12px}.sidebar-footer{display:flex;align-items:center;gap:8px;min-height:calc(42px + env(safe-area-inset-bottom));padding:0 max(17px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(17px,env(safe-area-inset-left));border-top:1px solid var(--line);color:var(--muted);font-size:10px}.connection-dot{width:7px;height:7px;border-radius:50%;background:#b4bab1}.connection-dot.online{background:#3e9468;box-shadow:0 0 0 3px #3e94681a}.workspace{display:flex;flex-direction:column;background:var(--surface)}.workspace-header{display:flex;align-items:center;gap:10px;min-height:calc(60px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(17px,env(safe-area-inset-right)) 0 max(17px,env(safe-area-inset-left));border-bottom:1px solid var(--line);background:#fffffff5}.workspace-title{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.workspace-title strong{overflow:hidden;font-size:14px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.workspace-title span{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:10px}.header-actions{display:flex;align-items:center;gap:4px}.runtime-status{display:flex;align-items:center;gap:5px;margin-right:5px;color:var(--muted);font-size:10px}.runtime-status.ready{color:var(--accent)}.conversation{position:relative;display:flex;min-height:0;flex:1;flex-direction:column}.messages{flex:1;overflow-y:auto;padding:34px max(24px,calc((100% - 820px)/2)) 180px;overflow-anchor:none;overscroll-behavior:none;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}.messages-content{width:100%;min-height:100%}.turn{width:100%}.message{width:100%;margin:0 auto 24px}.user-message{display:flex;justify-content:flex-end}.user-bubble{max-width:min(75%,620px);padding:10px 13px;border-radius:8px 8px 2px;color:#30352f;background:#edf0ec;font-size:15px;line-height:1.65}.user-text{white-space:pre-wrap;overflow-wrap:anywhere}.user-attachment-list{display:flex;max-width:100%;flex-wrap:wrap;justify-content:flex-end;gap:7px}.user-text+.user-attachment-list{margin-top:9px}.user-attachment-list img{display:block;width:min(280px,100%);max-height:280px;border:1px solid #d7dcd5;border-radius:6px;background:#fff;object-fit:contain}.user-file{display:inline-flex;min-width:0;max-width:280px;align-items:center;gap:6px;padding:6px 8px;border:1px solid #d7dcd5;border-radius:5px;background:#ffffffb8;font-size:11px}.user-file svg{flex:0 0 auto}.user-file{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assistant-turn{display:grid;grid-template-columns:28px minmax(0,1fr);gap:11px}.assistant-stack{min-width:0}.agent-avatar{display:grid;place-items:center;width:28px;height:28px;margin-top:2px;border:1px solid var(--line);border-radius:6px;color:var(--accent);background:var(--surface-muted)}.agent-avatar.active{border-color:#a9c0b0;color:var(--accent-strong);animation:avatar-active 1.8s ease-in-out infinite}@keyframes avatar-active{50%{box-shadow:0 0 0 3px #32745414}}.assistant-copy+.assistant-copy{margin-top:12px}.markdown-body{min-width:0;color:#292d28;font-size:16px;line-height:1.75}.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3{margin:1.5em 0 .65em;line-height:1.3}.markdown-body h1{font-size:23px}.markdown-body h2{font-size:20px}.markdown-body h3{font-size:17px}.markdown-body p{margin:.75em 0}.markdown-body ul,.markdown-body ol{padding-left:1.5em}.markdown-body pre,.tool-block pre,.file-preview pre{overflow:auto;margin:10px 0;padding:12px;border:1px solid #252a25;border-radius:6px;color:#e6ebe5;background:#1d211d;font:13px/1.65 SFMono-Regular,Consolas,Liberation Mono,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.markdown-body code{font-family:SFMono-Regular,Consolas,monospace;font-size:.9em}.markdown-body .inline-code{padding:2px 4px;border-radius:4px;color:#7b4812;background:#f4eee5}.markdown-body pre .inline-code{padding:0;color:inherit;background:transparent}.markdown-body table{width:100%;border-collapse:collapse}.markdown-body th,.markdown-body td{padding:7px 9px;border:1px solid var(--line);text-align:left}.markdown-body a{color:var(--accent-strong)}.tool-block{margin:0 0 14px;border:1px solid var(--line);border-radius:6px;background:var(--surface-muted);font-size:12px}.tool-block summary{display:flex;align-items:center;gap:8px;min-height:36px;padding:8px 10px;cursor:pointer;list-style:none}.tool-block summary::-webkit-details-marker{display:none}.tool-block summary code{min-width:0;flex:1;overflow:hidden;color:#4b5149;font:12px/1.4 SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.tool-block pre{max-height:260px;margin:0;border-width:1px 0 0;border-radius:0}.tool-meta{padding:7px 10px;border-top:1px solid var(--line);color:var(--faint);font-size:11px}.tool-status{display:grid;place-items:center;color:var(--faint)}.tool-status.inProgress{color:var(--amber)}.tool-status.completed{color:var(--accent)}.tool-line{display:flex;align-items:center;gap:8px;min-height:35px;margin:0 0 10px;padding:7px 10px;border-left:2px solid var(--line-strong);color:var(--muted);font-size:12px}.tool-line span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.context-note{margin:8px 0 12px;color:var(--faint);font-size:11px}.turn-progress{display:flex;min-height:28px;align-items:center;gap:7px;color:var(--muted);font-size:12px}.empty-state{display:flex;min-height:42vh;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);text-align:center}.empty-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:15px;border:1px solid var(--line);border-radius:8px;color:var(--accent);background:var(--surface-muted)}.empty-state h2{margin:0;color:#454b43;font-size:16px}.empty-state p{max-width:90%;margin:8px 0 0;overflow:hidden;color:var(--faint);font:10px SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.plan-bar{position:absolute;top:12px;left:50%;z-index:5;width:min(520px,calc(100% - 32px));transform:translate(-50%);border:1px solid var(--line);border-radius:6px;background:#fffffff5;box-shadow:0 7px 24px #20231f14}.plan-bar summary{display:flex;align-items:center;gap:8px;min-height:38px;padding:8px 11px;color:var(--muted);cursor:pointer;list-style:none;font-size:11px}.plan-bar summary::-webkit-details-marker{display:none}.plan-bar summary strong{margin-left:auto;color:var(--accent)}.plan-items{padding:2px 10px 9px}.plan-item{display:flex;align-items:center;gap:8px;min-height:26px;color:var(--muted);font-size:10px}.plan-item.completed{color:var(--faint);text-decoration:line-through}.plan-item.inProgress{color:var(--text)}.composer-wrap{position:absolute;right:0;bottom:0;left:0;z-index:6;padding:30px max(20px,calc((100% - 820px)/2)) max(18px,env(safe-area-inset-bottom));background:linear-gradient(to bottom,#fff0,#fff 28%,#fff)}.composer{overflow:hidden;border:1px solid #ccd3ca;border-radius:8px;background:#fff;box-shadow:0 10px 34px #1e261f1a}.composer:focus-within{border-color:#8ea694;box-shadow:0 10px 34px #1e261f1a,0 0 0 3px #32745412}.composer.dragging{border-color:var(--accent);box-shadow:0 10px 34px #1e261f1a,inset 0 0 0 2px #3274541f}.composer-attachments{display:flex;max-width:100%;gap:7px;overflow-x:auto;padding:10px 10px 2px;overscroll-behavior:none;-webkit-overflow-scrolling:touch}.composer-attachment{position:relative;display:grid;width:178px;height:48px;min-width:178px;grid-template-columns:38px minmax(0,1fr) 24px;align-items:center;gap:7px;padding:4px 4px 4px 7px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:var(--surface-muted)}.composer-attachment>img{display:block;width:38px;height:38px;border-radius:4px;background:#fff;object-fit:cover}.composer-attachment>svg{justify-self:center}.attachment-copy{display:flex;min-width:0;flex-direction:column;gap:3px}.attachment-copy strong{overflow:hidden;color:#454b43;font-size:10px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.attachment-copy small{color:var(--faint);font-size:9px}.composer-attachment button{display:grid;width:22px;height:22px;place-items:center;padding:0;border:0;border-radius:4px;color:var(--faint);background:transparent;cursor:pointer}.composer-attachment button:hover{color:var(--red);background:var(--red-soft)}.composer-attachment button:disabled{cursor:default;opacity:.5}.composer textarea{display:block;width:100%;min-height:55px;max-height:180px;resize:none;padding:14px 15px 8px;border:0;outline:0;color:var(--text);background:transparent;font-size:16px;line-height:1.6}.composer textarea::placeholder{color:#a4aaa1}.composer-error{padding:0 14px 5px;color:var(--red);font-size:10px;overflow-wrap:anywhere}.composer-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:5px 7px 7px 11px}.composer-options{display:flex;min-width:0;gap:4px}.attach-button{width:28px;height:28px;flex:0 0 28px;border-color:var(--line);background:var(--surface-muted)}.attach-button:disabled{cursor:default;opacity:.45}.composer select{max-width:160px;height:28px;padding:0 24px 0 7px;border:0;border-radius:5px;color:var(--muted);background:#f4f6f3;font-size:10px}.composer-actions{display:flex;gap:5px}.send-button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:6px;color:#fff;background:var(--accent);cursor:pointer}.send-button:hover{background:var(--accent-strong)}.send-button:disabled{color:#aeb4ab;background:#e5e8e3;cursor:default}.stop-button{color:var(--red);background:var(--red-soft)}.toast-error{position:absolute;right:24px;bottom:142px;z-index:8;display:flex;align-items:center;gap:10px;max-width:min(480px,calc(100% - 48px));padding:9px 10px 9px 12px;border:1px solid #efc3bd;border-radius:6px;color:#8b342e;background:#fff7f6;box-shadow:0 8px 24px #5a1e181a;font-size:11px}.toast-error span{min-width:0;flex:1;overflow-wrap:anywhere}.toast-error button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;color:inherit;background:transparent;cursor:pointer}.inspector{position:relative;display:flex;flex-direction:column;border-left:1px solid var(--line);background:var(--surface-muted);z-index:25}.panel-resizer{position:absolute;top:0;bottom:0;z-index:40;width:7px;outline:0;cursor:col-resize;touch-action:none}.panel-resizer:after{position:absolute;top:0;bottom:0;left:3px;width:1px;background:transparent;content:"";transition:background .12s ease,box-shadow .12s ease}.panel-resizer:hover:after,.panel-resizer:focus-visible:after{background:var(--accent);box-shadow:0 0 0 1px #3274541f}.sidebar-resizer{right:-4px}.inspector-resizer{left:-4px}body.panel-resizing,body.panel-resizing *{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}.inspector-header{display:flex;align-items:center;min-height:calc(60px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));border-bottom:1px solid var(--line);background:var(--surface)}.inspector-tabs{display:flex;flex:1;gap:2px}.inspector-tabs button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;flex:1;height:32px;padding:0 7px;border:0;border-radius:5px;color:var(--muted);background:transparent;cursor:pointer;font-size:10px}.inspector-tabs button:hover{background:var(--surface-muted)}.inspector-tabs button.active{color:var(--accent-strong);background:var(--accent-soft);font-weight:700}.inspector-content{min-height:0;flex:1;overflow:auto;overscroll-behavior:none;-webkit-overflow-scrolling:touch}.inspector-empty{display:flex;min-height:180px;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:var(--faint);font-size:11px}.inspector-error{margin:10px;padding:9px;border-radius:6px;color:var(--red);background:var(--red-soft);font-size:10px}.diff-view{min-height:100%;margin:0;padding:14px 0 40px;color:#51574f;background:#fbfcfb;font:10px/1.62 SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.diff-view span{display:block;min-height:16px;padding:0 12px}.diff-view .add{color:#1d6643;background:#e8f4ec}.diff-view .remove{color:#98433b;background:#fbecea}.diff-view .hunk{color:#705718;background:#fbf4de}.file-row{gap:8px;min-height:38px;padding:7px 12px;border-bottom:1px solid #ebeeea;color:#545b52;font-size:11px}.file-row:hover{color:var(--text);background:#eef1ed}.file-row span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-browser{position:relative;min-height:100%}.file-browser-toolbar{position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:3px;min-height:40px;padding:5px 7px 5px 11px;border-bottom:1px solid var(--line);background:#fffffff5;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.file-browser-toolbar>span{min-width:0;flex:1;overflow:hidden;color:var(--muted);font:10px/1.4 SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.file-upload-progress{display:grid;grid-template-columns:auto minmax(50px,1fr) auto;align-items:center;gap:8px;min-height:34px;padding:6px 11px;border-bottom:1px solid var(--line);color:var(--muted);background:var(--surface);font-size:9px}.file-upload-progress>div{height:4px;overflow:hidden;border-radius:3px;background:#e2e6e0}.file-upload-progress i{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .12s linear}.file-upload-progress strong{color:var(--text);font-weight:600;white-space:nowrap}.file-drop-overlay{position:absolute;top:6px;right:6px;bottom:6px;left:6px;z-index:10;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;border:1px dashed #7aa38b;border-radius:6px;color:var(--accent-strong);background:#eff7f2f5;pointer-events:none}.file-drop-overlay strong{max-width:calc(100% - 30px);overflow:hidden;font:11px/1.4 SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.file-preview{display:flex;height:100%;flex-direction:column}.file-back{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 11px;border:0;border-bottom:1px solid var(--line);color:var(--muted);background:var(--surface);cursor:pointer;font-size:10px}.file-back span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-preview pre{flex:1;min-height:0;margin:0;border:0;border-radius:0;color:#333833;background:#fbfcfb;font-size:10px;white-space:pre}.git-heading{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 12px;border-bottom:1px solid var(--line);background:var(--surface)}.git-heading>div{display:flex;align-items:center;gap:7px;color:var(--accent)}.git-heading strong{color:var(--text);font-size:11px}.git-status{margin:0;padding:14px;color:#4b5149;font:10px/1.65 SFMono-Regular,Consolas,monospace;white-space:pre-wrap}.login-shell,.boot-screen{display:grid;width:100%;height:100dvh;place-items:center;background:#f2f4f1}.boot-screen{display:flex;gap:15px;color:var(--accent)}.login-panel{display:flex;width:min(360px,calc(100% - 36px));flex-direction:column;padding:32px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 18px 55px #222a2317}.login-panel .brand-mark{margin-bottom:20px}.login-panel h1{margin:0;font-size:20px}.login-panel p{margin:6px 0 24px;color:var(--muted);font-size:11px}.field-label{margin:0 0 7px;color:#596057;font-size:11px;font-weight:650}.field-label span{color:var(--faint);font-weight:500}.login-panel input,.dialog input{width:100%;height:40px;padding:0 11px;border:1px solid var(--line-strong);border-radius:6px;color:var(--text);background:#fbfcfb;font-size:12px}.login-button{width:100%;margin-top:14px}.enter-icon{transform:rotate(180deg)}.form-error{margin-top:9px;color:var(--red);font-size:10px}.primary-button,.text-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 15px;border-radius:6px;cursor:pointer;font-size:12px;font-weight:650}.primary-button{border:0;color:#fff;background:var(--accent)}.primary-button:hover{background:var(--accent-strong)}.primary-button:disabled{opacity:.5;cursor:default}.text-button{border:1px solid var(--line);color:var(--muted);background:var(--surface)}.danger-button{border:0;color:#fff;background:var(--red)}.danger-button:hover{background:#963a33}.danger-button:disabled{opacity:.5;cursor:default}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:18px;background:#191d1952;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.dialog{display:flex;width:min(440px,100%);flex-direction:column;padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 24px 70px #14191533}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.dialog-header>div{display:flex;align-items:center;gap:9px}.dialog-header svg{color:var(--accent)}.dialog-header h2{margin:0;font-size:16px}.dialog input{margin-bottom:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.delete-dialog .dialog-header svg{color:var(--red)}.dialog-copy{display:flex;flex-direction:column;gap:8px;margin:-4px 0 20px}.dialog-copy p{margin:0;color:var(--muted);font-size:12px}.dialog-copy strong{overflow:hidden;padding:9px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.dialog-copy small{color:var(--red);font-size:10px}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.mobile-only,.mobile-scrim{display:none}html[data-theme=dark]{color:#e7ece7;background:#151915;--bg: #151915;--surface: #1d221e;--surface-muted: #191e1a;--line: #303730;--line-strong: #424b42;--text: #e7ece7;--muted: #a6afa5;--faint: #7d877e;--accent: #69bd8e;--accent-strong: #8bd1aa;--accent-soft: #263b2e;--amber: #e0a64d;--amber-soft: #3e301b;--red: #e47b72;--red-soft: #432622}html[data-theme=dark] body,html[data-theme=dark] .app-shell,html[data-theme=dark] .workspace,html[data-theme=dark] .sidebar-wrap,html[data-theme=dark] .inspector{background:var(--bg)}html[data-theme=dark] .sidebar,html[data-theme=dark] .inspector-content{background:var(--surface-muted)}html[data-theme=dark] .workspace-header,html[data-theme=dark] .inspector-header,html[data-theme=dark] .file-browser-toolbar,html[data-theme=dark] .file-upload-progress,html[data-theme=dark] .git-heading,html[data-theme=dark] .file-back{background:#1d221ef5}html[data-theme=dark] .icon-button:hover,html[data-theme=dark] .project-row:hover,html[data-theme=dark] .project-row.active,html[data-theme=dark] .thread-row:hover,html[data-theme=dark] .thread-row.active,html[data-theme=dark] .file-row:hover{color:var(--text);background:#283029}html[data-theme=dark] .thread-entry:hover .thread-actions,html[data-theme=dark] .thread-entry.active .thread-actions{background:linear-gradient(to right,#28302900,#283029 12px)}html[data-theme=dark] .thread-actions button:hover{background:#343d35}html[data-theme=dark] .new-task-button,html[data-theme=dark] .search-field,html[data-theme=dark] .user-file{border-color:var(--line);color:var(--text);background:var(--surface)}html[data-theme=dark] .new-task-button:hover,html[data-theme=dark] .search-field:focus-within{border-color:#586459;background:#242a25}html[data-theme=dark] .user-bubble{color:var(--text);background:#2b322c}html[data-theme=dark] .user-attachment-list img,html[data-theme=dark] .composer-attachment>img{border-color:var(--line);background:var(--surface)}html[data-theme=dark] .markdown-body,html[data-theme=dark] .empty-state h2,html[data-theme=dark] .attachment-copy strong{color:var(--text)}html[data-theme=dark] .markdown-body .inline-code{color:#efbd7c;background:#382e22}html[data-theme=dark] .tool-block summary code{color:#c7cec7}html[data-theme=dark] .plan-bar{background:#1d221ef7;box-shadow:0 7px 24px #00000042}html[data-theme=dark] .composer-wrap{background:linear-gradient(to bottom,rgba(29,34,30,0),var(--surface) 28%,var(--surface))}html[data-theme=dark] .composer{border-color:#465047;background:var(--surface);box-shadow:0 10px 34px #00000047}html[data-theme=dark] .composer textarea::placeholder{color:var(--faint)}html[data-theme=dark] .composer select{color:var(--muted);background:#292f2a}html[data-theme=dark] .send-button:disabled{color:#6f776f;background:#303630}html[data-theme=dark] .toast-error{border-color:#69433d;color:#f0aaa3;background:#352320;box-shadow:0 8px 24px #00000040}html[data-theme=dark] .diff-view,html[data-theme=dark] .file-preview pre,html[data-theme=dark] .git-status{color:#c4ccc4;background:#171b18}html[data-theme=dark] .diff-view .add{color:#8fd1aa;background:#203629}html[data-theme=dark] .diff-view .remove{color:#eba099;background:#3a2522}html[data-theme=dark] .diff-view .hunk{color:#e5c47e;background:#332d1f}html[data-theme=dark] .file-row{border-color:#29302a;color:var(--muted)}html[data-theme=dark] .file-drop-overlay{border-color:#5d9f78;color:var(--accent-strong);background:#1f3126f7}html[data-theme=dark] .login-shell,html[data-theme=dark] .boot-screen{background:var(--bg)}html[data-theme=dark] .login-panel,html[data-theme=dark] .dialog{border-color:var(--line);background:var(--surface);box-shadow:0 18px 55px #00000052}html[data-theme=dark] input{border-color:var(--line-strong);color:var(--text);background:#171b18}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:8px;background:#c8cec5;background-clip:padding-box}::-webkit-scrollbar-thumb:hover{background:#afb6ac;background-clip:padding-box}@media(max-width:1180px){:root{--inspector-width: 330px;--sidebar-width: 255px}.messages{padding-right:24px;padding-left:24px}.composer-wrap{padding-right:20px;padding-left:20px}}@media(max-width:920px){.app-shell{display:block}.mobile-only{display:inline-grid}.desktop-logout{display:none}.workspace{width:100%;height:100%}.sidebar-wrap{position:fixed;inset:0 auto 0 0;width:min(310px,86vw);transform:translate(-105%);box-shadow:14px 0 45px #191e1a2e;transition:transform .18s ease}.sidebar-wrap.mobile-open{transform:translate(0)}.inspector{position:fixed;inset:0 0 0 auto;width:min(430px,92vw);transform:translate(105%);box-shadow:-14px 0 45px #191e1a2e;transition:transform .18s ease}.inspector.mobile-open{transform:translate(0)}.panel-resizer{display:none}.mobile-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:15;background:#14181547;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.mobile-scrim.visible{display:block}.workspace-header{min-height:calc(54px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left))}.runtime-status span{display:none}.messages{padding:26px 16px 172px}.composer-wrap{padding:26px max(11px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(11px,env(safe-area-inset-left))}.user-bubble{max-width:88%}.toast-error{right:12px;bottom:132px;max-width:calc(100% - 24px)}.inspector-header{min-height:calc(54px + env(safe-area-inset-top))}.thread-actions{opacity:1;pointer-events:auto}.composer-wrap:focus-within{padding-top:9px;padding-bottom:3px}.composer textarea{min-height:42px;padding-top:10px;padding-bottom:4px}.composer-toolbar{min-height:38px;padding-top:3px;padding-bottom:4px}}@media(max-width:560px){.messages{padding-right:12px;padding-left:12px}.assistant-turn{grid-template-columns:24px minmax(0,1fr);gap:8px}.agent-avatar{width:24px;height:24px}.user-bubble,.markdown-body{font-size:16px}.tool-block summary code{font-size:11px}.composer select{max-width:120px}.composer select:nth-child(2){max-width:70px}.plan-bar{top:8px}}
