@import url("/composer-controls.css?v=quiet-20261104");
:root{--bg:#101318;--sidebar:#0b0e13;--panel:#1b2027;--panel2:#252b34;--line:#2b333e;--text:#e8edf2;--muted:#8b98a8;--accent:#d4ff68;--ink:#19240b;--bad:#ff9c8b;--ok:#b9d78d;color-scheme:dark;font-family:Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif}
*{box-sizing:border-box}body.studio-page{margin:0;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--bg);color:var(--text);font:14px/1.6 Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:7px 12px}button:hover{background:var(--panel2)}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:inherit}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;flex:none;border:0;background:transparent;font-size:23px;color:var(--muted);border-radius:7px}.icon-button:hover{background:#ffffff0a;color:var(--text)}.primary{background:var(--accent);color:var(--ink);border-color:var(--accent);font-weight:600}.primary:hover{background:#e1ff97}.mobile-only{display:none}
/* The same fixed header / sidebar / scroll / composer structure as the Q&A workspace. */
.studio-app{display:flex;flex:1;min-height:0;position:relative;overflow:hidden}.studio-sidebar{width:244px;flex:none;display:flex;flex-direction:column;gap:0;background:var(--sidebar);padding:18px 12px 13px;border-right:1px solid #ffffff05;min-height:0}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:0 10px 16px}.sidebar-brand{text-decoration:none;font-size:15px;font-weight:550;display:flex;align-items:center;gap:9px}.sidebar-brand>span{font-size:24px;color:var(--accent);line-height:1}.new-chat{display:flex;align-items:center;gap:10px;padding:10px 12px;font-size:13px;background:#ffffff04;border-color:#ffffff16;border-radius:9px;text-align:left}.new-chat>span{margin-left:auto;color:var(--muted);font-size:15px}.new-chat svg{width:17px;height:17px}.history-heading{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding:25px 10px 8px}.history-heading>span:last-child{font-size:10px;color:#657181}.chat-history{overflow:auto;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#313945 transparent}.history-empty{color:var(--muted);font-size:12px;padding:4px 10px;line-height:1.8}.history-group-label{color:#657181;font-size:10px;padding:13px 10px 5px}.history-row{position:relative;display:flex;align-items:center;margin:2px 0;border-radius:8px}.history-row.active{background:#ffffff09}.history-row:hover{background:#ffffff0c}.history-select{flex:1;min-width:0;background:none;border:0;text-align:left;display:flex;align-items:center;gap:10px;padding:9px 34px 9px 10px;font-size:12px;border-radius:8px}.history-select:hover{background:none}.history-select svg{width:15px;height:15px;color:#718090}.history-select>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-select .pending-dot{height:6px;width:6px;border-radius:50%;background:var(--accent);flex:none;animation:studio-pulse 1.6s ease-in-out infinite}.history-delete{position:absolute;right:4px;top:6px;width:27px;height:27px;opacity:0;background:var(--sidebar);border-radius:6px}.history-delete svg{width:14px;height:14px}.history-row:hover .history-delete,.history-row:focus-within .history-delete{opacity:1}.history-row.active .history-delete{background:#1a1e23}.sidebar-footer{padding:14px 0 0;margin-top:10px;border-top:1px solid #ffffff12}.sidebar-footer p{font-size:10px;color:#657181;margin:0 9px 12px}.studio-back-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;padding:11px 14px;border:1px solid var(--accent);border-radius:10px;background:transparent;text-decoration:none;font-size:14px;font-weight:600;color:var(--accent);transition:background .15s,border-color .15s}.studio-back-button svg{width:21px;height:21px}.studio-back-button:hover{background:#d4ff680a;border-color:var(--accent)}.studio-back-button:active{background:#d4ff6812}.studio-back-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.studio-app.sidebar-collapsed>.studio-sidebar{display:none}.sidebar-backdrop{position:absolute;inset:0;z-index:49;background:#0008;border:0;border-radius:0}
.studio-main{position:relative;min-width:0;flex:1;display:flex;flex-direction:column;min-height:0}.conversation-topbar{height:58px;min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 23px}.conversation-topbar>div{display:flex;align-items:center;gap:10px;min-width:0}.conversation-topbar h1{font-size:14px;font-weight:550;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:44vw}.conversation-meta{flex:none}.local-badge{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;white-space:nowrap}.local-badge i{width:5px;height:5px;border-radius:50%;background:#889d65}.conversation-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#333b46 transparent;scroll-behavior:smooth}.studio-welcome{max-width:790px;min-height:100%;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px 24px 50px;text-align:center}.welcome-symbol{font-size:48px;color:var(--accent);line-height:1.3;margin-bottom:19px;text-shadow:0 0 38px #d4ff6820}.studio-welcome h2{font-weight:550;font-size:clamp(22px,2.3vw,30px);letter-spacing:-.7px;line-height:1.3;margin:0 0 12px}.studio-welcome>p{font-size:13px;color:var(--muted);margin:0}.prompt-starters{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:29px}.prompt-starters button{display:flex;align-items:center;gap:8px;padding:10px 15px;color:#bac4ce;font-size:12px;border-radius:11px;background:transparent;border-color:#ffffff0d}.prompt-starters button>span:first-child{color:#a8bf7a;font-size:17px;line-height:1}.prompt-starters button:hover{background:#ffffff05;border-color:#ffffff24}
.conversation-messages{width:min(100%,820px);margin:0 auto;padding:20px 28px 32px}.conversation-turn{margin:0 0 32px;min-width:0}.user-message{display:flex;flex-direction:column;align-items:flex-end;gap:7px;margin:0 0 22px 40px}.user-text{margin:0;max-width:85%;padding:11px 17px;background:#252a32;border-radius:19px 19px 4px 19px;color:#e4e8ed;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.user-references{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;max-width:85%}.user-references button{width:76px;height:76px;overflow:hidden;padding:0;border:1px solid #ffffff12;border-radius:10px;background:var(--sidebar)}.user-references img{display:block;width:100%;height:100%;object-fit:cover}.user-context{font-size:10px;color:var(--muted);padding-right:3px}.assistant-message{display:flex;align-items:flex-start;gap:11px}.assistant-avatar{width:27px;height:27px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#d4ff680d;color:var(--accent);font-size:20px;margin-top:2px}.assistant-content{min-width:0;flex:1}.assistant-label{font-size:12px;color:#b6c0cb;margin:3px 0 11px}.output-figure{margin:0;width:max-content;max-width:100%;position:relative}.image-open{display:block;border:1px solid #ffffff0a;border-radius:13px;padding:0;overflow:hidden;background:#0b0e13;max-width:100%;cursor:zoom-in}.image-open:hover{background:#0b0e13}.generated-image{display:block;max-width:min(100%,520px);max-height:560px;width:auto;height:auto;object-fit:contain;min-width:80px;min-height:80px}.image-actions{display:flex;align-items:center;gap:2px;margin-top:9px;flex-wrap:wrap}.image-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;color:var(--muted);font-size:11px;background:transparent;border:0;border-radius:6px;min-height:31px;padding:5px 8px}.image-actions button:hover{color:var(--text);background:#ffffff08}.image-actions svg{height:15px;width:15px}.image-actions .edit-action{color:#c5d4b5;margin-right:5px;border:1px solid #ffffff10;padding-inline:9px}.image-meta{font-size:10px;color:#74808e;margin:5px 0 0;line-height:1.7}.image-save-warning{font-size:11px;color:var(--bad);margin:8px 0;max-width:540px;line-height:1.7}.image-save-warning button{margin-left:7px;padding:3px 6px;font-size:10px;color:var(--bad)}.generation-loading{width:min(100%,360px);aspect-ratio:4/3;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:11px;border:1px solid #ffffff08;border-radius:13px;background:radial-gradient(ellipse at center,#d4ff6806,transparent 70%),#13171d}.generation-loading strong{font-size:13px;font-weight:400}.generation-loading p{color:var(--muted);font-size:11px;line-height:1.8;text-align:center;margin:0 18px}.studio-spinner{display:block;width:29px;height:29px;border:2px solid #d4ff681a;border-top-color:#d4ff68a0;border-radius:50%;animation:studio-spin 1.1s linear infinite}.generation-error{border:1px solid #ff9c8b24;background:#ff9c8b04;border-radius:10px;padding:13px 16px;color:var(--bad);font-size:12px;max-width:550px}.generation-error p{margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}.generation-error button{font-size:11px;background:transparent;border-color:#ff9c8b30;color:var(--bad)}
/* The composer stays outside the scroll area so it never covers a conversation. */
.composer-dock{flex:none;width:min(100%,876px);margin:0 auto;padding:0 28px 14px;position:relative;z-index:10}.studio-status{font-size:11px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere;color:var(--muted);margin:0 4px 7px;max-height:72px;overflow:auto}.studio-status:empty{display:none}.studio-status.error{color:var(--bad)}.image-composer{background:var(--panel);border:1px solid #ffffff0c;border-radius:22px;padding:12px 13px 10px;box-shadow:0 8px 26px #00000012;position:relative}.image-composer:focus-within{border-color:#ffffff22}.image-composer textarea{display:block;resize:none;min-height:52px;max-height:160px;width:100%;border:0;outline:none!important;box-shadow:none;background:none;color:var(--text);padding:5px 5px 9px;font-size:14px;line-height:1.65;scrollbar-width:thin}.image-composer textarea::placeholder{color:#7c8794}.composer-toolbar{display:flex;align-items:center;gap:8px;min-width:0}.attach-button{font-size:26px;color:#b1bdc9;width:32px;height:32px;font-weight:300}.generation-settings{position:relative;min-width:0}.generation-settings summary{display:flex;align-items:center;gap:7px;padding:6px 8px;border-radius:7px;font-size:11px;color:#b1bdc9;cursor:pointer;list-style:none;white-space:nowrap}.generation-settings summary::-webkit-details-marker{display:none}.generation-settings summary:hover,.generation-settings[open] summary{background:#ffffff08}.generation-settings summary svg{width:15px;height:15px}.generation-settings summary>span:last-child{color:#718090;margin-left:1px}.settings-popover{position:absolute;bottom:calc(100% + 13px);left:-38px;width:260px;padding:15px;background:#1c222b;border:1px solid #38434f;box-shadow:0 12px 50px #0007;border-radius:13px;z-index:30;max-height:calc(100dvh - 260px);overflow:auto}.settings-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.settings-heading strong{font-size:13px;font-weight:500}.settings-heading button{height:24px;width:24px;font-size:21px}.settings-popover label{display:block;color:var(--muted);font-size:11px;margin:10px 0}.settings-popover select{margin-top:5px;width:100%;background:#11161d;color:var(--text);border:1px solid #35404c;border-radius:7px;padding:7px 9px;font-size:12px;min-height:34px}.settings-popover p{font-size:10px;color:var(--muted);margin:10px 0 0}.prompt-count{margin-left:auto;white-space:nowrap;font-size:9px;color:#667382}.image-price{font-size:11px;color:#aab795;white-space:nowrap;flex:none}.send-button{width:34px;height:34px;flex:none;display:flex;align-items:center;justify-content:center;padding:0;margin-left:3px;border:0;border-radius:50%;background:var(--accent);color:var(--ink)}.send-button:hover{background:#e1ff9a}.send-button svg{width:19px;height:19px;stroke-width:2}.send-button.busy svg{animation:studio-pulse 1s ease-in-out infinite}.composer-footnote{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#687582;padding:8px 4px 0;position:relative}.composer-footnote details{min-width:0}.composer-footnote summary{list-style:none;cursor:pointer;line-height:1.5}.composer-footnote summary::-webkit-details-marker{display:none}.composer-footnote summary:hover{color:var(--muted)}.composer-footnote summary span{margin-left:3px}.keyboard-hint{white-space:nowrap;font-size:9px;padding-top:1px}.privacy-popover{position:absolute;bottom:calc(100% + 8px);left:0;width:min(420px,100%);padding:15px 17px;border:1px solid #35404c;border-radius:12px;background:#1c222b;box-shadow:0 10px 30px #0006;z-index:40;color:var(--muted);font-size:11px}.privacy-popover strong{color:var(--text);font-weight:500}.privacy-popover p{margin:8px 0 0;line-height:1.7}.composer-references{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 4px 10px}.reference-chip{display:flex;align-items:center;gap:9px;max-width:220px;position:relative;border:1px solid #ffffff12;border-radius:10px;padding:5px 27px 5px 5px;background:#14191f}.reference-chip[data-reference-kind=target]{border-color:#a8c27b35}.reference-chip img{width:43px;height:43px;object-fit:cover;border-radius:6px;flex:none}.reference-chip .reference-copy{min-width:0}.reference-chip strong{display:block;font-size:10px;font-weight:400;color:#c8d5b5;white-space:nowrap}.reference-chip small{display:block;font-size:9px;color:#7f8b99;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reference-chip>button{position:absolute;right:4px;top:4px;width:20px;height:20px;border-radius:50%;font-size:17px;line-height:1;padding:0}.reference-chip[data-reference-kind=upload]{max-width:160px}.reference-chip[data-reference-kind=upload] strong{color:var(--text);overflow:hidden;text-overflow:ellipsis;max-width:83px}.drop-overlay{position:absolute;inset:6px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#10151aee;border:2px dashed #d4ff6870;border-radius:15px;z-index:45;pointer-events:none}.drop-overlay>span{font-size:55px;color:var(--accent);line-height:1.3}.drop-overlay strong{font-size:19px;font-weight:500}.drop-overlay p{font-size:12px;color:var(--muted);text-align:center;padding:0 18px}
.image-dialog{padding:14px;border:1px solid var(--line);border-radius:14px;background:#10151b;color:var(--text);max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);width:max-content}.image-dialog::backdrop{background:#000c;backdrop-filter:blur(5px)}.image-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:12px}.image-dialog-toolbar strong{font-size:13px;font-weight:500}.image-dialog-toolbar>div{display:flex;align-items:center;gap:10px}.image-dialog-toolbar button{font-size:12px}.image-dialog-toolbar .icon-button{font-size:24px}.image-dialog>img{display:block;max-width:calc(100vw - 64px);max-height:calc(100dvh - 110px);object-fit:contain;border-radius:5px}
@keyframes studio-spin{to{transform:rotate(360deg)}}@keyframes studio-pulse{50%{opacity:.35}}
@media(min-width:1500px){.studio-sidebar{width:260px}.studio-welcome{padding-bottom:70px}}
@media(max-width:1000px){.studio-sidebar{width:215px}.conversation-topbar{padding-inline:18px}.conversation-messages{padding-inline:20px}.composer-dock{padding-inline:20px}.prompt-count{display:none}.image-price{margin-left:auto}.keyboard-hint{display:none}.composer-footnote{justify-content:center}}
@media(max-width:700px){.studio-sidebar{display:none;position:absolute;left:0;top:0;bottom:0;width:265px;z-index:50;box-shadow:12px 0 60px #0005}.studio-app.sidebar-open>.studio-sidebar{display:flex}.studio-app.sidebar-collapsed>.studio-sidebar{display:none}.mobile-only{display:flex}.conversation-topbar{height:49px;min-height:49px;padding-inline:12px}.conversation-topbar h1{max-width:48vw;font-size:13px}.local-badge{font-size:9px}.conversation-meta{gap:3px!important}.conversation-meta>.icon-button{width:28px}.studio-welcome{padding:18px 20px 32px;min-height:100%}.welcome-symbol{font-size:39px;margin-bottom:15px}.studio-welcome h2{font-size:23px}.studio-welcome>p{font-size:12px;max-width:260px;line-height:1.8}.prompt-starters{gap:8px;margin-top:23px}.prompt-starters button{font-size:10px;padding:8px 10px;gap:5px}.prompt-starters button>span:first-child{font-size:14px}.conversation-messages{padding:16px 13px 20px}.conversation-turn{margin-bottom:28px}.user-message{margin-left:15px;margin-bottom:18px}.user-text{max-width:94%;font-size:13px;padding:9px 13px}.assistant-message{gap:7px}.assistant-avatar{width:22px;height:22px;font-size:16px}.assistant-label{margin-top:1px;font-size:11px}.generated-image{max-height:480px}.image-actions{gap:0}.image-actions button{font-size:10px;padding:4px 6px;min-height:30px}.image-actions svg{width:14px;height:14px}.composer-dock{padding:0 12px 10px}.image-composer{border-radius:19px;padding:10px 10px 9px}.image-composer textarea{font-size:13px;min-height:48px;padding-top:3px}.composer-toolbar{gap:4px}.generation-settings summary{font-size:10px;gap:5px;padding-inline:5px}.generation-settings{flex:1;min-width:40px}.generation-settings summary{min-width:0}.generation-settings summary svg,.generation-settings summary>span:last-child{flex:none}#settings-summary{min-width:0;overflow:hidden;text-overflow:ellipsis}.image-price{font-size:10px;max-width:none}.send-button{width:32px;height:32px}.composer-footnote{font-size:9px;padding-inline:0;gap:0}.composer-footnote summary{text-align:center}.settings-popover{left:-35px;bottom:calc(100% + 12px);width:245px;max-height:calc(100dvh - 240px)}.history-delete{opacity:1}.reference-chip{max-width:190px}.reference-chip img{width:36px;height:36px}.reference-chip strong{font-size:9px}.reference-chip small{font-size:8px;max-width:105px}.studio-status{font-size:10px;margin-inline:4px;max-height:58px}.image-dialog{padding:10px}.image-dialog-toolbar{gap:12px}.image-dialog-toolbar strong{font-size:11px}.image-dialog-toolbar button{font-size:11px;padding:5px 8px}.image-dialog>img{max-width:calc(100vw - 54px)}}
@media(max-height:650px){.welcome-symbol{font-size:32px;margin-bottom:10px}.studio-welcome{padding-block:15px}.studio-welcome h2{font-size:23px}.prompt-starters{margin-top:17px}.studio-welcome>p{font-size:11px}.composer-dock{padding-bottom:7px}}
@media(prefers-reduced-motion:reduce){.conversation-scroll{scroll-behavior:auto}.studio-spinner,.pending-dot,.send-button.busy svg{animation:none}}

.canvas-entry{display:inline-flex;align-items:center;min-height:32px;padding:5px 10px;border:1px solid #758e49;border-radius:7px;color:var(--accent);text-decoration:none;font-size:11px;margin-right:10px;background:transparent}.canvas-entry:hover{background:#d4ff680a}@media(max-width:700px){.canvas-entry{font-size:10px;padding:4px 7px;margin-right:2px}.conversation-meta .local-badge{display:none}}
/* Model, parameters and optional Skills share one extensible composer toolbar. */
.composer-toolbar{gap:4px;flex-wrap:wrap}.generation-models,.generation-skills{position:relative;min-width:0;flex:none}.generation-models summary,.generation-skills summary{display:flex;align-items:center;gap:6px;min-height:32px;padding:6px 7px;border-radius:7px;font-size:11px;color:#b1bdc9;cursor:pointer;list-style:none;white-space:nowrap}.generation-models summary::-webkit-details-marker,.generation-skills summary::-webkit-details-marker{display:none}.generation-models summary:hover,.generation-skills summary:hover,.generation-models[open] summary,.generation-skills[open] summary{background:#ffffff08}.generation-models summary svg,.generation-skills summary svg{width:15px;height:15px}.generation-models summary>span:last-child,.generation-skills summary>span:last-child{color:#718090}.generation-models summary[aria-disabled=true],.generation-skills summary[aria-disabled=true]{opacity:.4;cursor:not-allowed}.generation-settings{flex:none;border-left:1px solid #ffffff1a;padding-left:5px;margin-left:3px}.generation-skills{border-left:1px solid #ffffff1a;padding-left:5px}.models-popover,.skills-popover{position:absolute;bottom:calc(100% + 13px);left:0;width:280px;max-width:calc(100vw - 50px);padding:12px;background:#1c222b;border:1px solid #38434f;box-shadow:0 12px 50px #0007;border-radius:13px;z-index:30;max-height:calc(100dvh - 220px);overflow:auto}.skills-popover{left:auto;right:0}.generation-option{position:relative;display:block;width:100%;padding:10px 29px 10px 10px;margin-top:4px;text-align:left;border:1px solid transparent;background:transparent;border-radius:8px}.generation-option strong{display:block;font-size:12px;font-weight:500}.generation-option small{display:block;font-size:10px;color:var(--muted);line-height:1.65;margin-top:3px}.generation-option[aria-pressed=true]{background:#d4ff680a;border-color:#d4ff6835}.generation-option[aria-pressed=true]::after{content:'✓';position:absolute;right:10px;top:10px;color:var(--accent)}.generation-option:hover{background:#ffffff08}.composer-toolbar .send-button{margin-left:auto}.prompt-count{margin-left:auto}
@media(max-width:700px){.composer-toolbar{gap:2px}.generation-models summary,.generation-skills summary,.generation-settings summary{font-size:10px;padding-inline:4px;gap:4px}.generation-models summary svg,.generation-skills summary svg{width:13px;height:13px}.generation-settings{flex:none;min-width:0;padding-left:4px;margin-left:1px}.generation-skills{padding-left:3px}.composer-toolbar .attach-button{width:26px}.composer-toolbar .send-button{margin-left:auto}.models-popover{left:-28px}.skills-popover{right:0}.settings-popover{left:-100px;width:245px}.generation-skills summary{max-width:120px}#skill-summary{overflow:hidden;text-overflow:ellipsis}}
@media(max-width:700px){.generation-models,.generation-skills,.generation-settings{position:static}.models-popover,.skills-popover,.settings-popover{left:0;right:auto;bottom:calc(100% + 8px);width:280px;max-width:100%}.generation-models summary svg,.generation-settings summary svg{display:none}.generation-skills summary{width:29px;justify-content:center;padding-inline:3px}.generation-skills summary>span{display:none}.generation-skills[data-active=true]>summary{color:var(--accent);background:#d4ff6810}.composer-toolbar .send-button{margin-left:auto}}

/* The creative workspace owns the header; this frame keeps its native image history. */
body.studio-page.creative-embedded>.site-header{display:none}
.creative-embedded .studio-back-button{display:none}
.creative-embedded .studio-app{height:100%;width:100%}
.creative-embedded .studio-sidebar{width:258px;background:#101721;border-right:1px solid #29394c;padding:18px 12px 13px}
.creative-embedded .conversation-topbar{height:58px;min-height:58px;border-bottom:1px solid #29394c77;padding-inline:23px}
.creative-embedded .conversation-messages{width:min(100%,850px);padding:24px 36px 30px}
.creative-embedded .composer-dock{width:min(100%,1000px);padding:4px 30px 12px}
.creative-embedded .image-composer{border-color:#3c5068;border-radius:14px;background:linear-gradient(135deg,#182436,#111b28)}
.creative-embedded .image-composer textarea{min-height:52px;max-height:144px}
.creative-embedded .generation-settings summary,.creative-embedded .generation-models summary,.creative-embedded .generation-skills summary{border:1px solid #34465a;background:#152230}
@media(max-width:1050px){.creative-embedded .studio-sidebar{width:220px}}
@media(max-width:700px){.creative-embedded .studio-sidebar{width:260px}.creative-embedded .conversation-topbar{height:36px;min-height:36px;padding-inline:12px}.creative-embedded .conversation-messages{padding:18px 16px 22px}.creative-embedded .composer-dock{padding:4px 12px 10px}.creative-embedded .image-composer{border-radius:13px;padding:9px 11px 7px}.creative-embedded .image-composer textarea{font-size:16px;min-height:55px}.creative-embedded .composer-footnote{justify-content:center}}

/* Embedded image creation uses the same sidebar and content coordinates as Q&A. */
.creative-embedded{--creative-toolbar-height:64px;background:#0c1119;line-height:1.7}
.creative-embedded .studio-main{padding-top:var(--creative-toolbar-height)}
.creative-embedded .studio-sidebar{width:258px;padding:26px 17px 16px;gap:16px;background:linear-gradient(180deg,#131c29,#0e151e);border-right:1px solid #29394c}
.creative-embedded .sidebar-heading{display:none}
.creative-embedded .new-chat{display:flex;align-items:center;gap:8px;width:100%;min-height:56px;padding:11px 15px;border:1px solid #587a4555;border-radius:12px;background:#d4ff680b;color:#d4ff68;font-size:14px;font-weight:600;line-height:1.7}
.creative-embedded .new-chat:hover{background:#d4ff6818}
.creative-embedded .new-chat>span{display:none}
.creative-embedded .history-heading{padding:10px 11px 0;font-size:12px;color:#b9c6d6}
.creative-embedded .history-heading>span:last-child{font-size:11px;color:#97a9bf}
.creative-embedded .history-select{padding:10px 34px 10px 11px;font-size:14px;line-height:1.7}
.creative-embedded .conversation-topbar{height:48px;min-height:48px;padding-inline:23px;border-bottom:1px solid #29394c77}
@media(min-width:701px){.creative-embedded #sidebar-toggle{display:none}}
@media(max-width:1050px){.creative-embedded .studio-sidebar{width:220px}}
@media(max-width:700px){
 .creative-embedded{--creative-toolbar-height:96px}
 .creative-embedded .studio-sidebar{width:260px;top:var(--creative-toolbar-height)}
 .creative-embedded .conversation-topbar{height:48px;min-height:48px;padding-inline:12px}
}

.settings-popover input[type=number]{margin-top:5px;width:100%;background:#11161d;color:var(--text);border:1px solid #35404c;border-radius:7px;padding:7px 9px;font-size:12px;min-height:34px}
.settings-popover .transparent-background-option{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;background:#11161d;border:1px solid #35404c;border-radius:7px;color:var(--text)}
.transparent-background-option input{width:16px;height:16px;margin:0;accent-color:var(--accent)}
.gif-control{display:flex;align-items:center;flex:none;border:1px solid #34465a;border-radius:7px;background:#152230}
.gif-control[hidden]{display:none}
.gif-control #gif-toggle{display:flex;align-items:center;gap:5px;padding:5px 7px;border:0;border-radius:6px;background:none;color:#b1bdc9;font-size:11px;line-height:16px}
.gif-switch-track{display:inline-flex;align-items:center;width:21px;height:12px;padding:2px;border-radius:9px;background:#394b5d}
.gif-switch-track::before{content:'';width:8px;height:8px;border-radius:50%;background:#bac7d3;transition:transform .15s}
.gif-control #gif-toggle[aria-checked=true]{color:var(--accent)}
#gif-toggle[aria-checked=true] .gif-switch-track{background:#4d652f}
#gif-toggle[aria-checked=true] .gif-switch-track::before{transform:translateX(9px);background:var(--accent)}
.gif-control .gif-settings{margin:0;padding:0;border:0}
.gif-control .gif-settings summary{padding:5px 6px 5px 3px;border:0;background:none}
.gif-settings summary[aria-disabled=true]{opacity:.45;cursor:default}
.gif-settings .settings-popover{left:auto;right:0;bottom:calc(100% + 10px)}
.gif-range-field{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 8px;margin:10px 0}
.gif-range-field output{color:var(--accent);font-size:12px;font-variant-numeric:tabular-nums}
.gif-range-field input[type=range]{grid-column:1/-1;width:100%;margin:0;accent-color:var(--accent);cursor:pointer}
.gif-range-limits{grid-column:1/-1;display:flex;justify-content:space-between;color:var(--muted);font-size:11px}
.prompt-optimize-button{flex:none;border:1px solid var(--line);border-radius:7px;background:#152230;color:var(--accent);padding:5px 7px;font-size:11px}
.prompt-optimizer{width:min(560px,calc(100vw - 32px))}
.prompt-optimizer label{display:grid;gap:6px;margin:10px 0;font-size:12px}
.prompt-optimizer textarea{width:100%;resize:vertical;padding:8px;border:1px solid var(--line);border-radius:7px;background:#11161d;color:var(--text);font:inherit}
.prompt-optimizer p{font-size:12px;color:var(--muted)}
.prompt-optimizer p.error{color:#ff8d7d}
.prompt-optimizer-feedback{display:flex;align-items:center;gap:10px;margin:12px 0}
.prompt-optimizer-feedback.is-waiting{padding:10px 12px;border:1px solid #d4ff6830;border-radius:8px;background:#d4ff6809}
.prompt-optimizer-feedback .studio-spinner{flex:none;width:20px;height:20px}
.prompt-optimizer-feedback p{margin:0;line-height:1.55}
.prompt-optimizer-feedback.is-waiting #prompt-optimizer-status{color:var(--text);font-weight:600}
#prompt-optimizer-wait{margin-top:3px}
.prompt-optimizer-visuals{display:flex;flex-wrap:wrap;gap:8px;align-items:start;font-size:11px;color:var(--muted)}
.prompt-optimizer-visuals figure{margin:0}
.prompt-optimizer-visuals img{width:68px;height:48px;object-fit:contain;background:#202832;border-radius:5px;display:block}
.prompt-optimizer-conversation{max-height:150px;overflow:auto}
.prompt-optimizer-conversation p{padding:6px 8px;background:#18212c;border-radius:6px;white-space:pre-wrap}
.prompt-optimizer .image-actions{justify-content:flex-end;gap:8px}
.prompt-optimizer .image-actions button{padding:6px 10px;border:1px solid var(--line);border-radius:7px}
#prompt-optimizer-apply{color:var(--accent)}
@media(max-width:700px){
  .gif-control #gif-toggle{padding:4px 5px;font-size:10px}
  .gif-settings .settings-popover{left:0;right:auto}
}
