:root{--bg:#f7f8fa;--paper:#fff;--ink:#182223;--muted:#788183;--line:#e5e9e8;--accent:#176451;--soft:#edf5f0;--red:#b5423f;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.45}button,input,textarea,select{outline-offset:3px}button{color:inherit}button:focus-visible{outline:2px solid var(--accent)}.hidden{display:none!important}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:600;color:var(--muted)}.login{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 10% 0%,#e6eee9 0,transparent 55%),#f5f7f5}.login-card{width:400px;max-width:100%;background:#fff;border:1px solid var(--line);padding:42px;border-radius:20px;box-shadow:0 20px 80px #213d3010}.mark{font-size:35px;letter-spacing:-4px;font-weight:800;margin-bottom:35px}.mark span{color:var(--accent)}h1{letter-spacing:-1px}.login-card h1{font-size:28px;margin:12px 0}.login-card label{display:block;margin:30px 0 9px;font-size:12px}.login-card input{width:100%;padding:13px;border:1px solid #d8dedb;border-radius:9px}.primary{width:100%;background:var(--accent);color:white;border:0;border-radius:9px;padding:13px;margin-top:15px;text-align:left}.primary span{float:right}.login-foot{font-size:10px;color:var(--muted);margin:25px 0 0}.error{color:var(--red);font-size:12px}.shell{display:flex;height:100dvh;overflow:hidden}aside{width:260px;flex-shrink:0;border-right:1px solid var(--line);background:#eff2f0;display:flex;flex-direction:column;padding:28px 16px 16px}.brand{display:flex;gap:12px;align-items:center;margin:0 10px 32px}.mini-mark{background:var(--ink);color:#fff;font-size:15px;padding:11px 8px;border-radius:10px;letter-spacing:-1px}.brand strong{font-size:15px}.brand small{display:block;font-size:8px;color:var(--muted);letter-spacing:1.2px;margin-top:5px}.new-task{border:1px solid #ccd7d1;background:#fff;border-radius:8px;text-align:left;padding:11px 14px;color:var(--accent);font-weight:600}.nav-label{font-size:10px;letter-spacing:1px;color:var(--muted);padding:28px 10px 10px}.nav-label span{float:right}nav{overflow-y:auto;flex:1}.task{display:block;border:0;background:transparent;text-align:left;width:100%;padding:12px 11px;border-radius:8px;margin:3px 0}.task.active{background:#dde8e1}.task strong{display:block;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.task small{display:block;font-size:10px;color:var(--muted);margin-top:6px}.sidebar-bottom{border-top:1px solid #dce3df;padding:17px 7px 0;display:flex;gap:10px;align-items:center}.machine-dot{width:7px;height:7px;background:#3a9b70;border-radius:50%}.sidebar-bottom strong{font-size:12px}.sidebar-bottom small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.sidebar-bottom .icon{margin-left:auto}main{flex:1;min-width:0;display:flex;flex-direction:column;background:#fff}header{height:91px;flex-shrink:0;border-bottom:1px solid var(--line);padding:23px 42px;display:flex;align-items:center;justify-content:space-between;gap:16px}header .eyebrow{margin:0 0 7px}header h2{font-size:15px;font-weight:550;margin:0;max-width:55vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pill{font-size:11px;border:1px solid var(--line);border-radius:20px;padding:6px 12px;white-space:nowrap;color:var(--accent);background:#f7faf8}.banner{padding:12px 30px;background:#fff4df;color:#835b1e;font-size:12px}#conversation{flex:1;overflow-y:auto;scroll-behavior:smooth;padding:30px max(30px,calc((100% - 830px)/2));position:relative}.welcome{max-width:720px;margin:7vh auto 0}.welcome-symbol{font-size:48px;line-height:1;background:var(--soft);color:var(--accent);width:79px;height:79px;display:grid;place-items:center;border-radius:23px;margin-bottom:33px}.welcome h1{font-size:32px;font-weight:550;margin:14px 0 20px}.welcome>p:not(.eyebrow){font-size:14px;line-height:1.9;color:var(--muted)}.suggestions{display:flex;gap:12px;margin-top:34px}.suggestions button{flex:1;text-align:left;border:1px solid var(--line);background:white;border-radius:10px;padding:17px 15px;transition:border-color .15s,transform .15s}.suggestions button:hover{border-color:#8cafa1;transform:translateY(-2px)}.suggestions span{display:block;color:var(--accent);font-size:20px;margin-bottom:16px}.suggestions strong{display:block;font-size:12px;font-weight:550}.suggestions small{font-size:10px;color:var(--muted);display:block;line-height:1.6;margin-top:7px}.message{padding:8px 0 27px;line-height:1.85;font-size:14px;overflow-wrap:anywhere}.message .who{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.4px;color:var(--muted);margin-bottom:12px}.avatar{width:23px;height:23px;display:inline-grid;place-items:center;background:var(--soft);border-radius:6px;color:var(--accent);font-size:12px}.message.user .bubble{background:#f0f3f1;border-radius:10px;padding:13px 17px;white-space:pre-wrap}.message.agent .bubble{padding:0 2px}.bubble p{margin:0 0 12px;white-space:pre-wrap}.bubble h3{font-size:17px;margin:15px 0 9px}.bubble pre,.activity pre,.approval pre{overflow:auto;background:#f3f5f4;border:1px solid var(--line);padding:13px;border-radius:8px;font-size:12px;line-height:1.7;max-height:260px;white-space:pre-wrap}.bubble code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;background:#edf1ee;padding:2px 4px;border-radius:3px}.bubble pre code{background:none;padding:0}.bubble a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.activity{font-size:11px;color:#687672;margin:0 0 13px;padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:#fbfcfb}.activity summary{cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity pre{color:var(--ink);max-height:200px}.thinking{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;padding:15px 0}.thinking span{width:4px;height:4px;border-radius:50%;background:#83a28e;animation:pulse 1.2s infinite}.thinking span:nth-child(2){animation-delay:.2s}.thinking span:nth-child(3){animation-delay:.4s;margin-right:6px}@keyframes pulse{50%{opacity:.3}}footer{padding:14px max(30px,calc((100% - 830px)/2)) 18px;flex-shrink:0}#composer{border:1px solid #cfdad3;border-radius:13px;padding:14px 14px 10px;box-shadow:0 4px 16px #283f2f06;background:#fff}textarea{width:100%;resize:none;min-height:56px;max-height:180px;border:0;background:transparent;outline:none!important;line-height:1.65;font-size:13px;color:var(--ink)}textarea::placeholder{color:#9aa39f}.composer-bottom{display:flex;align-items:center;justify-content:space-between}.composer-bottom>div{display:flex;align-items:center;gap:8px}.icon{border:0;background:transparent;width:28px;height:28px;font-size:18px;border-radius:5px}.icon:hover{background:#e7eee9}.workspace-button{border:0;background:none;font-size:10px;color:var(--muted);max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:6px}.send{background:var(--accent);color:#fff;border:0;border-radius:8px;width:33px;height:33px;font-size:22px}.stop{border:1px solid #e3d6d4;color:#9b4843;background:#fff6f4;border-radius:7px;padding:6px 10px;font-size:11px}.footer-note{font-size:9px;color:#969e9a;margin:10px 3px 0;display:flex;justify-content:space-between}.workspace-settings{background:#f6f8f6;padding:14px;border-radius:8px;margin-top:10px}.workspace-settings label{display:block;font-size:11px;margin-bottom:8px}.workspace-settings input,.workspace-settings select{display:block;width:100%;padding:8px;border:1px solid #dce4df;border-radius:5px;background:white;margin-top:5px}.workspace-settings p{font-size:10px;color:var(--muted)}.attachments{display:flex;gap:7px;flex-wrap:wrap;font-size:10px}.attachment{padding:6px 9px;background:var(--soft);border-radius:6px;margin-bottom:8px}.files-panel{margin:0 max(30px,calc((100% - 830px)/2));border-top:1px solid var(--line);padding-top:10px;max-height:140px;overflow:auto}.files-panel>div:first-child{display:flex;justify-content:space-between;font-size:11px}.text-button{font-size:10px;border:0;background:none;color:var(--accent)}#files{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}#files a{border:1px solid var(--line);border-radius:6px;padding:8px 11px;text-decoration:none;color:var(--accent);font-size:11px}.approval{background:#fff9eb;border:1px solid #edd7a3;border-radius:10px;padding:18px;margin:15px 0}.approval h3{font-size:14px;margin:0 0 10px}.approval p{font-size:12px;line-height:1.7}.approval .actions{display:flex;gap:9px;margin-top:14px}.approval button{border:1px solid #d4d9d4;padding:8px 16px;border-radius:6px;background:#fff}.approval button.accept{background:var(--accent);color:white;border-color:var(--accent)}.approval input{display:block;width:100%;padding:9px;border:1px solid #dbcba8;border-radius:5px;margin:7px 0}.approval label{display:block;font-size:12px;margin-top:12px}.mobile{display:none}@media(max-width:850px){aside{width:215px}header{padding:20px 25px}#conversation{padding:25px}.welcome h1{font-size:27px}.suggestions{gap:7px}.suggestions button{padding:13px 10px}footer{padding:12px 22px 16px}.files-panel{margin:0 22px}.workspace-button{max-width:160px}}@media(max-width:620px){aside{display:none;position:fixed;inset:0 auto 0 0;z-index:5;width:260px;box-shadow:10px 0 50px #0003}aside.open{display:flex}.mobile{display:block}header{height:78px;padding:15px 18px;justify-content:initial}header .pill{margin-left:auto}header h2{max-width:43vw;font-size:13px}#conversation{padding:24px 20px}.welcome{margin:4vh 0 0}.welcome-symbol{width:59px;height:59px;font-size:35px;margin-bottom:24px}.welcome h1{font-size:24px}.suggestions{flex-direction:column;margin-top:24px}.suggestions button{padding:12px;display:grid;grid-template-columns:30px 1fr;align-items:center}.suggestions span{grid-row:span 2;margin:0;font-size:18px}.suggestions small{margin:3px 0}.suggestions strong{font-size:12px}footer{padding:10px 14px 14px}.footer-note span{display:none}.message{font-size:13px}.login-card{padding:30px}.workspace-button{max-width:170px}}

.desktop-button{border:0;background:transparent;color:var(--accent);text-align:left;padding:12px 10px;font-size:12px;border-radius:7px}.desktop-button:hover{background:#dfe8e2}dialog{width:620px;max-width:92vw;border:1px solid var(--line);border-radius:15px;padding:25px;box-shadow:0 20px 90px #0002}dialog::backdrop{background:#13251c55}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:20px;margin:10px 0}.dialog-note{font-size:12px;line-height:1.8}#desktopSearch{display:flex;gap:10px;margin:18px 0}#desktopQuery{flex:1;min-width:0;border:1px solid var(--line);border-radius:6px;padding:10px}#desktopList{max-height:50vh;overflow:auto}.desktop-thread{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:7px;padding:13px;margin:8px 0}.desktop-thread:hover{background:#f1f6f2}.desktop-thread strong{display:block;font-size:12px;font-weight:550}.desktop-thread small{display:block;color:var(--muted);font-size:10px;margin-top:7px;overflow-wrap:anywhere}

/* Keep wide model output inside the message, particularly on phones. */
#messages,.message,.bubble,.markdown{min-width:0;max-width:100%}
.markdown h1{font-size:24px}.markdown h2{font-size:21px}.markdown h3{font-size:18px}.markdown h4,.markdown h5,.markdown h6{font-size:15px}
.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6{line-height:1.45;margin:20px 0 10px}
.markdown ul,.markdown ol{padding-left:25px;margin:0 0 14px}.markdown li{margin:5px 0}.markdown li>ul,.markdown li>ol{margin:6px 0}
.markdown blockquote{border-left:3px solid #a9c4b5;margin:14px 0;padding:4px 16px;color:#596b62}.markdown blockquote p:last-child{margin-bottom:0}
.markdown hr{border:0;border-top:1px solid var(--line);margin:20px 0}
.bubble .markdown pre{white-space:pre;overflow-wrap:normal;max-height:420px;max-width:100%}.markdown pre code{font-size:12px}
.table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #dbe3de;border-radius:8px;margin:14px 0 18px;overscroll-behavior-x:contain}
.table-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.markdown table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.65}
.markdown th,.markdown td{padding:10px 13px;border-bottom:1px solid #e2e8e4;border-right:1px solid #e2e8e4;min-width:110px;max-width:380px;vertical-align:top;overflow-wrap:anywhere}
.markdown th{background:#edf4ef;font-weight:600;color:#254e3e}.markdown tbody tr:nth-child(even){background:#f8faf9}
.markdown tr:last-child td{border-bottom:0}.markdown th:last-child,.markdown td:last-child{border-right:0}
.markdown .align-left{text-align:left}.markdown .align-center{text-align:center}.markdown .align-right{text-align:right}
@media(max-width:620px){.markdown th,.markdown td{padding:9px 11px;min-width:120px}.markdown table{font-size:12px}}
/* Chat attachments and message controls. */
main{position:relative}.message-actions{display:flex;gap:5px;margin-top:8px}.message-actions button,.code-toolbar button{border:0;background:transparent;color:#687b70;border-radius:5px;padding:5px 8px;font-size:11px}.message-actions button:hover,.code-toolbar button:hover{background:#edf3ef;color:var(--accent)}
.code-block{margin:14px 0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#f3f5f4}.code-toolbar{display:flex;justify-content:space-between;align-items:center;background:#eaf0ec;padding:5px 10px;color:#607168;font-size:11px}.bubble .code-block pre{border:0;border-radius:0;margin:0}
.attachments{gap:8px;max-height:190px;overflow-y:auto;flex-wrap:wrap}.attachment-card{display:flex;align-items:center;gap:9px;position:relative;width:220px;max-width:100%;min-height:64px;border:1px solid #d9e4dc;border-radius:10px;background:#f8faf8;padding:9px 28px 9px 9px;margin:0 0 8px}.attachment-card img{width:45px;height:45px;object-fit:cover;border-radius:6px;cursor:zoom-in;flex-shrink:0}.attachment-info{min-width:0}.attachment-info strong{display:block;font-size:11px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.attachment-info small{display:block;font-size:10px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.attachment-remove{position:absolute;top:4px;right:4px;border:0;background:transparent;font-size:18px;width:22px;height:22px;border-radius:5px;color:#65736a}.attachment-card.failed{border-color:#dba09c;background:#fff5f4}.attachment-card.failed small{color:var(--red)}.attachment-card.uploading{opacity:.7}
.message-attachments{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 2px;white-space:normal}.message-image{border:1px solid #dce4de;border-radius:10px;padding:0;overflow:hidden;max-width:260px;background:#fff;cursor:zoom-in}.message-image img{display:block;max-width:100%;max-height:240px;object-fit:contain;min-width:60px;min-height:50px}.file-card{border:1px solid #dce4de;border-radius:8px;padding:10px 12px;font-size:12px;overflow-wrap:anywhere}
.image-dialog{width:fit-content;max-width:94vw;max-height:94dvh;background:#16221d;color:white;border:0;padding:40px 16px 12px;border-radius:12px}.image-dialog::backdrop{background:#06110ce6}.image-dialog img{display:block;max-width:86vw;max-height:75dvh;object-fit:contain;margin:auto}.image-dialog p{font-size:12px;text-align:center;margin:12px 0 0;overflow-wrap:anywhere}.image-close{position:absolute;top:3px;right:8px;font-size:27px;background:none;color:#fff;border:0;width:34px;height:34px}
.file-drag::after{content:'松开以添加图片或文件';position:fixed;inset:12px;border:2px dashed #398169;border-radius:15px;background:#eff9f2ed;color:#176451;display:grid;place-items:center;font-size:20px;z-index:20;pointer-events:none}.jump-bottom{position:absolute;bottom:190px;left:50%;transform:translateX(-50%);z-index:2;border:1px solid #d6e2da;border-radius:24px;padding:8px 14px;background:#fff;box-shadow:0 3px 16px #173c2520;color:var(--accent);font-size:12px}.touch-hint{display:none}
#composer{transition:border-color .15s}#composer:focus-within{border-color:#7ba28c}#prompt{overflow-y:auto;max-height:200px}.message.user .bubble{width:fit-content;max-width:100%;margin-left:auto}.message.user .who,.message.user .message-actions{justify-content:flex-end}
@media(pointer:coarse){.desktop-hint{display:none!important}.touch-hint{display:inline!important}}
@media(max-width:620px){.attachment-card{width:calc(50% - 4px);min-width:140px}.attachments{max-height:150px}.message-image{max-width:220px}.message{padding-bottom:22px}.message-actions button{padding:7px 9px}.jump-bottom{bottom:180px}.composer-bottom .workspace-button{max-width:145px}.footer-note{font-size:10px}.image-dialog img{max-width:85vw}}

.reply-image{display:block;max-width:100%;max-height:380px;object-fit:contain;border-radius:9px;margin:12px 0;cursor:zoom-in}

#conversation{scroll-behavior:auto}.task-search{width:100%;margin-top:14px;padding:9px 11px;border:1px solid #d6e0d9;border-radius:7px;background:#ffffffa8;font-size:12px;min-width:0}
/* Account controls remain visible beside the composer and on small screens. */
.model-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 10px}.model-label{font-size:11px;color:var(--muted)}.model-controls select{border:1px solid #d8e2db;border-radius:7px;background:#f8faf8;padding:6px 8px;color:var(--ink);font-size:12px;max-width:240px;min-width:0}.model-controls #effort{max-width:150px}.model-controls .text-button{margin-left:auto}.quota-button{border:1px solid #cfded4;border-radius:16px;background:#f1f7f3;color:var(--accent);padding:7px 11px;white-space:nowrap;font-size:11px}.quota-button:hover{background:#e5f0e9}
header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px}header>div:first-of-type{min-width:0}header h2{max-width:100%}.usage-panel{border-top:1px solid #dce3df;margin-top:12px;padding:13px 6px 10px;flex-shrink:0}.usage-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:11px}.quota-row{margin:9px 0}.quota-row-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;margin-bottom:4px}.quota-row-label strong{font-weight:550}.quota-row meter{display:block;width:100%;height:7px;border:0;border-radius:5px;background:#dfe7e1}.quota-row meter::-webkit-meter-bar{height:7px;border:0;border-radius:5px;background:#dfe7e1}.quota-row meter::-webkit-meter-optimum-value{background:#4c9071;border-radius:5px}.quota-row meter::-webkit-meter-suboptimum-value{background:#c89b42;border-radius:5px}.quota-row meter::-webkit-meter-even-less-good-value{background:#bb655e;border-radius:5px}.quota-row small{display:block;margin-top:6px;font-size:11px}.quota-missing{font-size:11px;color:var(--muted);margin:9px 0}.quota-group{padding:5px 0 12px;border-bottom:1px solid var(--line)}.quota-group h3{font-size:14px}.usage-dialog{width:470px}.usage-dialog #usageUpdated{font-size:11px}#modelError{margin:4px 0 10px;font-size:11px}
@media(max-width:620px){header{height:auto;min-height:80px;grid-template-columns:28px minmax(0,1fr) auto;gap:5px 9px;padding:12px 14px}header .pill{grid-column:2/-1;justify-self:end;margin-left:0;font-size:10px;padding:3px 8px}header .eyebrow{font-size:8px;letter-spacing:.7px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}header h2{max-width:100%;font-size:12px}.quota-button{font-size:10px;padding:6px 8px}.model-controls{gap:6px}.model-controls select{max-width:calc(100% - 45px);font-size:12px}.model-controls #effort{max-width:120px}.model-controls .text-button{font-size:10px}.model-label{display:none}.jump-bottom{bottom:230px}.usage-dialog{padding:18px}.usage-panel{padding-bottom:8px}}

.settings-dialog{width:min(440px,calc(100vw - 32px));padding:24px}.settings-dialog label{display:block;font-size:13px;margin:16px 0 7px}.settings-dialog input{width:100%;padding:10px;border:1px solid var(--line);border-radius:6px}.settings-dialog .muted{font-size:12px;line-height:1.7;margin:16px 0}.sidebar-bottom #accountSettings{margin-left:auto}.settings-dialog input[readonly]{background:var(--bg);color:var(--muted)}

.settings-dialog{max-height:85vh;overflow:auto}#userManagement{border-top:1px solid var(--line);margin-top:24px;padding-top:16px}.managed-user{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.managed-user>div{flex:1}.managed-user small{display:block;color:var(--muted);font-size:11px;margin-top:4px}#userManagement h4{margin:20px 0 8px}#userMessage{font-size:12px;line-height:1.6}.settings-dialog .desktop-button{margin-top:12px}

/* Quiet workspace layout, based on the supplied Codex reference. */
:root{--bg:#fafafa;--ink:#262626;--muted:#8b8b8b;--line:#e8e8e8;--accent:#242424;--soft:#f3f3f3}
.ui-icon{display:inline-block;width:20px;height:20px;object-fit:contain;flex-shrink:0;vertical-align:middle;opacity:.72}.icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px}.icon:hover{background:#ededed}.icon .ui-icon{width:19px;height:19px}
aside{width:280px;background:#fafafa;padding:24px 14px 14px}.brand{margin:0 12px 28px;min-height:28px}.brand strong{font-size:20px;font-weight:600;letter-spacing:-.5px}.new-task{display:flex;align-items:center;gap:11px;border:0;background:transparent;color:var(--ink);font-size:14px;font-weight:400;padding:11px 12px}.new-task:hover,.task:hover{background:#f0f0f0}.task-search{background:transparent;border-color:transparent;border-radius:8px;margin:12px 0 2px;padding:9px 12px}.task-search:hover,.task-search:focus{background:#fff;border-color:var(--line)}.task-search::placeholder{color:#999}.nav-label{display:flex;align-items:center;gap:8px;padding:20px 12px 9px;font-size:12px;letter-spacing:0}.nav-label span{float:none;font-size:11px;color:#aaa}.nav-label button{margin-left:auto;padding:0;display:grid;place-items:center;width:25px;height:25px}.nav-label .ui-icon{width:15px;height:15px;opacity:.45}nav{scrollbar-width:thin;scrollbar-color:#e5e5e5 transparent;min-height:0}.task{padding:11px 12px;margin:1px 0;display:flex;align-items:center;gap:8px;min-height:39px}.task strong{font-size:13px;line-height:18px;font-weight:400;flex:1}.task.active{background:#ececec}.task-state{font-size:10px;color:#727272;flex-shrink:0}.sidebar-bottom{border:0;padding:14px 8px 0;gap:8px}.sidebar-bottom strong{font-weight:500}.sidebar-bottom small{font-size:10px}.sidebar-bottom .icon{margin-left:0}.sidebar-bottom #accountSettings{margin-left:auto}.machine-dot{background:#70a77f;width:6px;height:6px}
header{height:64px;padding:16px 30px;border-bottom:0;grid-template-columns:minmax(0,1fr) auto auto;gap:12px}header h2{font-size:14px;font-weight:500}#backendLabel{display:none}.pill{border:0;background:transparent;color:#999;font-size:11px;padding:5px 0}.quota-button{background:transparent;border:0;color:#777;font-size:12px;padding:7px 10px;border-radius:8px}.quota-button:hover{background:#f3f3f3}
#conversation{padding:24px max(32px,calc((100% - 800px)/2));display:flex;flex-direction:column}.welcome{flex:1;min-height:220px;width:100%;max-width:none;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-bottom:6vh;text-align:center}.welcome>.ui-icon{width:48px;height:48px;opacity:.28;margin-bottom:24px}.welcome h1{font-size:30px;font-weight:500;letter-spacing:-.7px;margin:0;line-height:1.5}.message .who{font-size:10px;color:#999}.avatar{background:#f4f4f4;color:#777}.message.user .bubble{background:#f4f4f4;border-radius:16px}.bubble code{background:#f1f1f1}.markdown th{background:#f3f3f3;color:#333}.markdown tbody tr:nth-child(even){background:#fafafa}.code-toolbar{background:#ededed;color:#777}.activity{background:#fcfcfc;color:#777}.bubble pre,.activity pre{background:#f6f6f6}.message-actions button,.code-toolbar button{color:#888}
footer{padding:12px max(32px,calc((100% - 800px)/2)) 24px}#composer{padding:18px 16px 12px;border-color:#e6e6e6;border-radius:24px;box-shadow:0 3px 14px #00000004}#composer:focus-within{border-color:#ccc}#prompt{min-height:68px;font-size:14px;line-height:1.7;padding:0 2px}textarea::placeholder{color:#b0b0b0}.composer-bottom{gap:8px}.composer-bottom>div{gap:5px;min-width:0}.workspace-button{display:flex;align-items:center;gap:6px;font-size:11px;max-width:190px}.workspace-button span{overflow:hidden;text-overflow:ellipsis}.workspace-button .ui-icon{width:16px;height:16px;opacity:.4}.composer-actions{justify-content:flex-end}.model-controls{margin:0;gap:3px;flex-wrap:nowrap;min-width:0}.model-controls select{border:0;background:transparent;padding:6px 3px;font-size:11px;max-width:175px}.model-controls #effort{max-width:85px}.model-controls #refreshModels{padding:4px}.model-controls #refreshModels .ui-icon{width:14px;height:14px;opacity:.4}.send{border-radius:50%;width:32px;height:32px;display:grid;place-items:center;flex-shrink:0}.send .ui-icon{filter:invert(1);opacity:1;width:18px;height:18px}.stop{display:flex;align-items:center;gap:4px}.stop .ui-icon{width:13px;height:13px}.workspace-settings{background:#f7f7f7}.jump-bottom{bottom:190px;border-color:var(--line);color:#666}.files-panel{margin:0 max(32px,calc((100% - 800px)/2));max-height:90px}.login{background:#fafafa}.login-card{padding:36px;border-radius:16px;box-shadow:0 6px 32px #00000004}.login-card h1{margin:0 0 30px;font-size:25px;font-weight:600}.primary{text-align:center;background:#262626}.login-card label{margin:20px 0 9px}.desktop-button:hover{background:#f0f0f0}dialog::backdrop{background:#0004}
@media(max-width:1050px){aside{width:240px}header{padding:16px 24px}.model-controls select{max-width:145px}.workspace-button{max-width:120px}}
@media(max-width:760px){.model-controls #refreshModels{display:none}.composer-bottom{flex-wrap:wrap}.composer-bottom>div:first-child{flex:1}.composer-actions{flex:1}.model-controls select{max-width:140px}.workspace-button{max-width:140px}}
@media(max-width:620px){aside{width:280px;padding-top:22px}header{min-height:58px;height:58px;padding:12px 16px;grid-template-columns:28px minmax(0,1fr) auto}.mobile{display:inline-flex}header .pill{display:none}header h2{font-size:13px}.quota-button{font-size:11px}#conversation{padding:20px}.welcome{padding-bottom:5vh;min-height:180px}.welcome h1{font-size:24px}.welcome>.ui-icon{width:40px;height:40px;margin-bottom:20px}footer{padding:10px 12px 16px}#composer{border-radius:20px;padding:14px 12px 10px}#prompt{min-height:64px;font-size:14px}.composer-bottom{gap:5px}.composer-bottom>div:first-child{flex:0 1 auto}.composer-actions{flex:1 1 auto}.workspace-button{max-width:100px!important}.model-controls select{max-width:112px;font-size:10px;padding:6px 0}.model-controls #effort{max-width:63px}.composer-bottom>div{gap:2px}.files-panel{margin:0 20px}.jump-bottom{bottom:180px}.login-card{padding:28px}}
@media(max-width:390px){.composer-bottom>div:first-child{flex-basis:100%}.workspace-button{max-width:220px!important}.composer-actions{justify-content:flex-end}.model-controls select{max-width:160px}}

/* Compact quota summary stays anchored above the account controls. */
.usage-panel{margin-top:10px;padding:12px 12px 2px;border-top:1px solid var(--line);position:relative}.usage-heading{font-size:11px;margin:0 0 7px;color:#888}.usage-heading strong{font-weight:400}.usage-heading #refreshLimits{font-size:10px;color:#999}.usage-panel .quota-row{margin:5px 0}.usage-panel .quota-row-label{font-size:11px;margin:0;line-height:17px;color:#888}.usage-panel .quota-row-label strong{font-size:11px;font-weight:400;color:#666}.usage-panel meter{display:none}.usage-panel #usageDetails{font-size:10px;color:#999;padding:4px 0;margin-top:2px}.usage-panel .quota-missing{font-size:10px;margin:4px 0}.usage-panel #usageCompact>small{font-size:10px}.mobile{display:none}@media(max-width:620px){.mobile{display:inline-flex}}

.workspace-settings{position:relative;padding-top:18px}.workspace-settings>label{padding-top:2px}.workspace-settings-close{position:absolute;top:7px;right:7px;display:grid;place-items:center}.workspace-settings>label{padding-right:30px}.workspace-settings>label input{width:calc(100% + 30px)}

#conversation{min-height:0}
.files-panel{position:relative;display:flex;flex-direction:column;flex:0 0 auto;height:90px;min-height:40px;max-height:60dvh;padding-top:0;overflow:hidden}
.files-panel .files-resize{display:flex;align-items:center;justify-content:center;flex:0 0 12px;cursor:ns-resize;touch-action:none;outline-offset:-2px}
.files-resize span{width:36px;height:3px;border-radius:3px;background:#d5d5d5}
.files-resize:hover span,.files-resize:focus-visible span{background:#888}
.files-panel .files-heading{display:flex;align-items:center;justify-content:space-between;flex:0 0 27px;font-size:11px}
.files-panel #files{flex:1;min-height:0;overflow-y:auto;align-content:flex-start;margin-top:0;padding-top:8px;padding-bottom:8px;overscroll-behavior:contain}
.files-panel.files-collapsed #files,.files-panel.files-collapsed #refreshFiles{display:none}
.resizing-files,.resizing-files *{cursor:ns-resize!important;user-select:none!important}

/* Soft sage surfaces keep the workspace calm and text legible. */
:root{--bg:var(--theme-0,#f3f7f2);--paper:var(--theme-1,#f9fcf7);--ink:var(--theme-2,#26332b);--muted:var(--theme-3,#5e6c61);--line:var(--theme-4,#dce5d9);--accent:var(--theme-5,#315c43);--soft:var(--theme-6,#e7efe3)}
body,main,header,footer,.login{background:var(--bg)}
aside{background:var(--theme-7,#eaf1e7)}
#composer,.login-card,dialog{background:var(--paper);color:var(--ink);border-color:var(--line)}
#composer:focus-within{border-color:var(--theme-8,#8ca58b)}
.task.active{background:var(--theme-9,#dbe8d5)}
.new-task:hover,.task:hover,.icon:hover,.quota-button:hover,.desktop-button:hover{background:var(--theme-10,#e1ebdc)}
.task-search:hover,.task-search:focus{background:var(--paper)}
.task-search::placeholder,textarea::placeholder{color:var(--theme-11,#687661)}
.message.user .bubble,.avatar,.workspace-settings{background:var(--theme-12,#e8f0e3)}
.avatar,.quota-button,.message .who,.pill,.task-state,.nav-label span,.usage-heading,.usage-heading #refreshLimits,.usage-panel .quota-row-label,.usage-panel #usageDetails,.usage-panel .quota-missing,.message-actions button,.code-toolbar button{color:var(--muted)}
.usage-panel .quota-row-label strong{color:var(--theme-13,#4e6253)}
.workspace-settings input,.workspace-settings select,.settings-dialog input,.login-card input{background:var(--paper);color:var(--ink);border-color:var(--line)}
.bubble code,.markdown th{background:var(--theme-14,#e5edde);color:var(--ink)}
.bubble pre,.activity pre,.markdown tbody tr:nth-child(even){background:var(--theme-15,#edf3e8)}
.code-toolbar{background:var(--theme-16,#e2ebdc);color:var(--muted)}
.activity{background:var(--theme-17,#f0f6ec);color:var(--muted)}
#files a{background:var(--theme-18,#f7faf4);border-color:var(--line)}
.files-resize span{background:var(--theme-19,#b9cbb2)}
.files-resize:hover span,.files-resize:focus-visible span{background:var(--theme-20,#718b68)}
.jump-bottom{background:var(--paper);color:var(--accent)}
nav{scrollbar-color:var(--theme-21,#cbdac4) transparent}
.primary{background:var(--accent)}

.appearance-settings{padding-bottom:22px;border-bottom:1px solid var(--line);margin-bottom:22px}.appearance-settings h3{font-size:15px;margin:18px 0 0}.appearance-settings select{width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink)}.background-custom{display:flex;align-items:center;gap:12px;margin-top:16px}.background-custom label{margin:0}.settings-dialog #backgroundColor{width:48px;height:36px;padding:3px;cursor:pointer}.background-custom output{font-size:12px;color:var(--muted)}html[data-dark-background] .ui-icon{filter:invert(1)}html[data-dark-background] .send .ui-icon{filter:none}

.code-block>summary{cursor:pointer;list-style:none;min-height:34px}.code-block>summary::-webkit-details-marker{display:none}.code-toggle::before{content:'▸';display:inline-block;margin-right:7px}.code-block[open] .code-toggle::before{content:'▾'}.code-collapse,.code-block[open] .code-expand{display:none}.code-block[open] .code-collapse{display:inline}.code-block{background:var(--paper)}.code-block>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

.activity-group{margin:0 0 16px;color:var(--muted);font-size:12px}.activity-group>.activity-group-title{cursor:pointer;padding:8px 0;list-style:none;user-select:none}.activity-group-title::-webkit-details-marker{display:none}.activity-group-title::before{content:'▸';display:inline-block;margin-right:8px}.activity-group[open]>.activity-group-title::before{content:'▾'}.activity-group>.activity{margin:5px 0 5px 14px}.activity-group>.activity-group-title:hover{color:var(--ink)}

.message.agent .who{font-size:12px;letter-spacing:0;color:var(--muted);padding-bottom:9px;border-bottom:1px solid var(--line);margin-bottom:14px}.reply-duration{line-height:1.6}

.activity-group>.activity-group-title{color:var(--muted);opacity:.68;font-weight:400}.activity-group>.activity-group-title:hover,.activity-group>.activity-group-title:focus-visible{color:var(--muted);opacity:.9}

.turn-process{margin:0 0 16px;color:var(--muted)}.turn-process>.turn-process-title{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;font-size:13px;font-weight:400;color:var(--muted);opacity:.7;padding:8px 0 11px;border-bottom:1px solid var(--line);margin-bottom:15px}.turn-process-title::-webkit-details-marker{display:none}.turn-process-title::after{content:'';width:6px;height:6px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);margin-left:2px}.turn-process[open]>.turn-process-title::after{transform:rotate(135deg)}.turn-process>.turn-process-title:hover{opacity:.95}.turn-process>.message{color:var(--ink)}.turn-process>.activity{background:transparent;border:0;padding:6px 0;margin:0 0 12px;color:var(--muted)}.turn-process>.activity summary{font-size:13px}.turn-process.no-process>.turn-process-title{cursor:default}.turn-process.no-process>.turn-process-title::after{display:none}

.projects-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 4px;color:var(--muted);font-size:12px}.projects-heading .icon{width:26px;height:26px}.project-group{margin:4px 0 12px}.project-heading{display:flex;align-items:center;gap:6px;list-style:none;cursor:pointer;padding:7px 9px;border-radius:8px;font-size:13px}.project-heading::-webkit-details-marker{display:none}.project-heading::before{content:'▸';color:var(--muted);font-size:10px}.project-group[open]>.project-heading::before{content:'▾'}.project-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-add,.task-menu{border:0;background:transparent;color:var(--muted);border-radius:5px;flex-shrink:0}.project-add{font-size:20px;width:25px;height:25px}.project-group .task-row{margin-left:18px}.task-row{display:flex;align-items:center;position:relative}.task-row>.task{min-width:0;flex:1}.task-menu{width:26px;font-size:19px}.task-project-menu{position:absolute;right:0;top:100%;z-index:10;padding:5px;background:var(--paper);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 18px #0002;min-width:130px}.task-project-menu button{display:block;width:100%;padding:9px 12px;text-align:left;border:0;background:transparent;color:var(--ink);border-radius:5px}.task-project-menu button:hover,.project-heading:hover{background:var(--soft)}.unassigned-heading{font-size:12px;color:var(--muted);padding:14px 12px 7px}.project-empty{font-size:11px;color:var(--muted);margin:8px 30px}.project-context{font-size:10px;color:var(--muted);display:block;margin-top:3px}#projectDestination{width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink)}

/* Projects stay above the independently scrolling chat history. */
#sidebar{overflow:hidden}.projects-heading{flex-shrink:0}.project-list{flex:0 1 auto;min-height:0;max-height:42%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.project-list .project-group:last-child{margin-bottom:4px}#tasks{flex:1 1 100px;min-height:60px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.sidebar-bottom{flex-shrink:0}

.project-section-toggle{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--muted);font:inherit;padding:6px 0;cursor:pointer}.project-section-arrow{display:inline-block;font-size:10px;transition:transform .15s}.project-section-toggle[aria-expanded="true"] .project-section-arrow{transform:rotate(90deg)}.project-section-toggle:hover{color:var(--ink)}

.project-list .project-group{margin:0 0 2px}.project-list .project-group:last-child{margin-bottom:0}.project-list .project-heading{padding-top:3px;padding-bottom:3px}

#sidebar .brand{justify-content:space-between;margin-right:3px;gap:8px}#toggleTaskSearch{margin-left:auto;flex-shrink:0}#toggleTaskSearch .ui-icon{width:19px;height:19px;opacity:.65}#sidebar .usage-panel{padding:12px 8px 2px}.usage-panel .quota-inline{display:flex;align-items:center;justify-content:space-between;gap:3px;white-space:nowrap;color:var(--muted);font-size:11px;line-height:1.8}.quota-divider{opacity:.5}.usage-actions{display:flex;align-items:center;justify-content:space-between;margin-top:5px}.usage-actions #usageDetails{margin-top:0}.usage-actions #refreshLimits{font-size:10px;color:var(--muted);padding:4px 0}

.task-project-menu .delete-task,.delete-task{color:var(--red)}#openArchivedTasks{margin-left:auto;width:auto;font-size:10px;padding:4px}#refreshTasks{margin-left:8px}.archived-task-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.archived-task-row>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px}.task-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.delete-task-name{overflow-wrap:anywhere;font-size:14px}#archivedTasksList{max-height:60vh;overflow:auto}.task-project-menu button:disabled{cursor:default}

body>.task-project-menu{position:fixed;right:auto;z-index:1000;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain}

.task-search-dialog{width:min(560px,calc(100vw - 32px));max-height:min(650px,80dvh);padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 20px 80px #0002;margin:auto}.task-search-dialog .dialog-head h2{font-size:17px;margin:0}.task-search-dialog #taskSearch{display:block;width:100%;margin:16px 0 10px;padding:12px 14px;background:var(--bg);border:1px solid var(--line);border-radius:9px;font-size:14px;color:var(--ink)}#taskSearchCount{font-size:12px;margin:12px 2px}.task-search-results{max-height:calc(80dvh - 180px);overflow:auto;overscroll-behavior:contain}.task-search-result{display:block;width:100%;text-align:left;padding:12px;border:0;background:transparent;color:var(--ink);border-radius:8px}.task-search-result:hover,.task-search-result:focus-visible{background:var(--soft)}.task-search-result strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}.task-search-result small{display:block;font-size:11px;margin-top:5px}.search-empty{padding:25px 10px;text-align:center;color:var(--muted);font-size:13px}

/* Compact sidebar header leaves more room for task history. */
#sidebar{padding-top:16px}#sidebar .brand{margin:0 3px 26px 12px;min-height:32px;flex-shrink:0}#sidebar .brand strong{font-size:19px;white-space:nowrap}#sidebar .new-task{padding:7px 12px;min-height:34px;flex-shrink:0}#sidebar .projects-heading{padding:4px 12px 2px;min-height:30px}#sidebar .project-section-toggle{padding:3px 0}#sidebar .nav-label{padding:7px 12px 5px;min-height:30px;flex-shrink:0}@media(max-width:620px){#sidebar{padding-top:14px}}

@media(hover:hover) and (pointer:fine){.task-row>.task-menu{opacity:0;pointer-events:none;transition:opacity .12s}.task-row:hover>.task-menu,.task-row:focus-within>.task-menu{opacity:1;pointer-events:auto}}

#taskSearchDialog{overflow:hidden}#taskSearchDialog[open]{display:flex;flex-direction:column}#taskSearchDialog>.dialog-head,#taskSearchDialog>#taskSearch,#taskSearchDialog>#taskSearchCount{flex-shrink:0}#taskSearchDialog>.task-search-results{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto}

#sidebar #tasks{margin-right:-10px;padding-right:10px}

#sidebar .project-section-toggle{font-size:14px;font-weight:600;color:var(--ink)}#sidebar .project-heading{font-size:14px;color:var(--ink)}#sidebar .project-name{font-weight:550}#sidebar .project-heading::before{color:var(--ink);opacity:.75}

#sidebar .project-section-toggle{gap:8px}#sidebar .project-section-arrow{width:6px;height:6px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg);opacity:.65;margin:0 3px 0 0}#sidebar .project-section-toggle[aria-expanded="true"] .project-section-arrow{transform:rotate(135deg)}

#sidebar .task-row>.task{color:var(--ink)}#sidebar .task-row>.task>strong{font-size:13px;line-height:18px;font-weight:400;color:var(--ink)}

/* One shared action column for project and history controls. */
#sidebar .projects-heading,#sidebar .nav-label{padding-right:0}#sidebar .project-heading{padding-right:0}#sidebar #newProject,#sidebar .project-add,#sidebar #refreshTasks{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;padding:0}#sidebar #refreshTasks{margin-left:auto}#sidebar .project-add .ui-icon{width:15px;height:15px;opacity:.65}

.command-group>.command-record{margin:5px 0;border:1px solid var(--line);border-radius:7px;background:var(--paper);overflow:hidden}.command-record>.command-preview{display:block;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;list-style:none;color:var(--muted)}.command-preview::-webkit-details-marker{display:none}.command-record>.command-preview::before{content:'▸';margin-right:7px}.command-record[open]>.command-preview::before{content:'▾'}.command-record pre{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;max-height:220px}.command-record>.command-preview:hover{color:var(--ink)}

#settingsDialog{width:min(720px,calc(100vw - 32px));height:min(600px,85dvh);padding:0;overflow:hidden;border:1px solid var(--line);border-radius:14px}#settingsDialog[open]{display:flex;flex-direction:column}#settingsDialog>.dialog-head{flex-shrink:0;padding:18px 22px;border-bottom:1px solid var(--line)}#settingsDialog>.dialog-head h2{margin:0;font-size:18px}.settings-layout{display:flex;flex:1;min-height:0}.settings-nav{width:145px;flex-shrink:0;display:flex;flex-direction:column;gap:5px;padding:16px 10px;background:var(--bg);border-right:1px solid var(--line)}.settings-tab{display:block;text-align:left;border:0;background:transparent;border-radius:7px;padding:11px 14px;color:var(--muted);font-size:14px}.settings-tab:hover,.settings-tab[aria-selected="true"]{background:var(--soft);color:var(--ink)}.settings-tab[aria-selected="true"]{font-weight:600}.settings-content{flex:1;min-width:0;overflow-y:auto;padding:22px 26px;overscroll-behavior:contain}.settings-panel>h3{font-size:16px;margin:0 0 20px}#settingsDialog .appearance-settings{border:0;padding:0;margin:0}#settingsDialog .appearance-settings h3{margin:0 0 20px;font-size:16px}#settingsDialog #userManagement{margin-top:24px}@media(max-width:480px){.settings-nav{width:88px;padding:12px 6px}.settings-tab{padding:10px}.settings-content{padding:18px 14px}#settingsDialog>.dialog-head{padding:14px 16px}}

#settingsDialog #settingsPanel-account #userManagement{border:0;padding:0;margin:0}

#sidebar .sidebar-bottom #connection{display:none}

#sidebar .sidebar-bottom{align-items:center}#sidebar .sidebar-bottom>.machine-dot{align-self:center}#sidebar .sidebar-bottom>.machine-dot+div{display:flex;align-items:center}#sidebar .sidebar-bottom>.machine-dot+div>strong{display:block;line-height:20px}

#sidebar .usage-panel{padding-top:7px}.quota-bars{display:flex;flex-direction:column;gap:3px;height:28px}.quota-bar-row{display:flex;align-items:center;gap:8px;min-height:0;height:12.5px;font-size:10px;line-height:12.5px;color:var(--muted)}.quota-bar-caption{flex:0 0 56px;white-space:nowrap}.quota-bar-track{display:block;flex:1;height:4px;overflow:hidden;border-radius:3px;background:var(--line)}.quota-bar-fill{display:block;height:100%;border-radius:3px;transition:width .2s}.quota-good{background:#4c9071}.quota-medium{background:#c89b42}.quota-low{background:#bb655e}.quota-bar-value{flex:0 0 35px;text-align:right;white-space:nowrap}#sidebar .usage-actions{margin-top:2px}

#sidebar .usage-actions{justify-content:flex-end}#sidebar .usage-actions #refreshLimits{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0}#sidebar #refreshLimits .ui-icon{width:13px;height:13px;opacity:.6}

#sidebar .sidebar-bottom{padding-right:0}#sidebar #logout{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:32px;padding:0}#sidebar .usage-panel{padding-right:0}#sidebar #usageCompact{padding-right:34px}#sidebar .usage-actions #refreshLimits{flex:0 0 26px;width:26px}#sidebar .quota-bar-track{min-width:0}#sidebar .quota-bar-value{flex-basis:30px}

#sidebar .quota-bars{height:36px;gap:4px}#sidebar .quota-bar-row{height:16px;line-height:16px;font-size:12px;gap:8px}#sidebar .quota-bar-caption{flex-basis:65px}#sidebar .quota-bar-value{flex-basis:32px}#sidebar .quota-bar-track{height:5px}#sidebar .usage-panel{padding-bottom:2px}#sidebar .usage-actions{position:absolute;right:0;top:2px;margin:0}#sidebar .usage-actions #refreshLimits{height:26px}#sidebar #refreshLimits .ui-icon{width:14px;height:14px}

#sidebar .quota-bar-caption{flex-basis:36px}

.steer-queue{margin:0 12px -12px;padding-bottom:12px;max-height:180px;overflow-y:auto;border:1px solid var(--line);border-radius:18px 18px 0 0;background:var(--paper)}.steer-queue-row{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:44px;border-bottom:1px solid var(--line);font-size:13px}.steer-queue-row:last-child{border-bottom:0}.steer-queue-mark{color:var(--muted);font-size:17px}.steer-queue-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}.steer-queue-guide,.steer-queue-action{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--muted);border-radius:5px;cursor:pointer;flex-shrink:0}.steer-queue-guide{padding:5px 7px;font-size:12px;white-space:nowrap}.steer-queue-action{width:26px;height:26px;padding:4px;font-size:18px}.steer-queue-guide:hover,.steer-queue-action:hover{color:var(--ink);background:var(--soft)}#steerEditText{border:1px solid var(--line);border-radius:8px;padding:10px;min-height:130px;color:var(--ink);background:var(--paper)}@media(max-width:480px){.steer-queue-row{gap:5px;padding:8px}.steer-queue{margin-left:8px;margin-right:8px}}

.sidebar-backdrop{display:none}@media(max-width:620px){#sidebar.open+.sidebar-backdrop{display:block;position:fixed;inset:0;z-index:4;border:0;border-radius:0;padding:0;background:#0000000a;cursor:pointer;touch-action:manipulation}#sidebar{z-index:5}}

/* Mobile layout review: touch targets, keyboard viewport, bounded content. */
@media(max-width:620px){
 html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
 body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .shell{position:fixed;left:0;right:0;top:var(--mobile-viewport-top,0px);height:var(--mobile-viewport-height,100dvh);max-width:100vw}
 main{min-height:0;overflow:hidden}
 #sidebar{top:var(--mobile-viewport-top,0px);bottom:auto;height:var(--mobile-viewport-height,100dvh);width:min(300px,calc(100vw - 56px));padding-left:max(12px,env(safe-area-inset-left));padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
 #sidebar .brand{margin-bottom:14px}
 header{height:56px;min-height:56px;padding:6px 12px;grid-template-columns:40px minmax(0,1fr) auto}
 header h2{max-width:100%;font-size:14px;line-height:1.5}
 header .icon,.quota-button{min-width:40px;min-height:40px}
 #conversation{min-width:0;padding:16px;overscroll-behavior:contain;overflow-x:hidden}
 .welcome{min-height:130px;padding-bottom:16px}.welcome h1{font-size:23px}
 .banner{padding:8px 14px;max-height:80px;overflow:auto;overflow-wrap:anywhere}
 footer{padding:8px max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));min-width:0}
 #composer{padding:12px 10px 8px;border-radius:18px}
 #prompt{font-size:16px;min-height:56px;max-height:min(150px,25dvh)}
 .composer-bottom{display:flex;flex-wrap:wrap;gap:4px}
 .composer-bottom>div:first-child{flex:1 1 100%;min-width:0;gap:4px}
 .composer-bottom .workspace-button{max-width:calc(100vw - 100px)!important;font-size:12px;min-height:40px}
 .composer-bottom .icon{width:40px;height:40px}
 .composer-actions{flex:1 1 100%;min-width:0;gap:5px!important}
 .model-controls{flex:1;min-width:0;gap:4px}
 .model-controls #model{flex:1;min-width:0;width:0;max-width:none;font-size:16px;min-height:40px;padding:5px 2px}
 .model-controls #effort{flex:0 1 84px;min-width:0;width:84px;max-width:84px;font-size:16px;min-height:40px;padding:5px 2px}
 .send{width:40px;height:40px}.stop{min-height:40px;white-space:nowrap;padding:6px 8px}
 .jump-bottom{bottom:var(--composer-clearance,200px);right:16px;max-width:calc(100vw - 32px);min-height:36px}
 .bubble,.markdown,.turn-process{min-width:0;max-width:100%}
 .table-scroll{max-width:100%;overscroll-behavior:contain}.bubble pre,.activity pre{max-width:100%;font-size:12px}
 .files-panel{margin-left:16px;margin-right:16px;max-height:40dvh}
 .files-panel .files-resize{flex-basis:20px;min-height:20px}
 .files-panel .files-heading{flex-basis:27px}
 .files-panel{min-height:48px}
 dialog{max-width:calc(100vw - 24px);max-height:calc(var(--mobile-viewport-height,100dvh) - 24px)}
 .settings-dialog{width:calc(100vw - 24px);padding:18px;overscroll-behavior:contain}
 #settingsDialog{width:calc(100vw - 24px);height:min(600px,calc(var(--mobile-viewport-height,100dvh) - 24px));max-height:calc(var(--mobile-viewport-height,100dvh) - 24px)}
 .settings-content{min-height:0;overflow-x:hidden;padding:18px 14px}
 .settings-nav{width:88px;padding:12px 6px}.settings-tab{min-height:44px;padding:10px;font-size:14px}
 .settings-panel{min-width:0}#settingsDialog .background-custom{flex-wrap:wrap;gap:8px}
 .settings-dialog input:not([type=color]),.settings-dialog select,.settings-dialog textarea,.login-card input,#taskSearchDialog #taskSearch{font-size:16px;min-height:44px}
 .settings-dialog .dialog-head .icon,#closeTaskSearch{min-width:40px;min-height:40px}
 .desktop-button,.task-dialog-actions button{min-height:40px;padding:9px 12px}
 .task-dialog-actions{flex-wrap:wrap}
 #taskSearchDialog{width:calc(100vw - 24px);max-height:calc(var(--mobile-viewport-height,100dvh) - 24px);padding:16px}
 #taskSearchDialog #taskSearch{margin-top:12px}
 .task-search-result{min-height:52px}.task-search-result strong{font-size:14px}
 #archivedTasksList{max-height:calc(var(--mobile-viewport-height,100dvh) - 160px)}
 .task-project-menu{min-width:160px}.task-project-menu button{min-height:44px;font-size:14px;padding:10px 14px}
 .steer-queue{max-height:100px}.steer-queue-row{gap:5px;padding:6px 8px}
 .steer-queue-action{width:36px;height:40px}.steer-queue-guide{min-height:40px;padding:5px}
 .login{height:var(--mobile-viewport-height,100dvh);min-height:0;overflow:auto;padding:20px}.login-card{padding:24px;flex-shrink:0}
}
@media(hover:none) and (pointer:coarse){
 #sidebar .task{min-height:44px;padding-top:10px;padding-bottom:10px}
 #sidebar .task-menu{width:36px;min-height:44px;opacity:1;pointer-events:auto}
 #sidebar #newProject,#sidebar .project-add,#sidebar #refreshTasks,#sidebar .usage-actions #refreshLimits{position:relative}
 #sidebar #newProject::after,#sidebar .project-add::after,#sidebar #refreshTasks::after,#sidebar #refreshLimits::after{content:'';position:absolute;inset:-6px}
 #sidebar .project-section-toggle,#sidebar .project-heading{min-height:40px}
 #sidebar #logout,#sidebar #accountSettings,#sidebar #toggleTaskSearch{min-width:40px;min-height:40px}
}
