.page-content:has(.image-workspace){display:flex;flex-direction:column;overflow:hidden;padding:16px 18px}
.page-content:has(.image-workspace)>.page-heading{flex:0 0 auto;margin-bottom:14px}
.image-workspace{width:100%;flex:1;height:100%;min-height:0;grid-template-columns:minmax(300px,370px) minmax(0,1fr);gap:16px;overflow:hidden}
.image-composer,.image-output{min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.image-composer,.image-output{padding:20px}
.image-composer .reference-picker{margin-top:0}
.image-prompt-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin-top:22px}
.image-prompt-heading .field-label{margin:0}
.image-prompt-heading>span{font-size:10px;color:#929b95}
.image-output{min-height:0}
.image-output{scrollbar-width:thin;scrollbar-color:var(--orbit-border) transparent}
.image-output::-webkit-scrollbar{width:8px}.image-output::-webkit-scrollbar-track{background:transparent}.image-output::-webkit-scrollbar-thumb{background:var(--orbit-border);border:2px solid var(--orbit-surface);border-radius:8px}.image-output::-webkit-scrollbar-thumb:hover{background:var(--orbit-muted)}
.image-output .output-heading{gap:12px;margin-bottom:8px}
.image-output-note,.image-link-note{margin:0 0 20px;color:#919a94;font-size:11px;line-height:1.7}
.image-link-note{margin:8px 0 0}
.image-results-grid{columns:176px;column-gap:12px}
.image-result-card{display:inline-block;width:100%;margin:0 0 12px;vertical-align:top;break-inside:avoid;border:1px solid #e3e8e1;border-radius:12px;overflow:hidden;background:#fff}
.image-thumbnail{position:relative;display:block;width:100%;padding:0;border:0;background:#f2f4f0;text-align:left;cursor:zoom-in}
.image-thumbnail-stage{display:block;min-height:90px;overflow:hidden;background:#eef1eb}
.image-thumbnail img{display:block;width:100%;height:auto;max-height:270px;object-fit:contain}
.image-thumbnail-action{position:absolute;right:10px;bottom:10px;display:flex;align-items:center;gap:5px;padding:7px 10px;background:#1f2c24c9;color:#fff;border:1px solid #ffffff30;border-radius:7px;font-size:10px;opacity:0;transition:opacity .16s}
.image-thumbnail-action .icon{width:13px;height:13px}
.image-thumbnail:hover .image-thumbnail-action,.image-thumbnail:focus-visible .image-thumbnail-action{opacity:1}
.image-thumbnail:focus-visible{outline:3px solid #8cab73;outline-offset:-3px}
.image-thumbnail-stage.is-unavailable{min-height:180px;display:grid;place-items:center;background:#f3f5f1}
.image-thumbnail-stage.is-unavailable>span{display:grid;justify-items:center;gap:10px;color:#7c8a7f;font-size:11px;padding:20px}
.image-thumbnail-stage.is-unavailable .icon{width:26px;height:26px}
.image-thumbnail-stage.is-unavailable small{color:#a1aaa2;font-size:10px}
.image-card-copy{padding:13px 14px}
.image-card-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px;font-size:10px;color:#89938c;line-height:1.5}
.image-card-meta>span:first-child{color:#58705e;font-weight:600}
.image-card-prompt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0 12px;font-size:12px;line-height:1.7;color:#404e44}
.image-card-footer{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#9ba39d}
.image-result-empty,.image-result-processing{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;text-align:center;color:#8a9690;background:#f7f9f6;border-radius:10px}
.image-result-empty>.icon{width:32px;height:32px;color:#71866a}
.image-result-empty h3,.image-result-processing h3{margin:15px 0 6px;font-size:16px;color:#3c5042}
.image-result-empty p,.image-result-processing p{margin:0;font-size:12px;line-height:1.7}
.image-status-card .image-result-processing{min-height:190px;border-radius:0}
.image-result-error{display:flex;align-items:flex-start;gap:12px;padding:22px 16px;background:#fff6f4}
.image-result-error>div{min-width:0}
.image-result-error h3{margin:0 0 10px;color:#9e4038;font-size:15px}
.image-result-error p{margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;color:#9e5249;font-size:12px}
.image-result-error small{color:#a98179;font-size:10px;line-height:1.7}
.image-composer #image-api-status{width:auto;margin:8px 0;font-size:11px;overflow-wrap:anywhere}

/* The native dialog keeps keyboard focus inside the image preview. */
body:has(.image-preview-dialog[open]){overflow:hidden}
.image-preview-dialog{position:fixed;inset:0;margin:auto;width:min(1400px,calc(100vw - 64px));height:min(900px,calc(100dvh - 64px));max-width:none;max-height:none;padding:0;border:1px solid #dfe5df;border-radius:18px;background:#fff;color:#303d34;box-shadow:0 24px 120px #0c1d2a55;overflow:hidden}
.image-preview-dialog::backdrop{background:#14201cd1;backdrop-filter:blur(7px)}
.image-preview-dialog[open]{display:flex;flex-direction:column}
.image-preview-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid #e7ebe6}
.image-preview-header>div{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.image-preview-header h2{font-size:16px;margin:0;font-weight:650}
.image-preview-header span{font-size:11px;color:#929d95}
.image-preview-close{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;border:0;border-radius:8px;background:#f2f5f0;color:#65726a;font-size:25px;line-height:1}
.image-preview-close:hover{background:#e5ebe0;color:#2d3d30}
.image-preview-body{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) 310px}
.image-preview-visual{min-width:0;min-height:0;display:flex;flex-direction:column;padding:18px;gap:14px;background:#f5f7f3}
.image-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px}
.image-preview-toolbar>span{font-size:11px;color:#87928a}
.image-preview-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.image-preview-actions :is(.btn,.generated-result-tag){box-sizing:border-box;width:112px;height:34px;min-height:34px;margin:0;padding:0 12px;border-radius:8px;font-family:inherit;font-size:11px;font-weight:600;flex-shrink:0}
.image-preview-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.image-preview-actions .generated-result-tag{position:static;top:auto;left:auto;z-index:auto;max-width:none;border:1px solid #e68020;background:#f39a38;color:#382006;cursor:pointer}
.image-preview-actions .generated-result-tag:hover{background:#f6aa54}
.image-preview-actions .generated-result-tag:disabled{opacity:.55;cursor:wait}
.image-preview-actions .generated-result-tag:focus-visible{outline:2px solid #e68020;outline-offset:3px}
.image-preview-actions .generated-result-tag option{background:var(--color-surface,#fff);color:var(--color-text,#24392c)}
@media(max-width:640px){.image-preview-toolbar{flex-wrap:wrap}.image-preview-actions{margin-left:auto}}
.image-preview-stage{position:relative;min-height:0;flex:1;display:flex;align-items:center;justify-content:center;border:1px solid #e2e8de;border-radius:11px;background:#e9eee7;overflow:hidden}
.image-preview-stage img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.image-preview-stage .image-preview-placeholder,.image-preview-stage .image-preview-full{position:absolute;inset:0;margin:auto}
.image-preview-stage .image-preview-full{opacity:0;transition:opacity .22s ease}
.image-preview-stage .image-preview-full.is-loaded{opacity:1}
@media(prefers-reduced-motion:reduce){.image-preview-stage .image-preview-full{transition:none}}
.image-preview-load-error{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:30px;color:#8a534b;font-size:12px;text-align:center}
.image-preview-load-error[hidden],.image-preview-stage img[hidden]{display:none}
.image-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;line-height:1.7;color:#929c94}
.image-download-status{overflow-wrap:anywhere}
.image-preview-footer a{color:#4a6952;white-space:nowrap;text-decoration:none}
.image-preview-footer a:hover{text-decoration:underline}
.image-preview-details{min-width:0;overflow:auto;padding:26px 24px;border-left:1px solid #e7ebe3;overscroll-behavior:contain}
.image-preview-label{font-size:10px;color:#98a298;letter-spacing:.1em}
.image-preview-details h3{margin:10px 0 18px;font-size:16px;color:#3f5544}
.image-preview-details dl{display:grid;gap:12px;margin:0 0 30px;padding:0 0 24px;border-bottom:1px solid #e9ede6;font-size:11px}
.image-preview-details dl>div{display:flex;justify-content:space-between;gap:15px}
.image-preview-details dt{color:#9aa298}
.image-preview-details dd{margin:0;color:#5d6e61}
.image-preview-prompt-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.image-preview-prompt-heading h3{margin:0;font-size:13px}
.image-copy-prompt{border:1px solid #e1e7db;border-radius:6px;padding:4px 9px;background:#f9fbf6;color:#728568;font-size:10px}
.image-preview-prompt{margin:15px 0 0;font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;color:#65766a}
.image-copy-status{font-size:10px;color:#6e8766;line-height:1.6}
.image-preview-close:focus-visible,.image-copy-prompt:focus-visible,.image-download-button:focus-visible,.image-preview-footer a:focus-visible{outline:2px solid #8cab73;outline-offset:3px}
@media(max-width:1160px) and (min-width:761px){.image-workspace{grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:12px}.image-composer,.image-output{padding:16px}.image-results-grid{columns:150px}}
@media(max-width:900px){.image-preview-dialog{width:calc(100vw - 32px);height:calc(100dvh - 32px)}.image-preview-body{grid-template-columns:minmax(0,1fr) 260px}.image-preview-details{padding:22px 18px}}
@media(max-width:760px){.page-content:has(.image-workspace){padding:12px 10px}.image-workspace{grid-template-columns:1fr;grid-template-rows:minmax(0,1.15fr) minmax(150px,.85fr);gap:10px}.image-composer,.image-output{padding:16px}.image-results-grid{columns:140px}.image-output{min-height:0}}
@media(max-width:640px){.image-preview-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:13px}.image-preview-header{padding:13px 15px}.image-preview-header>div{gap:6px}.image-preview-header h2{font-size:14px}.image-preview-header span{font-size:10px}.image-preview-body{display:flex;flex-direction:column;overflow-y:auto}.image-preview-visual{flex:none;min-height:340px;height:54dvh;padding:12px;gap:10px}.image-preview-details{flex:none;border-left:0;border-top:1px solid #e7ebe3;padding:22px 18px;overflow:visible}.image-preview-details dl{margin-bottom:22px;padding-bottom:20px}.image-preview-toolbar>span{font-size:10px}.image-preview-footer{align-items:flex-start}.image-thumbnail-action{opacity:1}.image-prompt-heading>span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.image-thumbnail-action{transition:none}}

/* Image task timing uses the saved server phase boundaries. */
.image-task-timers{width:100%;margin:14px 0;color:var(--orbit-muted);font-size:10px;line-height:1.7;font-variant-numeric:tabular-nums}
.image-timer-total{display:block;font-size:11px;margin-bottom:8px;color:var(--orbit-text)}
.image-timer-total b{font-size:19px;margin-left:5px;font-weight:600}
.image-task-timers>div{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px}
.image-task-timers>div>span{white-space:nowrap}.image-task-timers b{font-variant-numeric:tabular-nums}
.image-task-timers .is-current{color:var(--orbit-text)}
.image-cancel-task{padding:7px 16px;border:1px solid var(--orbit-border);border-radius:7px;background:var(--orbit-surface);color:var(--orbit-text);font-size:11px;cursor:pointer}
.image-cancel-task:hover{background:var(--orbit-raised)}.image-cancel-task:focus-visible{outline:2px solid var(--orbit-accent);outline-offset:3px}
.image-result-processing .image-cancel-note,.image-cancel-note{display:block;margin:8px 0 0;color:var(--orbit-muted);font-size:9px;line-height:1.65;overflow-wrap:anywhere}
.image-status-card .image-result-processing{padding:30px 14px 18px}
.image-result-processing.is-wait-cancelled{background:var(--orbit-raised);color:var(--orbit-muted)}
.image-wait-cancelled-mark{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--orbit-border);border-radius:50%;font-size:16px;color:var(--orbit-muted)}
.image-preview-timing{margin:18px 0;padding:14px 0;border-top:1px solid var(--orbit-border);border-bottom:1px solid var(--orbit-border)}
.image-preview-timing h3{margin:0;font-size:12px}.image-preview-timing .image-task-timers{margin-bottom:0}.image-preview-timing .image-task-timers>div{justify-content:flex-start}
.image-result-error .image-task-timers>div{justify-content:flex-start}

/* Image studio mirrors the video feed: results scroll above the bottom composer. */
.page-content:has(.image-workspace--stacked){display:flex;flex-direction:column;overflow:hidden;padding:10px 16px 14px;background:#edf1f0}
.page-content:has(.image-workspace--stacked)>.image-page-heading{flex:0 0 auto;min-height:58px;margin:0;padding:6px clamp(8px,1.8vw,24px) 10px}
.image-workspace--stacked{position:relative;display:block;width:100%;height:100%;flex:1;min-height:0;overflow:hidden}
.image-workspace--stacked .image-output{position:absolute;inset:0;z-index:1;min-height:0;height:100%;overflow:auto;padding:0 clamp(8px,1.8vw,24px) calc(min(320px,36dvh) + 32px);border:0;border-radius:0;background:transparent;scrollbar-gutter:stable;overscroll-behavior:contain}
.image-workspace--stacked .image-results-grid{--image-card-width:216px;--image-card-height:224px;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--image-card-width)),var(--image-card-width)));gap:12px;margin:0 auto;max-width:1240px;padding:8px 0 16px}
.image-workspace--stacked .image-result-card{height:var(--image-card-height);min-width:0;display:block;margin:0;border-color:#dce5e1;border-radius:13px;box-shadow:0 7px 24px #263b3210}
.image-workspace--stacked .image-thumbnail,.image-workspace--stacked .image-thumbnail-stage{width:100%;height:100%;min-height:0;background:#f7faf8}
.image-workspace--stacked .image-thumbnail img{height:100%;max-height:none;object-fit:contain}
.image-workspace--stacked .image-status-card :is(.image-result-processing,.image-result-error){height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.image-workspace--stacked .image-status-card .image-result-processing{justify-content:safe center;padding:26px 10px 12px}
.image-workspace--stacked .image-result-processing h3{margin:8px 0 3px;font-size:14px}
.image-workspace--stacked .image-result-processing p{font-size:10px;line-height:1.45}
.image-workspace--stacked .image-result-processing .image-task-timers{margin:6px 0}
.image-workspace--stacked .image-timer-total{margin-bottom:4px}
.image-workspace--stacked .image-result-processing .image-cancel-note{margin-top:4px}
.image-workspace--stacked .image-result-error{padding:33px 12px 12px}
.image-workspace--stacked .image-result-error>div{flex:1}
.image-workspace--stacked .image-result-error .video-result-error-mark{flex-shrink:0}
.image-workspace--stacked .image-result-empty{width:min(100%,560px);min-height:230px;margin:5vh auto 0;border:1px dashed #c7d4cf;border-radius:18px;background:#f7faf8;color:#788884}
.image-workspace--stacked .image-result-empty h3{color:#334745;font-size:15px;font-weight:650}
.image-workspace--stacked .image-result-empty p{max-width:350px;color:#7b8a85;font-size:10px}
.image-workspace--stacked .image-result-processing{background:#f7faf8;color:#788884}
.image-workspace--stacked .image-composer{position:absolute;z-index:12;right:0;bottom:12px;left:0;width:min(1160px,calc(100% - 40px));height:min(320px,36dvh);max-height:min(320px,36dvh);margin:0 auto;padding:10px 12px;display:flex;flex-direction:column;gap:0;overflow-y:auto;overflow-x:hidden;border:1px solid #dbe8e2;border-radius:16px;background:#f7fbf9;box-shadow:0 14px 40px #35534918;color:#263b38;scrollbar-color:#c3d3cc transparent;scrollbar-width:thin;overscroll-behavior:contain}
.app-shell--topnav .image-workspace--stacked .image-composer{padding:10px 12px}
.image-workspace--stacked .composer-topline{height:21px;flex:0 0 21px;margin:0 0 5px;display:flex;align-items:center;justify-content:space-between}
.image-workspace--stacked .prompt-limit,.image-workspace--stacked .char-count{color:#71867f;font-size:9px}
.image-workspace--stacked .composer-tools{gap:3px}
.image-workspace--stacked .composer-tools button{width:26px;height:25px;border:0;border-radius:7px;background:transparent;color:#71867f;font-size:14px}
.image-workspace--stacked .composer-tools button:hover{background:#e8f2ee;color:#168c83}
.image-workspace--stacked .image-composer-body{min-width:0;min-height:0;flex:0 0 auto;display:grid;grid-template-columns:66px minmax(0,1fr);gap:9px;align-items:stretch}
.image-workspace--stacked .image-reference-column{min-width:0;display:flex;align-items:flex-start}
.image-workspace--stacked .image-upload-dropzone{position:relative;width:58px;min-width:58px;margin:0;padding:0!important;display:flex;flex-direction:column;align-items:center;gap:4px;border:0!important;background:transparent!important}
.image-workspace--stacked .image-upload-button{width:54px;min-height:59px;padding:5px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid #cfe2da;border-radius:10px;background:#edf6f2;color:#35544e;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.image-workspace--stacked .image-upload-button:hover{transform:translateY(-1px);border-color:#7fc5b9;background:#e4f4ef;color:#14776e}
.image-workspace--stacked .image-upload-button>span{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:#d8eee7;color:#168c83}
.image-workspace--stacked .image-upload-button .icon{width:15px;height:15px}
.image-workspace--stacked .image-upload-button b{font-size:8px;font-weight:620;white-space:nowrap}
.image-workspace--stacked .image-upload-list{width:100%;min-width:0;display:grid;justify-items:center;gap:3px}
.image-workspace--stacked .image-upload-list>.reference-files{width:100%;max-height:38px;display:flex;flex-direction:column;align-items:center;gap:3px;overflow:auto}
.image-workspace--stacked .image-upload-list .reference-file{width:54px;height:28px;justify-content:center;padding:3px;border:1px solid #d7e5df;border-radius:7px;background:#f1f7f4;color:#35544e}
.image-workspace--stacked .image-upload-list .reference-name{display:none}
.image-workspace--stacked .image-upload-list .reference-preview{width:22px;height:22px;flex:0 0 22px}
.image-workspace--stacked .image-upload-list .reference-actions{width:100%;justify-content:center;gap:3px;margin:1px 0 0;font-size:8px}
.image-workspace--stacked .image-upload-list .reference-actions>span{display:none}
.image-workspace--stacked .image-upload-list .clear-references{padding:2px 0;font-size:7px}
.image-workspace--stacked .image-upload-list .project-reference-assets{max-width:64px;overflow:hidden}
.image-workspace--stacked .image-upload-list .project-reference-assets>small{display:block;max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#71867f;font-size:6px}
.image-workspace--stacked .image-upload-list .project-reference-assets>div{max-height:42px;display:grid;justify-items:center;overflow:auto}
.image-workspace--stacked .image-upload-list .project-reference-asset{width:48px;height:32px;padding:2px;justify-content:center;border-color:#d7e5df;background:#f1f7f4;color:#49645d}
.image-workspace--stacked .image-upload-list .project-reference-asset img{width:20px;height:20px}
.image-workspace--stacked .image-upload-list .project-reference-asset span{display:none}
.image-workspace--stacked .image-upload-list .project-reference-empty{max-width:62px;color:#71867f;font-size:7px;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.image-workspace--stacked .image-upload-dropzone.is-dragging{outline:1px dashed #53a99d!important;outline-offset:3px;border-radius:8px}
.image-workspace--stacked .image-upload-dropzone .reference-drop-hint{position:absolute;inset:-4px;z-index:5;place-items:center;border-radius:8px;background:#eff8f4ed;color:#168c83;font-size:8px;text-align:center}
.image-workspace--stacked .image-prompt-column{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column}
.image-workspace--stacked .image-prompt-heading{min-height:18px;margin:0 52px 4px 0;display:flex;align-items:center;justify-content:space-between;gap:8px}
.image-workspace--stacked .image-prompt-heading .field-label{font-size:9px;color:#536c64}
.image-workspace--stacked .image-prompt-heading>span{font-size:8px;color:#8b9e97}
.image-workspace--stacked .image-prompt-submit-row{position:relative;min-width:0;height:116px;min-height:116px;max-height:116px;flex:0 0 116px;display:block}
.image-workspace--stacked .image-prompt-submit-row>.mention-field{width:100%;min-width:0}
.image-workspace--stacked .image-prompt-submit-row .prompt-editor{height:116px;min-height:88px;max-height:150px;border:1px solid #cbded6;border-radius:9px;background:#fff;box-shadow:0 0 0 1px #6ab7aa22}
.image-workspace--stacked .image-prompt-submit-row .prompt-editor:focus-within{border-color:#53a99d;box-shadow:0 0 0 2px #53a99d35}
.image-workspace--stacked .image-prompt-submit-row .prompt-editor>.prompt-highlights,.image-workspace--stacked .image-prompt-submit-row .prompt-editor>.prompt-textarea{padding:10px 12px;color:#263b38;font-size:12px;line-height:1.65}
.image-workspace--stacked .image-prompt-submit-row .prompt-editor>.prompt-textarea{caret-color:#168c83}
.image-workspace--stacked .image-prompt-submit-row .prompt-editor>.prompt-textarea::placeholder{color:#8b9e97}
.image-workspace--stacked .image-submit-side{position:absolute;top:0;right:0;z-index:8;width:46px;height:46px}
.image-workspace--stacked .image-submit-side .generation-action{width:46px;height:46px;align-items:stretch;gap:4px}
.image-workspace--stacked .image-submit-side .generate-button{position:relative;width:46px;height:46px;min-height:46px;flex:0 0 46px;padding:0;border:1px solid #89c7ba;border-radius:13px;background:linear-gradient(145deg,#d8f0e8,#bfe6da);color:#216e63;font-size:0;box-shadow:0 5px 14px #4a9e8c25;transition:transform .16s,background .16s,box-shadow .16s}
.image-workspace--stacked .image-submit-side .generate-button::before{content:'↗';font-size:20px;font-weight:700;line-height:1}
.image-workspace--stacked .image-submit-side .generate-button span{display:none}
.image-workspace--stacked .image-submit-side .generate-button:hover:not(:disabled){transform:translateY(-1px);background:linear-gradient(145deg,#c8ebe0,#aee0d2);color:#145c52;box-shadow:0 7px 18px #4a9e8c36}
.image-workspace--stacked .image-submit-side .generate-button:disabled{border-color:#d9e4df;background:#e8eeeb;color:#9aa9a2;box-shadow:none}
.image-workspace--stacked .image-submit-side .generation-action.is-counting{position:absolute;top:0;right:0;z-index:8;width:min(240px,calc(100vw - 112px));min-width:185px;max-width:calc(100vw - 30px);display:flex;border-radius:10px;box-shadow:0 8px 24px #102c2850}
.image-workspace--stacked .image-submit-side .generation-action.is-counting .generate-button{width:auto;height:46px;min-height:46px;flex:1;padding:7px 10px;border-radius:9px;background:linear-gradient(110deg,#bfe8dc,#d7f1e8);color:#28594f;font-size:10px;box-shadow:none}
.image-workspace--stacked .image-submit-side .generation-action.is-counting .generate-button::before{content:none}
.image-workspace--stacked .image-submit-side .generation-action.is-counting .generate-button span{display:initial}
.image-workspace--stacked .image-submit-side .generation-action.is-counting .generate-button .countdown-number{font-size:24px;font-weight:700}
.image-workspace--stacked .image-submit-side .generation-action.is-counting .countdown-copy{display:grid;gap:3px;text-align:left}
.image-workspace--stacked .image-submit-side .generation-action.is-counting .countdown-copy b{font-size:10px}
.image-workspace--stacked .image-submit-side .generation-action.is-counting .countdown-copy small{font-size:8px}
.image-workspace--stacked .image-submit-side .generation-action.is-counting .generation-cancel{height:46px;min-width:45px;flex:0 0 45px;border:1px solid #d7e5df;border-radius:9px;background:#fff;color:#60766d;font-size:9px}
.image-workspace--stacked .composer-footer{height:17px;min-height:17px;flex:0 0 17px;padding-top:2px;display:flex;align-items:center;justify-content:flex-end}
.image-workspace--stacked .image-options{height:28px;min-height:28px;flex:0 0 28px;width:100%;grid-template-columns:1.5fr repeat(3,minmax(0,1fr));gap:5px;margin:5px 0 3px}
.image-workspace--stacked .image-options .model-setting.settings-field-wrapper{grid-column:auto!important;display:flex;min-width:0}
.image-workspace--stacked .image-options .setting-select,.image-workspace--stacked .image-inline-select{height:28px;min-width:0;min-height:28px;padding:2px 6px;display:flex;align-items:center;gap:4px;border:1px solid #d4e3dc;border-radius:7px;background:#f1f7f4;color:#29443f}
.image-workspace--stacked .image-options .setting-icon,.image-workspace--stacked .image-options .setting-chevron{display:none}
.image-workspace--stacked .image-options .setting-copy{min-width:0}
.image-workspace--stacked .image-options .setting-copy small,.image-workspace--stacked .image-inline-select>small{display:block;margin:0 0 1px;color:#71877f;font-size:6px;line-height:1.1}
.image-workspace--stacked .image-options .settings-trigger{min-height:14px;padding:0;border:0;background:transparent;color:#29443f;font-size:8px;font-weight:620}
.image-workspace--stacked .image-options .settings-trigger .icon{width:9px;height:9px;color:#71877f}
.image-workspace--stacked .image-inline-select{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:1px}
.image-workspace--stacked .image-inline-select select{width:100%;height:14px;min-width:0;padding:0 13px 0 0;border:0;outline:0;appearance:none;background:transparent;color:#29443f;font-size:8px;font-weight:620;line-height:1.2;text-overflow:ellipsis}
.image-workspace--stacked .image-size-note,.image-workspace--stacked .image-composer-note,.image-workspace--stacked .image-api-status{flex:0 0 auto;width:100%;margin:2px 1px;color:#71867f;font-size:8px;line-height:1.35;overflow-wrap:anywhere}
.image-workspace--stacked .image-composer-note{display:none}
.image-workspace--stacked .image-api-status:not(.is-error){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.image-workspace--stacked .image-api-status.is-error{color:#a64f43}
.image-workspace--stacked .image-composer.composer-expanded{position:fixed;z-index:120;inset:12px;width:auto;height:auto;max-height:calc(100dvh - 24px);margin:0;padding:22px 24px 18px;overflow:auto;border-color:#cbded6;border-radius:18px;background:#f7fbf9;box-shadow:0 0 0 100vmax #0b191477,0 22px 80px #19332b44}
.image-workspace--stacked .image-composer.composer-expanded .image-composer-body{grid-template-columns:116px minmax(0,1fr);gap:16px}
.image-workspace--stacked .image-composer.composer-expanded .image-upload-dropzone{width:104px}
.image-workspace--stacked .image-composer.composer-expanded .image-upload-button{width:90px;min-height:72px}
.image-workspace--stacked .image-composer.composer-expanded .image-upload-list .reference-name,.image-workspace--stacked .image-composer.composer-expanded .project-reference-asset span{display:block}
.image-workspace--stacked .image-composer.composer-expanded .image-upload-list .reference-file{width:100%;justify-content:flex-start}
.image-workspace--stacked .image-composer.composer-expanded .image-upload-list>.reference-files{max-height:130px}
.image-workspace--stacked .image-composer.composer-expanded .image-prompt-submit-row .prompt-editor{height:clamp(180px,36dvh,430px);min-height:150px;max-height:none}
.image-workspace--stacked .image-composer.composer-expanded .image-prompt-submit-row{height:clamp(180px,36dvh,430px);min-height:0;max-height:none;flex:0 0 auto}
.image-workspace--stacked .image-composer.composer-expanded .image-options{height:auto;min-height:50px;flex:0 0 auto;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.image-workspace--stacked .image-composer.composer-expanded .image-options .setting-select,.image-workspace--stacked .image-composer.composer-expanded .image-inline-select{height:50px;min-height:50px;padding:7px 10px}
.image-workspace--stacked .image-composer.composer-expanded .image-options .setting-copy small,.image-workspace--stacked .image-composer.composer-expanded .image-inline-select>small{font-size:9px}
.image-workspace--stacked .image-composer.composer-expanded .image-options .settings-trigger,.image-workspace--stacked .image-composer.composer-expanded .image-inline-select select{font-size:11px}
.image-workspace--stacked .image-composer.composer-expanded .image-size-note,.image-workspace--stacked .image-composer.composer-expanded .image-composer-note,.image-workspace--stacked .image-composer.composer-expanded .image-api-status{font-size:10px}
:root[data-theme=dark] .page-content:has(.image-workspace--stacked){background:#10191b}
:root[data-theme=dark] .image-workspace--stacked .image-composer{border-color:#304244;background:#192528;color:#dce9e5;box-shadow:0 14px 40px #0003}
:root[data-theme=dark] .image-workspace--stacked .image-output .image-result-empty,:root[data-theme=dark] .image-workspace--stacked .image-result-processing{border-color:#3b5050;background:#172325;color:#a5b8b3}
:root[data-theme=dark] .image-workspace--stacked .image-result-empty h3,:root[data-theme=dark] .image-workspace--stacked .image-result-processing h3{color:#d6e6e1}
:root[data-theme=dark] .image-workspace--stacked .image-result-empty p,:root[data-theme=dark] .image-workspace--stacked .image-result-processing p{color:#9bafaa}
:root[data-theme=dark] .image-workspace--stacked .image-result-card{border-color:#304244;background:#192528}
:root[data-theme=dark] .image-workspace--stacked :is(.image-thumbnail,.image-thumbnail-stage){background:#172325}
:root[data-theme=dark] .image-workspace--stacked .image-upload-button{border-color:#405457;background:#293a3d;color:#c9dbd6}
:root[data-theme=dark] .image-workspace--stacked .image-upload-button>span{background:#365053;color:#73ded2}
:root[data-theme=dark] .image-workspace--stacked .image-upload-list .reference-file,:root[data-theme=dark] .image-workspace--stacked .image-upload-list .project-reference-asset{border-color:#3b5050;background:#223438;color:#b9e6de}
:root[data-theme=dark] .image-workspace--stacked .image-prompt-heading .field-label,:root[data-theme=dark] .image-workspace--stacked .image-options .settings-trigger,:root[data-theme=dark] .image-workspace--stacked .image-inline-select select,:root[data-theme=dark] .image-workspace--stacked .image-duration-compact{color:#dce9e5}
:root[data-theme=dark] .image-workspace--stacked .image-prompt-heading>span,:root[data-theme=dark] .image-workspace--stacked .prompt-limit,:root[data-theme=dark] .image-workspace--stacked .char-count,:root[data-theme=dark] .image-workspace--stacked .image-options .setting-copy small,:root[data-theme=dark] .image-workspace--stacked .image-inline-select>small,:root[data-theme=dark] .image-workspace--stacked .image-size-note,:root[data-theme=dark] .image-workspace--stacked .image-composer-note,:root[data-theme=dark] .image-workspace--stacked .image-api-status{color:#a4b5a8}
:root[data-theme=dark] .image-workspace--stacked .image-prompt-submit-row .prompt-editor{border-color:#405457;background:#1c292c;box-shadow:0 0 0 1px #62d8cb24}
:root[data-theme=dark] .image-workspace--stacked .image-prompt-submit-row .prompt-editor>.prompt-highlights,:root[data-theme=dark] .image-workspace--stacked .image-prompt-submit-row .prompt-editor>.prompt-textarea{color:#e6f0ed}
:root[data-theme=dark] .image-workspace--stacked .image-prompt-submit-row .prompt-editor>.prompt-textarea{caret-color:#62d8cb}
:root[data-theme=dark] .image-workspace--stacked .image-options .setting-select,:root[data-theme=dark] .image-workspace--stacked .image-inline-select{border-color:#3a4c50;background:#263538;color:#dce9e5}
:root[data-theme=dark] .image-workspace--stacked .image-submit-side .generate-button{border-color:#40575b;background:linear-gradient(145deg,#28514e,#2f625a);color:#d9fff5}
:root[data-theme=dark] .image-workspace--stacked .image-submit-side .generation-action.is-counting{border:1px solid #40575b;background:#1e2b2f;box-shadow:0 10px 28px #07141488}
:root[data-theme=dark] .image-workspace--stacked .image-submit-side .generation-action.is-counting .generate-button{background:linear-gradient(110deg,#28514e,#2f625a);color:#d9fff5}
:root[data-theme=dark] .image-workspace--stacked .image-submit-side .generation-action.is-counting .generation-cancel{border-color:#40575b;background:#26383c;color:#d4e4df}
:root[data-theme=dark] .image-workspace--stacked .image-inline-select select{color:#dce9e5}
:root[data-theme=dark] .image-workspace--stacked .image-composer.composer-expanded{background:#192528;box-shadow:0 0 0 100vmax #010705c9,0 22px 90px #010705b3}
@media(max-width:980px){
 .image-workspace--stacked .image-composer{width:min(100% - 24px,840px);height:min(320px,42dvh);max-height:min(320px,42dvh)}
 .app-shell--topnav .image-workspace--stacked .image-composer{padding:10px 12px}
 .image-workspace--stacked .image-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 .image-workspace--stacked .image-options .setting-select,.image-workspace--stacked .image-inline-select{padding-inline:5px}
 .image-workspace--stacked .image-options .settings-trigger,.image-workspace--stacked .image-inline-select select{font-size:8px}
}
@media(max-width:760px){
 .page-content:has(.image-workspace--stacked){padding:8px 9px 10px}
 .page-content:has(.image-workspace--stacked)>.image-page-heading{min-height:50px;padding-inline:7px}
 .image-workspace--stacked .image-workspace{overflow:hidden}
 .image-workspace--stacked .image-output{padding-inline:8px;padding-bottom:calc(min(310px,42dvh) + 24px)}
 .image-workspace--stacked .image-results-grid{--image-card-width:clamp(128px,38vw,168px);--image-card-height:216px;gap:8px}
 .image-workspace--stacked .image-composer{width:calc(100% - 8px);height:min(310px,42dvh);max-height:min(310px,42dvh);bottom:5px;padding:7px;border-radius:12px}
 .app-shell--topnav .image-workspace--stacked .image-composer{padding:7px}
 .image-workspace--stacked .image-composer-body{grid-template-columns:47px minmax(0,1fr);gap:6px}
 .image-workspace--stacked .image-upload-dropzone{width:44px;min-width:44px}
 .image-workspace--stacked .image-upload-button{width:43px;min-height:51px;gap:3px;border-radius:9px}
 .image-workspace--stacked .image-upload-button>span{width:21px;height:21px}
 .image-workspace--stacked .image-upload-button b{font-size:7px}
 .image-workspace--stacked .image-prompt-submit-row{height:92px;min-height:92px;max-height:92px;flex-basis:92px}
 .image-workspace--stacked .image-prompt-submit-row .prompt-editor{height:92px;min-height:72px;max-height:92px}
 .image-workspace--stacked .image-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:5px 0 3px}
 .image-workspace--stacked .image-options .setting-select,.image-workspace--stacked .image-inline-select{height:28px;min-height:28px;padding:2px 4px}
 .image-workspace--stacked .image-options .setting-copy small,.image-workspace--stacked .image-inline-select>small{font-size:6px}
 .image-workspace--stacked .image-options .settings-trigger,.image-workspace--stacked .image-inline-select select{font-size:7px}
 .image-workspace--stacked .image-size-note,.image-workspace--stacked .image-composer-note,.image-workspace--stacked .image-api-status{font-size:7px}
 .image-workspace--stacked .image-composer.composer-expanded{inset:6px;width:auto;height:auto;max-height:calc(100dvh - 12px);padding:13px}
 .image-workspace--stacked .image-composer.composer-expanded .image-composer-body{grid-template-columns:68px minmax(0,1fr);gap:10px}
 .image-workspace--stacked .image-composer.composer-expanded .image-upload-dropzone{width:66px}
 .image-workspace--stacked .image-composer.composer-expanded .image-upload-button{width:62px}
 .image-workspace--stacked .image-composer.composer-expanded .image-prompt-submit-row .prompt-editor{height:clamp(180px,34dvh,380px)}
}
