#gc-image-studio{position:fixed;inset:0;z-index:130;background:#f4f5f7;color:#222831;font-family:'DM Sans',system-ui,sans-serif}
#gc-image-studio *{box-sizing:border-box}
.gc-image-studio svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.gc-image-topbar{height:62px;display:grid;grid-template-columns:360px 1fr 360px;align-items:center;border-bottom:1px solid #e3e6e9;background:#fff;position:relative;z-index:6}
.gc-image-brand{height:100%;display:flex;align-items:center;gap:11px;padding:0 22px;background:#111216;color:#f5f5f7;text-decoration:none;font-size:21px;font-weight:700;letter-spacing:-.6px}
.gc-image-brand small{margin-left:auto;color:#aaaeb7;font-size:9px;letter-spacing:1.5px;font-weight:600}
.gc-image-top-center{display:flex;justify-content:center}.gc-image-zoom{padding:8px 12px;border-radius:7px;color:#4e5662;font-size:12px}.gc-image-zoom:hover{background:#f0f2f4}
.gc-image-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:13px;padding:0 18px}.gc-image-account{max-width:185px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#7a8290}
.gc-image-dashboard-button{height:34px;padding:0 12px;border:1px solid #dfe3e8;border-radius:8px;background:#fff;color:#535c68;font-size:12px}.gc-image-dashboard-button:hover{background:#f8f5eb;color:#7a5a1c}
.gc-image-body{height:calc(100dvh - 62px);display:grid;grid-template-columns:88px 272px minmax(0,1fr);min-height:0}
.gc-image-rail{background:#111216;border-right:1px solid #292a2e;padding:10px 7px;overflow:auto;scrollbar-width:none}
.gc-image-tool{position:relative;width:73px;min-height:62px;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;border-radius:9px;color:#9296a0;font-size:10px;line-height:1.05;text-align:center;padding:7px 3px}
.gc-image-tool svg{width:20px;height:20px}.gc-image-tool:hover{background:#202127;color:#f2f2f4}.gc-image-tool.active{background:#292820;color:#ffe297}
.gc-image-tool.active:before{content:'';position:absolute;left:-7px;top:18px;width:2px;height:26px;border-radius:0 2px 2px 0;background:linear-gradient(#fff0a6,#c28a24)}
.gc-image-tool em{font-style:normal;font-size:8px;padding:2px 4px;border-radius:4px;background:#343036;color:#f0c968}.gc-image-rail-divider{height:1px;background:#2c2d32;margin:9px 8px}
.gc-image-panel{background:#15161a;color:#e8e9ed;border-right:1px solid #292a2e;min-width:0;overflow:auto}.gc-image-panel-heading{height:74px;display:flex;align-items:center;padding:0 20px;border-bottom:1px solid #292a2e}
.gc-image-panel-kicker{font-size:8px;letter-spacing:1.5px;color:#7f838d;font-weight:700}.gc-image-panel-heading h1{margin:5px 0 0;font-size:17px;font-weight:600}
.gc-image-panel-content{padding:18px 18px 30px}.gc-image-panel-copy{margin:0 0 18px;color:#aaadb6;font-size:12px;line-height:1.65}.gc-image-panel-card{border:1px solid #30323a;background:#1c1e23;border-radius:10px;padding:13px;display:flex;flex-direction:column;gap:6px;color:#a9adb6;font-size:11px;line-height:1.55}.gc-image-panel-card strong{color:#ece7d9;font-size:12px}
.gc-image-control-label{display:flex;justify-content:space-between;gap:10px;margin:16px 0 7px;color:#c8cbd2;font-size:11px}.gc-image-control-label span{color:#8e939d}
.gc-image-range{width:100%;accent-color:#d8aa42}.gc-image-panel-actions{display:flex;justify-content:flex-end;margin-top:12px}.gc-image-panel-actions button,.gc-image-choice-row button,.gc-image-aspect-grid button{border:1px solid #34363d;background:#202229;color:#c2c5cc;border-radius:7px;padding:7px 9px;font-size:11px}.gc-image-panel-actions button:hover,.gc-image-choice-row button:hover,.gc-image-aspect-grid button:hover{background:#2a2924;color:#ffe29a}.gc-image-choice-row{display:flex;gap:8px;margin:13px 0}.gc-image-choice-row button.active,.gc-image-aspect-grid button.active{border-color:#97772f;background:#302b20;color:#ffe199}
.gc-image-aspect-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.gc-image-panel-primary{width:100%;height:38px;margin-top:11px;border:1px solid #b88e32;border-radius:8px;background:linear-gradient(100deg,#ffe38a,#c28a24);color:#493812;font-weight:700;font-size:12px}.gc-image-panel-muted{font-size:10px;line-height:1.5;color:#757a84}
.gc-image-workspace{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;background:#f3f4f6}
.gc-image-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:32px 44px 184px;background:linear-gradient(#f7f8fa,#eff1f4)}
.gc-image-upload-empty{width:min(520px,70%);min-height:280px;border:1px dashed #cbd1d8;border-radius:18px;background:#ffffffb8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#7b8491}.gc-image-upload-empty svg{width:30px;height:30px;color:#b08c3b}.gc-image-upload-empty strong{font-size:16px;color:#39424e}.gc-image-upload-empty span{font-size:12px}
.gc-image-canvas-wrap{--gc-image-zoom:.63;display:flex;align-items:center;justify-content:center;max-width:100%;transform:scale(var(--gc-image-zoom));transform-origin:center center}.gc-image-canvas{position:relative;width:min(1080px,75vw);max-height:72vh;aspect-ratio:16/9;background:#d9dde2;box-shadow:0 16px 48px #26313b1a;overflow:hidden}.gc-image-canvas>img{display:block;width:100%;height:100%;object-fit:contain;background:#dfe2e5}
.gc-image-canvas canvas{position:absolute;inset:0;pointer-events:none}.gc-image-canvas canvas.interactive{pointer-events:auto;cursor:crosshair}
.gc-image-composer{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);width:min(850px,calc(100% - 44px));background:#fff;border:1px solid #e0e3e7;border-radius:17px;box-shadow:0 12px 42px #18212c16;padding:12px 14px 12px;z-index:4}
.gc-image-composer-top{height:34px;display:flex;align-items:center;gap:7px;color:#444d59}.gc-image-composer-top select{height:29px;border:0;background:transparent;color:#404854;font-size:11px;padding:0 4px}.gc-image-composer-top i{width:1px;height:18px;background:#e5e7ea}.gc-image-toggle{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:11px;color:#59626e;cursor:pointer}.gc-image-toggle input{display:none}.gc-image-toggle span{width:25px;height:14px;border-radius:9px;background:#d3d7dc;position:relative;transition:.16s}.gc-image-toggle span:after{content:'';position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0002;transition:.16s}.gc-image-toggle input:checked+span{background:#c89c3d}.gc-image-toggle input:checked+span:after{left:13px}
.gc-image-composer textarea{width:100%;min-height:62px;max-height:120px;resize:vertical;border:0;outline:0;padding:7px 3px;color:#303845;font-size:13px;line-height:1.55}.gc-image-composer textarea::placeholder{color:#9aa1aa}
.gc-image-reference-row{min-height:54px;display:flex;align-items:center;gap:9px}.gc-image-reference-meta{display:flex;align-items:baseline;gap:5px;margin-right:2px}.gc-image-reference-meta strong{font-size:10px;color:#626b77}.gc-image-reference-meta span{font-size:9px;color:#9aa1ab}.gc-image-reference-list{display:flex;align-items:center;gap:7px;min-width:0;flex:1;overflow:auto}.gc-image-reference-add,.gc-image-reference-thumb{width:44px;height:44px;flex:0 0 44px;border:1px dashed #bfc5cc;border-radius:8px;background:#fafbfc;display:grid;place-items:center;color:#76808d;overflow:hidden}.gc-image-reference-add:hover{border-color:#b58b35;color:#8a6721}.gc-image-reference-thumb{position:relative;border-style:solid}.gc-image-reference-thumb img{width:100%;height:100%;object-fit:cover}.gc-image-reference-thumb button{position:absolute;right:2px;top:2px;width:16px;height:16px;border-radius:50%;background:#111a;color:#fff;padding:2px}.gc-image-reference-thumb button svg{width:11px;height:11px}
.gc-image-generate{height:38px;border-radius:9px;padding:0 15px;background:linear-gradient(100deg,#fff0a6,#c28a24);color:#4a3711;font-size:12px;font-weight:700;flex:0 0 auto}.gc-image-generate:disabled{filter:grayscale(.3);opacity:.42}.gc-image-generate svg{width:16px;height:16px}.gc-image-provider-note{margin:4px 0 0;font-size:9px;color:#9da4ad}
.gc-image-toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#17191e;color:#f1f2f4;border:1px solid #33363e;border-radius:8px;padding:9px 13px;font-size:11px;transition:.18s;z-index:150}.gc-image-toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.gc-image-body{grid-template-columns:76px 230px minmax(0,1fr)}.gc-image-topbar{grid-template-columns:306px 1fr 306px}.gc-image-tool{width:62px}.gc-image-stage{padding-left:22px;padding-right:22px}.gc-image-canvas{width:min(900px,82vw)}}
@media(max-width:760px){.gc-image-topbar{grid-template-columns:1fr auto}.gc-image-top-center,.gc-image-account{display:none}.gc-image-brand{background:#fff;color:#20252d}.gc-image-brand small{color:#9298a2}.gc-image-body{grid-template-columns:68px minmax(0,1fr)}.gc-image-panel{display:none}.gc-image-rail{grid-column:1}.gc-image-workspace{grid-column:2}.gc-image-tool{width:54px;min-height:57px;font-size:9px}.gc-image-tool span{max-width:52px}.gc-image-stage{padding:20px 12px 195px}.gc-image-composer{width:calc(100% - 18px);bottom:9px}.gc-image-reference-meta{display:none}.gc-image-composer-top{overflow:auto}.gc-image-top-actions{padding-right:8px}.gc-image-dashboard-button{font-size:0;width:38px;padding:0}.gc-image-dashboard-button svg{width:18px}}

/* Seedream controls extend the existing studio rather than replacing it. */
.gc-image-generation-options{font-size:11px;margin:5px 0;color:#626b77}.gc-image-generation-options summary{cursor:pointer;padding:6px 0;font-weight:600}.gc-image-options-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:8px 0}.gc-image-options-grid label{display:flex;flex-direction:column;gap:5px;min-width:0}.gc-image-options-grid input[type=number],.gc-image-options-grid select{width:100%;padding:7px;border:1px solid #dce1e7;border-radius:6px;background:#fff;color:#303842;font:inherit}.gc-image-options-grid .gc-image-option-switch{flex-direction:row;align-items:center}.gc-image-generation-options p{font-size:10px;line-height:1.5}.gc-image-generation-options [hidden],.gc-image-generation-feedback [hidden]{display:none!important}.gc-image-composer{max-height:65vh;overflow:auto}.gc-image-generation-feedback{display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.5;color:#7a642c;margin:7px 0;flex-wrap:wrap}.gc-image-generation-feedback.error{color:#a23f38}.gc-image-generation-feedback button{background:#fff4cc;border:1px solid #e2ce8c;border-radius:5px;padding:5px 8px}.gc-image-generation-feedback [role=progressbar]{width:36px;height:4px;border-radius:5px;background:linear-gradient(90deg,#fff0ad,#f6d265,#c6922d);animation:gc-image-pulse 1s ease-in-out infinite alternate}.gc-image-results{position:absolute;right:12px;top:16px;width:155px;max-height:calc(100% - 260px);overflow:auto;z-index:2}.gc-image-results article{padding:7px;border:1px solid #dcdfe4;border-radius:9px;background:#fff;display:flex;flex-wrap:wrap;gap:5px;margin-bottom:9px}.gc-image-results img{width:100%;height:94px;object-fit:contain;background:repeating-conic-gradient(#eee 0 25%,#fff 0 50%) 50%/14px 14px}.gc-image-results span{width:100%;font-size:10px;color:#57606e;overflow-wrap:anywhere}.gc-image-results button{font-size:10px;background:#fff3c6;padding:5px;border-radius:4px}.gc-image-workspace:has(.gc-image-results:not(:empty)) .gc-image-stage{padding-right:185px}@keyframes gc-image-pulse{to{opacity:.35}}@media(max-width:760px){.gc-image-options-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gc-image-results{width:92px;right:5px}.gc-image-results img{height:62px}.gc-image-workspace:has(.gc-image-results:not(:empty)) .gc-image-stage{padding-right:105px}}@media(prefers-reduced-motion:reduce){.gc-image-generation-feedback [role=progressbar]{animation:none}}
.gc-image-studio[hidden],.gc-image-studio [hidden]{display:none!important}
