:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;color:#202d28;background:#f6f7f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.45;cursor:not-allowed}[hidden]{display:none!important}.login{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 80% 10%,#e5eee4,transparent 43%),#f6f7f4}.login-card{width:min(100%,430px);padding:38px;background:#fff;border:1px solid #e4eae2;border-radius:22px;box-shadow:0 20px 70px #1e3b2b0c}.mark,.small-mark{background:#264c3c;color:white;display:grid;place-items:center;font-weight:800;position:relative}.mark{width:52px;height:52px;border-radius:16px;font-size:25px;margin-bottom:45px}.mark span,.small-mark span{position:absolute;color:#b9dc9f;font-size:12px;right:6px;top:4px}.eyebrow{font-size:10px;letter-spacing:.17em;color:#6e8c7c;font-weight:800;margin:0 0 10px}h1{font-size:32px;letter-spacing:-.04em;line-height:1.24;margin:0}h2{margin:0;font-size:23px}.muted{color:#819087;font-size:14px;line-height:1.7}.login .muted{margin:18px 0 34px}label{display:block;font-weight:700;font-size:13px;margin:18px 0 9px}input,textarea{width:100%;border:1px solid #dce5dc;border-radius:10px;background:#fbfcfa;color:#24342c;padding:13px;outline:none;resize:vertical}input:focus,textarea:focus{border-color:#739a7d;box-shadow:0 0 0 3px #dcebe0}.primary{background:#294e3d;color:white;padding:13px 18px;border-radius:10px;font-weight:700}.primary:hover{background:#38654d}.login .primary{width:100%;margin-top:16px;text-align:left;display:flex;justify-content:space-between}.login-footer{font-size:12px;color:#a3aea6;border-top:1px solid #edf0ed;margin-top:32px;padding-top:20px}.error{color:#b8463e;font-size:13px;min-height:1em}header{height:72px;display:flex;align-items:center;gap:12px;padding:0 max(24px,calc((100vw - 1000px)/2));background:#fff;border-bottom:1px solid #e8ece7}.brand{display:flex;gap:10px;align-items:center}.small-mark{width:38px;height:38px;border-radius:12px}.small-mark span{font-size:9px}.brand strong,.brand small{display:block}.brand strong{font-size:14px}.brand small{font-size:9px;letter-spacing:.13em;color:#9baaa0;margin-top:3px}.connection{margin-left:auto;font-size:12px;color:#789283;white-space:nowrap}.connection i{display:inline-block;background:#83b77d;width:7px;height:7px;border-radius:50%;margin-right:4px}main{max-width:1000px;margin:auto;padding:52px 24px 100px}.intro,.chat-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}.intro h1 span{color:#95bf8d;font-size:18px;margin-left:12px}.intro .muted{margin-bottom:0}.compact{white-space:nowrap}.notice{background:#ebf1e8;border:1px solid #dfe9dc;border-radius:14px;padding:17px 20px;margin:30px 0;color:#496451;font-size:13px}.notice p{margin:5px 0 0;line-height:1.6}.section-title{display:flex;justify-content:space-between;align-items:center;font-weight:750;margin-bottom:14px}.text-button{background:none;color:#648370;font-size:13px}.thread-list{display:grid;gap:10px}.thread{display:flex;width:100%;text-align:left;align-items:center;gap:16px;padding:19px;background:white;border:1px solid #e7ece5;border-radius:14px;color:inherit}.thread:hover{border-color:#abc5ad}.thread-icon{width:40px;height:40px;flex:none;border-radius:12px;background:#f0f5ee;color:#61836a;display:grid;place-items:center;font-size:18px}.thread-main{min-width:0;flex:1}.thread-title{font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-meta{font-size:12px;color:#9ba9a0;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{font-size:11px;color:#729077;background:#eff5ed;border-radius:20px;padding:6px 9px;white-space:nowrap}.arrow{color:#b4c1b5}.icon{background:#f2f5f0;border-radius:9px;width:34px;height:34px;color:#597363;font-size:18px}.chat-heading h1{font-size:25px}.chat-heading .muted{margin-bottom:0}.messages{margin-top:25px;display:grid;gap:14px}.message{background:white;border:1px solid #e7ece5;border-radius:15px;padding:18px;max-width:92%;overflow-wrap:anywhere}.message.user{background:#eaf1e9;margin-left:auto}.message .who{font-size:11px;color:#76927e;font-weight:700;margin-bottom:9px}.message .body{white-space:pre-wrap;font-size:14px;line-height:1.7}.event{color:#8a9a90;font-size:12px;padding:0 10px;overflow-wrap:anywhere}.composer{margin-top:24px;background:white;padding:12px;border:1px solid #dfe8df;border-radius:15px}.composer textarea{background:white;border:0;resize:vertical;box-shadow:none}.compose-bottom{display:flex;justify-content:space-between;align-items:center;padding:0 3px 3px}.compose-bottom span{font-size:12px;color:#a0aaa3}dialog{border:0;border-radius:20px;width:min(92vw,480px);padding:26px;box-shadow:0 20px 90px #14251d40}dialog::backdrop{background:#1d302680}.modal-top{display:flex;justify-content:space-between;align-items:start}.wide{width:100%}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#233a2d;color:white;border-radius:8px;padding:10px 16px;font-size:13px;display:none;max-width:90vw}@media(max-width:600px){header{height:64px;padding:0 18px}main{padding:34px 16px 80px}.intro h1{font-size:28px}.compact{padding:12px;font-size:13px}.notice{margin:24px 0}.thread{padding:15px;gap:11px}.badge{font-size:10px}.login-card{padding:30px}.chat-heading h1{font-size:21px}.connection{font-size:11px}}
/* A quieter, conversation-first workspace inspired by desktop chat apps. */
:root{color:#262626;background:#fff}header{background:#fff;border-color:#ededed}header .small-mark{background:#171717;color:#fff;border-radius:50%}.small-mark span{color:#fff}main{max-width:840px;padding-top:42px}.intro h1{font-size:28px}.intro h1 span{display:none}.eyebrow{color:#969696;letter-spacing:.1em}.primary{background:#171717}.primary:hover{background:#333}.notice{background:#f7f7f7;border-color:#eee;color:#666}.section-title{color:#676767;font-size:13px}.thread-list{gap:24px}.project-group{border-bottom:1px solid #efefef;padding-bottom:14px}.project-heading{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;margin:0 4px 8px}.project-count{margin-left:auto;color:#aaa;font-weight:400;font-size:12px}.thread{border:0;border-radius:9px;padding:12px 14px;background:#fff}.thread:hover{background:#f5f5f5}.thread-title{font-weight:500}.thread-meta{color:#aaa}.badge{background:#f4f4f4;color:#888}.badge.active{background:#eef7f0;color:#438254}.message{border:0;background:transparent;padding:16px 4px;max-width:100%}.message.user{background:#f3f3f3;border-radius:20px;padding:14px 18px;max-width:82%}.message .who{color:#666}.composer{border-color:#ddd;border-radius:22px;box-shadow:0 2px 10px #0000000b}.login .mark{background:#171717}.login .mark span{color:white}.icon{background:#f4f4f4;color:#444}.text-button{color:#777}.connection i{background:#63aa78}
/* Readable Markdown and compact execution details. */
.markdown{white-space:normal;line-height:1.75}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown p{margin:.65em 0}.markdown h1,.markdown h2,.markdown h3,.markdown h4{letter-spacing:0;line-height:1.4;margin:1.1em 0 .45em}.markdown h1{font-size:1.5em}.markdown h2{font-size:1.3em}.markdown h3{font-size:1.12em}.markdown ul,.markdown ol{padding-left:1.6em}.markdown li{margin:.3em 0}.markdown a{color:#2769ad;text-decoration:underline;overflow-wrap:anywhere}.markdown blockquote{border-left:3px solid #cbd3cd;color:#5c6660;margin:1em 0;padding:0 1em}.markdown code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#f2f3f1;border-radius:4px;padding:.12em .3em;font-size:.9em}.markdown pre{background:#f4f5f3;border-radius:10px;padding:14px;overflow:auto;white-space:pre}.markdown pre code{padding:0;background:transparent}.markdown table{border-collapse:collapse;display:block;max-width:100%;overflow-x:auto}.markdown th,.markdown td{border:1px solid #ddd;padding:8px 10px;text-align:left;min-width:75px}.markdown img{max-width:100%;height:auto}.command{border:1px solid #ededed;border-radius:10px;background:#fafafa;margin:0 4px;color:#777;font-size:12px;min-width:0}.command-summary{cursor:pointer;padding:9px 12px;user-select:none}.command-code,.command-output{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:12px;border-top:1px solid #e7e7e7;max-height:320px;overflow:auto;font-size:11px;line-height:1.5}.file-list{display:grid;gap:8px;margin-top:12px}.file-card{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f7f7f7;border:1px solid #ededed;border-radius:12px;padding:11px 12px}.file-label{display:flex;align-items:center;gap:9px;min-width:0}.file-icon{font-size:20px;color:#777}.file-name{font-size:13px;font-weight:600;overflow-wrap:anywhere}.file-actions{display:flex;gap:8px;flex-shrink:0}.file-action,.file-toolbar a{background:#fff;border:1px solid #ddd;border-radius:8px;padding:7px 10px;color:#444;text-decoration:none;font-size:12px}.file-dialog{width:min(95vw,1000px);max-width:none;height:min(90dvh,900px);max-height:none;padding:0;overflow:hidden}.file-toolbar{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid #ddd}.file-toolbar strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:auto}.file-toolbar .icon{flex:none}.file-dialog iframe{border:0;width:100%;height:calc(100% - 60px);background:#f2f2f2}.image-alt{color:#999}@media(max-width:600px){.file-card{align-items:flex-start;flex-wrap:wrap}.file-actions{margin-left:auto}.file-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0}}
.file-frame{height:calc(100% - 60px);overflow:auto;background:#eeeeec;padding:16px;text-align:center}.preview-status{color:#777;font-size:13px;padding:24px}.pdf-page{display:block;margin:0 auto 15px;background:#fff;box-shadow:0 2px 8px #0002;max-width:100%}.preview-image{max-width:100%;height:auto}.preview-text{text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;background:white;border-radius:8px;padding:20px;font-size:13px;line-height:1.6}
.command-group{margin:0 4px;border:1px solid #ededed;border-radius:10px;background:#fafafa;color:#777;font-size:12px}.command-group-items{display:grid;gap:6px;padding:0 8px 8px}.command-group-items .command{background:white}.preview-document{text-align:left;background:#fff;max-width:850px;margin:auto;padding:24px;border-radius:8px}
.sync-status{padding:9px 12px;margin-top:20px;border-radius:9px;background:#f6f6f6;color:#777;font-size:12px;line-height:1.5}.sync-status.running{background:#eff8f1;color:#3d7751}.activity{padding:12px;color:#538563}.back-projects{background:#f3f3f3;color:#444;border-radius:9px;padding:9px 12px;font-weight:600;font-size:12px;white-space:nowrap}.back-projects:hover{background:#e8e8e8}.compose-bottom{gap:8px}.compose-bottom span{flex:1}@media(max-width:480px){.compose-bottom span{display:none}.compose-bottom .primary{margin-left:auto}}
/* Responsive workspace */
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#202321;background:#fff}body{min-width:300px}header{position:sticky;top:0;z-index:20;height:62px;padding:0 20px;gap:14px;background:rgba(255,255,255,.96);border-bottom:1px solid #eceeeb;backdrop-filter:blur(14px)}.brand{gap:10px}.brand strong{font-size:14px;font-weight:700;letter-spacing:.01em}.brand small{font-size:9px;letter-spacing:.12em;color:#999}.small-mark{width:34px;height:34px}.connection{margin-left:auto;color:#8a938d;font-size:12px}.back-top{display:inline-flex;align-items:center;gap:6px;background:#f2f3f1;color:#303733;border:1px solid #e6e9e5;border-radius:10px;padding:9px 12px;font-size:13px;font-weight:650;white-space:nowrap}.back-top:hover{background:#e9ece8}.back-top:focus-visible,.thread:focus-visible,.primary:focus-visible{outline:2px solid #578b6d;outline-offset:2px}main{max-width:860px;padding:32px 22px 100px;margin:auto}.intro{align-items:center}.intro h1{font-size:25px;letter-spacing:-.025em}.intro .muted{margin:6px 0 0;font-size:13px}.eyebrow{font-size:10px;letter-spacing:.14em;color:#919994}.notice{margin:24px 0;padding:13px 16px;font-size:12px;border-radius:11px}.section-title{margin:0 0 12px;color:#747d76;font-size:12px}.thread-list{gap:18px}.project-group{border:0;padding:0}.project-heading{padding:4px 8px;font-size:13px;color:#626c65}.project-count{font-size:11px}.thread{padding:12px;border:1px solid transparent;gap:8px}.thread:hover,.thread.selected{background:#eff1ee;border-color:#e7eae6}.thread-title{font-size:14px;color:#252a26}.thread-meta{font-size:11px;margin-top:4px;color:#9aa39d}.badge{font-size:10px;padding:5px 7px}.badge.active{color:#41805a;background:#e5f3e9}.arrow{font-size:17px;color:#adb4ae}.chat-heading{align-items:flex-start;gap:12px}.chat-heading h1{font-size:22px;font-weight:700;line-height:1.35;letter-spacing:-.02em;overflow-wrap:anywhere}.chat-heading .muted{margin:5px 0 0;font-size:12px}.chat-heading .eyebrow{margin-bottom:6px}.chat-heading .text-button{flex:none;padding:7px}.sync-status{margin-top:16px;border-radius:9px;padding:9px 12px;font-size:11px}.messages{margin:20px 0 0;gap:12px;padding-bottom:175px}.message{max-width:100%;padding:12px 2px}.message.user{max-width:min(82%,640px);padding:13px 17px;border-radius:17px;background:#f2f3f1}.message .who{font-size:11px;margin-bottom:8px;color:#768079}.message .body{font-size:14px;line-height:1.8}.markdown h1{font-size:1.45em}.markdown h2{font-size:1.25em}.command,.command-group{margin:0;font-size:12px}.composer{position:fixed;z-index:10;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 32px),816px);margin:0;padding:9px 10px;background:#fff;border:1px solid #daddd9;border-radius:18px;box-shadow:0 8px 30px #17221a12}.composer textarea{min-height:47px;max-height:180px;padding:9px 10px;font-size:14px;line-height:1.5}.compose-bottom{padding:0 2px 2px;gap:8px}.compose-bottom span{font-size:11px;color:#9ba49c}.compose-bottom .primary{padding:10px 15px;border-radius:10px;font-size:13px}.empty-view{display:none}.activity{padding:9px;color:#608a6c}.file-card{background:#f8f9f7;border-color:#e8ebe7}#toast{z-index:80}
@media(min-width:900px){header{padding-left:20px}header .brand{width:265px}main{max-width:none;margin:0 0 0 300px;padding:32px clamp(24px,5vw,72px) 40px}.empty-view:not([hidden]){min-height:calc(100dvh - 160px);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:#252d27}.empty-view h1{font-size:24px;letter-spacing:-.03em}.empty-view p{color:#939c95;font-size:14px;margin:10px 0}.empty-symbol{display:grid;place-items:center;width:50px;height:50px;border-radius:17px;margin-bottom:20px;background:#eff3ef;color:#668a70;font-size:25px}#list-view,#list-view[hidden]{display:block!important;position:fixed;top:62px;left:0;bottom:0;width:300px;overflow-y:auto;overscroll-behavior:contain;padding:20px 12px 24px;background:#f8f9f7;border-right:1px solid #e8ebe7;z-index:15}#list-view .intro{display:block;padding:0 6px}#list-view .intro .eyebrow{display:none}#list-view .intro h1{font-size:15px;letter-spacing:0}#list-view .intro .muted{font-size:11px}#list-view .intro .primary{width:100%;margin-top:14px;text-align:center;padding:10px;font-size:12px}#list-view .notice{display:none}#list-view .section-title{margin:20px 8px 8px;font-size:11px}#list-view .thread-list{gap:14px}#list-view .project-heading{font-size:12px;margin:0 0 3px;padding:5px 8px}#list-view .thread{background:transparent;padding:9px 8px;border-radius:8px}#list-view .thread:hover,#list-view .thread.selected{background:#e9ede8;border-color:transparent}#list-view .thread-title{font-size:12px}#list-view .thread-meta{font-size:10px}#list-view .badge{font-size:9px;padding:4px 6px}#list-view .arrow{display:none}#chat-view{max-width:820px;margin:0 auto}#chat-view .composer{left:calc(300px + (100vw - 300px)/2);width:min(calc(100vw - 348px),820px)}.back-top{font-size:12px}}
@media(max-width:899px){header{padding:0 16px}.connection{font-size:11px}.empty-view{display:none!important}main{padding:24px 16px 100px}.messages{gap:10px;padding-bottom:164px}.chat-heading h1{font-size:19px}.chat-heading .eyebrow{font-size:9px}.chat-heading .muted{font-size:11px}.chat-heading .text-button{font-size:12px}.message .body{font-size:14px}.message.user{max-width:90%}.composer{width:calc(100% - 24px);bottom:max(10px,env(safe-area-inset-bottom))}.back-top{padding:8px 10px;font-size:12px}.back-top span{display:inline}.file-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0}}
@media(max-width:380px){header{gap:8px}.brand small{display:none}.connection{font-size:10px}.back-top{padding:8px;font-size:11px}.compose-bottom span{display:none}.compose-bottom .primary{margin-left:auto}}
/* Compact the conversation while retaining readable paragraphs and code. */
.messages{gap:6px}.message{padding:7px 2px}.message.user{padding:11px 15px}.message .who{margin-bottom:5px}.message .body.markdown{white-space:normal;line-height:1.65}.markdown p{margin:.4em 0}.markdown ul,.markdown ol{margin:.4em 0;padding-left:1.5em}.markdown li{margin:.18em 0}.markdown h1,.markdown h2,.markdown h3,.markdown h4{margin:.8em 0 .35em}.command-summary{padding:7px 10px}.command-group-items{gap:3px;padding:0 8px 8px}.tool-event{padding:5px 8px;color:#7b8a80;font-size:12px;overflow-wrap:anywhere}.tool-event.failed{color:#ad554d}.command-group:has(.failed)>summary{color:#a25049}.event.activity{padding:7px 4px}@media(max-width:899px){.messages{gap:6px}.message .body.markdown{line-height:1.6}}
/* Connection and delivery feedback */
.logout{padding:8px;color:#747d76;white-space:nowrap}.logout:hover{color:#252a26}.send-status{margin:0 4px 5px;padding:7px 9px;border-radius:8px;font-size:12px;line-height:1.45;background:#f3f5f3;color:#59635c}.send-status.success{background:#eef8f1;color:#39744b}.send-status.uncertain,.send-status.error{background:#fff5e8;color:#875c20}.send-status.sending{background:#edf3fb;color:#446786}@media(max-width:380px){.logout{padding:5px;font-size:11px}}
.source-switch{display:flex;gap:4px;padding:4px;background:#eff1ee;border-radius:10px;margin:18px 0 14px}.source-switch button{flex:1;background:transparent;border-radius:7px;padding:8px;color:#707970;font-size:12px;font-weight:650}.source-switch button.source-active{background:#fff;color:#202822;box-shadow:0 1px 4px #0001}.usage-status{color:#778078;font-size:12px;line-height:1.5;margin-top:10px;overflow-wrap:anywhere}.zcode-readonly{position:fixed;z-index:10;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 32px),816px);padding:13px 16px;background:#f7f7f3;border:1px solid #e5e9e2;border-radius:12px;color:#6e786d;font-size:12px;box-shadow:0 5px 20px #0001}@media(min-width:900px){.zcode-readonly{left:calc(300px + (100vw - 300px)/2);width:min(calc(100vw - 348px),820px)}}
.remote-launch{width:100%;text-align:left;margin:0 0 14px;padding:10px 12px;border:1px solid #dce5dc;border-radius:9px;background:#f5f8f4;color:#41644a;font-size:12px;font-weight:650}.remote-launch:hover{background:#eaf1e9}.remote-panel{position:fixed;z-index:30;inset:62px 0 0;background:#fff;display:flex;flex-direction:column}.remote-toolbar{display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 16px;border-bottom:1px solid #e6e9e6;font-size:12px;color:#758078}.remote-toolbar a{margin-left:auto;color:#456d52;text-decoration:none;white-space:nowrap}.remote-toolbar button{white-space:nowrap}.remote-panel iframe{border:0;flex:1;width:100%;min-height:0}@media(max-width:600px){.remote-toolbar{gap:6px;font-size:10px;padding:6px 10px}.remote-toolbar button{font-size:11px}.remote-toolbar a{font-size:10px}}
.zcode-readonly{display:flex;align-items:center;gap:12px;justify-content:space-between}.zcode-readonly span{line-height:1.5}.zcode-readonly button{flex:none;background:#263e2e;color:#fff;border-radius:8px;padding:9px 11px;font-size:12px;font-weight:650}@media(max-width:480px){.zcode-readonly{align-items:flex-start;flex-direction:column;gap:8px}.zcode-readonly button{align-self:flex-end}}
.notices-button{padding:8px;white-space:nowrap}.notices-button span:not(:empty){display:inline-block;background:#dfeee3;color:#396c48;border-radius:20px;padding:2px 6px;font-size:10px}.notice-entry{padding:12px 0;border-bottom:1px solid #edf0ec;font-size:13px;overflow-wrap:anywhere}.notice-meta{margin-top:5px;color:#8c968e;font-size:11px}#notices-list{max-height:55vh;overflow:auto}@media(max-width:380px){.notices-button{padding:4px;font-size:11px}}
.zcode-remote-entry{margin:12px 0 16px;padding:12px;border:1px solid #dce7dc;border-radius:10px;background:#f4f8f3;font-size:12px;line-height:1.5;color:#637266}.zcode-remote-entry strong,.zcode-remote-entry span{display:block}.zcode-remote-entry strong{color:#304b38;margin-bottom:3px}.zcode-remote-entry a,.zcode-readonly a{display:inline-block;margin-top:8px;color:#245c36;font-weight:700;text-decoration:none}.zcode-readonly a{white-space:nowrap;margin:0;padding:8px 10px;background:#294e3d;color:#fff;border-radius:8px}
.quota-panel{margin:18px 0 0;padding:12px;border:1px solid #e6eae5;border-radius:11px;background:#fff;font-size:12px}.quota-title,.quota-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.quota-title strong{font-size:12px}.quota-title button{padding:2px 4px;font-size:15px}.quota-content{display:grid;gap:11px;margin-top:8px}.quota-provider-name{font-size:11px;font-weight:700;color:#525e55;margin-bottom:5px}.quota-line{font-size:11px;color:#646e66}.quota-line strong{color:#397a50;white-space:nowrap}.quota-line.low strong{color:#bb7235}.quota-bar{height:5px;border-radius:5px;background:#edf0ed;overflow:hidden;margin:5px 0}.quota-bar i{display:block;height:100%;border-radius:5px;background:#7aaf89}.quota-line.low+.quota-bar i{background:#d9a05e}.quota-muted,.quota-note{font-size:10px;color:#929c94;line-height:1.5}.quota-note{margin:10px 0 0}.zcode-remote-entry a{overflow-wrap:anywhere}
.quota-stale{margin:5px 0;color:#9d6a2e;font-size:10px;line-height:1.5}
/* Pad overview */
.header-nav{background:transparent;color:#68736b;padding:8px 10px;border-radius:9px;font-size:13px;font-weight:650;white-space:nowrap}.header-nav:hover{background:#f1f3f0;color:#253129}.projects-nav{display:none}.dashboard{max-width:1120px;margin:0 auto;padding-bottom:40px}.dashboard-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.dashboard-heading h1{font-size:27px;letter-spacing:-.03em}.dashboard-heading .muted{margin:7px 0 0;font-size:13px}.dash-refresh{border:1px solid #e0e6df;background:#fff;color:#52675a;border-radius:10px;font-weight:650;font-size:12px;padding:9px 13px;white-space:nowrap}.dashboard-sync{margin:18px 0 23px;font-size:11px;color:#6d8473}.dashboard-sync:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#6baa7a;margin-right:7px}.dashboard-sync.sync-error{color:#a76d33}.dashboard-sync.sync-error:before{background:#d4a05e}.dash-section{background:#fff;border:1px solid #e8ece7;border-radius:18px;padding:20px 21px;box-shadow:0 5px 20px #1d34220a;min-width:0}.dash-section-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:17px}.dash-section-head h2{font-size:17px;letter-spacing:-.02em}.dash-section-head .eyebrow{font-size:9px;margin-bottom:6px}.dash-section-head>span{color:#9ba59d;font-size:11px;white-space:nowrap}.dash-quotas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dash-quotas .quota-provider{padding:15px;border:1px solid #edf0ec;border-radius:12px;background:#f9faf8}.dash-quotas .quota-provider-name{font-size:13px;color:#28392d;margin-bottom:8px}.dash-quotas .quota-line{font-size:12px;margin-top:10px}.dash-quotas .quota-bar{height:7px;margin:7px 0}.dash-quotas .quota-muted,.dash-quotas .quota-stale{font-size:11px}.dash-footnote{margin:13px 0 0;color:#a0aaa2;font-size:11px;line-height:1.5}.dash-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.dash-list{display:grid;gap:8px}.dash-placeholder,.dash-empty{padding:18px 12px;color:#89968b;font-size:12px;line-height:1.6;background:#f8faf7;border-radius:10px}.dash-task{display:flex;align-items:center;width:100%;gap:10px;text-align:left;background:#f8faf7;border:1px solid transparent;border-radius:11px;padding:12px;color:#27332a}.dash-task:hover{border-color:#dbe8dd;background:#f1f7f0}.dash-task:focus-visible,.header-nav:focus-visible,.dash-refresh:focus-visible,.notice-entry:focus-visible{outline:2px solid #578b6d;outline-offset:2px}.dash-task-body{display:grid;gap:5px;min-width:0;flex:1}.dash-task-title{font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dash-task-meta{font-size:11px;color:#96a398;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dash-task-badge{font-size:10px;color:#4b815a;background:#e6f3e9;padding:5px 8px;border-radius:20px;white-space:nowrap}.dash-chevron{font-size:17px;color:#acb8ad}.dash-source-note{display:flex;gap:8px;align-items:flex-start;border:1px solid #edf0ec;border-radius:10px;padding:11px 12px;color:#8b978d;font-size:11px;line-height:1.5}.dash-source-note strong{color:#536759;flex:none}.notice-entry{display:block;width:100%;background:none;text-align:left;color:inherit}.notice-entry:hover{background:#f6f8f5}@media(min-width:900px){main{padding-top:30px}#dashboard-view{max-width:1120px}header .brand{width:265px}}@media(max-width:899px){.projects-nav{display:inline-block}#list-view[hidden]{display:none}.dashboard-heading h1{font-size:24px}.dash-section{padding:17px}.dash-columns{grid-template-columns:1fr}.dash-quotas{gap:8px}.dash-quotas .quota-provider{padding:11px}.dashboard-sync{margin-bottom:18px}.header-nav{padding:7px;font-size:12px}}@media(max-width:480px){.brand strong{font-size:12px}.brand small{display:none}header{gap:5px;padding:0 10px}.header-nav{padding:6px;font-size:11px}.connection{font-size:10px}.logout,.notices-button{font-size:11px;padding:5px}.dashboard-heading h1{font-size:22px}.dash-section-head>span{font-size:10px}.dash-quotas{grid-template-columns:1fr}.dash-columns{gap:12px;margin-top:12px}}
@media(max-width:899px){.has-chat~.projects-nav{display:none}body:has(#app.has-chat) #projects-nav{display:none}}
/* Ambient tablet dashboard */
:root{--dash-ink:#203127;--dash-muted:#7e8f83;--dash-green:#277447;--dash-paper:#f5f8f3}.dashboard{color:var(--dash-ink)}.dashboard-heading{align-items:center}.dashboard-heading h1{font-size:30px;font-weight:760}.dashboard-heading .eyebrow{color:#6e9980}.dash-heading-tools{display:flex;align-items:center;gap:12px}.dashboard-clock{color:#829187;font-size:12px;font-weight:600;white-space:nowrap}.dashboard-sync{display:inline-flex;align-items:center;padding:6px 10px;margin:18px 0 23px;background:#eff7ef;border-radius:20px;color:#5f8569}.dashboard-sync.sync-error{background:#fff5e8}.dash-section{border-color:#e4ece3;border-radius:20px;box-shadow:0 12px 34px #2d583510}.dash-section-head h2{font-size:18px}.dash-section-head .eyebrow{color:#8aa993}.dash-quotas .quota-provider{background:linear-gradient(145deg,#f7faf6,#f2f7f1);border-color:#e9f0e7;padding:17px}.dash-quotas .quota-provider-name{font-size:14px}.dash-quotas .quota-line strong{font-size:13px}.dash-quotas .quota-bar{height:8px}.dash-task{background:#f8faf7;transition:background .15s,border-color .15s}.dash-task-badge{font-weight:650}.dash-task.dash-zcode .dash-task-badge{color:#6a7651;background:#eef3e3}.dash-source-note{background:#fbfcfa}.notice-entry.unread{background:#f2f8f1;border-left:3px solid #77ad80;padding-left:10px;border-radius:5px}.notice-entry.unread strong:after{content:' · 未读';color:#4b8b5e;font-size:10px}.notice-entry{border-bottom:1px solid #edf0ec}.notice-entry strong{line-height:1.5}.notice-meta{line-height:1.5}@media(max-width:899px){.dashboard-clock{font-size:11px}.dashboard-heading h1{font-size:25px}.dash-section{border-radius:16px}}@media(max-width:480px){.dashboard-clock{display:none}.dashboard-heading h1{font-size:23px}.dash-heading-tools{gap:6px}}

/* Compact overview for a tablet display. */
.dashboard-heading{margin-bottom:14px}
.dashboard-sync:not(.sync-error){display:none}
.dashboard-sync.sync-error{display:flex;margin:0 0 12px}
.dash-section{padding:16px 18px}
.dash-section-head{margin-bottom:12px}
.dash-section-head h2{font-size:20px}
.dash-quotas .quota-provider{padding:13px 15px}
.dash-quotas .quota-provider-name{font-size:17px;margin-bottom:5px}
.dash-quotas .quota-line{font-size:14px;margin-top:7px}
.dash-quotas .quota-line strong{font-size:16px}
.dash-quotas .quota-bar{margin:5px 0}
.dash-columns{gap:12px;margin-top:12px}
.dash-list{gap:6px}
.dash-task{padding:10px 12px}
.dash-task-title{font-size:15px}
.dash-task-meta{font-size:12px}
.dash-task-badge{font-size:12px}
.dash-footnote{margin-top:9px}
@media(max-width:899px){.dash-section{padding:14px}.dashboard-heading{margin-bottom:12px}}

/* Make account names and remaining balances easier to read. */
.dash-quotas .quota-provider-name{font-size:20px}
.dash-quotas .quota-line strong{font-size:18px}

/* Agent Workspace: a cool, high-contrast blue and cyan palette. */
:root{color:#18283e;background:#f1f5fb;--dash-ink:#152c49;--dash-muted:#70849c;--dash-green:#1978b4;--dash-paper:#eef4fb}
body{background:radial-gradient(ellipse at 85% 0%,#dceefa 0,transparent 42%),#f1f5fb;color:#18283e}
header{background:rgba(248,251,255,.94);border-bottom-color:#d8e4f2}
header .small-mark,.mark,.login .mark{background:linear-gradient(145deg,#204d8a,#102f5c);color:#fff;box-shadow:0 4px 14px #245da53b}
.mark span,.small-mark span,.login .mark span{color:#65e0ee}
.brand small,.eyebrow{color:#6686a9}.connection{color:#59758e}.connection i{background:#18a8a2}
.login{background:radial-gradient(circle at 80% 10%,#d2eaff,transparent 43%),#eff5fc}
.login-card{background:#fff;border-color:#d9e6f4;box-shadow:0 24px 70px #194f8520}
.muted{color:#70839a}.primary{background:#205caa;color:#fff}.primary:hover{background:#17477f}
input,textarea{border-color:#d5e2ef;background:#f9fbff;color:#172f4a}input:focus,textarea:focus{border-color:#3688cb;box-shadow:0 0 0 3px #cfe7fb}
.header-nav,.text-button{color:#59728d}.header-nav:hover{background:#e7f1fc;color:#174c83}
.dash-refresh,.back-top{background:#f8fbff;border-color:#d5e4f4;color:#315d86}.back-top:hover{background:#e8f3ff}
.dashboard{color:#152c49}.dashboard-clock{color:#7087a0}.dash-section{background:#fff;border-color:#d9e7f5;box-shadow:0 8px 30px #1e518510}
.dash-quotas .quota-provider{background:linear-gradient(140deg,#f2f8ff,#eaf6fb);border-color:#dbeaf7}
.dash-quotas .quota-provider-name{color:#1b416a}.dash-quotas .quota-line{color:#53718e}.quota-line strong{color:#087e96}.quota-line.low strong{color:#b76626}
.quota-bar{background:#dceaf5}.quota-bar i{background:linear-gradient(90deg,#2582d5,#26c4c3)}.quota-line.low+.quota-bar i{background:#e49b51}
.quota-muted,.quota-note,.dash-footnote{color:#778da2}.quota-stale{color:#a46024}
.dash-task{background:#f2f7fd;color:#193a5d}.dash-task:hover{background:#e7f3ff;border-color:#b9d9f2}.dash-task-meta{color:#718ba5}
.dash-task-badge,.dash-task.dash-zcode .dash-task-badge{background:#dff2f7;color:#087b90}.dash-chevron{color:#8ba9c1}
.dash-placeholder,.dash-empty{background:#f2f7fd;color:#69839d}.dashboard-sync.sync-error{background:#fff3e4;color:#985719}
#list-view .thread:hover,#list-view .thread.selected,.thread:hover,.thread.selected{background:#e5f0fc}.thread-title{color:#213e5c}.thread-meta,.project-heading{color:#768ca2}
.source-switch{background:#e4edf8}.source-switch button{color:#68819b}.source-switch button.source-active{color:#194d83;background:white}
.notice,.zcode-remote-entry{background:#edf5fe;border-color:#d7e7f7;color:#55718c}.zcode-remote-entry strong{color:#274f78}
.badge.active,.sync-status.running{background:#e0f4f4;color:#087f85}.message.user{background:#eaf3fd}.composer{border-color:#cfdfee;box-shadow:0 8px 30px #1e4d7a1a}.composer textarea{background:#fff}
.zcode-readonly{background:#f1f7fe;border-color:#d4e5f5;color:#546f8a}.zcode-readonly a{background:#205caa}.notice-entry.unread{background:#edf7ff;border-left-color:#54a8d9}
dialog{background:#fff;color:#18283e}dialog::backdrop{background:#102f5380}.icon{background:#edf4fb;color:#466887}#toast{background:#163a64}
@media(min-width:900px){#list-view,#list-view[hidden]{background:#f5f9fe;border-right-color:#dbe7f3}}

/* Editor-inspired themes */
.theme-toggle{border:1px solid #cfd9e5;border-radius:6px;background:#f6f8fb;color:#465e79;padding:7px 9px;font-size:12px;white-space:nowrap}
.theme-toggle:hover{border-color:#7092b6}.theme-toggle:focus-visible{outline:2px solid #529bf5;outline-offset:2px}.login-card{position:relative}.login-theme{position:absolute;top:22px;right:22px}
:root[data-theme="light"] body{background:#f6f8fa;color:#24292f}
:root[data-theme="light"] header{background:#fff;border-color:#d8dee4}
:root[data-theme="light"] .dash-section{border-color:#d8dee4;box-shadow:none;border-radius:8px}
:root[data-theme="light"] .dash-quotas .quota-provider,:root[data-theme="light"] .dash-task{background:#f6f8fa;border-color:#e5e9ef;border-radius:6px}
:root[data-theme="light"] .dash-task:hover{background:#edf3f9}
:root[data-theme="dark"]{color:#d7dee8;background:#0d1117;--dash-ink:#e6edf3;--dash-muted:#8b98a9}
:root[data-theme="dark"] body{background:#0d1117;color:#d7dee8}
:root[data-theme="dark"] header{background:#161b22;border-color:#30363d}
:root[data-theme="dark"] .brand strong,:root[data-theme="dark"] h1,:root[data-theme="dark"] h2{color:#e6edf3}
:root[data-theme="dark"] .brand small,:root[data-theme="dark"] .eyebrow,:root[data-theme="dark"] .muted,:root[data-theme="dark"] .dashboard-clock{color:#8b9bad}
:root[data-theme="dark"] .login{background:#0d1117}
:root[data-theme="dark"] .login-card{background:#161b22;border-color:#30363d;box-shadow:0 16px 50px #0006}
:root[data-theme="dark"] .login-footer{border-color:#30363d;color:#8b98a9}
:root[data-theme="dark"] .theme-toggle,:root[data-theme="dark"] .dash-refresh,:root[data-theme="dark"] .back-top{background:#21262d;border-color:#3a4552;color:#c9d1d9}
:root[data-theme="dark"] .theme-toggle:hover,:root[data-theme="dark"] .dash-refresh:hover,:root[data-theme="dark"] .back-top:hover{background:#303b49}
:root[data-theme="dark"] .header-nav,:root[data-theme="dark"] .text-button,:root[data-theme="dark"] .connection{color:#9aaec3}
:root[data-theme="dark"] .header-nav:hover{background:#25313e;color:#e6edf3}
:root[data-theme="dark"] .dashboard{color:#e6edf3}
:root[data-theme="dark"] .dash-section{background:#161b22;border:1px solid #30363d;border-radius:8px;box-shadow:none}
:root[data-theme="dark"] .dash-quotas .quota-provider{background:#0d1117;border-color:#30363d;border-radius:6px}
:root[data-theme="dark"] .dash-quotas .quota-provider-name{color:#e6edf3}
:root[data-theme="dark"] .dash-quotas .quota-line{color:#aebdcb}
:root[data-theme="dark"] .quota-line strong{color:#65d4c0}
:root[data-theme="dark"] .quota-line.low strong{color:#f0ad66}
:root[data-theme="dark"] .quota-bar{background:#30363d}
:root[data-theme="dark"] .quota-muted,:root[data-theme="dark"] .dash-footnote,:root[data-theme="dark"] .dash-task-meta,:root[data-theme="dark"] .dash-section-head>span{color:#9baabb}
:root[data-theme="dark"] .dash-task{background:#1c222c;border-color:#30363d;color:#e6edf3;border-radius:6px}
:root[data-theme="dark"] .dash-task:hover{background:#25313e;border-color:#4d6985}
:root[data-theme="dark"] .dash-task-badge,:root[data-theme="dark"] .dash-task.dash-zcode .dash-task-badge{background:#123b3a;color:#7ee0cb}
:root[data-theme="dark"] .dash-placeholder,:root[data-theme="dark"] .dash-empty{background:#1c222c;color:#a8b5c3}
:root[data-theme="dark"] .dashboard-sync.sync-error{background:#51391d;color:#ffcc88}
:root[data-theme="dark"] .source-switch{background:#0d1117;border:1px solid #30363d}
:root[data-theme="dark"] .source-switch button{color:#9baabb}
:root[data-theme="dark"] .source-switch button.source-active{background:#303b49;color:#e6edf3}
:root[data-theme="dark"] .thread-title,:root[data-theme="dark"] .project-heading{color:#c9d1d9}
:root[data-theme="dark"] .thread-meta,:root[data-theme="dark"] .usage-status{color:#8b9bad}
:root[data-theme="dark"] #list-view .thread,:root[data-theme="dark"] .thread{background:transparent;color:#d7dee8}
:root[data-theme="dark"] #list-view .thread:hover,:root[data-theme="dark"] #list-view .thread.selected,:root[data-theme="dark"] .thread:hover{background:#25313e}
:root[data-theme="dark"] .notice,:root[data-theme="dark"] .zcode-remote-entry,:root[data-theme="dark"] .zcode-readonly{background:#1c2633;border-color:#344458;color:#b0c2d4}
:root[data-theme="dark"] .zcode-remote-entry strong{color:#e6edf3}
:root[data-theme="dark"] .badge{background:#27313b;color:#a9b8c7}
:root[data-theme="dark"] .badge.active,:root[data-theme="dark"] .sync-status.running{background:#123b3a;color:#7ee0cb}
:root[data-theme="dark"] .sync-status,:root[data-theme="dark"] .command,:root[data-theme="dark"] .command-group,:root[data-theme="dark"] .command-group-items .command{background:#161b22;border-color:#30363d;color:#a6b3c2}
:root[data-theme="dark"] .command-code,:root[data-theme="dark"] .command-output{border-color:#30363d}
:root[data-theme="dark"] .message.user{background:#212b39}
:root[data-theme="dark"] .message .who,:root[data-theme="dark"] .event,:root[data-theme="dark"] .tool-event{color:#98a9ba}
:root[data-theme="dark"] .markdown a{color:#79b8ff}
:root[data-theme="dark"] .markdown pre,:root[data-theme="dark"] .markdown code{background:#242c37;color:#e6edf3}
:root[data-theme="dark"] .markdown th,:root[data-theme="dark"] .markdown td{border-color:#465364}
:root[data-theme="dark"] .markdown blockquote{color:#b1becb;border-color:#556778}
:root[data-theme="dark"] input,:root[data-theme="dark"] textarea,:root[data-theme="dark"] .composer,:root[data-theme="dark"] .composer textarea{background:#161b22;border-color:#3a4552;color:#e6edf3}
:root[data-theme="dark"] .composer{box-shadow:0 8px 30px #0006}
:root[data-theme="dark"] .file-card,:root[data-theme="dark"] .file-action{background:#1c222c;border-color:#3a4552;color:#d7dee8}
:root[data-theme="dark"] dialog{background:#161b22;color:#e6edf3;border:1px solid #3a4552}
:root[data-theme="dark"] .icon{background:#27313b;color:#c9d1d9}
:root[data-theme="dark"] .notice-entry{border-color:#30363d}:root[data-theme="dark"] .notice-entry:hover,:root[data-theme="dark"] .notice-entry.unread{background:#1d3041}
:root[data-theme="dark"] .send-status{background:#27313b;color:#c9d1d9}
:root[data-theme="dark"] .send-status.success{background:#123b3a;color:#7ee0cb}
:root[data-theme="dark"] .send-status.error,:root[data-theme="dark"] .send-status.uncertain{background:#51391d;color:#ffcc88}
@media(min-width:900px){:root[data-theme="dark"] #list-view,:root[data-theme="dark"] #list-view[hidden]{background:#161b22;border-color:#30363d}}
@media(max-width:480px){.theme-toggle{font-size:11px;padding:6px}.login-theme{font-size:12px}}

/* Pad overview: readable from a distance and compact. */
.dash-columns{grid-template-columns:1fr}
.dash-list{gap:8px}
.dash-task{padding:13px 15px}
.dash-task-title{font-size:18px;line-height:1.35}
.dash-task-meta{font-size:14px;line-height:1.35}
.dash-task-badge{font-size:14px;padding:6px 10px}
.dash-section-head h2{font-size:22px}
.dash-section-head>span{font-size:13px}
.dash-quotas .quota-provider-name{font-size:23px}
.dash-quotas .quota-line{font-size:17px}
.dash-quotas .quota-line strong{font-size:23px}
.dash-quotas .quota-muted,.dash-quotas .quota-stale{font-size:13px}
.dash-finished .dash-task-badge,.dash-task.dash-zcode.dash-finished .dash-task-badge{background:#e9edf3;color:#596d80}
:root[data-theme="dark"] .dash-finished .dash-task-badge,:root[data-theme="dark"] .dash-task.dash-zcode.dash-finished .dash-task-badge{background:#303b49;color:#c6d4e1}
@media(max-width:480px){.dash-task-title{font-size:16px}.dash-task-meta,.dash-task-badge{font-size:12px}.dash-quotas .quota-line strong{font-size:21px}}

.suggestion-area{display:flex;align-items:center;gap:8px;margin:0 4px 6px;font-size:11px;color:#657b91}.suggestion-area button{background:#eaf3ff;border:1px solid #cbdff5;color:#23588b;border-radius:7px;padding:6px 9px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%;font-size:12px}.suggestion-area span{white-space:nowrap}:root[data-theme="dark"] .suggestion-area{color:#a6b6c7}:root[data-theme="dark"] .suggestion-area button{background:#1d3041;border-color:#345673;color:#9ed1ff}

.direct-send{padding:9px 12px;border:1px solid #a9bdd1;border-radius:9px;background:#f7faff;color:#315d86;font-size:13px;font-weight:650;white-space:nowrap}.direct-send:hover{background:#e4effb}:root[data-theme="dark"] .direct-send{background:#212c39;border-color:#50667d;color:#c6def5}:root[data-theme="dark"] .direct-send:hover{background:#304359}@media(max-width:480px){.compose-bottom .primary{margin-left:0}.compose-bottom .direct-send{margin-left:auto}}
