/* Scoped to the user workspace; homepage and admin styles are independent. */
.workspace-sidebar>.workspace-brand,.workspace-sidebar>.new-task-button,.workspace-sidebar>.workspace-account{flex-shrink:0}
.workspace-sidebar-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.workspace-sidebar-content>.workspace-nav,.workspace-sidebar-content>.history-label,.workspace-sidebar-content>.workspace-disclaimer{flex-shrink:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#attachmentFiles.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
body.workspace-mode{background:#fff;color:#202224}.workspace-mode .shell{max-width:none;margin:0;padding:0}.workspace-mode .landing-topbar,.workspace-mode #landingView,.workspace-mode .landing-prompt-section{display:none}.workspace-mode .app-view{display:block;padding:0;min-height:100dvh}.workspace-mode .workspace-heading,.workspace-mode #billing{display:none}.workspace-mode .workspace-layout{display:block;margin:0 0 0 268px;padding:0}
.workspace-sidebar{position:fixed;inset:0 auto 0 0;z-index:4;width:268px;display:flex;flex-direction:column;padding:28px 18px 0;background:#f7f7f8;border-right:1px solid #eeeeef}.workspace-brand{display:flex;align-items:center;gap:9px;margin:0 8px 28px;color:#222426;font-size:20px;white-space:nowrap}.workspace-brand .brand-mark{background:#e3eee9;color:#368873;width:29px;height:29px}.workspace-sidebar button{font:inherit;cursor:pointer}.new-task-button{display:flex;align-items:center;gap:12px;padding:11px 14px;border:0;border-radius:8px;background:#eaeaec;color:#222426;text-align:left;font-weight:650!important;font-size:15px!important}.new-task-button span{font-size:25px;line-height:1}.workspace-nav{display:grid;gap:3px;margin-top:10px}.workspace-nav-item{display:flex;align-items:center;gap:12px;padding:10px 14px;border:0;border-radius:7px;background:none;text-align:left;color:#606469;font-size:14px!important}.workspace-nav-item>span{display:inline-grid;width:22px;text-align:center;font-size:21px;line-height:1;color:#555a60}.workspace-nav-item:hover,.workspace-nav-item.active{background:#ededee;color:#24282b}
.history-label{margin:31px 13px 10px;font-size:12px;color:#93959a;font-weight:600}.task-history{min-height:70px;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:3px}.task-history>.muted{margin:7px 13px;font-size:12px;color:#a0a1a6}.task-row{display:grid;grid-template-columns:minmax(0,1fr) 25px;align-items:center;gap:4px;padding:0 7px 0 13px;border-radius:7px}.task-row:hover,.task-row.active{background:#eaeaec}.task-row button{background:none;border:0;color:#575b60}.task-row button:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;padding:10px 0;font-size:13px}.task-row .delete-task{width:25px;height:30px;font-size:18px;color:#9a9ca1;opacity:0}.task-row:hover .delete-task,.task-row:focus-within .delete-task{opacity:1}.workspace-disclaimer{font-size:11px;line-height:1.8;color:#a0a2a6;margin:16px 13px 12px}.sidebar-utilities{display:flex;flex-wrap:wrap;gap:14px;padding:0 13px 18px}.sidebar-utilities button{border:0;padding:0;color:#81858a;background:none;font-size:11px}.workspace-account{display:flex;align-items:center;gap:10px;margin:0 -18px;padding:16px 18px;border-top:1px solid #eaeaed;min-height:78px}.account-avatar{display:grid;place-items:center;flex:0 0 33px;height:33px;border-radius:50%;background:#dceee6;color:#438b70;font-size:21px}#workspaceAccount{display:block;flex:1;min-width:0;padding:0;border:0;background:none;text-align:left}#workspaceAccount strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;color:#383c40}#workspaceAccount small{display:block;margin-top:3px;font-size:10px;color:#96999d}#workspaceLogout{padding:0;width:28px;height:30px;border:0;background:none;color:#7f8488;font-size:21px}
.workspace-mode .assistant-panel{display:flex;flex-direction:column;width:min(100%,1080px);min-height:100dvh;margin:0 auto;padding:82px 48px 24px;border:0;border-radius:0;background:#fff;box-shadow:none}.workspace-welcome{text-align:center;margin:0 0 22px}.workspace-welcome .eyebrow{font-size:10px;color:#b1b3b6;letter-spacing:1.8px}.workspace-welcome h1{margin:9px 0;font-size:34px;color:#202224;font-weight:680;line-height:1.35;letter-spacing:0;overflow-wrap:anywhere}.workspace-welcome .muted{color:#a4a6aa;font-size:12px}.workspace-modes{display:flex;align-self:center;gap:3px;padding:4px;border:1px solid #ececee;background:#f3f3f4;border-radius:30px}.mode-pill{display:block;padding:7px 18px;border:0;border-radius:24px;background:transparent;color:#73767a;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}.mode-pill.active{color:#272a2d;background:#fff;box-shadow:0 1px 5px #00000012;font-weight:600}.prompt-shortcuts{display:flex;flex-wrap:wrap;gap:9px;margin:56px 0 15px}.prompt-shortcuts button{padding:8px 15px;border:1px solid #ececee;border-radius:22px;background:#f7f7f8;color:#5c6065;font:inherit;font-size:13px;cursor:pointer}.prompt-shortcuts button:hover{background:#efeff1}.workspace-mode .legacy-task-head,.workspace-mode .chat-thread{display:none}
.workspace-mode .assistant-composer{display:block;margin:0;padding:17px 20px 12px;border:1px solid #dedee2;border-radius:22px;background:#fff;box-shadow:0 8px 26px #00000007}.workspace-mode .assistant-composer:focus-within{border-color:#a9b2ad;box-shadow:0 0 0 3px #f1f4f2}.workspace-mode .assistant-composer textarea{display:block;width:100%;min-height:56px;max-height:140px;padding:0;margin:0;border:0;outline:0;background:none;color:#303438;font:inherit;font-size:15px;line-height:1.8;resize:vertical}.workspace-mode .assistant-composer textarea::placeholder{color:#a2a4a8}.composer-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;min-height:38px}.workspace-mode .file-picker{position:relative;display:grid;place-items:center;margin:0 auto 0 0;width:34px;height:34px;color:#777c81;cursor:pointer;font-size:27px;border-radius:6px}.file-picker:focus-within{outline:2px solid #6a9180;outline-offset:2px}.file-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.composer-model{display:block;min-width:0;max-width:260px;margin:0}.composer-model select{width:100%;min-width:0;padding:5px 22px 5px 8px;border:0;border-radius:6px;background:#f8f8f9;color:#696d72;font:inherit;font-size:12px}.workspace-mode #sendChat{display:grid;place-items:center;flex:0 0 36px;min-width:36px;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#454b48;color:#fff;font-size:23px;line-height:1}.workspace-mode #sendChat:hover{background:#2f3933;transform:none}.workspace-mode #stopChat{margin:0;padding:7px 10px;font-size:11px;background:#f1f1f3;color:#666;border:0;white-space:nowrap}
.workspace-context{display:flex;align-items:center;flex-wrap:wrap;gap:20px;padding:12px 17px;margin:0 0 24px;border-radius:0 0 18px 18px;background:#f6f6f7;color:#999da1;font-size:11px}.workspace-context label{display:flex;align-items:center;gap:7px;margin:0}.workspace-context select{border:0;padding:0;background:transparent;color:#858a90;font:inherit;font-size:11px}.workspace-suggestions{display:grid;justify-items:start;gap:10px;margin:0 0 26px}.workspace-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:100%;padding:10px 16px;border:1px solid #eeeeef;border-radius:24px;background:#fff;color:#72767b;font:inherit;font-size:12px;text-align:left;cursor:pointer;box-shadow:0 2px 4px #00000003}.workspace-suggestions button:hover{color:#323b35;border-color:#cdd8d1}.workspace-footnote{margin:0 0 10px;color:#a8aaae;font-size:10px;line-height:1.7}.workspace-safety{margin:auto 0 0;padding-top:12px;text-align:center;font-size:11px;color:#b8babe}.attachment-list{display:flex;flex-wrap:wrap;gap:6px}.attachment-chip{max-width:100%;overflow-wrap:anywhere;padding:4px 9px;margin-top:5px;border:1px solid #dee5e0;border-radius:6px;background:#f3f6f4;color:#68796e;font:inherit;font-size:11px;cursor:pointer}
.workspace-mode .has-messages .assistant-panel{padding-top:30px}.has-messages .workspace-welcome{text-align:left;margin-bottom:8px}.has-messages .workspace-welcome .eyebrow,.has-messages .workspace-modes,.has-messages .prompt-shortcuts,.has-messages .workspace-suggestions{display:none}.has-messages .workspace-welcome h1{font-size:20px;margin:0 0 5px}.workspace-mode .has-messages .legacy-task-head{display:flex;justify-content:flex-end;margin:0 0 5px}.legacy-task-head>div{display:none}.icon-button{width:30px;height:30px;border:1px solid #e8e8eb;border-radius:6px;background:#fff;color:#8b9197;font-size:18px;cursor:pointer}.workspace-mode .has-messages .chat-thread{display:flex;flex-direction:column;gap:18px;min-height:180px;height:calc(100dvh - 432px);max-height:none;border:0;border-radius:0;background:#fff;padding:12px 0 20px;overflow-y:auto}.workspace-mode .chat-message{flex-shrink:0;max-width:92%;padding:12px 15px;border:0;border-radius:10px;background:#f8f8f9}.workspace-mode .chat-message.user{background:#f1f4f2;align-self:flex-end}.workspace-mode .chat-message.assistant{align-self:flex-start;background:#fff;padding-left:0}.workspace-mode .chat-message strong{font-size:10px;color:#a2a6ab}.workspace-mode .chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;font-size:14px;line-height:1.9;color:#4a5056}
.billing-open .assistant-panel{display:none}.workspace-mode.billing-open .workspace-heading{display:flex;margin:0 0 22px 268px;padding:40px 40px 0}.workspace-mode.billing-open #billing{display:grid;grid-template-columns:1fr;margin-left:268px;padding:0 40px 40px;max-width:1400px;gap:18px}.workspace-mode #billing .panel{border-color:#e6e7e9;box-shadow:none;border-radius:8px;padding:22px}.workspace-mode #billing h2,.workspace-mode #billing summary{color:#50565b}.workspace-mode .model-price{white-space:normal;overflow-wrap:anywhere}.workspace-mode .model-list-details .catalog-grid{max-height:none}.workspace-mobile-bar,.sidebar-backdrop{display:none}.model-info-dialog,.auth-dialog,.agent-dialog{max-height:90dvh;overflow-y:auto}button:disabled{opacity:.5;cursor:not-allowed}.workspace-mode button:focus-visible,.workspace-mode select:focus-visible{outline:2px solid #65917c;outline-offset:3px}
@media(max-width:1050px){.workspace-sidebar{width:232px;padding-left:14px;padding-right:14px}.workspace-brand{font-size:18px}.workspace-mode .workspace-layout,.workspace-mode.billing-open .workspace-heading,.workspace-mode.billing-open #billing{margin-left:232px}.workspace-account{margin:0 -14px;padding:14px}.workspace-mode .assistant-panel{padding:65px 30px 24px}.workspace-welcome h1{font-size:29px}.prompt-shortcuts{margin-top:40px}.account-tables{grid-template-columns:1fr}}
@media(max-width:760px){.workspace-mobile-bar{display:flex;position:sticky;top:0;z-index:3;gap:12px;align-items:center;height:56px;padding:10px 16px;border-bottom:1px solid #eee;background:#ffffffed}.workspace-mobile-bar strong{font-size:15px;color:#3c4540}.workspace-mobile-bar button{background:none;border:0;padding:3px 6px;color:#69746d;font-size:20px;cursor:pointer}.workspace-sidebar{width:268px;z-index:9;transform:translateX(-100%);transition:transform .2s}.workspace-sidebar.mobile-open{transform:translateX(0)}.sidebar-backdrop{display:block;position:fixed;inset:0;z-index:8;border:0;background:#00000033}.workspace-mode .workspace-layout,.workspace-mode.billing-open .workspace-heading,.workspace-mode.billing-open #billing{margin-left:0}.workspace-mode .assistant-panel{min-height:calc(100dvh - 56px);padding:35px 20px 20px}.workspace-welcome{margin-bottom:20px}.workspace-welcome h1{font-size:25px}.workspace-modes{gap:0}.mode-pill{padding:6px 15px;font-size:16px}.prompt-shortcuts{gap:7px;margin-top:33px}.prompt-shortcuts button{font-size:11px;padding:7px 11px}.workspace-mode .assistant-composer{padding:14px;border-radius:17px}.workspace-mode .assistant-composer textarea{font-size:14px;min-height:52px}.composer-actions{gap:7px}.composer-model{max-width:180px}.composer-model select{font-size:11px}.workspace-context{gap:10px;padding:10px;font-size:10px}.workspace-context select{font-size:10px}.workspace-suggestions{gap:9px;margin-bottom:20px}.workspace-suggestions button{font-size:11px;gap:10px;padding:9px 13px}.workspace-mode .has-messages .assistant-panel{padding-top:20px}.workspace-mode .has-messages .chat-thread{height:calc(100dvh - 470px);min-height:170px}.workspace-mode .chat-message{max-width:96%}.workspace-mode .chat-message p{font-size:13px}.workspace-mode.billing-open .workspace-heading{padding:25px 18px 0;flex-wrap:wrap}.workspace-mode.billing-open #billing{padding:0 18px 24px}.workspace-mode #billing .panel{padding:16px}.price-unit{white-space:normal}.task-row .delete-task{opacity:1}}
.workspace-mode.billing-open .assistant-panel{display:none}
.workspace-mode .workspace-context label{white-space:nowrap;font-size:11px;color:#999da1}
.workspace-mode .workspace-context select{display:inline-block;width:auto;margin:0;padding:0;border:0;box-shadow:none;background:transparent;color:#858a90}
@media(min-width:761px) and (max-height:820px){.workspace-mode .assistant-panel{padding-top:40px;padding-bottom:15px}.prompt-shortcuts{margin-top:28px}.workspace-welcome{margin-bottom:16px}.workspace-suggestions{gap:8px;margin-bottom:16px}.workspace-suggestions button{padding:8px 14px}.workspace-context{margin-bottom:18px}.workspace-mode .assistant-composer textarea{min-height:52px}}
@media(prefers-reduced-motion:reduce){.workspace-sidebar{transition:none}}
body.workspace-mode{background:#fbfbff;color:#31373c}.workspace-sidebar{background:#f4f1ff;border-right-color:#e9e5f5;padding-top:24px}.workspace-brand{color:#31373c}.workspace-brand .brand-mark{background:#fff0d8;color:#e36f5e}.new-task-button{background:#fff0eb;color:#db6c58;border:1px solid #f4d8d0}.new-task-button:hover{background:#ffe5df}.workspace-nav-item{color:#7b7d88}.workspace-nav-item:hover,.workspace-nav-item.active{background:#fff;color:#e36f5e;box-shadow:0 4px 12px #5d4e8c10}.workspace-nav-item>span{color:#8a7bd4}.history-label{color:#aaa4bd}.task-row:hover,.task-row.active{background:#e9e4fb}.workspace-disclaimer{color:#a19caf}.workspace-account{border-top-color:#e9e5f5}.account-avatar{background:#fff0d8;color:#e36f5e}
.workspace-mode .assistant-panel{background:#fbfbff}.workspace-welcome .eyebrow{color:#b0a6c8}.workspace-welcome h1{color:#30373c;letter-spacing:-.04em}.workspace-welcome .muted{color:#8f929a}.workspace-modes{border-color:#ebe8f2;background:#f1eff7}.mode-pill.active{color:#e36f5e;box-shadow:0 2px 8px #55487d18}.prompt-shortcuts button{border-color:#ebe8f2;background:#fff;color:#6b7077}.prompt-shortcuts button:hover{border-color:#e7b4aa;background:#fff5f2;color:#e36f5e}
.workspace-mode .assistant-composer{border-color:#e6e2ed;border-radius:20px;box-shadow:0 12px 34px #51456b10}.workspace-mode .assistant-composer:focus-within{border-color:#e77864;box-shadow:0 0 0 4px #ffe6e0}.workspace-mode .assistant-composer textarea{color:#31373c}.workspace-mode .assistant-composer textarea::placeholder{color:#a7a5ae}.composer-model select{background:#f3f0fb;color:#69627f}.workspace-mode #sendChat{background:#e77864;box-shadow:0 7px 15px #e7786430}.workspace-mode #sendChat:hover{background:#d96553}.workspace-context{background:#f1eff7;color:#92909d}.workspace-suggestions button{border-color:#ebe8f2;box-shadow:0 4px 12px #564a6b08}.workspace-suggestions button:hover{color:#e36f5e;border-color:#e7b4aa}.workspace-footnote{color:#a4a0ad}.workspace-safety{color:#b1abbc}
.workspace-mode.billing-open .workspace-heading h1,.workspace-mode.billing-open #billing h2{color:#39434a}.workspace-mode #billing .panel{border-color:#ebe8f2;background:#fff}.workspace-mode .has-messages .chat-message{background:#f3f1f8}.workspace-mode .has-messages .chat-message.user{background:#fff0eb}.workspace-mode .has-messages .chat-message.assistant{background:transparent}
@media(max-width:760px){.workspace-sidebar{background:#f4f1ff}.workspace-mode .assistant-panel{background:#fbfbff}.workspace-mode .assistant-composer{border-radius:17px}}
.workspace-account{flex-wrap:nowrap;gap:8px}
#workspaceAccount{flex:1 1 0;min-width:0}
#workspaceLogout{display:flex;align-items:center;justify-content:center;gap:4px;flex:0 0 auto;width:auto;height:34px;padding:0 9px;border:1px solid #e5dfe9;border-radius:5px;background:#fff;color:#6c6473;font-size:12px;white-space:nowrap}
#workspaceLogout:hover{border-color:#e7b4aa;background:#fff5f2;color:#b95143}
#workspaceLogout:focus-visible{outline:2px solid #b96f61;outline-offset:2px}
#workspaceLogout:disabled{opacity:.5;cursor:wait}
.chat-feature-button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:auto;height:40px;padding:0 2px;border:0;border-radius:0;background:transparent;color:var(--composer-control-color);font:inherit;font-size:var(--composer-control-size);font-weight:400;line-height:20px;white-space:nowrap;cursor:pointer}
.chat-feature-button[aria-pressed=true]{color:#1677ff;font-weight:600;background:transparent}
.chat-feature-button[aria-pressed=false]:not(:disabled):hover{color:var(--composer-control-color);background:transparent}
.chat-feature-button:disabled{opacity:1;-webkit-text-fill-color:currentColor;cursor:not-allowed}
.chat-feature-button:focus-visible{outline:2px solid #92baff;outline-offset:2px}
#chatFeatureStatus{margin:5px 0;font-size:11px;color:#8b858f;overflow-wrap:anywhere}
.workspace-mode:not(.has-messages) #chatFeatureStatus{display:none}
.chat-process{width:100%;min-width:0;margin:0 0 12px;border:0;border-radius:0;background:transparent;color:#777;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.chat-process[hidden]{display:none}
#toast{max-width:min(560px,calc(100vw - 36px));z-index:100;overflow-wrap:anywhere;pointer-events:none}
#toast.show{pointer-events:auto}
#toast.has-action{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;font-size:13px;line-height:1.6}
#toast.has-action .toast-message{min-width:0}
#toast .toast-action,#toast .toast-close{flex:0 0 auto;width:auto;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;font:inherit;padding:5px 10px;cursor:pointer}
#toast .toast-action{font-weight:600}
#toast .toast-close{border-color:transparent;padding:4px 8px;font-size:18px;line-height:1}
#toast button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
#toast[hidden]{display:none!important}
.workspace-mode .chat-message.assistant .chat-markdown.is-thinking,.chat-thinking{color:#85858a;font-size:13px;font-weight:400;line-height:1.8;overflow-wrap:anywhere}
.chat-process summary{width:max-content;max-width:100%;padding:0;cursor:pointer;color:#85858a;font-size:15px;font-weight:450;line-height:1.8}
.chat-process summary:focus-visible{outline:2px solid #8b70ba;outline-offset:3px;border-radius:4px}
.chat-process-body{padding:7px 0 12px 2px;color:#626268}
.chat-process-body p{margin:5px 0;color:#777;font-size:13px}
.chat-process-body ol{margin:8px 0 0;padding-left:24px}
.chat-process-body li{padding:4px 0}
.chat-process-body a{color:#777;text-decoration:none}
.chat-process-body a:hover{color:#526c9d;text-decoration:underline}
.chat-process-body small{display:block;color:#928b9c;font-size:11px}
.chat-process-features{display:flex;flex-wrap:wrap;gap:8px;margin:3px 0 10px;color:#85858a;font-size:14px}
.chat-process-features span{display:inline-flex;align-items:center;gap:6px}
.chat-process-features span::before{content:'◉';color:#9a9aa0;font-size:13px}
.chat-process-source-heading{display:block;margin:10px 0 2px;color:#69696e;font-size:13px;font-weight:550}
.chat-process-source-index{color:#777;font-weight:500}
.chat-execution-steps{list-style:none;padding:0!important;margin:5px 0 12px!important}
.chat-execution-steps li{padding:9px 0;border-bottom:1px solid #ede9f1}
.chat-execution-steps strong{color:#625971;font-weight:550}
.workspace-mode .chat-message .chat-markdown strong{display:inline}
.workspace-mode .assistant-composer .assistant-workflow-notice{margin:0 0 8px;color:#8b769f;font-size:12px;line-height:1.6}
.assistant-workflow-notice[hidden]{display:none}
.execution-step-status,.execution-step-cost{display:inline-block;margin-left:12px;color:#8c809e;font-size:11px}
.execution-step-cost{color:#685581;font-variant-numeric:tabular-nums}
.chat-continuation{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px;padding:10px 12px;border-radius:9px;background:#f3eff9;color:#78698e;font-size:12px}
.chat-continuation[hidden]{display:none}
.chat-continuation button{border:1px solid #ded5ed;background:#fff;color:#72559a;border-radius:7px;padding:5px 10px;cursor:pointer;font:inherit}
#taskMaterialDialog{width:min(620px,calc(100% - 32px))}
#taskMaterialDialog label>textarea{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #dfe5e2;border-radius:5px;background:#fff;color:#303438;font-family:inherit;font-size:13px;line-height:1.7;resize:vertical}
#taskMaterialDialog textarea:focus{outline:2px solid #b8c9bf;outline-offset:1px}
#taskMaterialDialog input[type=file]{width:100%;font-size:12px}
#taskMaterialError:empty{display:none}
.composer-actions{--composer-control-color:#69627f;--composer-control-size:14px;justify-content:space-between;flex-wrap:wrap;gap:10px 18px}
.composer-tools{display:flex;flex:0 1 auto;position:relative;flex-wrap:wrap;min-width:0;align-items:center;justify-content:flex-start;gap:0 12px;min-height:40px}
.approval-mode{position:relative;flex:0 0 auto;max-width:100%}
.approval-mode-trigger{gap:5px;max-width:100%}
.approval-hand-icon{width:16px;height:16px;flex:0 0 16px}
.approval-chevron{width:10px;height:10px;flex:0 0 10px}
.approval-mode-trigger[aria-expanded=true]{color:var(--composer-control-color);background:#f3f0fb}
.approval-mode-menu{position:absolute;bottom:calc(100% + 6px);left:0;z-index:12;width:292px;max-width:calc(100vw - 48px);padding:5px;border:1px solid #e6e2ed;border-radius:10px;background:#fff;box-shadow:0 8px 30px #51456b20;color:var(--composer-control-color)}
.approval-mode-menu[hidden]{display:none}
.approval-mode-menu button{position:relative;display:block;width:100%;padding:11px 28px 11px 11px;margin:0;border:0;border-radius:6px;background:transparent;color:var(--composer-control-color);font:inherit;font-size:var(--composer-control-size);text-align:left;cursor:pointer}
.approval-mode-menu button:hover,.approval-mode-menu button:focus-visible{background:#f5f3fa}
.approval-mode-menu button[aria-checked=true]::after{position:absolute;right:10px;top:12px;content:'✓';color:#1677ff}
.approval-mode-menu small{display:block;margin-top:4px;color:#8b858f;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.request-approval-dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto}
.request-approval-summary,.request-approval-estimate{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}
.request-approval-estimate{padding:12px;background:#f5f3fa;border-radius:6px;color:#57516b}
.composer-submit-actions{display:flex;flex:1 1 210px;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.workspace-mode .composer-submit-actions .composer-model{flex:1 1 0;min-width:0;max-width:260px;margin:0}
.workspace-mode .composer-submit-actions .composer-model select{width:100%;min-width:0;margin:0;padding:8px 20px 8px 9px}
.composer-submit-actions>button{flex-shrink:0}
@media(min-width:1051px){.composer-actions{flex-wrap:nowrap}.composer-tools{flex:1 1 auto;flex-wrap:nowrap}.composer-submit-actions{flex:0 1 300px}}
@media(min-width:761px) and (max-width:1050px){.composer-tools{flex:1 1 auto;flex-wrap:wrap}.composer-submit-actions{flex:0 1 300px}}
.workspace-mode .assistant-composer{display:flex;flex-direction:column;align-items:stretch;gap:0;padding-bottom:6px}
.workspace-mode .assistant-composer .composer-actions{width:100%;margin-top:auto;padding-top:12px;min-height:52px}
.workspace-mode .composer-submit-actions .composer-model select{color:var(--composer-control-color);font-size:var(--composer-control-size);font-weight:400;line-height:20px}
.workspace-mode .composer-submit-actions .composer-model select:disabled{opacity:1;-webkit-text-fill-color:currentColor;cursor:not-allowed}
.workspace-mode #workspaceRefreshModels{display:grid;place-items:center;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:#777b83;font-size:22px;line-height:1}
.workspace-mode #workspaceRefreshModels:hover{background:#f3f0fb;color:#6056ae}
#addTaskMaterial{flex:0 0 40px;width:40px;height:40px;margin:0;padding:0;border:0;background:transparent;color:var(--composer-control-color);font:inherit;font-size:var(--composer-control-size);font-weight:400;line-height:20px}
#addTaskMaterial:disabled{opacity:1;-webkit-text-fill-color:currentColor;cursor:not-allowed}
@media(max-width:760px){
  .composer-actions{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:4px}
  .composer-tools{grid-column:1;grid-row:1;gap:0 5px;flex-wrap:wrap;align-content:center}
  .approval-mode{position:static}
  .approval-mode-menu{width:min(292px,100%);max-width:100%}
  .composer-submit-actions{grid-column:1;grid-row:2;display:flex;flex:0 1 auto;justify-content:flex-end;gap:6px}
  .workspace-mode .composer-submit-actions .composer-model{flex:0 1 190px;justify-self:auto;width:auto;max-width:190px;margin-right:0}
  .composer-model select{max-width:100%}
  .workspace-mode #workspaceRefreshModels{align-self:center}
  .workspace-mode #sendChat{align-self:end;margin-bottom:2px}
  .workspace-mode #stopChat{align-self:center}
  #taskMaterialDialog{padding:18px}
  #taskMaterialDialog .code-dialog-actions{position:sticky;bottom:-18px;padding:12px 0 18px;background:#fff}
}
@media(max-width:360px){.workspace-mode .assistant-panel{padding-left:12px;padding-right:12px}.composer-tools{gap:4px}.composer-tools .chat-feature-button{padding:0}#addTaskMaterial{flex-basis:26px;width:26px}.composer-actions{column-gap:6px}}
.balance-notice{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 24px;padding:12px 16px;border:1px solid #f0dcc0;border-radius:12px;background:#fffaf1;color:#8a6028;font-size:13px;line-height:1.6}
.balance-notice p{margin:0;min-width:0;overflow-wrap:anywhere}
.balance-notice-actions{display:flex;gap:10px;flex:0 0 auto}
.balance-notice-actions button{padding:5px 9px;border:1px solid #ead4b0;border-radius:6px;background:#fff;color:#875b25;font:inherit;white-space:nowrap;cursor:pointer}
.balance-notice-actions button:hover{background:#fff3da}
.workspace-mode .balance-notice{margin:18px 40px 0 308px}
@media(max-width:1050px){.workspace-mode .balance-notice{margin-left:272px}}
@media(max-width:760px){.workspace-mode .balance-notice{margin:14px 18px 0;align-items:flex-start;flex-direction:column;gap:8px}}
/* Active conversations read as a document, with a stable composer below. */
body.workspace-mode:not(.billing-open):not(.code-open) #appView{display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
.workspace-mode:not(.billing-open):not(.code-open) #assistant{display:flex;flex:1 1 auto;min-height:0}
.workspace-mode:not(.billing-open):not(.code-open) .assistant-panel{flex:1 1 auto;min-height:0;padding-top:24px;overflow:hidden}
.workspace-intro{flex:1 1 auto;min-height:0;overflow-y:auto;padding:12px 0 20px}
.workspace-intro .workspace-suggestions{margin:20px 0 0}
.has-messages .workspace-intro{display:none}
.workspace-mode .conversation-dock{display:flex;flex-direction:column;min-height:0;margin-top:auto}
.workspace-mode:not(.has-messages) .conversation-dock{flex:0 0 auto}
.workspace-mode .conversation-dock .workspace-suggestions{order:0}
.workspace-mode .conversation-dock #chatFeatureStatus{order:1}
.workspace-mode .conversation-dock .workspace-context{order:2}
.workspace-mode .conversation-dock .routing-preview-row{order:3}
.workspace-mode .conversation-dock .workspace-footnote{order:4}
.workspace-mode .conversation-dock #assistantForm{order:5}
.workspace-mode #assistant.has-messages{flex:1 1 auto;min-height:0}
.workspace-mode .has-messages .assistant-panel{height:100%;min-height:0;padding:18px 36px 12px;width:min(100%,1120px);overflow:hidden}
.has-messages .workspace-welcome,.has-messages .business-shortcuts{display:none}
.workspace-mode .has-messages .legacy-task-head{flex:0 0 auto;min-height:30px;margin:0}
.workspace-mode .has-messages .chat-thread{flex:1 1 auto;width:100%;height:auto;min-height:80px;gap:28px;margin:0;padding:18px 8px 28px 0;background:transparent;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.workspace-mode .has-messages .chat-message{max-width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.workspace-mode .has-messages .chat-message.user{align-self:flex-end;max-width:82%;padding:12px 17px;border-radius:18px;background:#f0edf7;color:#42404a}
.workspace-mode .has-messages .chat-message.assistant{width:100%;align-self:stretch;background:transparent}
.chat-message.user .chat-message-heading{display:none}
.chat-user-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8}
.chat-message-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 12px}
.workspace-mode .chat-message .chat-author{font-size:13px;font-weight:650;color:#5c526f}
.chat-message-model{color:#a4a0ad;font-size:11px}
.chat-markdown{min-width:0;color:#373c43;font-size:16.5px;line-height:1.8;overflow-wrap:anywhere}
.workspace-mode .chat-message .chat-markdown p{margin:0 0 16px;font-size:16.5px;line-height:1.8;white-space:normal;color:#373c43}
.workspace-mode .chat-message .chat-markdown strong{font:inherit;font-weight:700;color:#1f2428}
.chat-markdown h1,.chat-markdown h2,.chat-markdown h3,.chat-markdown h4,.chat-markdown h5,.chat-markdown h6{margin:24px 0 12px;color:#303740;line-height:1.5;font-weight:650;letter-spacing:0}
.chat-markdown h1{font-size:22px}.chat-markdown h2{font-size:20px}.chat-markdown h3{font-size:18px}.chat-markdown h4,.chat-markdown h5,.chat-markdown h6{font-size:16px}
.chat-markdown>:first-child{margin-top:0}
.chat-markdown ul,.chat-markdown ol{margin:12px 0 18px;padding-left:25px}
.chat-markdown li{margin:6px 0;padding-left:3px}
.chat-markdown li>ul,.chat-markdown li>ol{margin:7px 0 9px;padding-left:23px}
.chat-markdown li>ul{list-style:circle}
.chat-markdown li li{margin:5px 0;color:#535961}
.chat-markdown blockquote{margin:16px 0;padding:5px 15px;border-left:3px solid #d9d2e8;background:#f5f3f9;color:#77717f}
.chat-markdown hr{border:0;border-top:1px solid #e8e5ec;margin:24px 0}
.chat-markdown a{color:#3377b8;text-decoration:underline;text-underline-offset:3px}
.chat-markdown code{padding:2px 5px;border-radius:4px;background:#eeedf2;color:#4f4b5c;font-size:13px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.chat-code-block{margin:16px 0;border:1px solid #e1dfe7;border-radius:10px;overflow:hidden;background:#fff}
.chat-code-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 13px;border-bottom:1px solid #e6e3eb;background:#f6f5f8;color:#777080;font-size:11px}
.chat-code-bar button{padding:1px 3px;border:0;background:transparent;color:#71677f;font:inherit;cursor:pointer}
.chat-code-bar button:hover{color:#3f3474}
.chat-code-block pre{margin:0;padding:16px;overflow-x:auto;tab-size:2;background:#fcfbfe;line-height:1.65}
.chat-code-block pre code{padding:0;background:transparent;color:#42434e;font-size:13px;white-space:pre;overflow-wrap:normal}
.chat-table-wrap{max-width:100%;margin:18px 0;overflow:auto;border:1px solid #e0dfe5;border-radius:10px;background:#fff}
.chat-table-wrap table{width:100%;margin:0;border-collapse:collapse;font-size:13px;line-height:1.7}
.chat-table-wrap th,.chat-table-wrap td{min-width:110px;padding:11px 14px;border-right:1px solid #eceaf0;border-bottom:1px solid #e8e6ec;text-align:left;white-space:normal;vertical-align:top}
.chat-table-wrap th{color:#585461;background:#f4f3f6;font-weight:600}
.chat-table-wrap td{color:#514e59}
.chat-table-wrap th:last-child,.chat-table-wrap td:last-child{border-right:0}
.chat-table-wrap tbody tr:last-child td{border-bottom:0}
.chat-pending:before{content:'';display:inline-block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:#a999c6;animation:reply-pulse 1.2s ease-in-out infinite}
.chat-pending{display:flex;align-items:center;gap:8px;padding:8px 0;color:#97909f;font-size:13px}
.chat-message.is-generating .chat-markdown:empty{min-height:25px}
.has-messages .conversation-dock{flex:0 0 auto;position:relative;padding-top:12px;background:#fbfbff}
.workspace-mode .has-messages .assistant-composer textarea{min-height:52px;max-height:110px;font-size:14px}
.has-messages .workspace-context{gap:14px;margin-bottom:6px;padding:8px 13px;border-radius:0 0 12px 12px}
.has-messages .routing-preview-row{margin-bottom:4px;font-size:11px}
.has-messages .workspace-footnote{margin-bottom:3px;max-height:36px;overflow:auto}
.has-messages .workspace-safety{padding-top:5px;font-size:10px}
@keyframes reply-pulse{50%{opacity:.3}}
@media(max-width:760px){.workspace-mobile-bar,.balance-notice{flex-shrink:0}.workspace-mode .has-messages .assistant-panel{padding:6px 18px 8px}.workspace-mode .has-messages .chat-thread{padding-top:12px;gap:22px}.workspace-mode .has-messages .chat-message.user{max-width:88%;padding:10px 13px}.workspace-mode .chat-message .chat-markdown p,.chat-markdown,.chat-user-content{font-size:16px}.chat-markdown h1{font-size:21px}.chat-markdown h2{font-size:19px}.chat-markdown h3{font-size:17px}.has-messages .conversation-dock{padding-top:8px}.workspace-mode .has-messages .assistant-composer textarea{min-height:48px;max-height:96px}.chat-table-wrap th,.chat-table-wrap td{min-width:100px;padding:9px 10px}}
@media(max-width:360px){.workspace-mode .has-messages .assistant-panel{padding-left:12px;padding-right:12px}.has-messages .workspace-context{gap:8px}.has-messages .workspace-footnote{max-height:26px}.has-messages #chatFeatureStatus{max-height:30px;overflow:auto}}
@media(prefers-reduced-motion:reduce){.chat-pending:before{animation:none}}
.workspace-mode .assistant-composer>.attachment-list{display:flex;flex-wrap:wrap;gap:6px;min-width:0;margin:0 0 6px}
.workspace-mode .assistant-composer>.attachment-list:empty{display:none}
.workspace-mode .assistant-composer>.attachment-list .attachment-chip{max-width:100%;min-width:0;margin:0;overflow-wrap:anywhere}
.workspace-mode .has-messages .workspace-context,.workspace-mode .has-messages #chatFeatureStatus:not(.is-error){display:none}
.workspace-mode .has-messages .chat-thread{min-height:0}
.workspace-mode .prices-panel #rates{display:block;margin-top:14px}
.model-rates-scroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid #e5e1ed;border-radius:12px;background:#fff}
.model-rates-table{width:100%;min-width:780px;border-collapse:collapse;text-align:left;font-size:13px;line-height:1.7}
.model-rates-table caption{padding:13px 16px;text-align:left;color:#82798f;font-size:12px;caption-side:top}
.model-rates-table th,.model-rates-table td{padding:12px 14px;border-top:1px solid #eeeaf3;vertical-align:top;white-space:normal}
.model-rates-table thead th{background:#f7f5fc;color:#776a8c;font-weight:600}
.model-rates-table tbody th{color:#5e5274;font-weight:600;min-width:155px}
.model-rates-table td{color:#726980;min-width:145px}
.model-rates-table .model-rate-detail td{padding:7px 14px;color:#93899f;font-size:11px;background:#fcfbff}
.model-rates-scroll:focus-visible{outline:2px solid #a28bc6;outline-offset:3px}
#modelInfoPrice{white-space:pre-line;line-height:1.9;overflow-wrap:anywhere}
@media(max-width:760px){.model-rates-table{font-size:12px}.model-rates-table th,.model-rates-table td{padding:10px 12px}}
.chat-artifact-exports{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:12px;padding-top:10px;border-top:1px solid #eeeaf4}
.chat-artifact-exports[hidden]{display:none}
.chat-artifact-exports button{padding:6px 11px;border:1px solid #e3ddec;border-radius:8px;background:#f9f7fd;color:#716084;font-size:12px;line-height:1.5;cursor:pointer}
.chat-artifact-exports button:hover{background:#f0eaf8;border-color:#c9b8dd}
.chat-artifact-exports button:disabled{opacity:.65;cursor:wait}
.chat-artifact-status{flex:1 1 100%;color:#958c9f;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.chat-artifact-exports.has-error .chat-artifact-status{color:#ae6171}
@media(max-width:760px){.chat-artifact-exports{gap:6px}.chat-artifact-exports button{font-size:12px;padding:7px 10px}}
.chat-markdown{font-size:16.5px;line-height:1.8}
.workspace-mode .chat-message .chat-markdown p{font-size:16.5px;line-height:1.8;margin:0 0 16px}
.workspace-mode .chat-message .chat-markdown strong{font-weight:700;color:#1f2428}
.chat-markdown h1{font-size:22px}.chat-markdown h2{font-size:20px}.chat-markdown h3{font-size:18px}
.chat-source-footer{margin:18px 0 4px;color:#8d8d93}
.chat-source-footer[hidden]{display:none}
.chat-sources-support{margin:0 0 6px;color:#b0b0b6;font-size:13px;line-height:1.6}
.chat-sources{color:#6f6f76;font-size:14px}
.chat-sources summary{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;padding:0;cursor:pointer;list-style:none;color:#6d6d74;font-size:14px}
.chat-sources summary::-webkit-details-marker{display:none}
.chat-sources summary::before{content:"";width:16px;height:16px;border-radius:50%;background:linear-gradient(135deg,#7eb6ff,#f08a7a)}
.chat-sources summary:focus-visible{outline:2px solid #8b70ba;outline-offset:3px;border-radius:4px}
.chat-sources-body{padding:8px 0 2px 2px}
.chat-sources-body ol{margin:0;padding-left:22px}
.chat-sources-body li{padding:5px 0}
.chat-sources-body a{color:#526c9d;text-decoration:none}
.chat-sources-body a:hover{text-decoration:underline}
.chat-sources-body small{display:block;color:#9a9aa0;font-size:12px}
.mindmap{margin:8px 0 22px;padding:22px 18px 16px;border:1px solid #ececf1;border-radius:22px;background:#fff}
.mindmap-root{margin:0 auto 4px;padding:16px 18px;border:1px solid #e6d3b8;border-radius:16px;background:#f8efe2;color:#8a6233;text-align:center}
.mindmap-root strong{display:block;font-size:18px;font-weight:650;line-height:1.45}
.mindmap-root span{display:block;margin-top:4px;font-size:14px;line-height:1.5}
.mindmap-arrow{position:relative;width:0;height:18px;margin:8px auto;border-left:1px solid #c8c8ce}
.mindmap-arrow::after{content:"";position:absolute;left:-4px;bottom:-1px;border:4px solid transparent;border-top-color:#b0b0b6}
.mindmap-layer{margin:6px 0 12px}
.mindmap-layer h3,.mindmap-group h3{margin:0 0 10px;color:#8b9098;font-size:14px;font-weight:500}
.mindmap-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.mindmap-cards article{min-height:74px;padding:14px 10px;border-radius:14px;text-align:center}
.mindmap-cards strong,.mindmap-cards span,.mindmap-rows strong,.mindmap-rows span,.mindmap-rows small{display:block}
.mindmap-cards strong{font-size:16px;font-weight:650}
.mindmap-cards span{margin-top:4px;font-size:13px;line-height:1.45}
.tone-cool article,.mindmap-rows article.tone-cool{border:1px solid #c9d7ee;background:#eef4fb;color:#3d6294}
.tone-warm article,.mindmap-rows article.tone-warm{border:1px solid #ead7bf;background:#f8f1e7;color:#8a6233}
.tone-neutral article{border:1px solid #e6e6ea;background:#f6f6f7;color:#4d5258}
.mindmap-conclusion{margin:8px 0 0;padding:14px 16px;border-radius:14px;background:#f4f4f5;color:#3f444a;text-align:center;font-size:15px}
.mindmap-more{margin-top:6px}
.mindmap-more summary{width:max-content;margin-left:auto;color:#9aa0a8;cursor:pointer;font-size:13px}
.mindmap-rows{display:grid;gap:10px}
.mindmap-rows article{display:grid;grid-template-columns:minmax(120px,34%) 1fr;gap:4px 16px;align-items:center;padding:14px 16px;border-radius:14px}
.mindmap-rows small{grid-column:1 / -1;font-size:13px;line-height:1.45}
@media(max-width:760px){.chat-markdown,.workspace-mode .chat-message .chat-markdown p,.workspace-mode .chat-message .chat-markdown,.chat-user-content{font-size:16px}.mindmap{padding:16px 12px}.mindmap-cards{grid-template-columns:1fr}.mindmap-rows article{grid-template-columns:1fr}}
.code-mode-switch{width:max-content;max-width:100%;margin:0 auto 22px;overflow-x:auto}.code-heading-actions{flex-wrap:wrap}#codeBackToChat{white-space:nowrap}
@media(max-width:600px){.code-mode-switch{margin:8px auto 16px}.code-mode-switch .mode-pill{padding:7px 11px}.code-heading-actions{max-width:190px;justify-content:flex-end}#codeBackToChat{font-size:12px}}
