:root[data-theme=dark]:has(body.studio-page){--paper:#111214 !important;--surface:#1b1c1f !important;--surface-alt:#232428 !important;--line:#333438 !important;--muted:#a7a8ac !important;--studio-panel:color-mix(in srgb,var(--surface) 70%,var(--surface-alt) 30%)}:root:not([data-theme=dark]):has(body.studio-page){--paper:#f7f6f3 !important;--surface:#e3e1db !important;--surface-alt:#d3d1c8 !important;--line:#c5c2b9 !important;--muted:#58554f !important;--studio-panel:color-mix(in srgb,var(--surface) 60%,var(--surface-alt) 40%)}.studio-page{font-family:var(--brand-sans);background:var(--paper);color:var(--ink)}.studio-page [hidden]{display:none!important}.studio-page details{border-bottom:0}.studio-page :is(button,input,select,textarea){font-family:var(--brand-sans);border-radius:10px}.studio-page :is(button,summary,.studio-drop){transition:color .15s ease,background-color .15s ease,border-color .15s ease}.studio-page button{cursor:pointer}.studio-page button:disabled{cursor:not-allowed;opacity:.6}.studio-page :is(h1,h2,h3,p){margin:0}.studio-page :is(h1,h2,h3){font-family:var(--brand-display);font-weight:500;letter-spacing:-.025em}.studio-page :focus-visible{outline:2px solid var(--blue);outline-offset:3px}.studio-page[data-input-method=pointer] :focus{outline:none!important}.studio-page :is(input,textarea){caret-color:var(--blue)}.studio-page *{scrollbar-color:var(--line) transparent;scrollbar-width:thin}.studio-page .icon{display:inline-flex;flex-shrink:0;width:18px;height:18px}.studio-page .icon svg{width:100%;height:100%}.studio-sr-only{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}.studio-editor input:not([type=file]),.studio-page select,.studio-page textarea{border:1px solid transparent;box-shadow:none;padding:10px 12px;width:100%;min-width:0;background:var(--surface);color:var(--ink);font-size:14px;line-height:1.5}.studio-page :is(input,textarea)::placeholder{color:var(--muted);opacity:1}.studio-page select{appearance:auto;color-scheme:light}[data-theme=dark] .studio-page select{color-scheme:dark}.studio-page label{font-size:12px;font-weight:600}.studio-text-button,.studio-example-button,.studio-service-link,.studio-selected-source button,#studio-add-scene,.studio-strip-heading button,.studio-audio-example button,.studio-draft-row button{text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}.studio-text-button:hover,.studio-example-button:hover,.studio-service-link:hover,.studio-selected-source button:hover,#studio-add-scene:hover,.studio-strip-heading button:hover,.studio-audio-example button:hover,.studio-draft-row button:hover{color:var(--blue);text-decoration-color:var(--blue)}.studio-header{min-height:68px;display:flex;align-items:center;gap:16px;padding:12px 24px;border-bottom:1px solid var(--line);background:var(--paper);position:sticky;top:0;z-index:30}.studio-header .wordmark{font-size:25px;transform:none;flex-shrink:0}.studio-header-label{color:var(--muted);font-size:13px}.studio-header nav{display:none}.studio-header .header-actions{display:flex;align-items:center;gap:6px;margin-left:auto;order:3}.studio-header .login-button{padding:9px 18px;border-radius:999px;font-size:13px}.studio-header .theme-toggle{margin:0;border:0}.studio-wallet{position:relative;order:2;flex-shrink:0;padding-left:14px;border-left:1px solid var(--line)}.studio-wallet>summary{display:flex;align-items:center;gap:8px;padding:6px 8px;color:var(--ink);border:0;border-radius:10px;font-size:12px;cursor:pointer;list-style:none}.studio-wallet>summary::-webkit-details-marker{display:none}.studio-wallet>summary:after{display:none}.studio-wallet>summary:hover{background:var(--surface)}.studio-wallet>summary>.icon:first-child{color:var(--blue);width:21px;height:21px}.studio-wallet>summary>.icon:last-child{width:13px;height:13px;transition:transform .2s;transform:rotate(180deg)}.studio-wallet[open]>summary>.icon:last-child{transform:rotate(0)}.studio-wallet-balance{display:grid;gap:0;min-width:36px}.studio-wallet-balance>span{font-size:10px;color:var(--muted)}.studio-wallet-balance>strong{font-size:16px;font-variant-numeric:tabular-nums}.studio-wallet-panel{position:absolute;right:0;top:calc(100% + 12px);width:320px;border-radius:18px;border:1px solid var(--line);padding:22px;background:var(--paper);box-shadow:0 16px 44px #0004;z-index:40}.studio-wallet-panel h2{font-size:21px}.studio-wallet-panel p{color:var(--muted);font-size:13px;line-height:1.6;margin-top:8px}.studio-wallet-panel dl{margin:18px 0}.studio-wallet-panel dl>div{display:flex;justify-content:space-between;padding:7px 0;gap:20px;font-size:13px}.studio-wallet-panel dd{margin:0;font-variant-numeric:tabular-nums}.studio-wallet-options{border-top:1px solid var(--line);padding-top:16px;display:grid;gap:16px}.studio-wallet-options h3{font-size:13px}.studio-wallet-options p{margin-top:4px;font-size:13px;color:var(--muted)}.studio-shell{padding:24px clamp(16px,3vw,28px) 60px}.studio-bench{max-width:1080px;margin:0 auto;display:grid;gap:18px}.studio-bench,.studio-bench *{min-width:0}#studio-status{color:var(--ink);font-size:13px;line-height:1.6;background:var(--surface);padding:12px 16px;border-radius:12px}#studio-status:empty{display:none}.studio-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}.studio-head-copy h1{font-size:clamp(28px,3.4vw,40px);line-height:1.05;letter-spacing:-.03em}.studio-head-copy p{color:var(--muted);font-size:13px;margin-top:10px;max-width:60ch}.studio-head-note{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}.studio-working-on{font-size:12px;color:var(--muted)}.studio-working-on strong{color:var(--ink);font-weight:600}.studio-head-engine:not(:empty):before{content:"· "}.studio-text-button{background:transparent;color:var(--muted);font-size:12px;display:inline-flex;align-items:center;gap:6px;padding:2px 0}.studio-text-button .icon{width:14px;height:14px}.studio-toolrow{display:grid;gap:10px}.studio-group-pills{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.studio-group-pills::-webkit-scrollbar{display:none}.studio-group-pills button{display:flex;align-items:center;gap:8px;flex-shrink:0;padding:9px 15px;border-radius:999px;font-size:13px;color:var(--muted);background:transparent;border:1px solid transparent;white-space:nowrap;min-height:40px}.studio-group-pills button .icon{width:17px;height:17px}.studio-group-pills button:hover{color:var(--ink);background:var(--surface)}.studio-group-pills button[aria-pressed=true]{color:var(--ink);background:var(--surface-alt);border-color:var(--line)}.studio-group-pills button[aria-pressed=true] .icon{color:var(--blue)}.studio-tool-strip{position:relative}.studio-tool-group-panel{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}.studio-tool-card{flex:none;display:flex;align-items:center;gap:10px;min-width:172px;padding:11px 14px;border-radius:12px;border:1px solid var(--line);background:var(--studio-panel);color:var(--muted);text-align:left}.studio-tool-card .icon{width:20px;height:20px;color:var(--ink);flex-shrink:0}.studio-tool-card-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.studio-tool-card-copy strong{font-size:13px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-tool-card-copy small{font-size:11px}.studio-tool-card:hover{border-color:var(--muted)}.studio-tool-card[aria-pressed=true]{border-color:var(--blue);background:color-mix(in srgb,var(--blue) 12%,var(--studio-panel))}.studio-tool-card[aria-pressed=true] .icon{color:var(--blue)}.studio-composer-shell{background:var(--studio-panel);border:1px solid var(--line);border-radius:18px;padding:14px;display:grid;gap:12px;transition:border-color .2s}.studio-composer-shell:focus-within{border-color:var(--blue)}.studio-composer-bar{display:flex;align-items:flex-start;gap:12px}.studio-composer-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;padding:0;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:10px}.studio-composer-icon:hover{background:var(--surface);color:var(--blue)}.studio-composer-icon .icon{width:20px;height:20px}.studio-composer{flex:1;min-width:0;padding-top:8px}.studio-composer #studio-prompt{display:block;width:100%;background:transparent;border:0;padding:0;resize:none;min-height:28px;max-height:200px;font-size:16px;line-height:1.55;color:var(--ink);overflow-y:auto}.studio-composer #studio-prompt:focus-visible{outline:none}.studio-uploads{display:flex;flex-wrap:wrap;gap:8px}.studio-uploads:empty{display:none}.studio-upload{display:flex;align-items:center;max-width:100%;gap:2px;padding:4px;background:var(--paper);border:1px solid var(--line);border-radius:13px}.studio-drop{margin:0;display:flex;flex-direction:row;align-items:center;gap:9px;min-height:44px;min-width:0;padding:0 8px 0 0;border:0;background:transparent;border-radius:8px;text-align:left;cursor:pointer;position:relative;overflow:hidden}.studio-drop:hover,.studio-drop.drag-over{color:var(--blue)}.studio-drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.studio-drop:focus-within{outline:2px solid var(--blue);outline-offset:2px}.studio-drop>.icon{display:grid;place-items:center;width:36px;height:36px;background:var(--surface);border-radius:8px;flex-shrink:0}.studio-drop>.icon svg{width:20px;height:20px}.studio-drop img,.studio-drop video{width:36px;height:36px;object-fit:cover;border-radius:8px;flex-shrink:0;background:var(--surface)}.studio-reference-label{display:grid;gap:1px;min-width:0;max-width:150px}.studio-reference-label strong{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-reference-label small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.studio-upload-actions{display:flex;gap:0;flex-shrink:0}.studio-upload-actions button{display:grid;place-items:center;width:30px;height:30px;padding:0;color:var(--muted);border-radius:8px}.studio-upload-actions button:hover{background:var(--surface);color:var(--ink)}.studio-upload-actions .icon{width:16px;height:16px}.studio-selected-source{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:var(--surface);border-radius:10px;font-size:12px}.studio-selected-source button{background:transparent;color:var(--blue);font-size:12px}#studio-scenes-field{display:grid;gap:12px;padding-top:2px;border-top:1px solid var(--line)}.studio-label-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.studio-label-row h3{font-size:13px}#studio-add-scene{background:transparent;color:var(--blue);font-size:12px;padding:6px 0}.studio-shot{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:start}.studio-shot label{font-size:12px;padding-top:10px}.studio-shot textarea{resize:vertical}.studio-shot button{grid-column:2;justify-self:end;font-size:11px;background:transparent;color:var(--muted)}.studio-composer-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--line)}#studio-settings-toggle{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font-size:13px}#studio-settings-toggle .icon{width:16px;height:16px}#studio-settings-toggle:hover,#studio-settings-toggle[aria-expanded=true]{background:var(--surface)}.studio-summary{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.studio-chip{padding:6px 11px;border-radius:999px;background:var(--surface);color:var(--muted);font-size:11px;white-space:nowrap}.studio-draft-menu{position:relative;margin:0;padding:0}.studio-draft-menu>summary{display:inline-flex;align-items:center;gap:8px;list-style:none;min-height:38px;padding:9px 14px;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:999px;font-size:13px;cursor:pointer}.studio-draft-menu>summary .icon{width:16px;height:16px}.studio-draft-menu>summary::-webkit-details-marker{display:none}.studio-draft-menu>summary:after{display:none}.studio-draft-menu>summary:hover{color:var(--ink);background:var(--surface)}.studio-draft-panel{position:absolute;left:0;bottom:calc(100% + 10px);z-index:20;width:280px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--paper);box-shadow:0 16px 40px #0004}.studio-draft-panel>label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.studio-draft-panel input{width:100%}.studio-draft-panel>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}#studio-prompt-count{color:var(--muted);font-size:11px}.studio-page .studio-save{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--ink);color:var(--paper);border:0;padding:10px 16px;font-size:12px;min-height:38px}.studio-page .studio-save:hover{background:var(--blue);color:#fff}.studio-page .studio-generate{margin-left:auto;display:flex;align-items:center;justify-content:center;gap:10px;padding:11px 22px;min-height:44px;border-radius:999px;border:0;background:var(--blue);color:#fff;font-size:14px;font-weight:600;transition:filter .15s}.studio-page .studio-generate:hover{filter:brightness(1.08)}.studio-page .studio-generate:active{filter:brightness(.94)}.studio-settings{background:var(--studio-panel);border:1px solid var(--line);border-radius:18px;padding:18px}.studio-settings-body{display:flex;flex-direction:column;gap:14px}.studio-field{position:relative;display:flex;flex-direction:column;gap:7px;min-width:0}.studio-fields{display:flex;flex-wrap:wrap;gap:14px}.studio-fields .studio-field{flex:1 1 180px}.studio-setting-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px}.studio-hint{font-size:11px;color:var(--muted);line-height:1.6}.studio-advanced{border-top:1px solid var(--line);padding-top:12px}.studio-advanced summary{cursor:pointer;font-size:12px;font-weight:600;list-style:none}.studio-advanced summary::-webkit-details-marker{display:none}.studio-advanced-panel{margin-top:12px}.studio-private-note{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;padding-top:10px;border-top:1px solid var(--line)}.studio-private-note .icon{width:14px;height:14px}.studio-model-field{position:relative}.studio-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:10px 13px;width:100%;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);text-align:left;font-size:13px}.studio-select-trigger:hover{border-color:var(--muted)}.studio-select-trigger>.icon{width:14px;height:14px;transform:rotate(180deg);transition:transform .2s}.studio-select-trigger[aria-expanded=true]>.icon{transform:rotate(0)}.studio-select-options{position:absolute;top:calc(100% + 6px);left:0;z-index:25;width:max-content;min-width:100%;max-width:320px;max-height:280px;overflow:auto;display:grid;gap:3px;padding:6px;border-radius:12px;background:var(--paper);border:1px solid var(--line);box-shadow:0 14px 32px #0004}.studio-model-field .studio-select-options{width:300px}.studio-select-options [role=option]{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;width:100%;border:0;border-radius:8px;text-align:left;background:transparent;color:var(--ink)}.studio-select-options [role=option]:hover,.studio-select-options [role=option]:focus{background:var(--surface);outline:none}.studio-select-options [role=option]:focus-visible{outline:1px solid var(--blue);outline-offset:-2px}.studio-model-copy{display:grid;gap:3px}.studio-model-copy strong{font-size:13px;font-weight:600}.studio-model-copy small{font-size:11px;color:var(--muted)}.studio-model-marker{width:13px;height:13px;flex-shrink:0;border:1px solid var(--line);border-radius:50%}[aria-selected=true]>.studio-model-marker{border:4px solid var(--blue)}.studio-view-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line)}.studio-view-tabs button{position:relative;display:flex;align-items:center;gap:7px;padding:11px 6px;margin-bottom:-1px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:13px;font-weight:500}.studio-view-tabs button .icon{width:16px;height:16px}.studio-view-tabs button:hover{color:var(--ink);border-color:var(--line)}.studio-view-tabs button[aria-pressed=true]{color:var(--ink);border-color:var(--blue)}.studio-view-tabs :is(#draft-count,#favorite-count){display:inline-grid;place-items:center;min-width:16px;height:16px;padding:0 3px;border-radius:5px;background:var(--surface);font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}#studio-canvas-view{display:grid;gap:12px}.studio-canvas-tabs{display:flex;gap:20px}.studio-canvas-tabs button{background:transparent;color:var(--muted);border:0;padding:6px 0;font-size:13px}.studio-canvas-tabs button[aria-pressed=true]{color:var(--ink);font-weight:600}.studio-strip-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.studio-strip-heading p{color:var(--muted);font-size:13px}.studio-strip-heading button{flex-shrink:0;background:transparent;color:var(--blue);font-size:12px}.studio-strip-row{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}.studio-strip-row:empty{display:none}.studio-strip-empty{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;min-height:220px;padding:24px;border:0}.studio-strip-empty:before,.studio-strip-empty:after{content:"";position:absolute;width:14px;height:14px;border:1px solid var(--line)}.studio-strip-empty:before{top:9px;left:9px;border-right:0;border-bottom:0}.studio-strip-empty:after{bottom:9px;right:9px;border-left:0;border-top:0}.studio-strip-empty>.icon{width:32px;height:32px;color:var(--muted)}.studio-strip-empty h3{font-size:18px}.studio-strip-empty p{font-size:13px;color:var(--muted);line-height:1.6;max-width:44ch}.studio-strip-empty button{padding:9px 16px;border-radius:999px;background:var(--surface);color:var(--ink);font-size:12px}.studio-strip-card{flex:none;width:190px;aspect-ratio:3/4;border-radius:14px;overflow:hidden;background:var(--surface);border:1px solid var(--line)}.studio-strip-card.is-done{padding:0;display:block}.studio-strip-card.is-done img,.studio-strip-card.is-done video{width:100%;height:100%;object-fit:cover;display:block}.studio-strip-card.is-working{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border-style:dashed;color:var(--muted);font-size:12px}.studio-progress{width:70px;height:3px;border-radius:2px;background:var(--line);overflow:hidden;position:relative}.studio-progress:after{content:"";position:absolute;inset:0;width:42%;background:var(--blue);animation:studio-progress-run 1.4s ease-in-out infinite}@keyframes studio-progress-run{0%{transform:translate(-100%)}to{transform:translate(240%)}}.studio-strip-card.is-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:14px;color:var(--muted)}.studio-strip-card.is-error .icon{width:22px;height:22px;color:var(--muted)}.studio-strip-card.is-error p{font-size:12px;line-height:1.5}.studio-strip-card.is-error button{padding:7px 12px;border-radius:999px;border:1px solid var(--line);color:var(--ink);font-size:11px}.studio-strip-card.is-error button:hover{background:var(--blue);border-color:var(--blue);color:#fff}.studio-example-card{flex:none;width:220px;border:0}.studio-media-open{display:block;border:0;background:var(--surface);padding:0;width:100%;border-radius:14px;overflow:hidden}.studio-media-open img{display:block;width:100%;height:260px;object-fit:cover}.studio-media-placeholder{min-height:180px;display:grid;place-items:center;font-size:24px;color:var(--muted);background:var(--surface)}.studio-example-copy{padding:10px 2px}.studio-example-copy h3{font-size:14px;overflow-wrap:anywhere}.studio-example-copy small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.studio-example-prompt{font-size:11px;line-height:1.5;color:var(--muted);margin-top:6px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.studio-example-actions{display:flex;gap:8px;align-items:stretch;margin-top:10px;flex-wrap:wrap}.studio-example-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:8px 11px;border:1px solid var(--line);border-radius:999px;font-size:11px;font-weight:500;background:transparent;color:var(--ink)}.studio-example-actions button:first-child{background:var(--surface);border-color:transparent}.studio-example-actions button:hover{background:var(--blue);border-color:var(--blue);color:#fff}.studio-example-actions .icon{width:14px;height:14px}.studio-save-example[aria-pressed=true] .icon svg{fill:currentColor}.studio-audio-example{flex:none;width:240px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--studio-panel)}.studio-audio-example h3{font-size:15px;margin-bottom:10px}.studio-audio-example p{font-size:12px;line-height:1.6;color:var(--muted);margin-bottom:14px}.studio-audio-example button{padding:7px 0;background:transparent;color:var(--blue);font-size:12px}.studio-drafts-heading,.studio-view-heading{margin-bottom:8px}.studio-drafts-heading h2,.studio-view-heading h2{font-size:22px;margin-bottom:6px}.studio-drafts-heading p,.studio-view-heading p{color:var(--muted);font-size:13px;line-height:1.6}.studio-view-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.studio-draft-row{border-bottom:1px solid var(--line);padding:18px 0}.studio-draft-row h3{font-size:15px}.studio-draft-row p{font-size:13px;line-height:1.6;color:var(--muted);margin:8px 0;overflow-wrap:anywhere;white-space:pre-wrap}.studio-draft-row small{color:var(--muted);font-size:11px}.studio-draft-row>div{display:flex;flex-wrap:wrap;gap:18px;margin-top:12px}.studio-draft-row button{background:transparent;color:var(--blue);padding:4px 0;font-size:12px}#studio-drafts-empty,#studio-favorites-empty,#studio-assets-empty{color:var(--muted);font-size:13px;padding:20px 0}.studio-example-button,.studio-service-link{display:inline-block;margin-top:10px;font-size:13px;color:var(--blue)}.studio-import{position:relative;cursor:pointer}.studio-import input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.studio-import:focus-within{outline:2px solid var(--blue);outline-offset:3px}.studio-lora-editor{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:16px;margin-bottom:20px}.studio-lora-editor .studio-field{margin:0}.studio-lora-editor>button{justify-self:start}.studio-media-dialog{border-radius:20px;margin:auto;padding:22px;border:1px solid var(--line);background:var(--paper);color:var(--ink);width:min(760px,calc(100% - 32px));max-height:88dvh;overflow:auto;box-shadow:0 20px 60px #0006}.studio-media-dialog::backdrop{background:#0009}.studio-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.studio-dialog-heading h2{font-size:20px;overflow-wrap:anywhere}.studio-dialog-heading button{background:var(--surface);color:var(--ink);padding:9px;border-radius:50%}.studio-dialog-preview{border-radius:12px;display:block;max-height:48dvh;max-width:100%;margin:0 auto 16px;object-fit:contain;background:var(--surface)}.studio-media-dialog p{font-size:13px;line-height:1.6;color:var(--muted);margin:14px 0}.studio-media-dialog h3{font-size:14px}.studio-continuations{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.studio-continuations button{min-height:40px;padding:9px 14px;border:1px solid var(--line);border-radius:999px;color:var(--ink);background:transparent;font-size:12px}.studio-continuations button:hover{background:var(--blue);border-color:var(--blue);color:#fff}.studio-undo{position:fixed;left:50%;bottom:22px;transform:translate(-50%);z-index:60;display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:12px;background:var(--ink);color:var(--paper);font-size:13px;box-shadow:0 14px 34px #0005}.studio-undo button{background:transparent;color:var(--paper);text-decoration:underline;text-underline-offset:3px;font-size:12px}@media(max-width:850px){.studio-shell{padding:16px 16px 40px}.studio-head{flex-direction:column;align-items:flex-start}.studio-head-note{align-items:flex-start;text-align:left}.studio-tool-card{min-width:150px}.studio-example-card{width:180px}.studio-media-open img{height:200px}.studio-strip-card{width:150px}}@media(max-width:650px){.studio-header{padding:10px 14px;gap:8px}.studio-header .wordmark{font-size:21px}.studio-header-label{display:none}.studio-wallet{padding-left:8px}.studio-wallet>summary{padding:5px}.studio-wallet-balance>span{display:none}.studio-wallet-panel{position:fixed;top:96px;left:14px;right:14px;width:auto}.studio-header .header-actions{gap:1px}.studio-header .language-switch{margin:0}.studio-header .theme-toggle{width:32px;min-width:32px;height:32px}.studio-header .login-button{padding:8px 12px;font-size:12px}.studio-bench{gap:14px}.studio-page :is(input:not([type=file]),select,textarea){font-size:16px}.studio-composer #studio-prompt{font-size:16px}.studio-composer-foot{gap:8px}#studio-settings-toggle{order:1}.studio-draft-menu{order:2;margin-left:auto}.studio-draft-panel{left:auto;right:0}.studio-summary{order:3;flex-basis:100%}.studio-page .studio-generate{order:4;flex-basis:100%;margin-left:0}.studio-view-tabs{overflow-x:auto;scrollbar-width:none}.studio-view-tabs::-webkit-scrollbar{display:none}.studio-view-tabs button{padding:10px 8px;font-size:12px;white-space:nowrap}.studio-lora-editor{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.studio-page *{transition:none!important;animation:none!important}}.studio-page .studio-generate{position:relative;overflow:hidden;isolation:isolate;background:var(--ink);color:var(--paper);border:1px solid rgba(0,0,0,.14);box-shadow:0 1px 2px #15161829,0 10px 24px #15161829;transition:background .45s ease,color .45s ease,box-shadow .45s ease}.studio-page .studio-generate>.studio-generate-label{position:relative;z-index:5}.studio-page .studio-generate:hover{background:var(--ink);color:#16150f;filter:none;box-shadow:0 2px 5px #1516182e,0 14px 32px #15161838}.studio-page .studio-generate:active{filter:none;transform:translateY(1px)}.studio-page .studio-generate:before{content:"";position:absolute;inset:-60%;z-index:1;background:conic-gradient(from 0deg,#fff7e6,#f2dec0,#f7e7ea,#e6ece6,#fffaf1,#ead7ba,#eee4ef,#f4ece0,#fff7e6);filter:blur(9px) saturate(1.55) brightness(.8);opacity:0;transition:opacity .45s ease,transform .17s cubic-bezier(.22,.61,.36,1);animation:studio-pearl-drift 9s linear infinite}.studio-page .studio-generate:hover:before{opacity:1}.studio-page .studio-pearl{position:absolute;inset:0;z-index:2;border-radius:inherit;overflow:hidden;opacity:0;pointer-events:none;transition:opacity .45s ease}.studio-page .studio-generate:hover .studio-pearl{opacity:1}.studio-page .studio-pearl:before{content:"";position:absolute;inset:-70%;background:conic-gradient(from 210deg,#e9eef2,#f6e8ec,#fff6e8,#e4ece4,#f2e9f5,#fdf3e2,#e9eef2);filter:blur(6px) saturate(1.8);mix-blend-mode:soft-light;animation:studio-pearl-counter 13s linear infinite;transition:transform .2s cubic-bezier(.22,.61,.36,1)}.studio-page .studio-pearl:after{content:"";position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");background-size:120px 120px;opacity:.4;mix-blend-mode:overlay}.studio-page .studio-generate:after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;background:linear-gradient(var(--band,104deg),transparent 38%,rgba(90,74,50,.1) 43%,rgba(255,255,255,.7) 47%,#fff 49.5%,rgba(255,255,255,.7) 52%,rgba(90,74,50,.06) 57%,transparent 62%);transition:opacity .45s ease,transform .12s cubic-bezier(.22,.61,.36,1);animation:studio-pearl-flash 5.5s ease-in-out infinite}.studio-page .studio-generate:hover:after{opacity:1}.studio-page .studio-sheen{position:absolute;inset:0;z-index:4;border-radius:inherit;pointer-events:none;opacity:0;background:radial-gradient(130px 58px at 50% 50%,rgba(255,255,255,.72) 0%,rgba(255,255,255,.2) 38%,transparent 68%);mix-blend-mode:screen;transition:opacity .35s ease,transform .11s cubic-bezier(.22,.61,.36,1)}.studio-page .studio-generate.is-live .studio-sheen{opacity:1}.studio-page .studio-sheen:after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px #ffffff6b,inset calc(var(--mx,0px) * -.42) calc(var(--my,0px) * -.9) 14px #fff6;transition:box-shadow .13s cubic-bezier(.22,.61,.36,1)}.studio-page .studio-generate.is-live:before{animation-play-state:paused;transform:translate(calc(var(--mx,0px) * -.45),calc(var(--my,0px) * -1.1))}.studio-page .studio-generate.is-live .studio-pearl:before{animation-play-state:paused;transform:translate(calc(var(--mx,0px) * .6),calc(var(--my,0px) * 1.4)) rotate(var(--tilt,0deg))}.studio-page .studio-generate.is-live:after{animation:none;transform:translate(calc(var(--mx,0px) * 1.55),calc(var(--my,0px) * 2.4))}.studio-page .studio-generate.is-live .studio-sheen{transform:translate(var(--mx,0px),var(--my,0px))}@keyframes studio-pearl-drift{to{transform:rotate(1turn)}}@keyframes studio-pearl-counter{to{transform:rotate(-1turn)}}@keyframes studio-pearl-flash{0%{transform:translate(-38%)}50%{transform:translate(38%)}to{transform:translate(-38%)}}@media(prefers-reduced-motion:reduce){.studio-page .studio-generate:before,.studio-page .studio-generate:after,.studio-page .studio-pearl:before{animation:none}}:root[data-theme=dark] .studio-page .studio-generate:before{filter:blur(9px) saturate(1.95) brightness(.74)}:root[data-theme=dark] .studio-page .studio-pearl{mix-blend-mode:multiply}:root[data-theme=dark] .studio-page .studio-pearl:before{mix-blend-mode:normal;filter:blur(6px) saturate(1.5)}:root[data-theme=dark] .studio-page .studio-pearl:after{opacity:.3}:root[data-theme=dark] .studio-page .studio-generate:before{filter:blur(9px) saturate(1.8) brightness(.9)}:root[data-theme=dark] .studio-page .studio-generate:hover .studio-pearl{opacity:.6}.studio-page .studio-shell{position:relative;padding-top:clamp(40px,6vw,86px)}.studio-hero-frame{position:absolute;inset:0 0 auto;height:clamp(360px,46vw,560px);z-index:0;pointer-events:none;overflow:hidden}.studio-hero-frame img{width:100%;height:100%;object-fit:cover;object-position:center 46%;display:block;-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 52%,transparent 100%);mask-image:linear-gradient(180deg,#000 0%,#000 52%,transparent 100%);animation:studio-hero-breathe 32s ease-in-out infinite alternate;will-change:transform}.studio-hero-frame:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(245,244,241,.16) 0%,rgba(245,244,241,.06) 36%,rgba(245,244,241,.74) 82%,var(--paper) 100%)}:root[data-theme=dark] .studio-hero-frame:after{background:linear-gradient(180deg,rgba(21,22,24,.44) 0%,rgba(21,22,24,.3) 36%,rgba(21,22,24,.82) 82%,var(--paper) 100%)}.studio-page .studio-bench{position:relative;z-index:1}.studio-page .studio-head{position:relative}.studio-page .studio-head:before{content:"";position:absolute;z-index:-1;left:-6%;right:-6%;top:-42px;height:210px;background:radial-gradient(ellipse at 34% 50%,#faf9f6a8,#faf9f600 70%)}:root[data-theme=dark] .studio-page .studio-head:before{background:radial-gradient(ellipse at 34% 50%,#121315c7,#12131500 70%)}.studio-page .studio-composer-shell{background:color-mix(in srgb,var(--paper) 82%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.05);backdrop-filter:blur(18px) saturate(1.05);box-shadow:0 24px 60px #15161824}:root[data-theme=dark] .studio-page .studio-composer-shell{background:color-mix(in srgb,var(--surface) 78%,transparent);box-shadow:0 24px 60px #0000006b}@keyframes studio-hero-breathe{0%{transform:scale(1)}to{transform:scale(1.07)}}@media(prefers-reduced-motion:reduce){.studio-hero-frame img{animation:none}}@media(max-width:640px){.studio-hero-frame{height:clamp(280px,64vw,380px)}}:root[data-theme=dark] .studio-hero-frame img{filter:brightness(.42) saturate(.85) contrast(1.05)}.studio-page .studio-head:before{left:-8%;right:-8%;top:-52px;height:230px;background:linear-gradient(180deg,#faf9f69e,#faf9f675 58%,#faf9f600)}:root[data-theme=dark] .studio-page .studio-head:before{background:linear-gradient(180deg,#121315bd,#12131585 58%,#12131500)}.studio-page .studio-head:before{-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 14%,#000 86%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0%,#000 14%,#000 86%,transparent 100%)}.studio-hero-frame{-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 44%,transparent 100%);mask-image:linear-gradient(180deg,#000 0%,#000 44%,transparent 100%)}.studio-hero-frame img{-webkit-mask-image:none;mask-image:none}.studio-hero-frame:after{background:linear-gradient(180deg,#f5f4f129,#f5f4f10f 36%,#f5f4f1b3 88%,#f5f4f1db)}:root[data-theme=dark] .studio-hero-frame:after{background:linear-gradient(180deg,#15161866,#15161842 36%,#151618c2 88%,#151618e0)}.studio-page .studio-head{flex-direction:column;align-items:center;text-align:center;gap:10px}.studio-page .studio-head-copy{display:grid;gap:8px;max-width:720px}.studio-page .studio-head h1{font-size:clamp(32px,4vw,46px);line-height:1.08;letter-spacing:-.02em}.studio-page .studio-head-copy p{font-size:15px}.studio-page .studio-head:before{top:-56px;height:250px}.studio-page .studio-toolrow{display:grid;justify-items:center;gap:12px}.studio-page .studio-group-pills,.studio-page .studio-tool-strip{justify-content:center}.studio-page .studio-composer-shell{width:100%;max-width:980px;margin:0 auto;padding:16px}.studio-page .studio-bench{gap:22px}@media(max-width:760px){.studio-page .studio-head{align-items:flex-start;text-align:left}.studio-page .studio-tool-strip,.studio-page .studio-group-pills{justify-content:flex-start}}.studio-hero-frame{height:clamp(460px,58vw,720px)}.studio-hero-frame{-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 58%,transparent 100%);mask-image:linear-gradient(180deg,#000 0%,#000 58%,transparent 100%)}.studio-hero-frame:after{background:linear-gradient(180deg,#f5f4f124,#f5f4f10d 40%,#f5f4f19e 88%,#f5f4f1d1)}:root[data-theme=dark] .studio-hero-frame:after{background:linear-gradient(180deg,#15161866,#15161842 40%,#151618b8 88%,#151618db)}.studio-page .studio-composer-shell>.studio-toolrow{justify-items:stretch;padding-bottom:14px;border-bottom:1px solid var(--line)}.studio-page .studio-composer-shell .studio-group-pills,.studio-page .studio-composer-shell .studio-tool-strip{justify-content:flex-start}.studio-suggestions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;max-width:980px;margin:0 auto}.studio-suggestions[hidden]{display:none}.studio-suggestions-label{font-size:12.5px;color:var(--muted)}.studio-suggestions-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.studio-page .studio-chip{padding:8px 14px;border-radius:999px;font-size:13px;color:var(--ink);border:1px solid color-mix(in srgb,var(--line) 80%,transparent);background:color-mix(in srgb,var(--paper) 58%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:background .2s}.studio-page .studio-chip:hover{background:color-mix(in srgb,var(--paper) 86%,transparent)}.studio-page .studio-tool-strip{scrollbar-width:none}.studio-page .studio-tool-strip::-webkit-scrollbar{width:0;height:0;display:none}.studio-page .studio-composer-shell>.studio-toolrow .studio-tool-strip{-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 92%,transparent 100%);mask-image:linear-gradient(90deg,#000 0%,#000 92%,transparent 100%)}.studio-page .studio-tool-group-panel{scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 93%,transparent 100%);mask-image:linear-gradient(90deg,#000 0%,#000 93%,transparent 100%)}.studio-page .studio-tool-group-panel::-webkit-scrollbar{width:0;height:0;display:none}.studio-page #studio-status{justify-self:center;max-width:980px;margin:0 auto;padding:10px 16px;border-radius:999px;font-size:13px;text-align:center;background:color-mix(in srgb,var(--surface) 78%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid color-mix(in srgb,var(--line) 70%,transparent)}.studio-page .studio-head:before{top:-70px;height:280px;background:linear-gradient(180deg,#faf9f600,#faf9f685 26%,#faf9f666 64%,#faf9f600)}:root[data-theme=dark] .studio-page .studio-head:before{background:linear-gradient(180deg,#12131500,#121315a8 26%,#12131575 64%,#12131500)}.studio-tool-disclosure{border-bottom:1px solid var(--line);padding-bottom:12px}.studio-tool-disclosure>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:8px 12px;border-radius:999px;border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 60%,transparent);width:fit-content}.studio-tool-disclosure>summary::-webkit-details-marker{display:none}.studio-tool-current{display:flex;align-items:baseline;gap:8px}.studio-tool-current strong{font-size:13.5px;font-weight:600}.studio-tool-current-engine,.studio-tool-change{font-size:12px;color:var(--muted)}.studio-tool-disclosure>summary [data-icon=chevron]{width:14px;height:14px;color:var(--muted);transition:transform .18s ease}.studio-tool-disclosure[open]>summary [data-icon=chevron]{transform:rotate(180deg)}.studio-tool-disclosure>.studio-toolrow{padding-top:14px}.studio-page .studio-tool-group-panel{flex-wrap:wrap;overflow:visible;-webkit-mask-image:none;mask-image:none}.studio-page .studio-tool-card{flex:1 1 200px}.studio-header .studio-head-note{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-left:auto;font-size:12px;color:var(--muted)}.studio-header .studio-head-note .studio-working-on{display:inline-flex;gap:5px}@media(max-width:900px){.studio-header .studio-head-note{display:none}}.studio-page .studio-head h1{font-family:var(--brand-display,"Onest"),Arial,sans-serif;font-weight:700}.studio-page .studio-generate{font-family:var(--brand-display,"Onest"),Arial,sans-serif;letter-spacing:.01em}.studio-page .studio-tabs,.studio-page .studio-canvas-tabs{margin-top:26px}.studio-page .studio-canvas{padding-top:6px}.studio-header .studio-head-note{flex-wrap:nowrap;white-space:nowrap;gap:12px;margin-left:auto;margin-right:8px;order:5}.studio-header .studio-head-note #studio-reset{display:inline-flex;align-items:center;gap:5px}.studio-header .header-actions{order:6}.studio-page .studio-header .studio-head-note{display:inline-flex;flex-direction:row;flex-wrap:nowrap;white-space:nowrap;align-items:center;justify-content:flex-end;gap:12px}.studio-suggestions{flex-direction:column;gap:8px;max-width:1080px}.studio-suggestions-label{width:100%;text-align:center}.studio-tool-summary{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:999px;border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 60%,transparent);width:fit-content}.studio-tool-summary [data-icon=chevron]{width:14px;height:14px;color:var(--muted);transition:transform .24s ease}.studio-tool-disclosure.is-open .studio-tool-summary [data-icon=chevron]{transform:rotate(180deg)}.studio-tool-fold{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s cubic-bezier(.22,.61,.36,1),opacity .2s ease;opacity:0}.studio-tool-disclosure.is-open .studio-tool-fold{grid-template-rows:1fr;opacity:1}.studio-tool-fold-inner{overflow:hidden;min-height:0}.studio-tool-disclosure.is-open .studio-tool-fold-inner{padding-top:14px}.studio-tool-disclosure>.studio-toolrow{padding-top:0}@media(prefers-reduced-motion:reduce){.studio-tool-fold{transition:none}}.studio-page .studio-settings{width:100%;max-width:980px;margin:0 auto}.studio-page .studio-composer-shell,.studio-page .studio-settings,.studio-page .studio-suggestions,.studio-page #studio-status{max-width:none;width:100%}.studio-page .studio-view-tabs button{border-radius:0;border-bottom:0;padding-bottom:12px}.studio-page .studio-view-tabs button:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:transparent;transition:background .18s ease}.studio-page .studio-view-tabs button[aria-pressed=true]:after{background:var(--blue)}.studio-page .studio-view-tabs button:not([aria-pressed=true]):hover:after{background:var(--line)}.studio-page .studio-strip-empty{max-width:520px;margin:0 auto}.studio-page .studio-bench{gap:20px}.studio-page .studio-view-tabs{margin-top:10px}.studio-page .studio-canvas-tabs{margin-top:2px}.studio-page .studio-composer-foot #studio-reset{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:12.5px;color:var(--muted);background:transparent;border:0;padding:8px 4px}.studio-page .studio-composer-foot #studio-reset:hover{color:var(--ink)}.studio-page .studio-composer-foot #studio-reset [data-icon=reset]{width:14px;height:14px}.studio-page .studio-generate{margin-left:14px}
