/* Desktop visual language, scoped to the H5 workspace. Administration is independent. */
:root{color-scheme:light}.workspace{--border:var(--line);--surface-hover:var(--hover);--surface:var(--panel)}
.workspace{--bg:#f6f5f3;--panel:#fff;--paper:#fff;--sidebar:#f0efec;--subtle:#f1f0ed;--hover:#e8e7e3;--text:#22261f;--ink:#22261f;--muted:#767b72;--secondary:#5a6157;--line:#e2e2dc;--accent:#3f6b4f;--accent-hover:#335840;--accent-soft:#e6ede3;--danger:#a04a44;--danger-soft:#f7ebe8;--shadow:0 20px 80px #1f24201f;--code:#f0f0eb;--primary:var(--accent);--primary-hover:var(--accent-hover);--primary-dark:var(--accent-hover);--primary-light:var(--accent-soft);--teal:var(--accent);--surface-0:var(--panel);--surface-1:var(--bg);--surface-2:var(--subtle);--surface-3:var(--hover);font:14px/1.6 'Segoe UI','PingFang SC','Microsoft YaHei UI','Microsoft YaHei',sans-serif;background:var(--bg);color:var(--text);height:100dvh;height:var(--app-height,100dvh);overflow:hidden}
:root[data-theme=dark]{color-scheme:dark}
:root[data-theme=dark] .workspace{--bg:#212121;--panel:#262626;--paper:#262626;--sidebar:#242424;--subtle:#2a2a2a;--hover:#2e2e2e;--text:#e1e0dd;--ink:#e1e0dd;--muted:#a1a09c;--secondary:#c1c0bb;--line:#373737;--accent:#6fa8ec;--accent-hover:#8bbbf5;--accent-soft:#2b3746;--danger:#e07d86;--danger-soft:#3a2a2b;--shadow:0 20px 80px #0008;--code:#1d1d1d}
.workspace *{box-sizing:border-box}.workspace [hidden]{display:none!important}.workspace button,.workspace input,.workspace textarea,.workspace select{font-family:inherit;color:var(--text)}.workspace button{transition:background .12s,color .12s,border-color .12s}.workspace button:disabled{opacity:.45}.workspace :is(button,a,summary):focus-visible{outline:2px solid var(--accent);outline-offset:3px}.workspace ::-webkit-scrollbar{width:6px;height:6px}.workspace ::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}.workspace ::-webkit-scrollbar-track{background:transparent}.workspace input,.workspace select,.workspace textarea{border:1px solid var(--line);background:var(--panel);box-shadow:none}.workspace input:focus,.workspace select:focus,.workspace textarea:focus{border-color:var(--accent);box-shadow:none}.workspace input::placeholder,.workspace textarea::placeholder{color:var(--muted)}.workspace .plain-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--secondary);flex:none}.workspace .plain-icon:hover{background:var(--hover);color:var(--text)}
.workspace-shell{grid-template-columns:252px minmax(0,1fr);height:100%;width:100%;min-width:0}.workspace .task-sidebar{position:relative;display:flex;width:auto;padding:24px 14px 12px;gap:0;background:var(--sidebar);border-color:var(--line);min-width:0;overflow:hidden}.workspace .workspace-brand{height:auto;min-height:42px;padding:0 8px;margin:0 0 23px}.workspace .workspace-brand a{display:flex;align-items:center;gap:10px;color:var(--text);font-size:16px;letter-spacing:.2px;text-decoration:none}.workspace .workspace-brand a .workbench-mark{display:grid;place-items:center;width:32px;height:34px;margin:0;border:1px solid var(--accent);border-radius:8px;color:var(--accent);font:28px Georgia,serif;flex:none}.workspace .workspace-brand a .workbench-brand-copy{margin:0;color:var(--text);font-size:16px;font-weight:600}.workbench-brand-copy small{display:block;margin-top:2px;color:var(--muted);font-size:9px;font-weight:400;letter-spacing:.5px}.workspace #sidebar-close{width:28px;height:30px;color:var(--muted)}
.workspace .new-task{width:100%;margin:0 0 13px;min-height:44px;padding:10px 12px;gap:9px;border:1px solid var(--line);border-radius:9px;background:var(--accent-soft);color:var(--text);box-shadow:0 2px 5px #00000005;font-size:13px;font-weight:500;transform:none}.workspace .new-task:hover{background:var(--hover);border-color:var(--accent);transform:none;box-shadow:none}.workspace .new-task>span:first-child{font-size:21px;color:var(--accent)}.workspace .new-task>span:nth-child(2){font-size:13px}.new-task kbd{margin-left:auto;font:9px Consolas,monospace;color:var(--muted)}.task-search{display:flex;align-items:center;gap:8px;padding:0 10px;color:var(--muted)}.task-search svg{width:15px;height:15px}.workspace .task-search input{width:100%;min-height:36px;padding:7px 0;border:0;background:none;font-size:12px;box-shadow:none}.task-list-heading{display:flex;justify-content:space-between;align-items:center;padding:15px 10px 8px;color:var(--muted);font-size:10px;letter-spacing:.3px}.workspace .task-list{margin:0 -3px;padding:0 3px;scrollbar-color:var(--line) transparent;overscroll-behavior:contain}.task-group-title{font-size:10px;color:var(--muted);padding:12px 10px 5px}.workspace .task-row{position:relative;display:flex;align-items:center;border-radius:7px;padding:0;margin-bottom:4px;min-width:0}.workspace .task-row:hover{background:var(--hover)}.workspace .task-row.active{background:var(--accent-soft)}.workspace .task-row.active:before{content:'';position:absolute;left:0;top:14px;bottom:14px;width:2px;border-radius:2px;background:var(--accent)}.workspace .task-item{margin:0;min-height:48px;padding:9px 9px 9px 11px;gap:9px;flex:1;min-width:0;border:0;border-radius:7px;background:none;color:var(--secondary);font-size:12px;font-weight:400;line-height:1.4}.workspace .task-item:hover{background:none}.task-item-icon{flex:none;display:flex;color:var(--muted)}.task-item-copy{min-width:0;flex:1}.workspace .task-item-title{display:block;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-item-copy small{display:block;margin-top:4px;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace .task-item-status{width:5px;height:5px;flex:none;background:var(--accent);margin:0}.workspace .task-item-status.running{background:var(--accent)}.workspace .task-more{height:30px;width:28px;display:flex;align-items:center;justify-content:center;padding:0;margin-right:4px;flex:none;border:0;border-radius:5px;background:none;color:var(--muted);opacity:0}.workspace .task-row:hover .task-more,.workspace .task-row:focus-within .task-more,.workspace .task-row.active .task-more{opacity:1}.workspace .task-more:hover{background:var(--panel);color:var(--text)}.workspace .sidebar-loading,.task-list-empty{padding:26px 12px;color:var(--muted);font-size:12px;line-height:1.8;text-align:center}.task-actions-dialog .modal-header p{overflow-wrap:anywhere}.task-action-list{display:flex;flex-direction:column;gap:4px}.task-action-list button{display:flex;align-items:center;gap:10px;width:100%;padding:12px;border:0;border-radius:7px;background:none;text-align:left;font-size:14px}.task-action-list button:hover{background:var(--hover)}.task-action-list button.danger{color:var(--danger)}
.sidebar-footer{border-top:1px solid var(--line);padding-top:10px;margin-top:12px;flex:none}.workspace .sidebar-balance{margin:0;padding:0 8px 9px;border:0}.sidebar-balance-label{font-size:10px;margin:0 0 2px;color:var(--muted)}.sidebar-balance-main{gap:5px}.sidebar-balance-main strong{font-size:19px;font-weight:550;letter-spacing:-.4px;color:var(--text)}.balance-refresh{padding:4px;color:var(--muted);font-size:10px}.workspace .sidebar-balance-actions .button{padding:5px 6px;min-height:28px;background:none;border:0;color:var(--secondary);font-size:11px}.workspace .sidebar-balance-actions .button:hover{background:var(--hover);color:var(--accent)}.sidebar-quota{display:flex;align-items:flex-start;gap:5px;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:6px;line-height:1.6}.sidebar-quota strong{font-size:11px;color:var(--accent);font-weight:500;flex:none}.sidebar-quota-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}.workspace .sidebar-bottom-user{border-top:1px solid var(--line);margin:0;padding:5px 0 0;position:static}.workspace .user-trigger{display:flex;align-items:center;gap:9px;min-height:48px;width:100%;margin:0;padding:7px 8px;background:none;border:0;border-radius:7px;text-align:left}.workspace .user-trigger:hover{background:var(--hover)}.workspace .user-avatar{width:29px;height:29px;background:var(--hover);color:var(--secondary);font-size:12px;border-radius:50%;flex:none}.workspace .sidebar-user-name{font-size:12px;color:var(--text);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-settings-label{display:flex;font-size:11px;color:var(--muted);font-weight:400}
.workspace .chat-main{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg);position:relative;min-width:0}.workspace .chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;height:60px;min-height:60px;padding:0 25px;border-bottom:1px solid var(--line);background:var(--bg);flex:none}.workspace .chat-header-left{display:flex;align-items:center;gap:12px;min-width:0;max-width:none;flex:1}.workspace .chat-header-left:after{display:none}.workspace #sidebar-toggle{display:inline-flex;width:32px;min-height:32px;padding:0;border:0;border-radius:6px;color:var(--secondary);background:none}.workspace #sidebar-toggle:hover{background:var(--hover)}.workspace #sidebar-toggle>svg{color:inherit}.header-task{min-width:0;display:flex;align-items:center;gap:10px;flex:1}.workspace .task-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--secondary);font-size:13px;font-weight:400}.header-task-status{font-size:10px;color:var(--muted);white-space:nowrap}.chat-header-actions{display:flex;gap:7px;align-items:center;flex:none}.workspace .chat-header-actions .plain-icon svg{width:17px;height:17px}.workspace .chat-scroller{min-height:0;flex:1;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:var(--line) transparent;background:var(--bg)}.workspace .chat-messages{width:min(100% - 64px,790px);margin:0 auto;padding:30px 0 18px;flex:1;display:flex;flex-direction:column;min-width:0}.workspace .chat-messages:has(.task-empty){padding-top:0;padding-bottom:0}.workspace .task-empty{display:flex;align-items:center;justify-content:center;min-height:0;flex:1;padding:36px 0;margin:auto 0;width:100%}.workspace .welcome-guide{width:100%;max-width:650px;text-align:left;margin:auto}.workspace .welcome-guide h2{font-size:30px;font-weight:450;letter-spacing:-.5px;line-height:1.5;margin:12px 0;color:var(--text)}.workspace .welcome-guide>p{font-size:13px;line-height:1.9;color:var(--secondary)}.office-welcome-mark{font:58px/1 Georgia,serif;color:var(--accent);margin-bottom:20px}.office-welcome-eyebrow{font-size:9px!important;letter-spacing:1.8px;color:var(--muted)!important}.office-starters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:26px}.office-starter{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:5px 10px;position:relative;min-height:88px;text-align:left;padding:17px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text)}.office-starter:hover{background:var(--accent-soft);border-color:var(--accent)}.office-starter>svg{grid-row:span 2;color:var(--accent);width:20px;height:20px;margin-top:2px}.office-starter strong{font-size:13px;font-weight:500}.office-starter small{font-size:11px;color:var(--muted);line-height:1.7}.workspace .welcome-hint{font-size:11px!important;color:var(--muted)!important;margin-top:18px}.workspace .feature-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:25px 0 0;padding:0}.workspace .feature-list li{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:16px;gap:10px;box-shadow:none;transform:none}.workspace .feature-list strong{font-size:13px;color:var(--text)}.workspace .feature-list p{font-size:11px;color:var(--muted)}.workspace .feature-icon{font-size:20px}
.workspace .chat-message{font-size:14px;line-height:1.9;margin:0 0 28px;color:var(--text);min-width:0}.workspace .user-message{align-self:stretch}.workspace .user-bubble{width:fit-content;max-width:min(88%,680px);margin-left:auto;padding:10px 14px;border:1px solid var(--line);border-radius:11px;background:var(--subtle);color:var(--text);font-size:14px;line-height:1.7}.workspace .markdown{font-size:14px;line-height:1.9;color:var(--text)}.workspace .markdown h1{font-size:22px}.workspace .markdown h2{font-size:20px}.workspace .markdown h3{font-size:17px}.workspace .markdown :is(h1,h2,h3,h4,h5,h6){color:var(--text);font-weight:600}.workspace .markdown a{color:var(--accent)}.workspace .markdown blockquote{border-color:var(--accent);background:var(--subtle);color:var(--secondary)}.workspace .markdown hr{border-color:var(--line)}.workspace .markdown code,.workspace .markdown pre,.workspace .code-block{background:var(--code);color:var(--text);border-color:var(--line)}.workspace .code-label,.workspace .code-heading{background:var(--subtle);color:var(--muted);border-color:var(--line)}.workspace .code-label button,.workspace .code-copy{color:var(--secondary)}.workspace .markdown :is(th,td){border-color:var(--line);color:var(--text)}.workspace .markdown th{background:var(--subtle)}.workspace .markdown tr:hover{background:var(--subtle)}.workspace .markdown table{font-size:12px}.workspace .process-entry,.workspace .process-segment{font-size:12px;color:var(--secondary);border-color:var(--line)}.workspace .process-entry>summary,.workspace .process-segment>summary{min-height:32px}.workspace .process-entry>summary>.process-label,.workspace .process-segment>summary>.process-label{color:var(--secondary)}.workspace .process-preview,.workspace .process-state,.workspace .process-count{color:var(--muted);font-size:11px}.workspace .thinking-content{color:var(--muted);font-size:13px;line-height:1.8}.workspace .tool-content{font-size:12px;color:var(--secondary);background:var(--code);border-color:var(--line)}.workspace .process-copy,.workspace .tool-section-head{font-size:11px;color:var(--muted)}.workspace .process-copy:hover{background:var(--hover);color:var(--text)}.workspace .process-entry.process-error,.workspace .process-entry.process-error>summary>.process-label,.workspace .process-failures{color:var(--danger)}.workspace .process-detail,.workspace .process-segment-body{scrollbar-color:var(--line) transparent}.workspace .process-dot{background:var(--accent)}.workspace .run-error,.workspace .message-error{background:var(--danger-soft);color:var(--danger);border-color:var(--danger)}.workspace .run-stats,.workspace .run-status,.workspace .assistant-meta{font-size:11px;color:var(--muted)}
.workspace .composer-area{width:min(100% - 64px,790px);margin:0 auto;flex:none;padding:4px 0 max(12px,env(safe-area-inset-bottom));background:var(--bg)}.workspace .composer{padding:12px 12px 9px;border:1px solid var(--line);border-radius:13px;background:var(--panel);box-shadow:0 3px 16px #00000006}.workspace .composer:focus-within{border-color:color-mix(in srgb,var(--accent) 50%,var(--line));box-shadow:0 3px 16px #00000009}.workspace .composer textarea{display:block;width:100%;min-height:42px;max-height:min(220px,28dvh);height:42px;padding:3px 5px 6px;font-size:14px;line-height:1.8;background:none;border:0;border-radius:0;box-shadow:none;resize:none;color:var(--text)}.workspace .composer textarea:focus{box-shadow:none;border:0}.workspace .composer-row{display:flex;align-items:center;gap:8px;min-height:34px}.workspace .attachment-control{width:32px;height:32px}.workspace .attachment-control>.plain-icon{width:32px;height:32px;border-radius:6px;color:var(--muted)}.workspace .composer-options{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex:1;width:auto;min-width:0;max-width:none;margin:0;padding:0;color:var(--muted)}.workspace .composer-options .model-picker-trigger,.workspace .composer-options .thinking-picker{font-family:inherit;font-size:11px;color:var(--muted);height:30px;min-height:30px;padding:4px;gap:5px}.workspace .composer-options .model-picker-trigger{max-width:min(240px,calc(100% - 105px))}.workspace .composer-options:has(.thinking-picker[hidden]) .model-picker-trigger{max-width:100%}.workspace .composer-options .model-picker-label{display:none}.workspace .composer-options .model-picker-name{font:inherit}.workspace .composer-options .thinking-picker>span{color:var(--muted)}.workspace .composer-options .thinking-picker select{color:var(--secondary);font-size:11px;background:none;height:24px;line-height:24px;min-height:0;padding-top:0;padding-bottom:0}.workspace .composer-options .thinking-picker select option{background:var(--panel);color:var(--text)}.workspace .composer-options .thinking-picker:after{top:12px;border-color:var(--muted)}.workspace .composer-options .model-picker-trigger>svg{color:var(--muted)}.workspace .composer-options .model-picker-trigger:hover:not(:disabled),.workspace .composer-options .thinking-picker:hover{background:var(--hover);color:var(--text)}.workspace .composer-row>.send-button{width:32px;height:32px;min-width:32px;display:flex;align-items:center;justify-content:center;flex:none;border:0;border-radius:8px;background:var(--accent);color:var(--panel);padding:0;box-shadow:none}.workspace .send-button:hover:not(:disabled){background:var(--accent-hover);transform:none}.workspace .send-button:disabled{opacity:.4}.workspace .send-button.resume{width:auto;min-width:52px;padding:0 9px;font-size:12px}.composer-footnote{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 4px 0;font-size:9px;color:var(--muted)}.workspace .composer-hint{font-size:11px;color:var(--muted);margin-bottom:7px}.workspace .composer-error{font-size:12px;background:var(--danger-soft);color:var(--danger);border-color:var(--danger);padding:9px 12px;border-radius:7px;margin-bottom:8px}.workspace .connection-note{font-size:12px;color:var(--secondary);background:var(--subtle);border-color:var(--line)}.workspace .upload-status{font-size:11px;color:var(--muted);padding-top:5px}.workspace .composer .attachment-tray{padding:0 3px 10px}
.workspace .attachment-chip,.workspace .artifact-note{background:var(--panel);border-color:var(--line);color:var(--secondary);font-size:12px}.workspace .attachment-label{color:var(--secondary)}.workspace .image-chip{background:var(--subtle);border-color:var(--line)}.workspace .image-chip .chip-remove{border-color:var(--panel);background:var(--secondary);color:var(--panel)}.workspace .artifact-actions>button,.workspace .artifact-actions>a,.workspace .artifact-actions>span{color:var(--muted);font-size:11px}.workspace .artifact-actions>button:hover,.workspace .artifact-actions>a:hover{color:var(--accent)}.workspace .download-link,.workspace .artifact-actions>.download-link{border-color:var(--line);background:var(--accent-soft);color:var(--accent);font-size:12px;min-height:32px}.workspace .download-link:hover{background:var(--hover)}.workspace .image-preview,.workspace .file-preview,.workspace .attachment-sheet,.workspace .model-sheet{background:var(--panel);color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow)}.workspace .image-preview-close{background:var(--subtle);color:var(--secondary)}.workspace .image-preview p{color:var(--muted)}.workspace .file-preview-heading{background:var(--panel)}.workspace .attachment-choice{font-size:14px;min-height:46px}.workspace .attachment-choice:hover{background:var(--hover)}.workspace .model-sheet{border-radius:11px;padding:9px;width:min(350px,calc(100vw - 24px))}.workspace .model-sheet-heading h2{font-size:15px;font-weight:500}.workspace .model-picker-option{font-size:13px;color:var(--secondary);border-radius:7px;min-height:43px;padding:10px 11px}.workspace .model-picker-option>svg{color:var(--accent)}.workspace .model-picker-option:hover{background:var(--hover)}.workspace .model-picker-option.selected{background:var(--accent-soft);color:var(--text)}.workspace .model-prices-entry{color:var(--accent);border-color:var(--line);font-size:12px;padding:11px}.workspace .model-picker-empty{font-size:13px;color:var(--muted)}
.workspace .modal{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);max-height:calc(100dvh - 48px)}.workspace .modal::backdrop,.settings-screen::backdrop{background:#0007;backdrop-filter:blur(3px)}.workspace .modal-header{padding:22px 24px 16px}.workspace .modal-header h2{font-size:19px;font-weight:500;color:var(--text)}.workspace .modal-header p,.workspace .field-hint{font-size:12px;color:var(--muted)}.workspace .modal-content{padding:0 24px 24px}.workspace .modal .field label{font-size:12px;color:var(--secondary)}.workspace .modal :is(input,select,textarea){background:var(--bg);border-color:var(--line);color:var(--text);font-size:14px}.workspace .modal :is(input,select,textarea):focus{border-color:var(--accent);box-shadow:none}.workspace .modal .icon-button{color:var(--secondary);min-width:34px;min-height:34px}.workspace .modal .button,.workspace .button{border-radius:7px;min-height:36px;font-size:12px;box-shadow:none}.workspace .modal .button.primary,.workspace .button.primary{background:var(--accent);border-color:var(--accent);color:var(--panel)}.workspace .modal .button.secondary,.workspace .button.secondary{background:var(--panel);border-color:var(--line);color:var(--secondary)}.workspace .button.ghost{background:none;color:var(--secondary)}.workspace .button.ghost:hover,.workspace .modal .button.secondary:hover{background:var(--hover)}.workspace .button.danger{background:var(--danger);color:var(--panel)}.workspace .dialog-copy{font-size:13px;color:var(--secondary)}.workspace .delete-task-name{font-size:14px;color:var(--text);overflow-wrap:anywhere}.workspace .notice,.workspace .empty,.workspace .loading,.workspace .toast{font-size:13px}.workspace .notice.info{background:var(--accent-soft);color:var(--accent);border-color:var(--line)}.workspace .notice.error{background:var(--danger-soft);color:var(--danger);border-color:var(--danger)}.workspace .notice.success{background:var(--accent-soft);color:var(--accent)}.workspace .empty{border-color:var(--line);color:var(--muted)}.workspace .toast{background:var(--text);color:var(--bg);box-shadow:var(--shadow)}.workspace .toast.error{background:var(--danger);color:var(--panel)}.workspace .bill-row{border-color:var(--line);font-size:13px}.workspace .bill-row strong{font-size:13px}.workspace .bill-row small{color:var(--muted);font-size:11px}.workspace .bill-credit{color:var(--accent)}.workspace .memory-item textarea{font-size:14px}.workspace .price-title strong,.workspace .price-item>strong,.workspace .price-values b{font-size:14px;color:var(--text)}.workspace .price-values span,.workspace .discount-badge{font-size:11px;color:var(--muted)}.workspace .discount-badge{background:var(--accent-soft);color:var(--accent)}.workspace .price-values .original-price{font-size:10px;color:var(--muted)}.workspace .free-model-notice{background:var(--subtle);color:var(--secondary)}.workspace .price-item{border-color:var(--line)}.workspace .recharge-user-id,.workspace .recharge-memo,.workspace .api-example,.workspace .api-issued{background:var(--subtle);color:var(--text)}.workspace .api-key-row,.workspace .profile-name-form{border-color:var(--line)}.workspace .api-note,.workspace .api-guide p,.workspace .api-key-row small,.workspace .api-guide summary,.workspace .desktop-install-brand p,.workspace .desktop-install-steps p{color:var(--muted);font-size:13px}.workspace .api-copy-row code,.workspace .api-key-row,.workspace .desktop-install-steps strong{font-size:13px;color:var(--secondary)}.workspace .api-heading h2{font-size:16px}.workspace .recharge-payment{border-color:var(--line)}.workspace .recharge-payment .recharge-instruction{font-size:17px}.workspace .muted{color:var(--muted)}
.workspace .settings-screen{position:fixed;inset:0;width:min(920px,calc(100vw - 80px));height:min(680px,calc(100dvh - 80px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--text);overflow:hidden;box-shadow:var(--shadow)}.settings-shell{display:grid;grid-template-columns:190px minmax(0,1fr);height:100%;min-height:0}.settings-nav{display:flex;flex-direction:column;gap:4px;padding:24px 12px 16px;background:var(--sidebar);border-right:1px solid var(--line);min-height:0}.settings-nav h2{font-size:18px;font-weight:500;padding:0 12px 23px;color:var(--text)}.settings-nav-button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border:0;border-radius:7px;background:none;color:var(--secondary)!important;text-align:left;font-size:12px;min-height:40px}.settings-nav-button:hover{background:var(--hover)}.settings-nav-button[aria-current=page]{background:var(--accent-soft);color:var(--accent)!important}.settings-nav-button svg{width:16px;height:16px}.settings-nav-bottom{margin-top:auto;font-size:10px;color:var(--muted);padding:15px 12px 0}.settings-main{min-width:0;min-height:0;display:flex;flex-direction:column}.workspace .settings-header{position:static;display:flex;align-items:center;justify-content:space-between;min-height:70px;padding:18px 28px 12px;background:none;border:0;gap:12px;flex:none}.workspace .settings-header h2{font-size:19px;font-weight:500}.workspace .settings-content{width:auto;margin:0;padding:6px 28px 28px;min-height:0;overflow:auto;overscroll-behavior:contain;flex:1}.workspace .settings-section{margin:0 0 26px}.workspace .settings-section h3{font-size:12px;font-weight:500;color:var(--secondary);padding:0;margin:0 0 12px}.workspace .settings-description{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 16px;padding:0}.workspace .settings-row{gap:10px;min-height:47px;padding:11px 0;border:0;border-bottom:1px solid var(--line);border-radius:0!important;background:none;color:var(--secondary);font-size:12px}.workspace .settings-row:hover{background:none;color:var(--accent)}.workspace .settings-row>svg{width:16px;height:16px;color:var(--muted)}.workspace .settings-row-arrow{font-size:18px;color:var(--muted)}.workspace .process-mode-options{padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--subtle);gap:4px;max-width:360px}.workspace .process-mode-options button{min-height:35px;border:0;border-radius:5px;background:none;color:var(--muted);font-size:12px;flex:1}.workspace .process-mode-options button[aria-pressed=true]{color:var(--accent);background:var(--panel);box-shadow:0 1px 4px #0001;font-weight:500}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.theme-option{padding:9px 9px 7px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--secondary);font-size:11px;text-align:left}.theme-option[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.theme-option>span:last-child{display:block;margin-top:7px}.theme-preview{display:flex;height:65px;background:#f6f5f3;border:1px solid #e2e2dc;border-radius:5px;overflow:hidden}.theme-preview:before{content:'';width:27%;background:#f0efec;border-right:1px solid #e2e2dc}.theme-preview:after{content:'';align-self:flex-end;margin:0 auto 8px;width:52%;height:15px;border:1px solid #e2e2dc;background:#fff;border-radius:3px}.theme-preview.dark{background:#212121;border-color:#373737}.theme-preview.dark:before{background:#242424;border-color:#373737}.theme-preview.dark:after{background:#262626;border-color:#373737}.theme-preview.system{background:linear-gradient(90deg,#f6f5f3 50%,#212121 50%)}.theme-preview.system:after{background:linear-gradient(90deg,#fff 50%,#262626 50%)}.settings-feature{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--line)}.settings-feature:last-child{border-bottom:0}.settings-feature>svg{color:var(--accent);flex:none;width:20px;height:20px}.settings-feature-copy{flex:1;min-width:0}.settings-feature-copy strong{display:block;font-size:13px;font-weight:500;color:var(--text)}.settings-feature-copy small{display:block;font-size:11px;line-height:1.7;color:var(--muted);margin-top:4px}.settings-switch{position:relative;width:33px;height:20px;border:1px solid var(--line);border-radius:20px;background:var(--hover);padding:0;flex:none}.settings-switch:before{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:var(--muted);transition:transform .15s}.settings-switch[aria-checked=true]{border-color:var(--accent);background:var(--accent)}.settings-switch[aria-checked=true]:before{transform:translateX(13px);background:var(--panel)}.settings-account-card{display:flex;align-items:center;gap:13px;margin:0 0 24px}.settings-account-card .user-avatar{width:42px;height:42px;font-size:18px}.settings-account-card strong{display:block;font-size:15px;font-weight:500}.settings-account-card small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.settings-balance-card{padding:17px;border:1px solid var(--line);border-radius:10px;background:var(--panel);margin-bottom:23px}.settings-balance-card .sidebar-balance-label{font-size:11px}.settings-balance-card .sidebar-balance-main strong{font-size:29px}.settings-balance-card .sidebar-balance-actions .button{font-size:12px;padding:8px 10px;min-height:34px}.quota-list{display:flex;flex-direction:column;gap:12px}.quota-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;font-size:12px}.quota-item-name{min-width:0;overflow-wrap:anywhere;color:var(--text)}.quota-item-value{color:var(--accent);font-variant-numeric:tabular-nums}.quota-item small{font-size:10px;color:var(--muted)}.quota-track{height:3px;grid-column:1/-1;border-radius:3px;background:var(--line);overflow:hidden}.quota-track span{display:block;height:100%;background:var(--accent);border-radius:3px}.quota-status{font-size:12px;color:var(--muted)}.quota-retry{border:0;background:none;color:var(--accent)!important;margin-left:7px;padding:3px;font-size:12px}.workspace .settings-signout{width:auto;min-height:35px;margin-top:10px;padding:7px 11px;border:1px solid var(--line);border-radius:7px;background:none;color:var(--danger);font-size:12px}.workspace .settings-signout:hover{background:var(--danger-soft)}
@media(min-width:761px){.workspace.sidebar-collapsed .workspace-shell{grid-template-columns:0 minmax(0,1fr)}.workspace.sidebar-collapsed .task-sidebar{padding-left:0;padding-right:0;visibility:hidden;pointer-events:none}.workspace .sidebar-backdrop{display:none}}
@media(min-width:1600px){.workspace .chat-messages,.workspace .composer-area{width:min(100% - 96px,860px)}.workspace .welcome-guide{max-width:700px}.workspace .chat-message,.workspace .markdown,.workspace .user-bubble{font-size:15px}}
@media(max-width:1100px) and (min-width:761px){.workspace-shell{grid-template-columns:226px minmax(0,1fr)}.workspace .task-sidebar{padding-left:11px;padding-right:11px}.workspace .workspace-brand{padding:0 5px}.workspace .chat-header{padding:0 18px}.workspace .chat-messages,.workspace .composer-area{width:calc(100% - 40px)}.workspace .welcome-guide h2{font-size:27px}.office-starter{padding:14px}.workspace .settings-screen{width:calc(100vw - 48px);height:calc(100dvh - 48px)}.settings-shell{grid-template-columns:170px minmax(0,1fr)}}
@media(max-width:760px){.workspace{font-size:16px}.workspace-shell{display:block;height:100%}.workspace .task-sidebar{position:fixed;left:0;top:0;bottom:0;z-index:40;width:min(310px,88vw);height:100%;padding:calc(20px + env(safe-area-inset-top)) 14px max(12px,env(safe-area-inset-bottom));transform:translateX(-100%);transition:transform .18s ease;visibility:hidden}.workspace.sidebar-open .task-sidebar{transform:translateX(0);visibility:visible}.workspace .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:35;background:#0007}.workspace .workspace-brand{margin-bottom:22px}.workspace .workspace-brand a .workbench-brand-copy{font-size:17px}.workspace .new-task{min-height:47px}.workspace .new-task>span:nth-child(2){font-size:14px}.new-task kbd{display:none}.workspace .task-search input{min-height:40px;font-size:16px}.task-list-heading,.task-group-title{font-size:11px}.workspace .task-item{font-size:14px;min-height:52px}.task-item-copy small{font-size:11px}.workspace .task-more{opacity:1;min-width:34px;min-height:38px}.workspace .sidebar-user-name{font-size:14px}.workspace .sidebar-balance-main strong{font-size:22px}.workspace .sidebar-balance-label,.workspace .sidebar-balance-actions .button,.sidebar-quota{font-size:12px}.sidebar-quota strong{font-size:12px}.workspace .chat-main{height:100%}.workspace .chat-header{height:calc(54px + env(safe-area-inset-top));min-height:calc(54px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));gap:7px}.workspace .chat-header-left{max-width:none;gap:8px;min-width:0}.workspace .task-title{font-size:14px}.header-task-status{display:none}.chat-header-actions{gap:4px}.workspace .chat-header .plain-icon,.workspace #sidebar-toggle{width:36px;height:36px;min-height:36px}.workspace .chat-messages{width:calc(100% - 32px);padding:22px 0 10px}.workspace .task-empty{padding:28px 6px 24px}.workspace .welcome-guide h2{font-size:25px;line-height:1.5;margin:10px 0}.workspace .welcome-guide>p{font-size:13px}.office-welcome-mark{font-size:46px;margin-bottom:17px}.office-starters{gap:9px;margin-top:22px}.office-starter{padding:13px 11px;gap:5px 7px;grid-template-columns:19px minmax(0,1fr);min-height:91px;border-radius:9px}.office-starter>svg{width:17px;height:17px}.office-starter strong{font-size:12px}.office-starter small{font-size:11px;line-height:1.6}.workspace .welcome-hint{margin-top:15px;font-size:10px!important}.workspace .chat-message,.workspace .markdown,.workspace .user-bubble{font-size:15px}.workspace .chat-message{margin-bottom:25px;line-height:1.85}.workspace .user-bubble{max-width:92%;padding:10px 13px}.workspace .markdown h2{font-size:19px}.workspace .markdown h3{font-size:17px}.workspace .process-entry,.workspace .process-segment{font-size:12px}.workspace .process-entry>summary,.workspace .process-segment>summary{min-height:38px}.workspace .thinking-content{font-size:13px}.workspace .composer-area{width:calc(100% - 20px);padding:4px 0 max(10px,env(safe-area-inset-bottom));margin:0 auto}.workspace .composer{padding:10px 9px 7px;border-radius:13px}.workspace .composer textarea{font-size:16px;line-height:1.65;min-height:43px;max-height:min(160px,25dvh);padding:3px 4px 7px}.workspace .composer-row{gap:5px;min-height:36px}.workspace .attachment-control,.workspace .attachment-control>.plain-icon{width:34px;height:34px}.workspace .composer-row>.send-button{width:34px;height:34px;min-width:34px}.workspace .composer-options{gap:5px}.workspace .composer-options .model-picker-trigger,.workspace .composer-options .thinking-picker{font-size:10px;padding:3px 2px}.workspace .composer-options .model-picker-trigger{max-width:calc(100% - 95px)}.workspace .composer-options .thinking-picker{gap:3px}.workspace .composer-options .thinking-picker select{font-size:10px;width:59px;max-width:59px}.workspace .composer-options .thinking-picker>span{font-size:10px}.composer-footnote{font-size:9px;justify-content:center;margin-top:5px}.desktop-compose-tip{display:none}.workspace .composer-hint{font-size:11px;padding-left:5px}.workspace .model-sheet{inset:auto 0 0;width:100%;max-width:none;margin:0;border-radius:17px 17px 0 0;border:0;padding:12px 12px max(18px,env(safe-area-inset-bottom));max-height:75dvh}.workspace .model-picker-option{min-height:49px;font-size:15px;padding:12px}.workspace .model-sheet-heading h2{font-size:16px}.workspace .model-prices-entry{min-height:44px;font-size:13px}.workspace .attachment-sheet{font-size:15px;border-radius:17px 17px 0 0;border:0}.workspace .attachment-choice{font-size:16px;min-height:50px}.workspace .modal{width:calc(100% - 24px);max-height:calc(100dvh - 32px)}.workspace .modal-header{padding:20px 18px 14px}.workspace .modal-header h2{font-size:19px}.workspace .modal-content{padding:0 18px 22px}.workspace .modal :is(input,select,textarea){font-size:16px}.workspace .modal .button{min-height:42px;font-size:13px}.workspace .settings-screen{inset:0;width:100%;height:100dvh;height:var(--app-height,100dvh);margin:0;border:0;border-radius:0}.settings-shell{display:flex;flex-direction:column}.settings-nav{order:1;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:3px;padding:0 14px 10px;background:var(--bg);border-right:0;border-bottom:1px solid var(--line);flex:none;min-height:51px}.settings-nav h2,.settings-nav-bottom{display:none}.settings-nav-button{width:auto;flex:1;justify-content:center;gap:6px;padding:8px 9px;min-height:35px;white-space:nowrap;font-size:12px}.settings-nav-button svg{width:15px;height:15px}.settings-main{display:contents}.workspace .settings-header{order:0;min-height:calc(65px + env(safe-area-inset-top));padding:calc(15px + env(safe-area-inset-top)) 20px 14px;flex:none}.workspace .settings-header h2{font-size:19px}.workspace .settings-content{order:2;padding:23px 20px calc(24px + env(safe-area-inset-bottom));margin:0;flex:1;min-height:0;overflow:auto}.workspace .settings-section h3{font-size:13px}.workspace .settings-description{font-size:13px}.workspace .settings-row{font-size:14px;min-height:52px}.settings-feature{padding:16px 0}.settings-feature-copy strong{font-size:14px}.settings-feature-copy small{font-size:12px}.settings-switch{width:39px;height:24px}.settings-switch:before{width:16px;height:16px}.settings-switch[aria-checked=true]:before{transform:translateX(15px)}.theme-option{font-size:12px}.theme-preview{height:62px}.workspace .process-mode-options{max-width:none}.workspace .process-mode-options button{min-height:39px;font-size:13px}.settings-account-card strong{font-size:16px}.settings-account-card small{font-size:12px}.quota-item{font-size:13px}.quota-item small{font-size:11px}.workspace .settings-signout{min-height:42px;font-size:13px}.workspace .feature-list{gap:9px}.workspace .feature-list li{padding:12px}.workspace .feature-list strong{font-size:12px}.workspace .feature-list p{font-size:11px}}
@media(max-width:360px){.workspace .chat-messages{width:calc(100% - 24px)}.workspace .task-empty{padding-left:2px;padding-right:2px}.office-starter{grid-template-columns:1fr;padding:12px}.office-starter>svg{grid-row:auto;margin-bottom:3px}.office-starter small{font-size:10px}.workspace .composer-options .thinking-picker>span{display:none}.workspace .composer-options .model-picker-trigger{max-width:calc(100% - 64px)}.settings-nav-button{padding:8px 6px}.settings-nav-button svg{display:none}.workspace .settings-content{padding-left:16px;padding-right:16px}}
@media(max-height:650px) and (min-width:761px){.workspace .task-sidebar{padding-top:14px}.workspace .workspace-brand{margin-bottom:14px}.workspace .chat-header{height:50px;min-height:50px}.workspace .task-empty{padding:25px 0}.office-welcome-mark{font-size:43px;margin-bottom:13px}.workspace .welcome-guide h2{font-size:26px}.office-starters{margin-top:16px}.office-starter{min-height:75px;padding:13px}.workspace .settings-screen{height:calc(100dvh - 32px)}}
@media(pointer:coarse){.workspace .task-more{opacity:1}.workspace .balance-refresh{min-height:30px}.workspace .settings-switch:after{content:'';position:absolute;inset:-10px -4px}}
@media(prefers-reduced-motion:reduce){.workspace *,.workspace *:before{transition:none!important;animation:none!important}}
.workspace .welcome-guide .welcome-mark{display:block;font:58px/1 Georgia,serif;color:var(--accent);margin:0 0 26px}.workspace .welcome-guide h1{font-size:30px;font-weight:450;letter-spacing:-.5px;line-height:1.5;margin:12px 0;color:var(--text)}.office-starter:not(:has(svg)){display:flex;flex-direction:column;gap:5px}.office-starter>span{font-size:11px;color:var(--muted);line-height:1.7}.workspace .artifacts-trigger{flex:none;min-height:28px;padding:4px 5px;font-size:11px;border:0;border-radius:5px;background:none;color:var(--muted)}.workspace .artifacts-trigger:hover{background:var(--hover);color:var(--text)}.workspace .composer-options:has(.artifacts-trigger) .model-picker-trigger{max-width:min(240px,calc(100% - 150px))}.workspace .composer-options:has(.artifacts-trigger):has(.thinking-picker[hidden]) .model-picker-trigger{max-width:calc(100% - 46px)}
@media(max-width:760px){.workspace .welcome-guide .welcome-mark{font-size:46px;margin-bottom:20px}.workspace .welcome-guide h1{font-size:25px}.workspace .artifacts-trigger{font-size:10px;padding:4px 2px}.workspace .composer-options:has(.artifacts-trigger) .model-picker-trigger{max-width:calc(100% - 126px)}.workspace .composer-options:has(.artifacts-trigger):has(.thinking-picker[hidden]) .model-picker-trigger{max-width:calc(100% - 36px)}}
@media(max-width:390px){.workspace .composer-options .thinking-picker>span{display:none}.workspace .composer-options:has(.artifacts-trigger) .model-picker-trigger{max-width:calc(100% - 96px)}}
.workspace .task-item{min-height:39px;padding-top:10px;padding-bottom:10px}.workspace .task-row:has(.task-item-copy small) .task-item{min-height:48px}.workspace .task-row.active:before{top:11px;bottom:11px}
@media(max-width:760px){.workspace .task-item{min-height:44px}.workspace .task-row:has(.task-item-copy small) .task-item{min-height:52px}}
@media(max-width:760px){.workspace .composer-options{gap:3px}.workspace .composer-options .model-picker-trigger,.workspace .composer-options .thinking-picker{height:34px;min-height:34px;font-size:12px;padding:1px 3px}.workspace .composer-options:has(.artifacts-trigger) .model-picker-trigger,.workspace .composer-options:has(.artifacts-trigger):has(.thinking-picker[hidden]) .model-picker-trigger{flex:1 1 0;max-width:none}.workspace .composer-options .thinking-picker select{height:32px;line-height:32px;font-size:12px;width:67px;max-width:67px}.workspace .composer-options .thinking-picker>span{font-size:12px}.workspace .composer-options .thinking-picker:after{top:15px}.workspace .artifacts-trigger{font-size:12px;min-height:34px;padding:3px 4px}.workspace .composer-options .model-picker-name{line-height:20px}.workspace .composer-options .model-picker-trigger>svg{width:10px;height:10px}}
.workspace .markdown td{background:var(--panel)}.workspace .markdown hr{background:var(--line)}.workspace .markdown li::marker{color:var(--secondary)}
@media(max-height:500px){.workspace .task-sidebar{padding-top:10px;padding-bottom:8px}.workspace .workspace-brand{min-height:30px;margin-bottom:8px}.workspace .workspace-brand a .workbench-mark{width:28px;height:28px;font-size:23px}.workbench-brand-copy small{display:none}.workspace .new-task{min-height:36px;margin-bottom:6px;padding:6px 11px}.workspace .task-search input{min-height:30px;padding-top:4px;padding-bottom:4px}.task-list-heading{padding:5px 10px}.task-group-title{padding-top:6px}.sidebar-footer{margin-top:6px;padding-top:6px}.workspace .sidebar-balance{padding-bottom:6px}.sidebar-quota{margin-top:2px}.workspace .sidebar-balance-main strong{font-size:18px}.workspace .user-trigger{min-height:38px;padding-top:4px;padding-bottom:4px}.workspace .sidebar-bottom-user{padding-top:3px}}
