/* Paper-colored workspace, sharing the conversation's typography and palette. */
#filePanel.workspace-panel{--workspace-width:440px;position:relative;inset:auto;width:var(--workspace-width);max-width:57vw;min-width:320px;flex:0 0 auto;display:flex;flex-direction:column;padding:0;border-left:1px solid #e3ddcf;background:#fcfaf5;box-shadow:none;z-index:22;overflow:visible;height:100dvh;color:#695f50}
.workspace-heading{height:69px;flex-shrink:0;display:flex;align-items:center;gap:4px;padding:15px 14px 12px 20px;border-bottom:1px solid #eee7dc}.workspace-heading>div{flex:1;min-width:0}.workspace-heading h2{font-size:14px;line-height:1.3;font-weight:550;margin:0;color:#51483c}.workspace-heading p{margin:4px 0 0;font-size:11px;line-height:1.4;color:#a1937f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-heading .icon-button{font-size:21px;padding:5px 7px;color:#988975}
.workspace-tabs{flex-shrink:0;display:flex;gap:19px;padding:0 20px;border-bottom:1px solid #e9e2d6;height:44px}.workspace-tabs button{position:relative;display:flex;align-items:center;gap:6px;padding:0 1px;background:transparent;font-size:12px;color:#a1927c;white-space:nowrap}.workspace-tabs button[aria-selected=true]{color:#705740;font-weight:550}.workspace-tabs button[aria-selected=true]:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;border-radius:2px;background:#b8896a}.workspace-tabs button>span{font-size:10px;line-height:1.4;background:#eee7d9;border-radius:4px;min-width:16px;text-align:center;padding:0 3px;color:#9a8060}
.workspace-tab-panel{flex:1;min-height:0;overflow:auto;padding:15px 17px 20px;scrollbar-width:thin;scrollbar-color:#dfd5c4 transparent}.workspace-preview-panel{display:flex;flex-direction:column;padding:0}.workspace-changes-panel{display:flex;flex-direction:column;padding:13px 0 0;overflow:hidden}.workspace-empty{text-align:center;padding:38px 17px;color:#a39682;font-size:12px;line-height:1.8;margin:0}.workspace-empty>span{display:block;font-size:30px;color:#c3b49d;margin-bottom:14px}.workspace-empty>strong{display:block;font-size:14px;font-weight:500;color:#82715a}.workspace-empty p{margin:10px auto 17px;max-width:280px;font-size:12px}.workspace-empty .secondary{font-size:12px;padding:7px 13px;min-height:33px;background:#f9f5ec}
.workspace-panel .file-toolbar{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:0 0 12px;font-size:11px}.workspace-panel .file-toolbar .text-button{font-size:11px;padding:4px 0;color:#9d8b71}.workspace-panel #downloadProject{margin-left:auto}.workspace-panel #workspaceOpenFolder{flex-basis:100%;text-align:left}.workspace-panel .hint{font-size:10px;color:#ad9d85;margin:18px 2px 0;line-height:1.7}.workspace-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:3px;margin:2px 0 11px;line-height:1.6;color:#baad99}.workspace-breadcrumbs button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;color:#8a775d;padding:2px 3px;font-size:11px;border-radius:4px}.workspace-breadcrumbs button:hover{background:#eee7da}.workspace-breadcrumbs span{font-size:10px}.workspace-file-search{display:block;width:100%;padding:8px 10px;background:#f8f4eb;border:1px solid #e9e1d3;border-radius:7px;font-size:11px;margin-bottom:11px}.workspace-file-search::placeholder{color:#b5a68e}
.workspace-panel .file-list .file-entry{display:flex;align-items:center;gap:2px;border-radius:6px;padding:0 2px}.workspace-panel .file-list .file-entry:hover{background:#f1eadf}.workspace-panel .file-list button[data-file]{flex:1;min-width:0;text-align:left;padding:9px 4px;gap:8px;font-size:12px;color:#827058;background:transparent}.workspace-panel .file-list button[data-file]>span:first-child{font-size:14px;color:#ab977c;flex-shrink:0}.workspace-panel .file-list button[data-file] small{font-size:9px;color:#bcab92}.workspace-panel .file-list .file-download{color:#ab9678;font-size:13px;flex-shrink:0;padding:5px}.workspace-panel .file-list .workspace-file-more{display:block;width:25px;flex:0 0 25px;padding:4px 2px;font-size:17px;color:#9e8a70;background:transparent;text-align:center;opacity:0}.workspace-panel .file-list .file-entry:hover .workspace-file-more,.workspace-panel .file-list .workspace-file-more:focus-visible{opacity:1}.workspace-panel .file-list .empty{padding:35px 10px;text-align:center;font-size:12px;color:#afa087}.workspace-panel .load-more-files{font-size:11px;min-height:32px;padding:7px 10px;margin-top:12px;width:100%;background:transparent}.workspace-file-menu{position:fixed;z-index:103;width:205px;background:#fffdf8;border:1px solid #e2d9ca;border-radius:10px;padding:5px;box-shadow:0 12px 32px #54422c20}.workspace-file-menu button{display:block;width:100%;text-align:left;padding:10px 11px;font-size:12px;line-height:1.4;color:#806c51;border-radius:6px;background:transparent}.workspace-file-menu button:hover:not(:disabled){background:#f2ebdf}.workspace-file-menu p{font-size:10px;line-height:1.6;color:#ac977a;margin:7px 10px}
#previewDialog.workspace-preview{position:static;inset:auto;display:flex;flex:1;min-height:0;flex-direction:column;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:#695b46;overflow:hidden}#previewDialog.workspace-preview .dialog-heading{flex-shrink:0;margin:0;padding:13px 16px;gap:8px;border-bottom:1px solid #ede5d7}#previewDialog.workspace-preview .dialog-heading h2{font-family:inherit;font-size:12px;font-weight:500;color:#8a7356;overflow-wrap:anywhere;line-height:1.5;min-width:0}#previewDialog.workspace-preview .dialog-heading .icon-button{font-size:18px;padding:3px 5px}#previewDialog.workspace-preview #pagePreviewToolbar{flex-shrink:0;display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0;padding:9px 13px;border-bottom:1px solid #ede5d7}#previewDialog.workspace-preview #pagePreviewSelect{flex:1;min-width:100px;max-width:100%;font-size:11px;background:transparent;border:1px solid #e4dac7;border-radius:5px;padding:6px;color:#91785a}#previewDialog.workspace-preview .secondary{min-height:29px;padding:5px 8px;font-size:10px;gap:4px;background:#fbf7ef;border-color:#e6dccb;border-radius:6px;white-space:normal}#previewDialog.workspace-preview .preview-tabs{display:flex;gap:3px}#previewDialog.workspace-preview .preview-tabs .active{background:#eee4d4;color:#8c6344;border-color:#decbb2}#previewDialog.workspace-preview #pagePreviewFrame{flex:1;min-height:260px;height:auto;margin:0;border:0;border-radius:0;background:white;overflow:auto}#previewDialog.workspace-preview #pagePreviewFrame iframe{display:block;border:0;width:100%;height:100%;min-height:400px;background:white}#previewDialog.workspace-preview #pagePreviewFrame.inline-svg-frame{display:flex;align-items:center;justify-content:center;background:#fffefa;padding:16px}#previewDialog.workspace-preview #pagePreviewFrame.inline-svg-frame img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}#previewDialog.workspace-preview #fileContent{flex:1;min-height:120px;max-height:none;overflow:auto;margin:0;padding:17px;border:0;border-radius:0;background:#f7f3eb;color:#766248;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.85}#previewDialog.workspace-preview #fileRendered{flex:1;min-height:150px;max-height:none;overflow:auto;padding:18px;margin:0;border:0;background:#fffdf7;font-size:15px;line-height:1.9}#previewDialog.workspace-preview #fileRendered>img{display:block;max-width:100%;height:auto;margin:auto}#previewDialog.workspace-preview .preview-footer{display:flex;flex-shrink:0;flex-wrap:wrap;gap:6px;padding:11px 13px;border-top:1px solid #e9e0d1;background:#fcf8ef;margin:0}#previewDialog.workspace-preview .preview-footer .hint{flex-basis:100%;margin:0 0 4px;font-size:10px;line-height:1.5;color:#ae9677}
.workspace-change-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 17px 10px;flex-shrink:0;min-height:27px}.workspace-change-heading .text-button{font-size:11px;padding:2px 0}.workspace-change-heading>span{font-size:11px;color:#a08765;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-change-path{margin:0;padding:8px 17px 12px;font-size:11px;color:#8f7758;overflow-wrap:anywhere;border-bottom:1px solid #e8dece;flex-shrink:0}.workspace-change-list{overflow:auto;min-height:0;scrollbar-width:thin;flex-shrink:1}.workspace-change-row{width:100%;display:flex;align-items:center;gap:9px;padding:12px 17px;background:transparent;text-align:left;border-bottom:1px solid #f0e8dd;font-size:12px;color:#837056}.workspace-change-row:hover{background:#f2eadc}.workspace-change-row>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.5}.workspace-change-row small{flex-shrink:0;color:#b39a78;font-size:10px}.workspace-change-dot{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#aa8960;min-width:17px;font-size:11px}.workspace-change-dot[data-status=A],.workspace-change-dot[data-status="??"]{color:#7c9163}.workspace-change-dot[data-status=D]{color:#b47b64}.workspace-confirmed-heading{padding:17px 17px 7px;font-size:11px;color:#a18b6d}.workspace-panel #workspaceChangesNote{flex-shrink:0;padding:11px 17px;margin:0;border-top:1px solid #ece3d4;background:#fbf7ee;font-size:10px;line-height:1.7}.workspace-panel #workspaceChangesNote:empty{display:none}.workspace-diff{flex:1;min-height:100px;overflow:auto;background:#fffcf5;color:#8a785e;margin:0;padding:0;border:0;white-space:pre;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.85;tab-size:4;scrollbar-width:thin}.workspace-diff .diff-line{display:block;width:max-content;min-width:100%;padding:0 15px}.workspace-diff .diff-add{background:#edf1e0;color:#6e8055}.workspace-diff .diff-remove{background:#f6e7de;color:#a17660}.workspace-diff .diff-meta{color:#b29d80;background:#f5efe4}.workspace-diff .diff-hunk{color:#98815e;background:#ebe8d9;padding-top:5px;padding-bottom:5px}
.workspace-resize{position:absolute;left:-4px;top:0;bottom:0;width:7px;z-index:2;cursor:col-resize;touch-action:none}.workspace-resize:after{content:"";position:absolute;width:2px;left:3px;top:0;bottom:0;transition:background .15s}.workspace-resize:hover:after,.workspace-resize:focus-visible:after{background:#c4a586}.resizing-workspace,.resizing-workspace *{cursor:col-resize!important;user-select:none!important}.resizing-workspace iframe{pointer-events:none}.workspace-open .header-actions{gap:6px}.workspace-open #connectionTag{display:none}.workspace-open #main .topbar{padding-left:22px;padding-right:20px}.workspace-open #main .conversation,.workspace-open #main .composer-wrap{padding-left:24px;padding-right:24px}.workspace-open #main .chat-title{max-width:260px}.workspace-open #main .header-actions .secondary{padding:6px 8px;font-size:12px}
@media(max-width:1400px) and (min-width:1080px){.workspace-open #main .header-actions .secondary span{display:none}.workspace-open #main .chat-title{max-width:180px}.workspace-open #main .composer-wrap,.workspace-open #main .conversation{padding-left:19px;padding-right:19px}}
@media(max-width:1079px){#filePanel.workspace-panel{position:fixed;inset:65px 0 0 auto;width:min(var(--workspace-width),94vw);max-width:94vw;min-width:280px;height:calc(100dvh - 65px);box-shadow:-10px 0 40px #6b54301a;border-top:1px solid #e4dac8;z-index:40}.workspace-heading{height:59px;padding-top:11px;padding-bottom:9px}.workspace-resize{display:none}.workspace-open #main .topbar{padding-left:12px;padding-right:12px}.workspace-open #main .conversation,.workspace-open #main .composer-wrap{padding-left:17px;padding-right:17px}.workspace-file-more{opacity:1!important}}
@media(max-width:500px){#filePanel.workspace-panel{inset:0 0 0 auto;width:100vw;max-width:100vw;min-width:0;height:100dvh;border-left:0;border-top:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);z-index:50}.workspace-heading{height:58px}.workspace-heading h2{font-size:14px}.workspace-tabs{height:46px;gap:27px}.workspace-tabs button{font-size:13px}.workspace-panel .file-list button[data-file]{font-size:13px;padding:12px 4px}.workspace-panel .file-list .workspace-file-more{opacity:1;width:30px;flex-basis:30px}.workspace-panel .file-list .file-download{padding:9px}.workspace-change-row{padding:14px 17px}#previewDialog.workspace-preview .secondary{min-height:33px;padding:6px 10px;font-size:11px}#previewDialog.workspace-preview #fileContent{font-size:12px}.workspace-file-menu button{padding:12px;font-size:13px}}
/* Task progress uses the same paper surface; no synthetic percentage meter. */
.workspace-tasks-panel{padding:14px 15px 24px}.workspace-task-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 15px;font-size:11px;color:#a08d75}.workspace-task-toolbar .text-button{font-size:11px;padding:3px 0;color:#a2765e}.workspace-main-task,.workspace-agent-card,.workspace-process-card{border:1px solid #e8dfd0;border-radius:10px;background:#fffdf8;margin-bottom:9px;overflow:hidden}.workspace-main-task{padding:14px}.workspace-main-task h3,.workspace-agent-card h3{font-family:inherit;font-size:12px;font-weight:500;line-height:1.7;color:#80694d;overflow-wrap:anywhere;margin:10px 0 7px}.workspace-main-task>p{font-size:11px;color:#a18a6b;line-height:1.8;margin:6px 0}.workspace-task-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.workspace-task-eyebrow{font-size:10px;line-height:1.6;color:#b09877}.workspace-task-state{display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:1.7;color:#a18e74;white-space:nowrap}.workspace-task-state:before{content:"";width:5px;height:5px;border-radius:50%;background:#c6b49b;flex-shrink:0}.workspace-task-state[data-state=running]{color:#a07450}.workspace-task-state[data-state=running]:before{background:#bd8a60;box-shadow:0 0 0 3px #e7d3b74f;animation:workspace-task-pulse 1.8s ease-in-out infinite}.workspace-task-state[data-state=completed]{color:#849168}.workspace-task-state[data-state=completed]:before{background:#94a179}.workspace-task-state[data-state=failed]{color:#b17966}.workspace-task-state[data-state=failed]:before{background:#be8b78}.workspace-task-state[data-state=waiting]{color:#ac9262}.workspace-task-state[data-state=waiting]:before{background:#c2a46d}.workspace-task-metrics{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;font-size:10px;color:#b19b7d;line-height:1.7}.workspace-task-metrics:empty{display:none}.workspace-task-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;font-weight:500;color:#9a8060;margin:23px 2px 11px}.workspace-task-section-title>span{font-size:10px;font-weight:400;color:#baa486}.workspace-agent-card>summary,.workspace-process-card>summary{display:block;padding:12px 13px;cursor:pointer;list-style:none}.workspace-agent-card>summary::-webkit-details-marker,.workspace-process-card>summary::-webkit-details-marker,.workspace-plan-task>summary::-webkit-details-marker{display:none}.workspace-agent-card>summary:hover,.workspace-process-card>summary:hover{background:#faf5eb}.workspace-agent-card[open]>summary,.workspace-process-card[open]>summary{border-bottom:1px solid #eee4d5}.workspace-task-progress{font-size:11px;line-height:1.7;color:#a18a6b;overflow-wrap:anywhere;margin:9px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.workspace-task-expand{display:flex;justify-content:space-between;margin:10px 0 0;font-size:10px;color:#b8a181}.workspace-agent-card[open] .workspace-task-expand>span{transform:rotate(180deg)}.workspace-task-detail{padding:12px 13px}.workspace-task-detail h4{font-size:10px;line-height:1.5;color:#b19979;font-weight:400;margin:0 0 7px}.workspace-task-detail pre{font-size:11px;line-height:1.8;color:#8c7559;background:transparent;padding:0;margin:0;border:0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto;font-family:inherit}.workspace-task-last-tool{font-size:10px;line-height:1.7;color:#ab9678;margin:0;padding:0 13px 12px;overflow-wrap:anywhere}.workspace-task-note{font-size:10px;line-height:1.85;color:#b29c7e;margin:10px 2px 14px}.workspace-plan-task{border-bottom:1px solid #ede4d5}.workspace-plan-task>summary{display:flex;align-items:flex-start;gap:9px;list-style:none;cursor:pointer;padding:11px 2px;font-size:12px;line-height:1.7;color:#8f7658}.workspace-plan-task>summary>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.workspace-plan-task .workspace-task-state{font-size:9px;flex-shrink:0}.workspace-plan-symbol{color:#baa687;font-size:13px;min-width:14px}.workspace-plan-symbol[data-state=completed]{color:#8f9b74}.workspace-plan-symbol[data-state=running]{color:#b4875f}.workspace-process-card code{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#8c765a;margin:9px 0 1px;max-height:78px;overflow:hidden}.workspace-process-card .workspace-task-detail pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px}.workspace-main-task .workspace-task-detail{padding:10px 0 0}.header-actions #workspaceTasksTopCount{font-size:9px;border-radius:4px;background:#eee3d2;line-height:1.4;min-width:13px;padding:0 3px;color:#b28762}
@keyframes workspace-task-pulse{50%{box-shadow:0 0 0 3px #e7d3b710}}@media(prefers-reduced-motion:reduce){.workspace-task-state[data-state=running]:before{animation:none}}@media(max-width:500px){.workspace-tabs{gap:23px}.workspace-tasks-panel{padding-left:17px;padding-right:17px}.workspace-main-task h3,.workspace-agent-card h3{font-size:13px}.workspace-task-detail pre{font-size:12px}.workspace-plan-task .workspace-task-state{font-size:10px}}
