/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:root{color-scheme:dark;font-family:Inter,PingFang SC,Microsoft YaHei,Noto Sans CJK SC,system-ui,sans-serif;background:#08090d;color:#f7f7fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{min-width:320px;min-height:100dvh;margin:0;background:linear-gradient(180deg,#16161bcc,#08090df2),#08090d}button,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.app-shell{width:min(1352px,calc(100% - 40px));min-height:100dvh;margin:0 auto;padding:18px 0 34px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px}.eyebrow{margin:0 0 3px;color:#f4c500;font-size:13px;font-weight:700}h1,h2,p{margin:0}h1{font-size:24px;line-height:1.2}.topbar-actions{display:flex;align-items:center;gap:12px}.workspace-switcher{display:inline-flex;min-height:44px;padding:4px;border:1px solid #2a2b36;border-radius:8px;background:#11121a}.workspace-switcher button{display:inline-flex;min-height:44px;align-items:center;gap:7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#aeb2c0;padding:0 13px;font-weight:800}.workspace-switcher button.active{border-color:#f4c500;background:#f4c500;color:#111}.icon-button,.status-pill,.prompt-tools a,.prompt-tools button,.prompt-tools select,.history-actions button,.result-actions button{min-height:38px;border:1px solid #2b2d38;border-radius:8px;background:#14151c;color:#f3f3f7}.icon-button,.result-actions button{display:inline-flex;width:38px;align-items:center;justify-content:center;padding:0}.status-pill{display:inline-flex;align-items:center;gap:7px;min-width:92px;justify-content:center;padding:0 12px;color:#b8bbc8}.status-pill.is-online{border-color:#30be8073;color:#6ee7ae}.user-pill{max-width:180px;justify-content:flex-start}.user-pill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-wrap{display:grid;min-height:calc(100dvh - 120px);place-items:center;padding:24px 0}.auth-panel{display:grid;width:min(440px,100%);gap:18px;padding:28px}.auth-icon{display:inline-flex;width:54px;height:54px;align-items:center;justify-content:center;border:1px solid rgba(244,197,0,.42);border-radius:8px;background:#171821;color:#f4c500}.auth-copy{display:grid;gap:7px}.auth-copy h2{font-size:24px}.auth-copy p{color:#9fa3b4;line-height:1.5}.auth-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:1px solid #292b36;border-radius:8px;background:#11121a;padding:4px}.auth-switch button{min-height:42px;border:0;border-radius:6px;background:transparent;color:#aeb2c0;font-weight:800}.auth-switch button.active{background:#f4c500;color:#111}.auth-field{display:grid;gap:8px;color:#a9adbd;font-size:14px;font-weight:700}.auth-field input{width:100%;min-height:46px;border:1px solid #272934;border-radius:8px;outline:none;background:#11121a;color:#f7f7fb;padding:0 14px}.auth-field input:focus{outline:2px solid #f4c500;outline-offset:2px}.workspace{display:grid;grid-template-columns:minmax(360px,.98fr) minmax(420px,1fr);gap:24px;min-height:calc(100dvh - 116px);padding-top:15px}.workspace[hidden]{display:none}.panel{border:1px solid #2a2b36;border-radius:8px;background:#181820eb;box-shadow:0 18px 50px #00000047}.input-panel{display:flex;flex-direction:column;gap:24px;padding:26px 24px 24px}.output-panel{position:relative;min-height:620px;padding:26px 24px;overflow:hidden}.panel-title{display:flex;align-items:center;gap:10px}.panel-title span{width:4px;height:20px;border-radius:2px;background:#f4c500}.panel-title h2{font-size:20px;line-height:1.2}.field{display:grid;gap:10px}.field label{color:#a9adbd;font-size:14px;font-weight:700}.field-line{display:flex;align-items:center;justify-content:space-between;gap:12px}.segmented{display:inline-flex;width:fit-content;min-height:44px;padding:4px;border:1px solid #2a2b36;border-radius:999px;background:#11121a}.segmented button,.chip{min-height:34px;border:1px solid transparent;border-radius:999px;background:transparent;color:#aeb2c0;font-weight:700}.segmented button{min-width:58px;padding:0 17px}.segmented button.active,.chip.active{border-color:#f4c500;background:#f4c500;color:#111}.segmented button:disabled{opacity:.58}.prompt-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.prompt-tools a,.prompt-tools button,.prompt-tools select,.history-actions button{display:inline-flex;align-items:center;gap:7px;padding:0 12px;color:#cfd1dc;text-decoration:none}.prompt-tools select{max-width:180px}textarea{width:100%;min-height:148px;resize:vertical;border:1px solid #272934;border-radius:8px;outline:none;background:#11121a;color:#f7f7fb;padding:18px;line-height:1.5}textarea:focus,.prompt-tools select:focus,button:focus-visible{outline:2px solid #f4c500;outline-offset:2px}.counter{justify-self:end;color:#717586;font-size:13px}.input-tools{display:flex;justify-content:flex-end;margin-top:-4px}.clear-input-button{display:inline-flex;min-height:38px;align-items:center;gap:7px;border-color:#be43437a;background:#801f1f1f;color:#ffb4b4;padding:0 12px}.clear-input-button:disabled{cursor:not-allowed;border-color:#2b2d39;background:#151620;color:#666b7c;opacity:.72}.upload-zone{position:relative;display:grid;place-items:center;gap:10px;min-height:138px;border:1px dashed #343643;border-radius:8px;background:#151620}.upload-zone input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none}.upload-zone button{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:1px solid #303240;border-radius:8px;background:#1c1d27;color:#f4f4f8;padding:0 18px;font-weight:800}.upload-zone span{color:#737789;font-size:13px}.reference-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:10px}.reference-preview{position:relative;aspect-ratio:1;overflow:hidden;border:1px solid #2f3140;border-radius:8px;background:#101119}.reference-preview img{width:100%;height:100%;object-fit:cover}.reference-preview button{position:absolute;top:6px;right:6px;display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:0;border-radius:999px;background:#000000a3;color:#fff}.chip-row{display:flex;flex-wrap:wrap;gap:8px}.chip{min-width:54px;padding:0 14px;background:#151620;border-color:#2b2d39}.count-chip{min-width:46px}.generate-button{display:inline-flex;min-height:56px;align-items:center;justify-content:center;gap:10px;border:0;border-radius:8px;background:linear-gradient(135deg,#ffd75a,#f0bd00);color:#090a0d;font-size:16px;font-weight:900}.generate-button:disabled{opacity:.52}.output-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.browser-note{display:inline-flex;min-height:28px;align-items:center;border:1px solid rgba(244,197,0,.38);border-radius:999px;padding:0 11px;color:#f4c500;font-size:12px}.queue-bar{display:flex;justify-content:space-between;gap:12px;min-height:56px;margin-top:28px;border:1px solid #292b36;border-radius:8px;background:#14151d;padding:17px 18px;color:#a9adbd;font-weight:700}.message-stack{display:grid;gap:8px;margin-top:14px}.alert{border-radius:8px;padding:12px 14px;font-size:14px}.alert.error{border:1px solid rgba(239,87,87,.45);background:#801f1f47;color:#ffb0b0}.alert.success{border:1px solid rgba(68,196,139,.38);background:#1c68463d;color:#88e7bd}.empty-state,.loading-state{position:absolute;top:160px;right:24px;bottom:24px;left:24px;display:grid;place-items:center;align-content:center;gap:14px;color:#636777}.empty-state p,.loading-state span{color:#7a7e90;font-weight:700}.history-actions{display:flex;justify-content:flex-end;margin:16px 0 12px}.result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;padding-bottom:4px}.result-card{overflow:hidden;border:1px solid #2d2f3c;border-radius:8px;background:#12131b}.result-card img{display:block;width:100%;height:auto;background:#0e0f14}.result-meta{display:grid;gap:12px;padding:12px}.result-meta p{display:-webkit-box;overflow:hidden;color:#c8cbd6;font-size:13px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.result-actions{display:flex;justify-content:flex-end;gap:8px}.result-actions button{width:44px;min-height:44px}.modal-backdrop{position:fixed;z-index:1000;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;overflow-y:auto;background:#0000008f;padding:24px}.modal-dialog{width:min(560px,100%);max-height:calc(100dvh - 48px);overflow:auto;border:1px solid #333541;border-radius:8px;outline:none;background:#181820;box-shadow:0 24px 70px #0000007a}.modal-header{display:flex;min-height:64px;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #2a2b36;padding:12px 14px 12px 20px}.modal-header h2{font-size:18px}.modal-close{width:44px;min-height:44px}.modal-body{padding:20px}.modal-body button{min-height:44px}.creative-workspace{display:grid;grid-template-columns:minmax(220px,.55fr) minmax(520px,1.5fr) minmax(280px,.75fr);min-height:calc(100dvh - 98px);margin-top:15px;overflow:hidden;border-block:1px solid #2a2b36;background:#11121a}.creative-workspace[hidden],.creative-mobile-tabs{display:none}.creative-conversations-pane,.creative-terminal-pane,.creative-outputs-pane{min-width:0;min-height:0}.creative-conversations-pane,.creative-terminal-pane{border-right:1px solid #2a2b36}.conversation-sidebar,.creative-terminal-pane,.creative-outputs-pane{display:flex;height:100%;min-height:0;flex-direction:column}.creative-pane-heading{display:flex;min-height:68px;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #292b36;padding:12px 14px}.creative-pane-heading>div{display:grid;min-width:0;gap:3px}.creative-pane-heading span{color:#f4c500;font-size:12px;font-weight:800}.creative-pane-heading strong{overflow:hidden;color:#e8e9ef;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.creative-pane-heading .icon-button{width:44px;min-height:44px}.conversation-list{position:relative;flex:1;min-height:0;overflow-y:auto;padding:8px}.conversation-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 44px;margin-bottom:4px;border:1px solid transparent;border-radius:6px}.conversation-row.is-selected{border-color:#f4c5007a;background:#f4c50014}.conversation-select{display:grid;min-width:0;min-height:58px;gap:6px;border:0;background:transparent;color:#eef0f5;padding:10px 8px;text-align:left}.conversation-title{overflow:hidden;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.conversation-status{display:flex;align-items:center;gap:5px;color:#8d91a2;font-size:12px}.conversation-status time{margin-left:auto}.status-active{color:#6ee7ae}.status-queued{color:#f4c500}.status-interrupted{color:#ffb0b0}.conversation-menu-trigger{width:44px;min-height:44px;align-self:center;border:0;border-radius:6px;background:transparent;color:#9296a6}.conversation-menu{position:absolute;z-index:20;top:46px;right:6px;display:grid;min-width:128px;overflow:hidden;border:1px solid #343641;border-radius:6px;background:#1b1c24;box-shadow:0 12px 28px #0006}.conversation-menu button,.conversation-recovery button{display:flex;min-height:40px;align-items:center;gap:8px;border:0;background:transparent;color:#d9dbe4;padding:0 12px}.conversation-menu button.danger,.modal-actions button.danger{color:#ffb0b0}.conversation-recovery{display:grid;grid-column:1 / -1;grid-template-columns:1fr 1fr;border-top:1px solid #292b36}.conversation-recovery button{justify-content:center;padding:5px;font-size:11px}.conversation-rename{display:flex;min-height:58px;align-items:center;gap:6px;padding:7px}.conversation-rename label{min-width:0;flex:1}.conversation-rename input,.creative-modal-form input{width:100%;min-height:42px;border:1px solid #343643;border-radius:6px;outline:none;background:#101119;color:#f7f7fb;padding:0 10px}.conversation-rename input:focus,.creative-modal-form input:focus{outline:2px solid #f4c500;outline-offset:2px}.conversation-rename button{width:42px;min-height:42px;border:1px solid #343643;border-radius:6px;background:#1d1e27;color:#f4c500}.creative-state{display:flex;min-height:180px;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:#7f8394;padding:18px;text-align:center}.creative-state button,.terminal-shell-placeholder button{display:inline-flex;min-height:44px;align-items:center;gap:7px;border:1px solid #343643;border-radius:6px;background:#1b1c24;color:#f2f2f6;padding:0 14px}.creative-error{color:#ffb0b0}.terminal-heading{background:#15161d}.terminal-state{display:inline-flex;min-height:30px;align-items:center;border:1px solid #343643;border-radius:999px;padding:0 10px;color:#aeb2c0!important}.terminal-shell-placeholder{display:grid;flex:1;min-height:0;place-items:center;align-content:center;gap:12px;background:#0a0b0f;color:#5f6474;padding:24px;text-align:center}.terminal-shell-placeholder p{max-width:420px;color:#85899a;line-height:1.5}.codex-terminal{display:grid;grid-template-rows:auto minmax(300px,1fr) auto auto auto;flex:1;min-height:0;overflow:hidden;background:#08090d}.terminal-toolbar{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #252731;background:#111219;padding:0 10px 0 14px}.terminal-connection{display:inline-flex;min-width:0;align-items:center;gap:8px;color:#aeb2c0;font-size:12px;font-weight:700}.terminal-connection-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#676b7a}.terminal-connection-dot.state-connected{background:#6ee7ae}.terminal-connection-dot.state-connecting{background:#f4c500}.terminal-connection-dot.state-disconnected{background:#ff8585}.terminal-toolbar-button,.terminal-icon-button{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;gap:7px;border:0;border-radius:6px;background:transparent;color:#c9ccd6}.terminal-toolbar-button:hover:not(:disabled),.terminal-icon-button:hover:not(:disabled){background:#22242e;color:#f7f7fb}.terminal-icon-button.danger{color:#ffb0b0}.terminal-stage{position:relative;min-width:0;min-height:300px;overflow:hidden;background:#08090d}.terminal-host{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;padding:10px 8px}.terminal-host .xterm{height:100%}.terminal-start-overlay{position:absolute;z-index:2;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#08090de6;color:#888c9b;padding:24px;text-align:center}.terminal-start-overlay button{display:inline-flex;min-height:44px;align-items:center;gap:7px;border:1px solid #f4c500;border-radius:6px;background:#f4c500;color:#111;padding:0 14px;font-weight:900}.terminal-mobile-composer{display:none;gap:8px;border-top:1px solid #252731;background:#111219;padding:10px}.terminal-mobile-composer>label{color:#b8bbc8;font-size:13px;font-weight:800}.terminal-mobile-input-row{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px}.terminal-mobile-input-row textarea{min-width:0;min-height:52px;resize:vertical;border:1px solid #343643;border-radius:6px;outline:none;background:#08090d;color:#f7f7fb;padding:9px 10px;font-size:16px;line-height:1.45}.terminal-mobile-input-row textarea:focus{border-color:#f4c500;outline:2px solid rgba(244,197,0,.32);outline-offset:1px}.terminal-mobile-input-row button,.terminal-shortcuts button{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;border:1px solid #343643;border-radius:6px;background:#1b1c24;color:#e8e9ef;font-weight:800}.terminal-shortcuts{display:grid;grid-template-columns:repeat(8,minmax(44px,1fr));gap:8px}.terminal-inline-error,.pending-upload-errors{display:grid;gap:4px;border-top:1px solid rgba(255,133,133,.28);background:#ff858514;color:#ffb0b0;padding:9px 12px;font-size:12px;line-height:1.45}.pending-uploads{display:grid;max-height:290px;min-height:0;border-top:1px solid #252731;background:#111219}.pending-uploads-heading{display:flex;min-height:52px;align-items:center;gap:10px;padding:4px 8px 4px 14px}.pending-uploads-heading>div{display:flex;min-width:0;flex:1;align-items:baseline;gap:8px}.pending-uploads-heading strong{color:#e8e9ef}.pending-uploads-heading span{color:#7f8394;font-size:12px}.pending-upload-dropzone{min-height:64px;overflow-y:auto;border-top:1px solid #20222b}.pending-upload-dropzone.is-dragging{outline:2px solid #f4c500;outline-offset:-3px;background:#f4c5000f}.pending-upload-empty{display:flex;min-height:64px;align-items:center;justify-content:center;gap:8px;color:#676b7a;font-size:13px}.pending-upload-list{display:grid}.pending-upload-item{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;border-bottom:1px solid #20222b;padding:8px}.pending-upload-thumbnail{display:grid;width:44px;height:44px;place-items:center;border:1px solid #30323d;border-radius:6px;background:#181921;color:#777b8b}.pending-upload-thumbnail img{width:100%;height:100%;border-radius:5px;object-fit:cover}.pending-upload-details{display:grid;min-width:0;gap:3px}.pending-upload-details strong{overflow:hidden;color:#dfe1e8;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.pending-upload-details span{color:#747888;font-size:11px}.pending-upload-actions{display:flex;grid-column:1 / -1;min-width:0;flex-wrap:wrap;gap:8px;padding-left:52px}.pending-upload-actions button{display:inline-flex;min-height:44px;align-items:center;gap:6px;border:1px solid #343643;border-radius:6px;background:#181921;color:#c9ccd6;padding:0 10px;font-size:12px;font-weight:700}.codex-terminal button:focus-visible,.pending-uploads button:focus-visible{outline:2px solid #f4c500;outline-offset:2px}.codex-terminal button:disabled,.pending-uploads button:disabled{cursor:not-allowed;opacity:.42}.creative-outputs-pane{overflow:hidden}.conversation-output-list{display:grid;align-content:start;flex:1;min-height:0;gap:10px;overflow-y:auto;padding:10px}.published-output-card{display:grid;min-width:0;overflow:hidden;border:1px solid #2e303a;border-radius:6px;background:#181921}.published-output-heading{display:flex;min-width:0;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px}.published-output-heading>div{display:grid;min-width:0;gap:4px}.published-output-heading h3{overflow-wrap:anywhere;margin:0;color:#f0f1f5;font-size:14px;line-height:1.35}.published-output-type{color:#f4c500;font-size:10px;font-weight:900}.output-version{flex:0 0 auto;border:1px solid #3a3c46;border-radius:999px;color:#c4c7d1;padding:3px 7px;font-size:11px;font-weight:800}.output-preview{position:relative;width:100%;aspect-ratio:16 / 9;overflow:hidden;border-block:1px solid #2a2c35;background:#0d0e13}.output-preview img{width:100%;height:100%;object-fit:contain}.output-preview-empty{display:grid;width:100%;height:100%;place-items:center;align-content:center;gap:7px;color:#717585;font-size:12px}.output-version-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:8px;padding:10px 10px 10px 12px}.output-version-row>div{display:grid;min-width:0;gap:3px}.output-version-row strong,.output-version-row span,.output-version-row time{overflow-wrap:anywhere}.output-version-row strong{color:#e0e2e9;font-size:12px}.output-version-row span,.output-version-row time{color:#858999;font-size:11px}.output-version-row .output-download-error{color:#ffb0b0}.output-version-row button,.output-version-history>button{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;gap:6px;border:0;border-radius:6px;background:transparent;color:#cdd0d8}.output-version-row button:hover:not(:disabled),.output-version-history>button:hover{background:#252731;color:#f4c500}.output-version-history{display:grid;border-top:1px solid #2a2c35}.output-version-history>button{width:100%;justify-content:flex-start;padding:0 12px;font-size:12px;font-weight:800}.output-version-history svg{transition:transform .16s ease-out}.output-version-history svg.is-open{transform:rotate(180deg)}.output-version-list{display:grid;border-top:1px solid #252731}.output-version-list .output-version-row+.output-version-row{border-top:1px solid #252731}.published-prompt-text{overflow-wrap:anywhere;white-space:pre-wrap;color:#c8cbd5;padding:0 12px 12px;font-size:13px;line-height:1.6}.published-output-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #2a2c35;padding:8px 10px 8px 12px}.published-output-actions time{color:#777b8b;font-size:11px}.published-output-actions button{display:inline-flex;min-height:44px;align-items:center;gap:6px;border:1px solid #3a3c46;border-radius:6px;background:#22242d;color:#e2e4ea;padding:0 10px;font-size:12px;font-weight:800}.output-refresh-error{border:1px solid rgba(255,133,133,.24);border-radius:6px;background:#ff858514;color:#ffb0b0;padding:8px 10px;font-size:12px}.settings-state,.credential-beta-state{display:flex;min-height:132px;align-items:center;justify-content:center;gap:12px;color:#aeb2c0}.credential-beta-state>div{display:grid;gap:4px}.credential-beta-state svg{color:#6ee7ae}.credential-beta-state strong{color:#edf0f5}.credential-beta-state span{color:#8f93a2;font-size:13px}.credential-settings{display:grid;gap:16px}.credential-application,.credential-current,.credential-delete-confirm{display:flex;align-items:center;gap:10px}.credential-application{border-bottom:1px solid #2e303a;padding-bottom:14px}.credential-application>div,.credential-current>div{display:grid;min-width:0;flex:1;gap:4px}.credential-application strong,.credential-current strong{color:#edf0f5}.credential-application a{color:#f4c500;font-size:13px}.credential-current span{color:#6ee7ae;font-size:12px}.credential-current button,.credential-delete-confirm button,.credential-save{min-height:44px;border:1px solid #3a3c46;border-radius:6px;background:#1c1e26;color:#e1e3e9;padding:0 13px;font-weight:800}.credential-current button.danger,.credential-delete-confirm button.danger{color:#ffb0b0}.credential-form{display:grid;gap:8px}.credential-form>label{color:#b8bbc8;font-weight:800}.credential-input-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px}.credential-input-row input{min-width:0;min-height:44px;border:1px solid #3a3c46;border-radius:6px;outline:none;background:#0f1016;color:#f7f7fb;padding:0 10px;font-size:16px}.credential-input-row input:focus{border-color:#f4c500;outline:2px solid rgba(244,197,0,.28);outline-offset:1px}.credential-input-row button{min-width:44px;min-height:44px;border:1px solid #3a3c46;border-radius:6px;background:#1c1e26;color:#e1e3e9}.credential-save.primary{justify-self:start;border-color:#f4c500;background:#f4c500;color:#111}.credential-notice,.credential-error{border-radius:6px;padding:10px 12px;line-height:1.45;font-size:13px}.credential-notice{background:#6ee7ae17;color:#9af0c8}.credential-error{background:#ff858517;color:#ffb0b0}.credential-delete-confirm{flex-wrap:wrap;border-top:1px solid #2e303a;padding-top:14px;color:#dfe1e8}.credential-delete-confirm span{flex:1}.topbar .icon-button{flex:0 0 44px;width:44px;min-height:44px}.reference-overflow{border:1px solid rgba(255,133,133,.34);border-radius:6px;background:#ff858514;color:#ffb0b0;padding:9px 10px;font-size:13px;line-height:1.45}.handoff-state{display:flex;min-height:128px;align-items:center;justify-content:center;gap:9px;color:#9da1b1;text-align:center}.handoff-error{border-radius:6px;background:#ff858514;color:#ffb0b0;padding:10px 12px;line-height:1.45}.handoff-conversations,.handoff-conversation-list{display:grid;gap:8px}.handoff-create,.handoff-conversation-list>button{display:flex;min-height:52px;align-items:center;gap:10px;border:1px solid #343643;border-radius:6px;background:#171820;color:#e4e6ec;padding:8px 12px;text-align:left}.handoff-create{justify-content:center;border-style:dashed;color:#f4c500;font-weight:800}.handoff-conversation-list>button>span{display:grid;min-width:0;flex:1;gap:3px}.handoff-conversation-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.handoff-conversation-list small{color:#828696}.handoff-conflict{display:grid;grid-template-columns:1fr 1fr;gap:10px}.handoff-conflict button{min-height:44px;border:1px solid #343643;border-radius:6px;background:#1b1c24;color:#e4e6ec;padding:0 14px;font-weight:800}.handoff-conflict button.primary{border-color:#f4c500;background:#f4c500;color:#111}.handoff-conflict button:last-child{grid-column:1 / -1}.app-handoff-error{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;border:1px solid rgba(255,133,133,.34);border-radius:6px;background:#ff858514;color:#ffb0b0;padding:8px 10px 8px 14px}.app-handoff-error button{min-width:44px;min-height:44px;border:0;border-radius:6px;background:transparent;color:#ffb0b0}.output-empty{flex:1}.creative-modal-form,.creative-confirmation{display:grid;gap:18px}.creative-modal-form label{display:grid;gap:8px;color:#b8bbc8;font-weight:700}.creative-confirmation p{color:#b8bbc8;line-height:1.6}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.modal-actions button{border:1px solid #343643;border-radius:6px;background:#1b1c24;color:#e6e7ec;padding:0 16px}.modal-actions button.primary{border-color:#f4c500;background:#f4c500;color:#111;font-weight:900}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}.spin-slow{animation:spin 1.4s linear infinite}@media(max-width:1179px){.creative-workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.creative-mobile-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #2a2b36;padding:6px}.creative-mobile-tabs button{min-height:44px;border:1px solid transparent;border-radius:6px;background:transparent;color:#9da1b1;font-weight:800}.creative-mobile-tabs button.active{border-color:#f4c500;color:#f4c500}.creative-conversations-pane,.creative-terminal-pane,.creative-outputs-pane{display:none;grid-row:2;border-right:0}.creative-workspace[data-active-panel=conversations] .creative-conversations-pane,.creative-workspace[data-active-panel=terminal] .creative-terminal-pane,.creative-workspace[data-active-panel=outputs] .creative-outputs-pane{display:block}}@media(max-width:767px){.creative-workspace{min-height:calc(100dvh - 180px)}.modal-actions{display:grid;grid-template-columns:1fr 1fr}.codex-terminal{grid-template-rows:auto minmax(260px,1fr) auto auto auto}.terminal-mobile-composer{display:grid}.terminal-shortcuts{grid-template-columns:repeat(4,minmax(44px,1fr))}.pending-uploads{max-height:270px}.pending-upload-actions{padding-left:0}.pending-upload-actions button{min-height:44px}.handoff-conflict{grid-template-columns:1fr}.handoff-conflict button:last-child{grid-column:auto}}@media(min-width:768px)and (max-width:900px){.terminal-mobile-composer{display:grid}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:980px){.workspace{grid-template-columns:1fr}.output-panel{min-height:520px}}@media(max-width:640px){.app-shell{width:min(100% - 24px,1352px);padding-top:12px}.topbar{align-items:flex-start;flex-direction:column}.topbar-actions{width:100%;justify-content:space-between}.workspace-switcher{width:100%}.workspace-switcher button{flex:1;justify-content:center}.input-panel,.output-panel{padding:20px 16px}.field-line,.queue-bar{align-items:flex-start;flex-direction:column}.prompt-tools{justify-content:flex-start}.prompt-tools select{max-width:min(100%,260px)}.result-grid{grid-template-columns:1fr}}
