.kling4-controls{min-width:0;color:var(--workspace-text)}.kling4-tools>button{min-height:32px;color:var(--workspace-muted);cursor:pointer;border-radius:8px;align-items:center;gap:6px;padding:5px 8px;font-size:12px;display:inline-flex}.kling4-tools>button:hover,.kling4-tools>button[aria-pressed=true]{background:var(--workspace-input);color:var(--workspace-text)}.kling4-controls button:disabled{opacity:.5;cursor:default}.kling4-dialog{--workspace-panel:var(--studio-surface);--workspace-input:var(--studio-raised);--workspace-line:var(--studio-line);--workspace-text:var(--brand-text);--workspace-muted:var(--brand-muted);--workspace-accent:var(--brand-lime);background:var(--workspace-panel);width:640px;max-width:calc(100vw - 32px);max-height:min(820px,88dvh);color:var(--workspace-text);border:1px solid var(--workspace-line);flex-direction:column;gap:0;padding:0;display:flex;overflow:hidden}.kling4-dialog-header{border-bottom:1px solid var(--workspace-line);flex:none;align-items:flex-start;gap:20px;padding:24px;display:flex}.kling4-dialog-header>div{flex:1;min-width:0}.kling4-dialog-header [data-slot=dialog-title]{margin-bottom:8px;font-size:18px;font-weight:600;line-height:1.4}.kling4-dialog-header [data-slot=dialog-description],.kling4-hint{color:var(--workspace-muted);font-size:12px;line-height:1.6}.kling4-dialog-header>button{cursor:pointer;padding:2px}.kling4-editor-body{overscroll-behavior:contain;min-height:0;padding:24px;overflow-y:auto}.kling4-asset{min-width:0}.kling4-field-label{margin-bottom:8px;font-size:12px;font-weight:500;display:block}.kling4-upload{border:1px dashed var(--workspace-line);background:var(--workspace-input);width:100%;min-height:136px;color:var(--workspace-muted);text-align:center;cursor:pointer;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:16px;font-size:12px;display:flex;position:relative;overflow:hidden}.kling4-upload:hover{border-color:var(--workspace-accent);color:var(--workspace-text)}.kling4-upload:focus-within{outline:2px solid var(--workspace-accent);outline-offset:3px}.kling4-upload.has-media{border-style:solid}.kling4-upload img{object-fit:contain;border-radius:6px;width:100%;height:120px}.kling4-upload>span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.kling4-asset-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin:9px 0 12px;display:flex}.kling4-asset-actions button{color:var(--workspace-muted);cursor:pointer;align-items:center;gap:4px;font-size:11px;display:inline-flex}.kling4-url{flex-wrap:wrap;gap:8px;margin-bottom:16px;display:flex}.kling4-dialog input:not([type=file],[type=checkbox]),.kling4-dialog textarea{border:1px solid var(--workspace-line);background:var(--workspace-input);min-width:0;color:var(--workspace-text);font:inherit;border-radius:8px;padding:9px 10px;font-size:13px}.kling4-url>input{width:100%}.kling4-dialog textarea{resize:vertical;width:100%;min-height:100px;margin:12px 0;line-height:1.6;display:block}.kling4-check{color:var(--workspace-text);align-items:center;gap:8px;font-size:13px;display:flex}.kling4-check input{accent-color:var(--workspace-accent)}.kling4-dialog-footer{border-top:1px solid var(--workspace-line);flex:none;justify-content:flex-end;gap:8px;padding:16px 24px;display:flex}.kling4-editor-error{color:var(--destructive);margin-top:16px;font-size:12px}@media (width<=767px){.kling4-dialog{max-width:calc(100vw - 24px);max-height:88dvh}.kling4-dialog-header,.kling4-editor-body{padding:18px}.kling4-dialog-footer{padding:12px 18px}.kling4-tools{gap:2px}.kling4-tools>button{padding:4px 6px;font-size:11px}.kling4-upload{min-height:112px;padding:12px 8px}}.kling4-source-preview{background:var(--workspace-input);border-radius:10px;width:100%;max-height:220px;margin:12px 0}.kling4-controls button:focus-visible,.kling4-dialog button:focus-visible,.kling4-dialog input:focus-visible{outline:2px solid var(--workspace-accent);outline-offset:2px}.creation-detail,.creation-reference-picker{--workspace-text:var(--brand-text);--workspace-accent:var(--brand-lime);--workspace-line:var(--studio-line);--workspace-panel:var(--studio-surface);--workspace-input:var(--studio-raised);--workspace-muted:var(--brand-muted);color:var(--brand-text);background:var(--studio-surface);border:1px solid var(--studio-line)}.creation-detail[data-slot=dialog-content]{border-radius:20px;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:0;width:min(1200px,100vw - 40px);max-width:none;max-height:calc(100dvh - 40px);padding:0;overflow:auto}.creation-detail-preview{background:var(--studio-canvas);place-items:center;min-height:350px;padding:24px;display:grid;position:relative}.creation-detail-preview img,.creation-detail-preview video{object-fit:contain;border-radius:8px;width:100%;max-height:calc(100dvh - 100px)}.creation-detail-close{background:var(--studio-raised);width:36px;height:36px;color:var(--brand-text);z-index:1;border-radius:50%;place-items:center;font-size:24px;display:grid;position:absolute;top:12px;right:12px}.creation-detail-info{flex-direction:column;gap:18px;min-width:0;padding:36px 28px;display:flex}.creation-detail-info [data-slot=dialog-description],.creation-detail-info dt,.creation-detail-prompt h3{color:var(--brand-muted);font-size:12px}.creation-detail-prompt{border-bottom:1px solid var(--studio-line);padding:12px 0 22px}.creation-detail-prompt p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;margin-top:10px;line-height:1.7;overflow:auto}.creation-detail-info dl{gap:14px;display:grid}.creation-detail-info dl>div{justify-content:space-between;gap:16px;display:flex}.creation-detail-info dd{text-align:right;overflow-wrap:anywhere;font-size:12px}.creation-detail-actions{gap:8px;margin-top:auto;padding-top:30px;display:grid}.creation-detail-actions button{background:var(--studio-raised);min-height:40px;color:var(--brand-text);border-radius:9px;justify-content:center;align-items:center;gap:8px;display:flex}.creation-detail-actions button:first-child{background:var(--brand-lime);color:var(--brand-ink)}.creation-detail-actions button:hover{filter:brightness(1.12)}.creation-reference-picker[data-slot=dialog-content]{width:min(760px,100vw - 32px);max-width:none;max-height:80dvh;padding:28px;overflow-y:auto}.creation-reference-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.creation-reference-grid button{border:1px solid var(--studio-line);text-align:left;border-radius:12px;min-width:0;overflow:hidden}.creation-reference-grid button:hover{border-color:var(--brand-lime)}.creation-reference-grid img{aspect-ratio:1;object-fit:cover;width:100%}.creation-reference-grid span{text-overflow:ellipsis;white-space:nowrap;padding:10px;font-size:12px;display:block;overflow:hidden}.workspace-video-composer{width:100%;min-width:0}.workspace-image-composer[hidden],.workspace-video-composer[hidden]{display:none}.workspace-starters{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px;display:grid}.workspace-create-shell .workspace-generate{border-radius:50%;width:36px;margin-left:0;padding:0}.workspace-create-shell .workspace-quote{white-space:nowrap;align-items:center;gap:6px;margin-left:auto;display:flex}@media (width<=767px){.creation-detail[data-slot=dialog-content]{grid-template-columns:1fr;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.creation-detail-preview{min-height:180px;padding:16px}.creation-detail-preview img,.creation-detail-preview video{max-height:42dvh}.creation-detail-info{gap:12px;padding:20px}.creation-detail-actions{padding-top:12px}.creation-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-starters{grid-template-columns:1fr;gap:8px}}.workspace-reference-preview{object-fit:cover;border:1px solid var(--workspace-line);border-radius:10px;width:64px;height:64px}.workspace-welcome>svg{color:var(--brand-lime);margin:0 auto 14px}.workspace-create-shell .workspace-image-composer form{max-height:48dvh;overflow-y:auto}.workspace-create-shell.workspace-video-page{height:auto;min-height:100dvh;overflow:visible}.workspace-video-page .workspace-main{height:auto;min-height:100dvh;padding:32px clamp(20px,4vw,56px) 64px}.workspace-video-page .workspace-header{order:0;width:min(100%,1050px);margin:0 auto}.workspace-video-page .workspace-header h1{letter-spacing:-.035em;font-size:clamp(26px,3vw,38px);font-weight:700;line-height:1.2}.workspace-page-description{width:min(100%,1050px);color:var(--workspace-muted);order:1;margin:16px auto 32px;font-size:15px;line-height:1.65}.workspace-video-page .workspace-generator-dock{order:2;align-items:stretch}.workspace-video-page .workspace-video-composer{width:100%}.workspace-create-shell.workspace-video-page .workspace-composer{max-height:none;padding:clamp(16px,2.5vw,28px);overflow:visible}.workspace-video-page .workspace-prompt textarea{min-height:130px;font-size:16px}.workspace-video-page .workspace-history{flex:none;order:3;padding-top:32px;overflow:visible}.workspace-model-catalog{order:4;width:min(100%,1050px);margin:48px auto 0}.workspace-model-catalog h2{letter-spacing:-.025em;margin-bottom:20px;font-size:24px;font-weight:650}.workspace-model-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.workspace-model-card{border:1px solid var(--workspace-line);border-radius:var(--radius-xl);background:var(--workspace-panel);padding:22px}.workspace-model-card[data-selected=true]{border-color:var(--workspace-accent)}.workspace-model-card h3{margin:18px 0 10px;font-size:17px;font-weight:600}.workspace-model-card p{color:var(--workspace-muted);margin-top:6px;font-size:12px;line-height:1.6}.workspace-model-card-actions{flex-wrap:wrap;align-items:center;gap:12px;margin-top:24px;display:flex}.workspace-model-card-actions :is(a,button){align-items:center;gap:6px;min-height:44px;font-size:13px;display:inline-flex}.workspace-model-card-actions button{border:1px solid var(--workspace-line);border-radius:var(--radius-lg);background:var(--workspace-input);cursor:pointer;padding:8px 14px}.workspace-model-card-actions button[aria-pressed=true]{color:var(--workspace-accent)}.workspace-model-card-actions a{color:var(--workspace-muted)}.workspace-reference-inputs{margin-bottom:24px}.workspace-reference-prompt{position:relative}.workspace-reference-placeholder{pointer-events:none;color:var(--workspace-muted);font-size:16px;line-height:1.75;position:absolute;inset:3px 2px auto}.workspace-reference-placeholder>span{border-radius:var(--radius-md);background:var(--workspace-input);color:var(--workspace-accent);padding:0 5px;display:inline-block}.workspace-reference-strip{flex-wrap:wrap;align-items:flex-start;gap:12px;display:flex}.workspace-reference-item{width:104px;min-width:0;position:relative}.workspace-reference-item :is(img,video){object-fit:cover;border-radius:var(--radius-lg);background:var(--workspace-bg);width:104px;height:104px}.workspace-reference-tag{color:var(--workspace-muted);margin-top:8px;font-size:12px;display:block}.workspace-reference-tag:hover{color:var(--workspace-accent)}.workspace-reference-remove{border-radius:var(--radius-md);background:var(--workspace-bg);place-items:center;width:28px;height:28px;display:grid;position:absolute;top:4px;right:4px}.workspace-reference-upload{border:2px dashed var(--workspace-line);border-radius:var(--radius-lg);background:var(--workspace-input);width:78px;height:104px;color:var(--workspace-text);cursor:pointer;flex:0 0 78px;justify-content:center;align-items:center;transition:border-color .15s;display:inline-flex;position:relative}.workspace-reference-upload:hover{border-color:var(--workspace-accent)}.workspace-reference-upload input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.workspace-reference-assets{border-radius:var(--radius-md);width:44px;height:44px;color:var(--workspace-muted);align-self:flex-end;place-items:center;margin-left:auto;display:grid}.workspace-reference-assets:hover{background:var(--workspace-input)}.workspace-reference-inputs>p{color:var(--workspace-muted);margin-top:12px;font-size:13px;line-height:1.6}.workspace-reference-inputs>[role=alert]{color:var(--destructive)}.workspace-reference-inputs>[role=alert] button{text-decoration:underline}.workspace-reference-upload:focus-within,.workspace-video-page :is(button,a,textarea):focus-visible{outline:2px solid var(--workspace-accent);outline-offset:3px}.workspace-reference-upload[aria-disabled=true],.workspace-video-page button:disabled,.workspace-video-page .workspace-generate[aria-disabled=true]{opacity:.5;cursor:default}.creation-reference-grid video{aspect-ratio:16/9;object-fit:cover;width:100%}@media (width<=1100px){.workspace-model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=767px){.workspace-video-page .workspace-main{padding:76px 16px 40px}.workspace-video-page .workspace-header{flex-direction:column;align-items:flex-start;gap:16px;padding-left:0}.workspace-video-page .workspace-generator-dock{display:block}.workspace-model-grid{grid-template-columns:1fr}.workspace-video-page .workspace-composer-toolbar{flex-wrap:wrap}.workspace-video-page .workspace-model-menu,.workspace-video-page .workspace-parameter-menu{max-width:calc(100vw - 64px)}}.workspace-reference-audio{width:210px}.workspace-audio-preview{border-radius:var(--radius-lg);background:var(--workspace-input);height:104px;color:var(--workspace-accent);place-items:center;gap:12px;padding:10px;display:grid}.workspace-audio-preview audio{width:190px;height:32px}.workspace-reference-tabs{border-bottom:1px solid var(--workspace-line);gap:8px;padding-bottom:12px;display:flex}.workspace-reference-tabs button{border-radius:var(--radius-lg);min-height:44px;padding:10px 20px}.workspace-reference-tabs [aria-selected=true]{background:var(--workspace-input);color:var(--workspace-accent)}.workspace-reference-drop{gap:16px;padding:12px 0;display:grid}.workspace-reference-drop p{color:var(--workspace-muted);font-size:13px;line-height:1.7}.workspace-reference-drop [role=alert]{color:var(--destructive)}.workspace-reference-file{border:1px dashed var(--workspace-line);border-radius:var(--radius-xl);cursor:pointer;place-content:center;justify-items:center;gap:18px;min-height:200px;padding:24px;display:grid;position:relative}.workspace-reference-file:hover,.workspace-reference-file:focus-within{border-color:var(--workspace-accent)}.workspace-reference-file input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.workspace-mention-options{flex-wrap:wrap;gap:8px;display:flex}.workspace-mention-options button{background:var(--workspace-input);border-radius:var(--radius-md);min-height:36px;color:var(--workspace-accent);padding:6px 10px}.reference-how{order:3;width:min(100%,1050px);margin:64px auto 0}.reference-how h2{letter-spacing:-.035em;font-size:clamp(26px,3vw,36px);font-weight:700}.reference-how-intro{color:var(--workspace-muted);margin-top:12px;line-height:1.65}.reference-how-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:28px 0 0;padding:0;list-style:none;display:grid}.reference-how-grid h3{align-items:baseline;gap:10px;margin:22px 0 10px;font-size:18px;font-weight:600;display:flex}.reference-how-grid h3>span{color:var(--workspace-accent);font-size:12px}.reference-how-grid li>p{color:var(--workspace-muted);font-size:14px;line-height:1.75}.reference-how-art{border:1px solid var(--workspace-line);border-radius:var(--radius-xl);background:radial-gradient(ellipse at top, color-mix(in srgb, var(--workspace-accent) 9%, var(--workspace-panel)), var(--workspace-bg));justify-content:center;align-items:center;gap:8px;height:224px;padding:18px;display:flex;overflow:hidden}.reference-how-art-0{flex-wrap:wrap;align-content:center}.reference-how-upload,.reference-how-media{border:1px solid var(--workspace-line);border-radius:var(--radius-lg);background:var(--workspace-panel);place-content:center;justify-items:center;gap:8px;width:calc(50% - 8px);height:80px;display:grid}.reference-how-media span{color:var(--workspace-muted);font-size:10px}.reference-how-upload{color:var(--workspace-accent);border-style:dashed}.reference-how-editor,.reference-how-history{border:1px solid var(--workspace-line);border-radius:var(--radius-lg);background:var(--workspace-panel);width:100%;padding:16px}.reference-how-tags{color:var(--workspace-accent);flex-wrap:wrap;gap:6px;font-size:10px;display:flex}.reference-how-tags span{border-radius:var(--radius-sm);background:var(--workspace-input);padding:5px}.reference-how-editor p{margin:14px 0;font-size:12px;line-height:1.65}.reference-how-editor-tools,.reference-how-history>div:first-child,.reference-how-result-actions{color:var(--workspace-muted);justify-content:space-between;align-items:center;gap:8px;font-size:11px;display:flex}.reference-how-editor-tools svg{background:var(--workspace-accent);color:var(--workspace-bg);border-radius:50%;width:28px;height:28px;padding:5px}.reference-how-history strong{color:var(--workspace-text)}.reference-how-result{border-radius:var(--radius-md);background:var(--workspace-input);place-items:center;gap:12px;margin:12px 0;padding:16px;display:grid}.reference-how-result span{color:var(--workspace-accent);align-items:center;gap:6px;font-size:11px;display:flex}.workspace-video-page .workspace-model-menu{z-index:30;top:calc(100% + 8px);bottom:auto}@media (width<=767px){.reference-how{margin-top:44px}.reference-how-grid{grid-template-columns:1fr;gap:32px}.reference-how-art{height:240px}.reference-how-editor,.reference-how-history{max-width:320px}}.workspace-studio-page .workspace-main{isolation:isolate;padding:130px clamp(20px,4vw,64px) 72px;position:relative}.reference-scene{z-index:-1;pointer-events:none;height:790px;position:absolute;inset:0 0 auto;overflow:hidden}.reference-scene img{object-fit:cover;object-position:center 42%;opacity:.65;width:100%;height:100%}.reference-scene:after{content:"";background:linear-gradient(180deg, color-mix(in srgb, var(--workspace-bg) 30%, transparent), color-mix(in srgb, var(--workspace-bg) 30%, transparent) 38%, var(--workspace-bg) 100%);position:absolute;inset:0}.workspace-studio-page .workspace-header{text-align:center;justify-content:center;margin-bottom:0}.workspace-studio-page .workspace-header h1{letter-spacing:-.045em;font-size:clamp(38px,4.5vw,66px);font-weight:750;line-height:1.12}.workspace-studio-page .workspace-page-description{text-align:center;max-width:650px;color:color-mix(in srgb, var(--workspace-text) 82%, transparent);text-wrap:balance;margin:20px auto 58px;font-size:18px;line-height:1.7}.workspace-studio-page .workspace-generator-dock{width:min(100%,960px)}.workspace-create-shell .workspace-studio-composer .workspace-composer{background:color-mix(in srgb, var(--workspace-panel) 74%, transparent);border-color:color-mix(in srgb, var(--workspace-text) 18%, transparent);-webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px);box-shadow:0 24px 70px color-mix(in srgb, var(--workspace-bg) 50%, transparent), inset 0 1px 0 color-mix(in srgb, var(--workspace-text) 6%, transparent);border-radius:24px;gap:12px;padding:18px}.workspace-studio-composer .workspace-reference-inputs{margin-bottom:0}.workspace-studio-composer .workspace-start-frame{align-items:flex-end}.workspace-studio-composer .workspace-reference-upload{background:color-mix(in srgb, var(--workspace-text) 5%, transparent);border-width:1px;border-color:color-mix(in srgb, var(--workspace-text) 20%, transparent);border-radius:12px;flex-basis:56px;width:56px;height:72px}.workspace-studio-composer .workspace-reference-item{width:72px}.workspace-studio-composer .workspace-reference-item :is(img,video){width:72px;height:72px}.workspace-studio-composer .workspace-reference-audio{width:210px}.workspace-studio-composer .workspace-audio-preview{height:72px}.workspace-studio-composer .workspace-reference-limits{display:none}.workspace-studio-composer .workspace-reference-prompt{padding-bottom:16px}.workspace-studio-composer .workspace-prompt textarea{min-height:48px;padding:0;font-size:15px;line-height:1.6}.workspace-studio-composer .workspace-prompt textarea:focus-visible{outline:none}.workspace-studio-composer .workspace-reference-placeholder{font-size:15px;line-height:1.6;inset:0 0 auto}.reference-prompt-count{color:var(--workspace-muted);font-size:10px;line-height:16px;position:absolute;bottom:0;right:0}.workspace-studio-composer .workspace-composer-toolbar{gap:8px}.reference-mode-pill{background:color-mix(in srgb, var(--workspace-text) 8%, transparent);white-space:nowrap;border-radius:999px;align-items:center;gap:8px;min-height:36px;padding:0 12px;display:inline-flex}.workspace-studio-composer .workspace-mode-label{background:color-mix(in srgb, var(--workspace-text) 8%, transparent);border:0;border-radius:999px;min-height:36px;padding:0 12px;font-size:13px}.workspace-studio-composer :is(.workspace-model-trigger,.workspace-settings-toggle,.reference-audio-toggle){background:0 0;border:0;max-width:250px;height:36px;padding:0 8px;font-size:13px}.reference-audio-toggle{color:var(--workspace-muted);justify-content:center;align-items:center;display:inline-flex;border-left:1px solid var(--workspace-line)!important}.reference-audio-toggle[aria-pressed=true]{color:var(--workspace-text)}.workspace-studio-composer .workspace-generate{border-radius:var(--control-radius);width:auto;min-width:110px;height:auto;min-height:44px;font-size:var(--control-font-size);gap:8px;padding:8px 16px}.workspace-studio-composer :is(.workspace-model-menu,.workspace-parameter-menu){background:var(--workspace-panel);-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px);border-color:color-mix(in srgb, var(--workspace-text) 12%, transparent);border-radius:20px;width:390px;max-width:calc(100vw - 40px);max-height:min(360px,45dvh);padding:12px;position:absolute;top:auto;bottom:calc(100% + 18px)}.workspace-studio-composer .workspace-model-menu>p{display:none}.workspace-studio-composer .workspace-model-search{border:0;border-bottom:1px solid var(--workspace-line);background:0 0;border-radius:0;height:46px;margin-bottom:8px;padding:12px;font-size:14px}.workspace-studio-composer .workspace-model-menu button{border-radius:12px;min-height:74px;padding:12px}.workspace-studio-composer .workspace-model-menu button img,.workspace-studio-composer .workspace-model-menu button>span>svg{background:var(--workspace-input);border-radius:10px;width:38px;height:38px;padding:8px}.workspace-studio-composer .workspace-model-copy{text-align:left;gap:6px;display:grid}.workspace-studio-composer .workspace-model-copy>span{font-size:14px;font-weight:600}.workspace-studio-composer .workspace-model-copy small{color:var(--workspace-muted);font-size:11px;line-height:1.5}.workspace-studio-composer .workspace-parameter-menu{flex-direction:column;padding:20px;display:flex;left:auto;right:0}.workspace-studio-composer .workspace-parameter-section{order:3}.workspace-studio-composer .workspace-parameter-section:has(.workspace-ratio-grid){order:1}.workspace-studio-composer .workspace-parameter-section:has(.workspace-parameter-label-row){order:2}.workspace-studio-composer .workspace-parameter-section:has(.workspace-audio-option){order:4}.workspace-studio-composer .workspace-parameter-section p{font-size:12px;font-weight:400}.workspace-studio-composer :is(.workspace-option-grid,.workspace-ratio-grid){background:var(--workspace-input);border-radius:12px;gap:3px;padding:4px}.workspace-studio-composer :is(.workspace-option-grid,.workspace-ratio-grid) button{background:0 0;border-color:#0000;flex:1}.workspace-studio-composer :is(.workspace-option-grid,.workspace-ratio-grid) button[aria-pressed=true]{background:color-mix(in srgb, var(--workspace-text) 9%, transparent);color:var(--workspace-text)}.workspace-studio-page .reference-how{border:1px solid var(--workspace-line);background:var(--workspace-bg);border-radius:24px;margin-top:110px;padding:36px}.workspace-studio-page .reference-how h2{font-size:clamp(28px,3vw,40px)}.workspace-studio-page .reference-how-grid{gap:20px;margin-top:32px}.workspace-studio-page .reference-how-art{isolation:isolate;border:0;border-radius:18px;height:240px;padding:14px;position:relative}.reference-how-photo{object-fit:cover;z-index:-2;width:100%;height:100%;position:absolute;inset:0}.workspace-studio-page .reference-how-art:after{content:"";z-index:-1;background:linear-gradient(transparent, color-mix(in srgb, var(--workspace-bg) 65%, transparent));position:absolute;inset:0}.workspace-studio-page .reference-how-art-0{place-content:flex-start flex-end;padding:18px}.workspace-studio-page .reference-how-upload{background:color-mix(in srgb, var(--workspace-bg) 65%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-color:color-mix(in srgb, var(--workspace-text) 50%, transparent);width:60px;height:72px;color:var(--workspace-text)}.reference-how-floating-reference{border:2px solid var(--workspace-accent);width:122px;height:156px;box-shadow:0 12px 30px var(--workspace-bg);border-radius:12px;position:absolute;bottom:-12px;left:22px;overflow:hidden;transform:rotate(-12deg)}.reference-how-floating-reference img{object-fit:cover;width:100%;height:100%}.reference-how-floating-reference span{bottom:0;background:color-mix(in srgb, var(--workspace-bg) 75%, transparent);gap:5px;padding:9px;font-size:10px;display:flex;position:absolute;inset-inline:0}.reference-how-audio-chip{background:var(--workspace-panel);border-radius:9px;align-items:center;gap:6px;padding:10px;font-size:10px;display:flex;position:absolute;bottom:25px;right:12px}.workspace-studio-page .reference-how-editor{background:color-mix(in srgb, var(--workspace-bg) 80%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:14px;transform:rotate(-3deg)}.reference-how-play{flex-direction:column;align-items:center;gap:12px;display:flex}.reference-how-play>svg{box-sizing:content-box;border:1px solid color-mix(in srgb, var(--workspace-text) 45%, transparent);background:color-mix(in srgb, var(--workspace-bg) 35%, transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:50%;padding:18px}.reference-how-play span{background:var(--workspace-panel);color:var(--workspace-accent);border-radius:99px;align-items:center;gap:6px;padding:7px 10px;font-size:11px;display:flex}.workspace-studio-page .workspace-model-card{background:color-mix(in srgb, var(--workspace-panel) 55%, var(--workspace-bg));border-radius:18px;padding:24px}.workspace-studio-page .workspace-model-card[data-selected=true]{border-color:color-mix(in srgb, var(--workspace-accent) 50%, var(--workspace-line))}.reference-media-dialog[data-slot=dialog-content]{border-radius:22px;width:min(960px,100vw - 32px);padding:28px}.reference-media-dialog .workspace-reference-tabs{gap:24px;padding-bottom:0}.reference-media-dialog .workspace-reference-tabs button{border-bottom:2px solid #0000;border-radius:0;padding:12px 0}.reference-media-dialog .workspace-reference-tabs [aria-selected=true]{color:var(--workspace-text);border-bottom-color:var(--workspace-text);background:0 0}.reference-media-dialog .workspace-reference-file{background:color-mix(in srgb, var(--workspace-text) 2%, transparent);min-height:260px;margin:12px 0}@media (width<=1100px){.workspace-create-shell .workspace-studio-composer .workspace-composer-toolbar{flex-wrap:wrap;gap:4px}.workspace-create-shell .workspace-studio-composer .workspace-control-anchor:has(.workspace-model-trigger){flex-shrink:0}.workspace-create-shell .workspace-studio-composer .workspace-control-anchor:has(.workspace-settings-toggle){flex:48px;max-width:190px}.reference-mode-pill{width:100%;min-height:30px;color:var(--workspace-muted);background:0 0;padding:0 2px;font-size:11px}.workspace-studio-composer .workspace-mode-label{background:0 0;min-height:30px;padding:0 2px;font-size:11px}.workspace-studio-page .reference-how{padding:26px}.workspace-studio-page .reference-how-art{height:210px}}@media (width<=767px){.workspace-studio-page .workspace-main{padding:130px 16px 48px}.workspace-studio-page .workspace-header{padding-left:0}.workspace-studio-page .workspace-header h1{font-size:40px}.workspace-studio-page .workspace-page-description{margin:18px auto 32px;font-size:15px}.reference-scene{height:730px}.workspace-create-shell .workspace-studio-composer .workspace-composer{border-radius:20px;padding:14px}.workspace-studio-composer .workspace-prompt textarea{min-height:72px;font-size:14px}.workspace-studio-composer .workspace-reference-placeholder{font-size:14px}.reference-mode-pill{width:100%;min-height:30px;color:var(--workspace-muted);background:0 0;padding:0 2px}.workspace-studio-composer .workspace-composer-toolbar>.workspace-control-anchor{position:static}.workspace-studio-composer :is(.workspace-model-menu,.workspace-parameter-menu){width:100%;max-width:100%;max-height:min(360px,45dvh);bottom:60px;left:0;right:0}.workspace-studio-composer .workspace-settings-toggle{padding:0 6px}.workspace-studio-page .reference-how{margin-top:70px;padding:24px 18px}.workspace-studio-page .reference-how-grid{grid-template-columns:1fr;gap:32px}.workspace-studio-page .reference-how-art{height:260px}.reference-media-dialog[data-slot=dialog-content]{padding:22px}.reference-media-dialog .workspace-reference-file{min-height:200px}}.workspace-studio-composer .workspace-image-composer{width:100%}.workspace-studio-composer .workspace-image-panel{max-width:none}.workspace-create-shell .workspace-studio-composer .workspace-image-composer form{max-height:none;overflow:visible}.workspace-create-shell .workspace-studio-composer .workspace-image-input .workspace-image-prompt{min-height:62px;box-shadow:none;border:0;outline:none;padding:0;font-size:16px}.workspace-studio-composer .workspace-image-input .workspace-reference-upload{border:1px dashed var(--workspace-line);border-radius:12px}.workspace-studio-composer .workspace-image-input .workspace-reference-upload svg{width:25px;height:25px}.workspace-create-shell .workspace-history.creation-history{overflow-anchor:none;gap:18px;width:100%;padding:0 6px 30px}.creation-history-list{gap:inherit;flex-direction:column;flex-shrink:0;display:flex}.creation-history-older{flex-shrink:0;justify-content:center;display:flex}.creation-history-toolbar{z-index:2;background:var(--workspace-bg);flex-shrink:0;align-items:center;gap:8px;padding:10px 0;position:sticky;top:0}.creation-history-title{color:var(--workspace-muted);margin-right:auto;font-size:13px}.creation-history-toolbar select{min-height:32px;font-size:12px}.creation-history-row{border:1px solid var(--workspace-line);border-radius:var(--radius-lg);background:var(--workspace-panel);flex-shrink:0;grid-template-rows:minmax(0,1fr) auto;grid-template-columns:280px minmax(0,1fr);display:grid;overflow:hidden}.creation-history-info{flex-direction:column;gap:14px;min-width:0;padding:16px 14px 12px;display:flex}.creation-history-tags{flex-wrap:wrap;gap:6px;display:flex}.creation-history-tags span{border:1px solid var(--workspace-line);color:var(--workspace-muted);border-radius:5px;padding:4px 7px;font-size:12px;line-height:1.3}.creation-history-prompt{scrollbar-width:thin;max-height:200px;overflow-y:auto}.creation-history-prompt p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:13px;line-height:1.6}.creation-history-references{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.creation-history-references img{object-fit:cover;border-radius:5px;width:36px;height:36px}.creation-history-meta{color:var(--workspace-muted);flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:auto;padding-top:10px;font-size:12px;display:flex}.creation-history-meta small{font-size:inherit;flex-basis:100%}.creation-history-meta time{font-variant-numeric:tabular-nums}.creation-history-status{font-size:11px}.creation-history-actions{flex-wrap:wrap;grid-area:2/1;gap:8px;padding:0 14px 14px;display:flex}.creation-history-media{scrollbar-width:thin;grid-area:1/2/span 2;align-items:center;gap:12px;min-width:0;display:flex;overflow-x:auto}.creation-history-output{flex-shrink:0;max-width:100%;position:relative}.creation-history-output video{object-fit:contain;width:auto;max-width:100%;height:360px;display:block}.creation-history-output>button{background:var(--workspace-panel);position:absolute;top:10px;right:10px}.creation-history-images{gap:12px;min-width:0;max-width:100%;display:flex}.creation-history-images>div{flex-shrink:0;max-width:100%}.creation-history-image-open{cursor:zoom-in;max-width:100%;display:block}.creation-history-image-open img{object-fit:contain;width:auto;max-width:100%;height:400px;display:block}.creation-history-placeholder{width:100%;min-height:280px;color:var(--workspace-muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:24px;display:flex}.creation-history-placeholder p{overflow-wrap:anywhere;max-width:420px;font-size:13px}.creation-history-placeholder .workspace-task-progress{width:min(100%,300px)}.creation-history-more{flex-shrink:0;align-self:center}.creation-history :is(button,select):focus-visible{outline:2px solid var(--workspace-accent);outline-offset:-2px}@media (width<=1023px){.creation-history-row{grid-template-rows:auto auto auto;grid-template-columns:minmax(0,1fr)}.creation-history-media{grid-area:2/1}.creation-history-actions{grid-area:3/1;padding-top:12px}.creation-history-meta{padding-top:0}.creation-history-image-open img,.creation-history-output video{height:auto;max-height:400px}.creation-history-placeholder{min-height:180px}}.workspace-expanded-composer{display:contents}.workspace-expanded-composer[hidden],.workspace-compact-trigger[hidden]{display:none}.workspace-create-shell .workspace-history-dock.is-collapsed{width:min(100%,760px)}.workspace-compact-trigger{border:1px solid var(--workspace-line);background:var(--workspace-panel);width:100%;min-height:64px;color:var(--workspace-muted);text-align:left;cursor:text;box-shadow:0 8px 28px color-mix(in srgb, var(--workspace-bg) 35%, transparent);border-radius:20px;align-items:center;gap:14px;padding:10px 14px;display:flex}.workspace-compact-trigger:hover{border-color:color-mix(in srgb, var(--workspace-muted) 60%, var(--workspace-line))}.workspace-compact-kind,.workspace-compact-expand{flex-shrink:0;place-items:center;display:grid}.workspace-compact-kind{background:var(--workspace-input);width:36px;height:36px;color:var(--workspace-text);border-radius:10px}.workspace-compact-expand{background:var(--workspace-input);border-radius:50%;width:28px;height:28px}.workspace-compact-prompt{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:14px;overflow:hidden}.workspace-compact-prompt.has-draft{color:var(--workspace-text)}.workspace-history-dock:not(.is-collapsed){margin-top:28px}.workspace-collapse-composer{min-height:28px;color:var(--workspace-muted);cursor:pointer;border-radius:8px;align-items:center;gap:5px;padding:4px 8px;font-size:11px;display:inline-flex;position:absolute;bottom:calc(100% + 4px);right:6px}.workspace-collapse-composer:hover{background:var(--workspace-input);color:var(--workspace-text)}.workspace-collapse-composer:disabled{opacity:.5;cursor:default}.workspace-create-shell .workspace-history-dock .workspace-prompt textarea,.workspace-create-shell .workspace-history-dock .workspace-image-input .workspace-image-prompt{min-height:72px;max-height:120px}.workspace-compact-trigger:focus-visible,.workspace-collapse-composer:focus-visible{outline:2px solid var(--workspace-accent);outline-offset:2px}@media (width<=767px){.workspace-compact-trigger{border-radius:16px;gap:10px;min-height:56px;padding:8px 10px}.workspace-collapse-composer{min-height:36px}.workspace-history-dock:not(.is-collapsed){margin-top:36px}}
