.studio-shell{width:100%;min-width:0;padding:16px var(--gutter)}.studio-workspace,.video-workspace{grid-template-columns:var(--panel-w) minmax(0,1fr);align-items:start;gap:16px;display:grid}.studio-workspace{min-width:0}.studio-controls,.playground-editor{background:var(--surface-1);border:1px solid var(--line-2);border-radius:var(--r-xl);min-width:0;box-shadow:var(--shadow-card)}.studio-controls,.video-workspace .playground-editor{top:calc(var(--header-h) + 16px);height:calc(100dvh - var(--header-h) - 32px);flex-direction:column;display:flex;position:sticky;overflow:hidden}.studio-controls-scroll,.playground-editor-scroll{scrollbar-gutter:stable;flex-direction:column;gap:20px;min-height:0;padding:20px;display:flex;overflow-y:auto}.studio-panel-head{gap:5px;display:grid}.studio-panel-head h2{font-size:18px;font-weight:640;line-height:24px}.studio-panel-head p{color:var(--text-2);font-size:13px;line-height:18px}.studio-control-section{min-width:0}.composer-label{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.composer-label h2,.studio-instructions label{font-size:13px;font-weight:560;line-height:18px}.composer-label>span,.field-optional,.composer-reference-caption,.composer-hint,.inactive-inputs{color:var(--text-3);font-size:12px;line-height:16px}.composer-reference-caption{justify-content:space-between;align-items:center;margin-top:8px;display:flex}.composer-reference-caption .studio-text-button{min-height:24px;font-size:12px}.studio-scene-canvas,.studio-appearance-card{border-radius:var(--r-md);min-width:0}.studio-scene-drop,.studio-character-upload,.reference-add{border:1px solid var(--line-2);border-radius:var(--r-md);background:var(--surface-2);width:100%;min-height:132px;transition:background var(--t-fast),border-color var(--t-fast);box-shadow:var(--hairline-top);flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:16px;display:flex}@media (hover:hover){.studio-scene-drop:hover:not(:disabled),.studio-character-upload:hover:not(:disabled),.reference-add:hover:not(:disabled){border-color:var(--line-3);background:var(--surface-3)}}.studio-scene-canvas.is-dragging{box-shadow:var(--focus-ring)}.studio-source-symbol,.studio-character-symbols,.reference-add>svg{border-radius:var(--r-pill);background:var(--surface-3);width:40px;height:40px;color:var(--text-1);padding:10px}.studio-source-symbol{place-items:center;display:grid}.studio-source-symbol>svg{width:18px;height:18px}.studio-scene-drop strong,.studio-character-upload strong{font-size:14px;font-weight:600;line-height:20px;display:block}.studio-scene-drop>span:last-of-type,.studio-character-upload small{color:var(--text-3);margin-top:2px;font-size:12px;line-height:16px;display:block}.studio-character-upload{min-height:116px}.studio-file-input,.studio-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.studio-model-section .model-picker{flex:none;min-width:0;max-width:60%}.studio-model-section .selected-model-card{color:var(--text-2);align-items:center;gap:6px;min-height:28px;font-size:12px;display:flex}.studio-model-section .selected-model-card strong{font-weight:500}.studio-model-section .selected-model-card .arrow-well{background:0 0;width:20px;height:20px}.studio-model-section .selected-model-card .arrow-well svg{width:14px}.studio-model-section .selected-model-card .studio-media-preview{width:24px;height:24px}.studio-model-section .composer-label{gap:4px}.composer-source-file{border:1px solid var(--line-2);background:var(--surface-2);border-radius:var(--r-md);overflow:hidden}.composer-source-thumbnail{background:var(--bg-well);height:176px}.composer-source-file-info{gap:4px;padding:12px;display:grid}.composer-source-file-info>strong{white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.composer-source-file-info>span{color:var(--text-3);font-variant-numeric:tabular-nums;font-size:12px}.composer-source-file-info>div{gap:8px;display:flex}.composer-source-file-info button{background:var(--surface-3);border:1px solid var(--line-2);border-radius:var(--r-xs);justify-content:center;align-items:center;min-height:28px;padding:0 10px;font-size:12px;display:inline-flex}.studio-appearance-list,.reference-tiles{flex-wrap:wrap;gap:8px;display:flex}.studio-reference-tile,.playground-reference{border:1px solid var(--line-2);background:var(--surface-2);border-radius:12px;width:72px;height:72px;position:relative}.studio-reference-tile.is-main-face{border:2px solid var(--accent)}.studio-reference-tile>.studio-media-preview,.playground-reference>.studio-media-preview{border-radius:11px;width:100%;height:100%;overflow:hidden}.studio-reference-remove,.playground-reference>button{border:1px solid var(--line-3);background:var(--surface-1);border-radius:50%;place-items:center;width:22px;height:22px;display:grid;position:absolute;top:3px;right:3px}.studio-reference-select{border-radius:12px;justify-content:flex-start;align-items:flex-end;width:100%;min-height:44px;padding:3px;display:flex;position:absolute;inset:0}.studio-reference-select>.ds-badge{height:22px;padding:0 4px;font-size:12px}.studio-add-reference{border:1px solid var(--line-2);background:var(--surface-2);width:72px;min-height:72px;color:var(--text-2);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:12px;display:flex}.studio-main-face-hint{color:var(--accent-text);margin-top:8px;font-size:12px}.studio-instructions{flex-direction:column;gap:8px;min-width:0;display:flex}.studio-instructions label{justify-content:space-between;align-items:center;gap:8px;display:flex}.studio-instructions textarea{resize:none;width:100%;height:96px;min-height:96px;max-height:220px;padding:12px 14px;font-size:14px;line-height:20px}.studio-prompt-section fieldset{border:0;min-width:0;margin:0;padding:0}.studio-instruction-meta:has(span:empty){display:none}.studio-instruction-meta{color:var(--text-3);text-align:right;font-size:12px}.studio-settings-grid,.studio-settings-card,.composer-output-count{background:var(--surface-2);border:1px solid var(--line-2);border-radius:var(--r-md);overflow:hidden}.studio-settings-card .studio-settings-grid{background:0 0;border:0;border-radius:0}.choice-button{text-align:left;align-items:center;gap:10px;width:100%;min-height:52px;padding:0 12px;display:flex}.choice-button+.choice-button,.studio-settings-card>.studio-settings-grid,.video-mode-control{border-top:1px solid var(--line-1)}.choice-icon{color:var(--text-3);flex:none}.choice-copy{flex:1;justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.choice-copy small{color:var(--text-2);font-size:14px;font-weight:500}.choice-copy strong{font-variant-numeric:tabular-nums;font-size:14px;font-weight:600}.arrow-well{background:var(--surface-3);width:28px;height:28px;color:var(--text-2);border-radius:50%;flex:none;place-items:center;display:grid}.arrow-well svg{width:15px;height:15px}@media (hover:hover){.choice-button:hover:not(:disabled),.engine-button:hover:not(:disabled),.video-mode-control:hover:not(:disabled){background:var(--surface-3)}}.choice-button:disabled,.engine-button:disabled,.video-mode-control:disabled{opacity:.6}.studio-video-settings>.composer-hint{padding:10px 2px 0}.engine-button{text-align:left;align-items:center;gap:10px;width:100%;min-height:64px;padding:12px;display:flex}.engine-button>span:not(.model-mark):not(.arrow-well){flex:1;min-width:0}.engine-button small{color:var(--text-3);font-size:12px;display:block}.engine-button strong{font-size:14px;font-weight:600}.engine-button .engine-benefit{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.model-mark{border:1px solid var(--line-2);background:var(--surface-3);width:32px;height:32px;color:var(--text-1);border-radius:10px;flex:none;place-items:center;display:grid}.model-mark svg{width:20px;height:20px}.provider-letter,.ideogram-mark{font-size:23px;font-weight:650}.video-mode-control{align-items:center;gap:10px;width:100%;min-height:52px;padding:0 12px;display:flex}.video-mode-control>span:first-child{color:var(--text-2);align-items:center;gap:10px;display:flex}.video-mode-control>span:first-child svg{color:var(--text-3)}.video-mode-control strong{text-align:right;flex:1;font-size:14px;font-weight:600}.studio-speed-toggle{background:var(--bg-well);border-radius:12px;align-items:center;gap:4px;min-height:44px;padding:4px;display:flex}.studio-speed-toggle button{min-height:36px;color:var(--text-2);border-radius:9px;flex:1;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:560;display:flex}.studio-speed-toggle button[aria-pressed=true]{background:var(--surface-4);color:var(--text-1);box-shadow:var(--shadow-raise)}.more-options{border:1px solid var(--line-2);border-radius:var(--r-md);background:var(--surface-2);width:100%;min-height:52px;color:var(--text-2);align-items:center;gap:10px;padding:0 12px;display:flex}.more-options svg{width:16px;color:var(--text-3)}@media (hover:hover){.more-options:hover:not(:disabled){background:var(--surface-3)}}.studio-create-action,.playground-create{background:var(--surface-1);border-top:1px solid var(--line-1);flex-direction:column;flex:none;gap:10px;margin-top:auto;padding:14px 16px 12px;display:flex}.studio-create-action>.studio-primary,.playground-create>.studio-primary{border-radius:16px;justify-content:center;gap:10px;width:100%;min-height:52px;font-size:15px;font-weight:650}.studio-button-cost{font-variant-numeric:tabular-nums;white-space:nowrap;opacity:.82;align-items:baseline;gap:4px;font-size:14px;font-weight:600;display:inline-flex}.studio-button-cost small{font-size:12px;font-weight:500}.studio-action-caption{color:var(--text-3);font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;gap:6px;font-size:12px;display:flex}.studio-discard{color:var(--text-3);justify-content:center;align-items:center;gap:10px;font-size:12px;display:flex}.studio-discard .studio-text-button{min-height:22px;color:var(--text-3);font-size:12px}.studio-running{background:var(--surface-3);min-height:52px;color:var(--text-2);border-radius:16px;justify-content:center;align-items:center;gap:8px;display:flex}.studio-recovery{flex-direction:column;gap:8px;font-size:13px;display:flex}.studio-inline-notice{border:1px solid var(--line-2);border-radius:var(--r-sm);color:var(--text-2);background:var(--surface-2);padding:10px 12px;font-size:12px;line-height:17px}.studio-output-column{min-width:0;min-height:calc(100dvh - var(--header-h) - 32px);background:var(--bg-well);border:1px solid var(--line-1);border-radius:var(--r-xl);flex-direction:column;display:flex;overflow:hidden}.workspace-result-tabs{border-bottom:1px solid var(--line-1);flex:none;align-items:center;gap:4px;min-height:56px;padding:10px 16px;display:flex}.workspace-result-tabs button{border-radius:var(--r-sm);min-width:80px;min-height:36px;color:var(--text-2);padding:0 14px;font-size:13px;font-weight:560}.workspace-result-tabs button[aria-pressed=true]{color:var(--text-1);background:var(--surface-4);box-shadow:var(--shadow-raise)}.studio-guide{text-align:center;background-image:radial-gradient(var(--line-1) 1px,transparent 1px);background-size:24px 24px;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:440px;padding:56px 24px;display:flex}.canvas-brand{border:1px solid var(--line-2);background:var(--surface-2);width:56px;height:56px;box-shadow:var(--shadow-card);color:var(--accent);border-radius:16px;place-items:center;margin-bottom:20px;display:grid}.studio-guide h2{max-width:380px;margin-bottom:10px;font-size:20px;font-weight:640;line-height:26px}.studio-guide>p{color:var(--text-2);max-width:340px;font-size:14px;line-height:21px}.studio-setup-steps{text-align:left;flex-direction:column;gap:12px;margin:28px 0 0;padding:0;list-style:none;display:flex}.studio-setup-steps li{color:var(--text-2);align-items:center;gap:10px;font-size:13px;display:flex}.studio-setup-steps li>span{border:1px solid var(--line-3);width:20px;height:20px;color:var(--text-3);font-variant-numeric:tabular-nums;background:var(--bg-well);border-radius:50%;flex:none;place-items:center;font-size:12px;display:grid}.studio-loading{min-height:400px;color:var(--text-2);justify-content:center;align-items:center;gap:12px;display:flex}.studio-media-preview{background:var(--bg-well);justify-content:center;align-items:center;min-width:0;height:100%;display:flex;position:relative;overflow:hidden}.studio-media-preview img,.studio-media-preview video{object-fit:contain;border-radius:16px;width:auto;max-width:100%;height:auto;max-height:100%}.studio-media-compact img,.studio-media-compact video{object-fit:cover;border-radius:inherit;width:100%;height:100%}.media-video-placeholder{color:var(--text-3);background:var(--surface-2);place-items:center;animation:2s ease-in-out infinite ds-pulse;display:grid;position:absolute;inset:0}.media-video-badge{border:1px solid var(--line-3);background:var(--surface-1);font-variant-numeric:tabular-nums;border-radius:6px;align-items:center;gap:4px;padding:3px 5px;font-size:12px;display:flex;position:absolute;bottom:6px;right:6px}.media-unavailable{min-height:120px;color:var(--text-3);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:16px;font-size:13px;display:flex}.studio-media-compact .media-unavailable{min-height:0;padding:4px;font-size:12px}.media-unavailable button{color:var(--accent-text);align-items:center;gap:5px;display:flex}.studio-input-review{flex:1;padding:24px}.input-review-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;display:flex}.input-review-heading h2{font-size:16px}.input-review-heading>span,.input-review-next{color:var(--text-3);font-size:13px}.input-review-media{justify-content:center;align-items:center;gap:20px;min-height:350px;display:flex}.input-review-media figure{min-width:0;margin:0}.input-review-source{width:min(65%,400px)}.input-review-source .studio-media-preview{background:0 0;border-radius:16px;height:360px}.input-review-identity{width:120px}.input-review-identity .studio-media-preview{background:0 0;border-radius:16px;height:160px}.input-review-media figcaption{gap:3px;padding:10px 0;font-size:12px;display:grid}.input-review-media figcaption span{color:var(--text-3);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.input-review-next{text-align:center;margin-top:24px}.studio-result-canvas{flex:1;min-width:0;padding:20px}.studio-canvas-toolbar{color:var(--text-3);font-variant-numeric:tabular-nums;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:12px;display:flex}.studio-result{--result-media-h:440px;border-radius:var(--r-lg);background:var(--bg-well);align-items:center;min-width:0;height:440px;display:grid;overflow:hidden}.result-video{justify-content:center;align-items:center;width:100%;min-width:0;height:100%;min-height:0;display:flex}.result-video video{width:auto;max-width:100%;height:auto;max-height:var(--result-media-h,360px);object-fit:contain;border-radius:16px}.studio-result-actions{flex-wrap:wrap;gap:10px;margin-top:16px;display:flex}.studio-result-meta{color:var(--text-3);font-variant-numeric:tabular-nums;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:12px 0;font-size:12px;display:flex}.generation-details{border:1px solid var(--line-2);border-radius:var(--r-lg);background:var(--surface-1);padding:16px;font-size:13px;line-height:20px}.generation-details summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;font-size:14px;font-weight:600;list-style:none;display:flex}.generation-details summary::marker{content:""}.image-input-details>summary::marker{content:""}.generation-details summary::-webkit-details-marker{display:none}.generation-details summary>svg{color:var(--text-3);transition:transform var(--t-med) var(--ease);flex:none}.generation-details[open] summary>svg{transform:rotate(180deg)}.generation-details dl{gap:12px;margin:16px 0;display:grid}.generation-details dl>div{gap:3px;display:grid}.generation-details dt{color:var(--text-3);font-size:12px}.generation-details dd{color:var(--text-1);overflow-wrap:anywhere;margin:0;font-size:13px}.generation-details>p{color:var(--text-2);overflow-wrap:anywhere;font-size:13px;line-height:20px}.studio-progress{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:14px;min-height:340px;padding:24px;display:flex}.studio-progress>p{color:var(--text-2);max-width:380px;font-size:13px;line-height:20px}.studio-output-skeleton{border:1px solid var(--line-2);background:linear-gradient(100deg,var(--surface-1) 10%,var(--surface-3) 48%,var(--surface-4) 52%,var(--surface-1) 90%);background-size:480px 100%;border-radius:16px;flex:none;align-self:center;width:auto;max-width:100%;height:min(420px,48dvh);animation:3s linear infinite ds-shimmer;display:block}.studio-progress-inputs{gap:8px;display:flex}.studio-progress-inputs>.studio-media-preview{border:1px solid var(--line-2);border-radius:10px;width:44px;height:44px}.face-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.face-result-item{border:1px solid var(--line-2);border-radius:var(--r-lg);background:var(--surface-1);min-width:0;overflow:hidden}.face-result-item .studio-result{border-radius:0;height:300px}.face-result-item .studio-result-meta{padding:12px}.face-result-item .studio-secondary{min-height:36px;padding:0 10px;font-size:12px}.face-batch-results>.composer-hint{margin-top:16px}.result-download-wrap{flex-direction:column;gap:8px;max-width:100%;display:inline-flex}.result-download-controls{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.result-download-error,.result-playback-error{border:1px solid var(--danger-line);background:var(--danger-soft);border-radius:var(--r-md);flex-direction:column;gap:8px;padding:12px;font-size:12px;line-height:18px;display:flex}.result-download-error a{color:var(--accent-text)}.result-download-note{color:var(--text-3);font-size:12px}.selection-dialog{background:var(--surface-1);border:1px solid var(--line-2);width:min(440px,100vw - 40px);max-height:85dvh;box-shadow:var(--shadow-pop);border-radius:20px;margin:auto;padding:0;overflow:auto}.selection-header{border-bottom:1px solid var(--line-1);background:var(--surface-1);z-index:2;justify-content:space-between;align-items:center;gap:16px;min-height:72px;padding:16px 20px;display:flex;position:sticky;top:0}.selection-header h2{font-size:16px;font-weight:600;line-height:22px}.selection-done{background:var(--surface-3);width:36px;height:36px;color:var(--text-1);border-radius:50%;place-items:center;display:grid}.selection-done svg{width:18px}@media (hover:hover){.selection-done:hover{background:var(--surface-4)}}.selection-content{flex-direction:column;gap:4px;padding:12px;display:flex}.selection-content>.studio-primary{margin-top:12px}.selection-content>.composer-hint,.selection-content>.inactive-inputs{padding:8px}.selection-row{text-align:left;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:52px;padding:12px;font-size:14px;display:flex}@media (hover:hover){.selection-row:hover{background:var(--surface-2)}}.selection-row[aria-pressed=true]{background:var(--surface-3)}.selection-row small{color:var(--text-2);margin-top:3px;font-size:13px;line-height:18px;display:block}.selection-row>svg:last-child{background:var(--accent);width:22px;height:22px;color:var(--accent-ink);border-radius:50%;flex:none;padding:4px}.model-check:has(svg){background:var(--accent);width:22px;height:22px;color:var(--accent-ink);border-radius:50%;flex:none;padding:4px}.model-options{flex-direction:column;gap:4px;display:flex}.model-option{min-height:76px;padding:12px}.model-option>.model-mark{background:var(--surface-2);border-radius:12px;width:44px;height:44px}.model-option>.model-mark svg{width:25px;height:25px}.model-option>span:nth-child(2){flex:1;min-width:0}.model-option strong{font-size:15px;font-weight:600;display:block}.model-option small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.model-check{flex:none;place-items:center;width:22px;height:22px;display:grid}.model-check svg{width:16px;height:16px}.person-row>.studio-media-preview{border-radius:12px;flex:none;width:44px;height:44px}.person-row>span{flex:1}.manage-models{color:var(--text-2);text-align:left;padding:12px;font-size:13px}.duration-editor{justify-content:center;align-items:center;gap:16px;padding:24px 0;display:flex}.duration-editor>button{background:var(--surface-3);border:1px solid var(--line-2);border-radius:50%;place-items:center;width:48px;height:48px;display:grid}.duration-editor label{align-items:baseline;display:flex}.duration-editor input{width:80px;box-shadow:none;text-align:center;font-variant-numeric:tabular-nums;-webkit-appearance:textfield;appearance:textfield;background:0 0;border:0;padding:0;font-size:40px;font-weight:650}.duration-editor input::-webkit-inner-spin-button{display:none}.duration-editor label>span{color:var(--text-3);font-size:20px}.duration-slider{width:calc(100% - 32px);margin:8px 16px}.duration-bounds{color:var(--text-3);justify-content:space-between;padding:4px 16px 16px;font-size:12px;display:flex}.toggle-setting{text-align:left;border-radius:12px;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:64px;padding:12px;display:flex}@media (hover:hover){.toggle-setting:hover{background:var(--surface-2)}}.toggle-setting small{color:var(--text-3);margin-top:3px;display:block}.switch-track{border-radius:var(--r-pill);background:var(--surface-4);width:44px;height:26px;transition:background var(--t-med);flex:none;padding:3px;display:block}.switch-track>span{background:var(--text-1);width:20px;height:20px;box-shadow:var(--shadow-raise);transition:transform var(--t-med);border-radius:50%;display:block}.switch-track.enabled{background:var(--accent)}.switch-track.enabled>span{transform:translate(18px)}.advanced-field,.advanced-upload{color:var(--text-2);flex-direction:column;gap:8px;padding:12px;font-size:13px;display:flex}.advanced-field input,.advanced-field select,.custom-size input{width:100%;min-width:0;min-height:44px;padding:10px 12px}.custom-size{grid-template-columns:1fr 1fr;gap:12px;padding:12px;display:grid}.custom-size label{min-width:0;color:var(--text-2);gap:8px;font-size:13px;display:grid}.playground-inputs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.input-role{min-width:0}.input-role .composer-label{flex-direction:column;align-items:flex-start;gap:3px;display:flex}.input-role .composer-label h2{font-size:12px}.input-role .composer-label>span{white-space:nowrap;font-size:12px}.input-role .reference-add{gap:8px;min-height:96px;padding:12px 4px;font-size:12px}.input-role .reference-add>svg{width:32px;height:32px;padding:8px}.input-role .reference-add-compact{min-width:64px;min-height:64px;padding:0}.input-role .reference-add.reference-add-compact>svg{width:32px;height:32px;color:var(--text-1);padding:8px;display:block}.input-role .reference-add-compact>span{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.input-role .playground-reference{width:100%;height:80px}.audio-reference{flex-direction:column;justify-content:center;align-items:center;gap:8px;height:100%;padding:8px;display:flex;overflow:hidden}.audio-reference small{white-space:nowrap;text-overflow:ellipsis;max-width:100%;overflow:hidden}.target-badge{background:var(--accent-soft);color:var(--accent-text);border-radius:6px;padding:2px 6px;font-size:12px;position:absolute;bottom:4px;left:4px}.playground-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0;padding:20px;display:grid}.playground-results>h2,.playground-results>.inactive-inputs,.playground-results>.generation-details{grid-column:1/-1}.playground-results>h2{font-size:16px}.playground-results>article{border-radius:var(--r-lg);border:1px solid var(--line-2);background:var(--surface-1);flex-direction:column;gap:12px;min-width:0;padding:12px;display:flex}.playground-results>article>.studio-media-preview,.playground-results>article>.result-video{border-radius:12px;height:360px;overflow:hidden}.playground-results>article>p{color:var(--text-2);flex-direction:column;gap:12px;font-size:13px;line-height:20px;display:flex}.image-workspace{min-height:calc(100dvh - var(--header-h) - 16px);flex-direction:column;gap:16px;display:flex}.image-workspace>.studio-output-column{flex:1;order:0;min-height:430px}.image-workspace>.playground-editor{z-index:5;width:min(100%,880px);box-shadow:var(--shadow-pop);border-radius:22px;flex-wrap:wrap;order:1;align-self:center;align-items:center;gap:8px;padding:14px;display:flex;position:sticky;bottom:16px}.image-workspace .playground-editor-scroll,.image-workspace .studio-settings-card,.image-workspace .studio-settings-grid,.image-workspace .playground-create{display:contents}.image-workspace .studio-instructions{order:-2;width:100%}.image-workspace .studio-instructions>label{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.image-workspace .studio-instructions textarea{height:60px;min-height:60px;max-height:148px;box-shadow:none;resize:none;background:0 0;border:0;border-radius:0;padding:4px 2px 12px;font-size:15px;line-height:22px}.image-input-details{position:relative}.image-input-details>summary{border:1px solid var(--line-2);background:var(--surface-3);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;list-style:none;display:flex}.image-input-details>summary::-webkit-details-marker{display:none}.image-input-details>summary>span{display:none}.image-input-details[open]>.playground-inputs{background:var(--surface-1);border:1px solid var(--line-2);border-radius:var(--r-lg);width:min(320px,100vw - 64px);box-shadow:var(--shadow-pop);padding:16px;display:block;position:absolute;bottom:48px;left:0}.image-input-details .reference-add{min-height:96px}.image-input-details .reference-tiles{flex-wrap:wrap}.image-input-details .playground-reference{width:48px;height:48px}.image-workspace .engine-button,.image-workspace .choice-button,.image-workspace .more-options{border:1px solid var(--line-2);background:var(--surface-3);border-radius:12px;gap:6px;width:auto;min-height:36px;padding:0 10px}.image-workspace .engine-button{flex:none}.image-workspace .engine-button .model-mark{background:0 0;border:0;border-radius:0;width:20px;height:20px}.image-workspace .engine-button .model-mark svg{width:18px;height:18px}.image-workspace .engine-button small,.image-workspace .choice-copy small,.image-workspace .choice-button .arrow-well{display:none}.image-workspace .engine-button strong,.image-workspace .choice-copy strong{font-size:13px;font-weight:600}.image-workspace .engine-button .arrow-well{background:0 0;width:16px;height:20px}.image-workspace .more-options{font-size:0}.image-workspace .more-options svg{width:16px;height:16px}.image-workspace .playground-create>.studio-primary{border-radius:12px;gap:10px;width:auto;min-height:44px;margin-left:auto;padding:0 14px;font-size:13px}.image-workspace .studio-button-cost{font-size:13px}.image-workspace .studio-button-cost small{display:none}.image-workspace .playground-create>.studio-alert,.image-workspace .playground-create>.studio-inline-notice,.image-workspace .inactive-inputs{width:100%}.image-workspace .studio-guide{min-height:340px;padding:32px 20px}.image-workspace .studio-setup-steps{flex-direction:row;gap:16px}.image-workspace .studio-setup-steps li{font-size:12px}.workspace-history{min-width:0;padding:20px}.history-toolbar{color:var(--text-2);justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;font-size:13px;display:flex}.history-empty{text-align:center;min-height:360px;color:var(--text-3);flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px;display:flex}.history-empty h2{font-size:20px}.history-empty p{max-width:340px;color:var(--text-2)}.history-error{border-radius:var(--r-md);border:1px solid var(--line-2);background:var(--surface-1);flex-wrap:wrap;align-items:center;gap:12px;padding:16px;display:flex}.history-error p{color:var(--text-2);margin-top:4px;font-size:13px}.workspace-history-list{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;display:grid}.history-result{border:1px solid var(--line-2);border-radius:var(--r-lg);background:var(--surface-1);min-width:0;overflow:hidden}.history-result-preview{--result-media-h:260px;background:var(--bg-well);height:260px}.history-result-info{flex-direction:column;align-items:flex-start;gap:10px;padding:16px;display:flex}.history-result-info>p,.history-result-info details{color:var(--text-3);overflow-wrap:anywhere;font-size:12px}.history-result-info h3{font-size:15px}.history-result-info .studio-secondary{min-height:36px;padding:0 12px;font-size:12px}.history-result-placeholder{height:100%;color:var(--text-3);flex-direction:column;justify-content:center;align-items:center;gap:10px;display:flex}.workspace-history .status-badge{border:1px solid var(--line-2);background:var(--surface-3);border-radius:var(--r-pill);padding:3px 8px;font-size:12px}.workspace-history .status-badge.success{background:var(--accent-soft);color:var(--accent-text);border-color:var(--accent-line)}@media (min-width:1280px){.studio-result-canvas.has-result{grid-template-rows:auto 1fr auto;grid-template-columns:minmax(0,1fr) 300px;gap:0 20px;display:grid}.has-result>.studio-canvas-toolbar{grid-column:1/-1}.has-result>.studio-result{--result-media-h:560px;grid-area:2/1;height:560px}.has-result>.studio-result-actions{grid-area:3/2;align-self:start;margin:12px 0 0}.has-result>.generation-details{grid-area:2/2;align-self:start}.has-result>.studio-result-meta{grid-area:3/1}}@media (max-width:1280px){.studio-workspace,.video-workspace{--panel-w:360px}}@media (max-width:1100px){.studio-shell{--header-h:108px}}@media (max-width:899px){.studio-workspace,.video-workspace{grid-template-columns:minmax(0,1fr)}.studio-controls,.video-workspace .playground-editor{height:auto;position:relative;top:auto;overflow:visible}.studio-controls-scroll,.video-workspace .playground-editor-scroll{scrollbar-gutter:auto;overflow:visible}.studio-create-action,.video-workspace .playground-create{z-index:4;border-radius:0 0 var(--r-xl) var(--r-xl);position:sticky;bottom:0}.studio-output-column{min-height:440px}.studio-guide{min-height:380px}.image-workspace{min-height:calc(100dvh - var(--header-h) - 16px)}.image-workspace>.studio-output-column{min-height:400px}.image-workspace .playground-editor{width:min(100%,880px)}.input-role .composer-label{flex-direction:row;align-items:center}}@media (max-width:640px){.studio-shell{padding:12px}.studio-workspace,.video-workspace{gap:12px}.studio-controls-scroll,.video-workspace .playground-editor-scroll{gap:20px;padding:16px}.studio-controls,.playground-editor,.studio-output-column{border-radius:20px}.studio-create-action,.playground-create{padding:14px 16px}.studio-guide{min-height:380px;padding:40px 20px}.studio-guide h2{font-size:20px}.studio-result-canvas,.playground-results,.workspace-history{padding:14px}.studio-result{--result-media-h:360px;height:360px}.studio-canvas-toolbar{gap:8px}.studio-result-actions>.result-download-wrap{flex:1}.studio-result-actions .studio-primary{width:100%}.studio-result-meta{align-items:flex-start}.face-result-grid{gap:10px}.face-result-item .studio-result{height:190px}.face-result-item .studio-progress{gap:8px;min-height:190px;padding:12px}.face-result-item .studio-result-meta{padding:10px}.face-result-item .studio-secondary{min-height:44px;padding:0 8px;font-size:12px}.face-result-item .studio-secondary svg{width:13px}.selection-dialog{border-bottom:0;border-radius:24px 24px 0 0;width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0}.selection-header{padding:16px 20px}.selection-dialog:before{content:"";background:var(--surface-4);border-radius:var(--r-pill);width:36px;height:4px;margin:8px auto -2px;display:block}.selection-done{width:44px;height:44px}.selection-row{min-height:56px}.model-option{gap:10px;min-height:76px;padding:12px 8px}.model-option strong{font-size:14px}.model-option small{font-size:12px}.image-workspace{gap:12px;padding:12px 12px 0}.image-workspace>.studio-output-column{min-height:350px}.image-workspace>.playground-editor{border-radius:20px 20px 0 0;gap:8px;padding:14px 12px 16px;bottom:0}.image-workspace .playground-create>.studio-primary{flex:1 0 100%;justify-content:center;min-height:44px;margin:4px 0 0}.image-workspace .studio-setup-steps{flex-direction:column;gap:10px;margin-top:20px}.image-workspace .engine-button,.image-workspace .choice-button,.image-workspace .more-options{min-height:44px}.image-input-details>summary{width:44px;height:44px}.image-workspace .engine-button{flex:1;max-width:calc(100% - 52px)}.image-workspace .engine-button strong{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.image-workspace .studio-instructions textarea{height:66px;min-height:66px}.playground-results{grid-template-columns:minmax(0,1fr)}.input-role .composer-label{flex-direction:column;align-items:flex-start}.input-review-heading{flex-direction:column;align-items:flex-start;gap:4px}.studio-input-review{padding:20px}.input-review-media{gap:12px;min-height:260px}.input-review-source{width:65%}.input-review-source .studio-media-preview{height:240px}.input-review-identity{width:30%}.input-review-identity .studio-media-preview{height:120px}.input-review-next{margin-top:16px}.workspace-history-list{grid-template-columns:minmax(0,1fr)}.composer-source-file-info button{min-height:36px}}.studio-fixed-engine{border-bottom:1px solid var(--line-1);align-items:center;gap:10px;min-height:64px;padding:10px 12px;display:flex}.studio-fixed-engine>span:last-child{flex:1;justify-content:space-between;align-items:center;gap:12px;display:flex}.studio-fixed-engine small{color:var(--text-2);font-size:14px}.studio-fixed-engine strong{font-size:14px;font-weight:600}@media (max-width:640px){.image-workspace .choice-button{gap:4px;padding:0 8px}.image-workspace .choice-button .choice-icon{width:14px;height:14px}.image-workspace .choice-copy strong{font-size:12px}.image-workspace .more-options{padding:0 10px}}@media (max-width:640px) and (max-height:700px){.image-workspace>.studio-output-column{min-height:280px}.image-workspace .studio-guide{min-height:224px;padding:20px 12px}.image-workspace .canvas-brand{width:44px;height:44px;margin-bottom:12px}.image-workspace .studio-guide h2{margin-bottom:8px;font-size:18px;line-height:24px}.image-workspace .studio-guide>p{font-size:13px;line-height:18px}.image-workspace .studio-setup-steps{display:none}}.studio-setup-steps li.is-complete>span{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.studio-input-review>.studio-setup-steps{align-items:center;margin-top:24px}.studio-controls-scroll>*,.video-workspace .playground-editor-scroll>*{flex-shrink:0}.image-attached-references{flex-wrap:wrap;order:-3;gap:8px;width:100%;display:flex}.image-attached-references .playground-reference{width:48px;height:48px}.image-workspace .playground-results>article{padding:0;position:relative;overflow:hidden}.image-workspace .playground-results>article>.studio-media-preview{border-radius:16px;height:auto;min-height:240px;max-height:540px}.image-workspace .playground-results>article>.studio-media-preview img{object-fit:contain;width:auto;height:auto;max-height:540px}.image-workspace .playground-results>article>.result-download-wrap{align-self:flex-start;margin:0 12px 12px}.studio-model-section .selected-model-card>span:not(.arrow-well){min-width:0}.studio-model-section .selected-model-card strong{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.studio-output-column{scroll-margin-top:calc(var(--header-h) + 12px)}.studio-input-review>.studio-setup-steps{align-items:stretch;width:max-content;max-width:100%;margin-inline:auto}.studio-details-references{gap:8px;margin-top:16px;display:flex}.studio-details-references>.studio-media-preview{border:1px solid var(--line-2);border-radius:10px;width:48px;height:48px}.studio-details-cost{border-top:1px solid var(--line-1);font-variant-numeric:tabular-nums;justify-content:space-between;gap:12px;margin-top:16px;padding-top:16px;font-size:13px;display:flex}.studio-details-cost>span{color:var(--text-3)}@media (max-width:360px){.face-result-item .result-download-controls button svg{display:none}.face-result-item .studio-secondary{white-space:nowrap;padding:0 6px}}.selection-dialog .duration-editor input{box-shadow:none;background:0 0;border:0;border-radius:0;font-size:40px;font-weight:650;line-height:48px}.studio-progress.is-result-error{border:1px solid var(--line-2);border-radius:var(--r-lg);background:var(--surface-1);max-width:520px;min-height:220px;margin:32px auto;padding:24px}.studio-progress.is-result-error>.studio-source-symbol{background:var(--danger-soft);color:var(--danger)}.studio-create-action>.studio-primary>svg,.playground-create>.studio-primary>svg{flex:none}.studio-running{color:var(--text-disabled);box-shadow:var(--hairline-top),0 3px 0 var(--bg-well)}.studio-readonly-row{border-top:1px solid var(--line-1);align-items:center;gap:10px;min-height:52px;padding:0 12px;display:flex}.studio-readonly-row>svg{color:var(--text-3);flex:none}.studio-readonly-row>span{color:var(--text-2);flex:1;font-weight:500}.studio-readonly-row strong{font-size:14px;font-weight:600}.studio-canvas-status{margin-left:auto}.studio-canvas-status i{background:var(--accent);border-radius:50%;width:6px;height:6px;animation:2s ease-in-out infinite ds-pulse}.studio-currency,.studio-setup-steps li{color:var(--text-3)}.studio-setup-steps li.is-complete{color:var(--text-1)}@supports (field-sizing:content){.studio-instructions textarea,.image-workspace .studio-instructions textarea{field-sizing:content;height:auto}}@media (hover:hover){.image-workspace .engine-button:hover,.image-workspace .choice-button:hover,.image-workspace .more-options:hover,.image-input-details>summary:hover{background:var(--surface-4);border-color:var(--line-3)}}@media (max-width:640px){.image-workspace{min-height:calc(100dvh - var(--header-h))}.image-workspace>.studio-output-column{min-height:316px}.image-workspace .studio-guide{min-height:260px;padding:24px 16px}.image-workspace .canvas-brand{width:48px;height:48px;margin-bottom:16px}.image-workspace .studio-setup-steps{gap:8px;margin-top:20px}.image-workspace>.playground-editor{padding-bottom:max(16px,env(safe-area-inset-bottom));margin-top:auto;position:sticky;bottom:0}.image-workspace .playground-create>.studio-primary{flex:1 0 auto;gap:10px;margin:0}.image-workspace .studio-instructions textarea{height:60px;min-height:60px;max-height:148px}@supports (field-sizing:content){.image-workspace .studio-instructions textarea{height:auto}}.workspace-result-tabs{padding:10px 12px}.workspace-result-tabs button{min-width:64px;padding:0 12px}.studio-output-skeleton{height:320px}}@media (max-width:360px){.image-workspace .playground-create>.studio-primary{flex:1 0 100%;margin:4px 0 0}.image-workspace>.studio-output-column{min-height:280px}.image-workspace .studio-guide{min-height:224px;padding:20px 12px}.image-workspace .studio-setup-steps{display:none}}.studio-panel-title{justify-content:space-between;align-items:center;gap:12px;min-height:32px;display:flex}.studio-reset{border:1px solid var(--line-2);background:var(--surface-2);width:32px;height:32px;color:var(--text-2);border-radius:50%;flex:none;place-items:center;display:grid}.studio-reset:disabled{color:var(--text-disabled)}.studio-panel-head .studio-discard{border:1px solid var(--line-2);border-radius:var(--r-sm);background:var(--surface-2);justify-content:flex-start;padding:8px 12px}.studio-panel-head .studio-discard .studio-text-button{min-height:32px;color:var(--text-2)}.studio-action-caption{white-space:nowrap;min-width:0;overflow:hidden}.studio-action-caption>span{text-overflow:ellipsis;min-width:0;overflow:hidden}.studio-action-caption>span:last-child{flex-shrink:0}.studio-reset,.studio-add-reference,.studio-reference-remove,.playground-reference>button,.composer-source-file-info button,.choice-button,.engine-button,.video-mode-control,.more-options,.selection-row,.duration-editor>button,.toggle-setting,.image-input-details>summary{transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}.choice-button,.engine-button,.video-mode-control{border-radius:var(--r-md)}.studio-settings-card .engine-button,.studio-settings-card .choice-button,.studio-settings-card .video-mode-control,.studio-settings-grid .choice-button,.composer-output-count .choice-button{border-radius:0}.studio-reset:focus-visible{border-radius:50%}.studio-reference-remove:focus-visible{border-radius:50%}.playground-reference>button:focus-visible{border-radius:50%}.selection-done:focus-visible{border-radius:50%}.duration-editor>button:focus-visible{border-radius:50%}.image-input-details>summary:focus-visible{border-radius:50%}:is(.choice-button:focus-visible,.engine-button:focus-visible,.video-mode-control:focus-visible){outline-offset:-3px}@media (hover:hover){.studio-reset:hover:not(:disabled),.studio-add-reference:hover:not(:disabled),.composer-source-file-info button:hover:not(:disabled){background:var(--surface-3);border-color:var(--line-3)}.studio-reference-remove:hover:not(:disabled),.playground-reference>button:hover:not(:disabled),.duration-editor>button:hover:not(:disabled){background:var(--surface-4);border-color:var(--line-3)}.studio-scene-drop:hover .studio-source-symbol,.studio-character-upload:hover .studio-character-symbols,.reference-add:hover>svg{background:var(--surface-4)}.choice-button:hover:not(:disabled) .arrow-well,.engine-button:hover:not(:disabled) .arrow-well,.video-mode-control:hover:not(:disabled) .arrow-well{background:var(--surface-4);box-shadow:inset 0 0 0 1px var(--line-3)}.choice-button:hover:not(:disabled),.engine-button:hover:not(:disabled),.video-mode-control:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--line-3)}.more-options:hover:not(:disabled){border-color:var(--line-3)}.studio-speed-toggle button:hover:not(:disabled):not([aria-pressed=true]){background:var(--surface-2);color:var(--text-1)}.selection-row:hover:not(:disabled),.toggle-setting:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--line-3)}}.studio-scene-drop:active:not(:disabled),.studio-character-upload:active:not(:disabled),.reference-add:active:not(:disabled),.studio-add-reference:active:not(:disabled),.studio-reset:active:not(:disabled),.choice-button:active:not(:disabled),.engine-button:active:not(:disabled),.video-mode-control:active:not(:disabled),.more-options:active:not(:disabled),.selection-row:active:not(:disabled),.image-input-details>summary:active{background:var(--surface-4);border-color:var(--line-3)}@media (min-width:900px) and (max-width:1100px){.studio-workspace,.video-workspace{--panel-w:340px}.studio-controls-scroll,.video-workspace .playground-editor-scroll{padding:16px}.input-review-media{gap:12px}.input-review-identity{width:28%}.input-review-heading{flex-direction:column;align-items:flex-start;gap:4px}.input-role .composer-label{flex-direction:column;align-items:flex-start}.playground-results{grid-template-columns:minmax(0,1fr)}}@media (max-width:640px){.studio-create-action,.video-workspace .playground-create{gap:6px;padding:10px 16px}.studio-action-caption{line-height:16px}}.image-workspace .studio-settings-card .engine-button,.image-workspace .studio-settings-grid .choice-button{border-radius:12px}:is(.image-workspace .engine-button:focus-visible,.image-workspace .choice-button:focus-visible){outline-offset:2px}.input-review-media figcaption{text-align:center}.studio-output-column{height:calc(100dvh - var(--header-h) - 32px);min-height:0}.workspace-result-tabs{z-index:3;background:var(--bg-well);position:sticky;top:0}.studio-output-scroll{overscroll-behavior:contain;flex-direction:column;flex:1;min-height:0;display:flex;overflow:auto}.studio-output-scroll>.studio-guide,.studio-output-scroll>.studio-input-review,.studio-output-scroll>.studio-result-canvas{flex:1}.studio-unified-result{grid-template-rows:auto auto auto;grid-template-columns:minmax(0,1fr);align-content:start;gap:16px;display:grid}.studio-unified-result.has-result{display:grid}.studio-result-main{align-self:stretch;min-width:0}.studio-single-result,.studio-single-result-item{min-width:0;height:100%}.studio-unified-result .studio-result{--result-media-h:clamp(240px,calc(100dvh - var(--header-h) - 204px),640px);height:var(--result-media-h);min-height:0;margin:0}.result-media-frame{position:relative}.result-media-content{justify-content:center;align-items:center;min-width:0;height:100%;min-height:0;display:flex}.result-media-content>.studio-media-preview{width:100%;height:100%}.result-media-content img,.result-media-content video{max-height:var(--result-media-h);object-fit:contain;width:auto;max-width:100%;height:auto}.result-media-frame.is-unavailable .result-media-content{visibility:hidden;pointer-events:none;position:absolute;inset:0}.result-media-frame.is-unavailable .media-unavailable,.result-media-frame.is-unavailable .result-playback-error{display:none}.result-unavailable{width:min(100%,480px);margin:auto}.studio-result-action-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding-top:4px;display:flex}.studio-result-action-bar .studio-result-meta{padding:0}.studio-result-action-bar .studio-result-actions{align-items:center;margin:0}.studio-result-help.studio-text-button{color:var(--text-2);font-weight:500}@media (hover:hover){.studio-result-help.studio-text-button:hover{color:var(--text-1)}}.studio-setting-chips{flex-wrap:wrap;gap:6px;display:flex}.studio-setting-chips .ds-badge{border-radius:var(--r-xs);height:26px;color:var(--text-2);font-weight:500}.studio-unified-result>.generation-details{align-self:start;min-width:0;margin:0}.studio-funds-returned{color:var(--ok)}.studio-result-canvas .studio-progress.is-result-error{width:100%;max-width:520px;min-height:220px;margin:0 auto;padding:24px}.studio-result-canvas .studio-progress h2{font-size:18px;line-height:24px}.studio-result-canvas .studio-progress.is-generating{gap:12px;padding:0 0 16px}.studio-output-skeleton{max-height:50dvh}.studio-canvas-status{flex:none}.result-tile-header{justify-content:space-between;align-items:center;gap:8px;padding:14px;font-size:13px;font-weight:560;display:flex}.face-result-item .studio-result{--result-media-h:300px;border-radius:0;height:300px}.face-result-item .studio-progress{min-height:220px;padding:16px}.face-result-item .studio-result-meta{border-top:1px solid var(--line-1);gap:12px;min-height:64px;padding:14px}.face-result-item .studio-result-meta>span:first-child:empty{display:none}.face-result-item .studio-result-meta .result-download-wrap{margin-left:auto}.face-result-item .studio-progress .studio-source-symbol{width:36px;height:36px}.studio-new-generation.studio-secondary{border-radius:16px;width:100%;min-height:52px;font-size:14px}.studio-upload-error.studio-alert{border-radius:var(--r-sm);color:var(--text-2);background:0 0;border:0;align-items:flex-start;gap:6px 8px;padding:8px 0;font-size:12px;line-height:18px;display:flex}.studio-upload-error>svg{color:var(--danger);flex:none;margin-top:1px}.studio-upload-error>span{flex:1;min-width:0}.studio-upload-error>.studio-text-button{color:var(--text-2);flex:none;min-height:24px;font-size:12px}.studio-missing-step{color:var(--text-2)}.studio-action-caption:has(.studio-missing-step){white-space:normal}.studio-action-caption .studio-missing-step{overflow:visible}.studio-readonly-row:after,.studio-fixed-engine:after{content:"";flex:none;width:28px;height:28px}.studio-fixed-engine{min-height:64px}.studio-character-symbols{place-items:center;padding:11px;display:grid}.studio-character-symbols>svg{width:18px;height:18px}.studio-scene-drop>span:last-of-type,.studio-character-upload small{margin-top:0}.composer-source-thumbnail .media-video-badge{display:none}.input-review-media{align-items:flex-start}.studio-appearance-list{grid-template-columns:repeat(auto-fill,72px);align-items:start;gap:8px;padding-bottom:4px;display:grid}.studio-controls-scroll,.playground-editor-scroll{padding-bottom:24px}.video-workspace .input-role:has(.playground-reference){grid-column:1/-1}.video-workspace .input-role:has(.playground-reference) .reference-tiles{grid-template-columns:repeat(auto-fill,64px);gap:8px;display:grid}:is(.video-workspace .input-role:has(.playground-reference) .playground-reference,.video-workspace .input-role:has(.playground-reference) .reference-add){border-radius:12px;width:64px;height:64px;min-height:64px;padding:0}.video-workspace .input-role:has(.playground-reference) .composer-label{flex-direction:row;align-items:center}.video-workspace .engine-button{gap:10px;min-height:72px}.video-workspace .engine-button>.model-mark{background:0 0;border:0;border-radius:0;flex:none;width:20px;height:20px;padding:0}.video-workspace .engine-button>.model-mark svg{width:18px;height:18px}.video-workspace .engine-button>.engine-label{color:var(--text-2);flex:none;font-size:14px;font-weight:500}.video-workspace .engine-button>.engine-value{text-align:right;flex:1;min-width:0}.video-workspace .engine-value strong{font-size:14px}.video-workspace .engine-value .engine-benefit{color:var(--text-3);white-space:nowrap;text-overflow:ellipsis;max-width:180px;margin-top:2px;margin-left:auto;font-size:12px;line-height:16px;display:block;overflow:hidden}.more-options>.arrow-well{background:var(--surface-3);border-radius:50%;place-items:center;width:28px;height:28px;margin-left:auto;display:grid}.image-workspace .more-options>.arrow-well{display:none}:is(.studio-settings-card :is(.choice-button,.engine-button,.video-mode-control):focus-visible,.studio-settings-grid .choice-button:focus-visible){box-shadow:inset 0 0 0 2px var(--accent);outline:none}.studio-settings-card>:first-child{border-radius:var(--r-md) var(--r-md) 0 0}.studio-settings-card>:last-child>.choice-button:last-child,.studio-settings-grid>.choice-button:last-child{border-radius:0 0 var(--r-md) var(--r-md)}.studio-aspect-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:4px;display:grid}.studio-aspect-option.selection-row{border:1px solid var(--line-2);background:var(--surface-2);flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:88px;padding:10px 4px;font-size:13px;display:flex;position:relative}.studio-aspect-option[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.studio-aspect-option.selection-row>svg:last-child{width:16px;height:16px;padding:3px;position:absolute;top:5px;right:5px}.studio-aspect-glyph{place-items:center;width:36px;height:30px;display:grid}.studio-aspect-glyph i{border:1.5px solid var(--text-2);border-radius:3px;max-width:32px;height:24px;max-height:26px;display:block}.studio-aspect-option[aria-pressed=true] .studio-aspect-glyph i{border-color:var(--accent)}.image-workspace{height:calc(100dvh - var(--header-h));gap:16px;min-height:0}.image-workspace>.studio-output-column{height:calc(100dvh - var(--header-h) - var(--composer-h,220px) - 48px);flex:auto;min-height:180px}.image-workspace>.playground-editor{flex:none;margin:0;position:sticky;bottom:16px}.image-workspace .studio-unified-result .studio-result{--result-media-h:clamp(140px,calc(100dvh - var(--header-h) - var(--composer-h,220px) - 208px),540px);height:var(--result-media-h)}.image-workspace .studio-output-scroll>.studio-guide,.image-workspace .studio-output-scroll>.studio-input-review{min-height:0}.image-workspace .studio-output-scroll>.studio-guide{padding:24px 16px}.image-workspace .studio-input-review{padding:20px}.image-workspace .input-review-heading{margin-bottom:16px}.image-workspace .input-review-media{min-height:0}.image-workspace .input-review-source .studio-media-preview{height:clamp(120px,calc(100dvh - var(--header-h) - var(--composer-h,220px) - 320px),360px)}.image-workspace .input-review-next,.image-workspace .studio-input-review>.studio-setup-steps{margin-top:16px}.image-workspace .studio-upload-error{order:3;width:100%;padding:4px 2px 0}.image-workspace .playground-create>.studio-new-generation{border-radius:12px;width:auto;min-height:44px;margin-left:auto;padding:0 14px;font-size:13px}@media (min-width:1280px){.studio-unified-result,.studio-unified-result.has-result{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr) 300px;align-content:stretch}.studio-unified-result>.studio-result-main{grid-area:1/1}.studio-unified-result>.generation-details{grid-area:1/2}.studio-unified-result>.studio-result-action-bar{grid-area:2/1/auto/-1}.studio-unified-result.has-batch{grid-template-columns:minmax(0,1fr)}.studio-unified-result.has-batch>.generation-details{grid-area:2/1}}@media (max-width:1279px){.studio-unified-result .studio-result{--result-media-h:clamp(240px,calc(100dvh - var(--header-h) - 212px),540px)}.studio-unified-result>.studio-result-action-bar{grid-row:2}.studio-unified-result>.generation-details{grid-row:3}.image-workspace .studio-unified-result>.generation-details{margin-bottom:4px}}@media (max-width:1024px){.studio-workspace,.video-workspace{grid-template-columns:minmax(0,1fr)}.studio-controls,.video-workspace .playground-editor{height:auto;position:relative;top:auto;overflow:visible}.studio-controls-scroll,.video-workspace .playground-editor-scroll{scrollbar-gutter:auto;overflow:visible}.studio-create-action,.video-workspace .playground-create{z-index:4;border-radius:0 0 var(--r-xl) var(--r-xl);position:sticky;bottom:0}.studio-output-column{height:auto;min-height:440px}.studio-output-scroll{overflow:visible}.studio-unified-result .studio-result{--result-media-h:440px}.image-workspace>.studio-output-column{height:calc(100dvh - var(--header-h) - var(--composer-h,220px) - 48px);min-height:180px}.image-workspace .studio-output-scroll{overflow:auto}.video-workspace .input-role .composer-label{flex-direction:row;align-items:center}}@media (max-width:640px){.studio-result-action-bar{align-items:flex-start}.studio-result-action-bar .studio-result-actions{width:100%}.studio-result-action-bar .studio-result-help{order:2;justify-content:center;width:100%}.studio-result-action-bar .studio-result-actions>.result-download-wrap{flex:1}.studio-unified-result .studio-result{--result-media-h:360px}.face-result-grid{grid-template-columns:minmax(0,1fr)}.face-result-item .studio-result{--result-media-h:320px;height:320px}.face-result-item .studio-result-meta{padding:14px}.result-unavailable{grid-template-columns:32px minmax(0,1fr);margin:auto;padding:14px}.result-unavailable .ds-state-action{grid-area:3/2;min-height:44px}.studio-aspect-options{grid-template-columns:repeat(3,minmax(0,1fr))}.image-workspace{height:calc(100dvh - var(--header-h));gap:12px;min-height:0;padding:12px 12px 0}.image-workspace>.studio-output-column{height:calc(100dvh - var(--header-h) - var(--composer-h,244px) - 24px);min-height:140px}.image-workspace>.playground-editor{padding-bottom:max(16px,env(safe-area-inset-bottom));bottom:0}.image-workspace .studio-instructions textarea{min-height:60px;max-height:88px}.image-workspace .playground-create>.studio-primary,.image-workspace .playground-create>.studio-new-generation{flex:1 0 100%;justify-content:center;width:100%;min-height:44px;margin:4px 0 0}.image-workspace .studio-unified-result .studio-result{--result-media-h:clamp(140px,calc(100dvh - var(--header-h) - var(--composer-h,244px) - 160px),360px)}.image-workspace .studio-setup-steps{display:none}.image-workspace .studio-guide .canvas-brand{width:40px;height:40px;margin-bottom:12px}.image-workspace .studio-guide h2{font-size:18px;line-height:24px}.image-workspace .studio-guide>p{font-size:13px;line-height:18px}.image-workspace .studio-upload-error{padding-top:0}.studio-upload-error>.studio-text-button{min-height:44px}.image-workspace .studio-upload-error>.studio-text-button{min-height:24px}}.studio-batch-costs{font-variant-numeric:tabular-nums;flex-wrap:wrap;justify-content:flex-end;gap:6px 12px;display:flex}.video-workspace .input-role:has(.playground-reference) .reference-add{font-size:12px}@media (max-width:640px){.studio-reset{width:44px;height:44px}.composer-source-file-info button,.studio-unified-result .studio-progress .studio-text-button{min-height:44px}}.image-workspace .studio-output-skeleton{height:clamp(120px,calc(100dvh - var(--header-h) - var(--composer-h,220px) - 300px),380px)}.image-workspace .studio-settings-card .choice-button{border-radius:12px}:is(.studio-reference-tile,.playground-reference,.studio-details-references,.studio-progress-inputs) .studio-media-compact .media-unavailable strong{display:none}.studio-aspect-glyph i{width:min(28px,calc(28px * var(--ratio,1)));height:min(28px,calc(28px / var(--ratio,1)));max-width:none;max-height:none}.image-workspace .studio-settings-card .studio-settings-grid>.choice-button{border-radius:12px}.image-action-caption{width:100%;color:var(--text-2);order:3;padding:4px 2px 0;font-size:12px;line-height:16px}@media (max-width:640px){.video-workspace .playground-inputs>.input-role:not(:has(.playground-reference)) .composer-label{flex-direction:column;align-items:flex-start;gap:4px}.image-workspace .studio-unified-result .studio-result{--result-media-h:clamp(48px,calc(100dvh - var(--header-h) - var(--composer-h,244px) - 180px),360px)}}@media (max-width:360px){.image-workspace:has(.studio-new-generation) .image-attached-references{display:none}.image-workspace:has(.studio-new-generation) .studio-instructions textarea{height:44px;min-height:44px;max-height:44px;padding-bottom:4px}.image-workspace .studio-unified-result .studio-result{--result-media-h:clamp(48px,calc(100dvh - var(--header-h) - var(--composer-h,244px) - 208px),240px)}}.video-workspace .playground-inputs:has(>.input-role .playground-reference){grid-template-columns:repeat(2,minmax(0,1fr))}.video-workspace .playground-inputs:has(>.input-role .playground-reference)>.input-role:has(.playground-reference){grid-column:1/-1}.selection-dialog:has(.model-options){width:min(480px,100vw - 40px)}.model-option small,.engine-button .engine-benefit,.video-workspace .engine-value .engine-benefit{white-space:normal;text-overflow:clip;max-width:none;line-height:18px;overflow:visible}.model-option{min-height:84px}.model-option small{margin-top:4px}.video-workspace .engine-button{grid-template-columns:20px minmax(0,1fr) 28px;gap:4px 10px;padding:12px;display:grid}.video-workspace .engine-button>.engine-label{grid-area:1/2}.video-workspace .engine-button>.model-mark{grid-area:1/1}.video-workspace .engine-button>.engine-value{text-align:left;grid-area:2/2}.video-workspace .engine-button>.arrow-well{grid-area:1/3/span 2}.video-workspace .engine-value .engine-benefit{margin:4px 0 0}.studio-action-caption,.studio-action-caption>span{white-space:normal;text-overflow:clip;overflow:visible}.studio-action-caption{flex-wrap:wrap;align-items:flex-start}.studio-create-action>.studio-primary,.video-workspace .playground-create>.studio-primary{justify-content:flex-start}.studio-create-action>.studio-primary>.studio-button-cost,.video-workspace .playground-create>.studio-primary>.studio-button-cost{margin-left:auto}.generation-feed{flex:1;min-width:0}.generation-feed>.history-error{margin:16px}.feed-loading{min-height:180px;color:var(--text-3);justify-content:center;align-items:center;gap:10px;font-size:13px;display:flex}.feed-help{overflow-wrap:anywhere;justify-content:space-between;align-items:center;gap:16px;margin:12px;display:flex}.generation-feed-list{flex-direction:column;gap:20px;padding:16px;display:flex}.generation-feed-item{border-bottom:1px solid var(--line-1);grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;padding-bottom:20px;display:grid}.generation-feed-item:last-child{border-bottom:0}.generation-feed-media{grid-template-columns:minmax(0,1fr);align-content:start;gap:8px;min-width:0;display:grid}.generation-feed-media.is-multiple{grid-template-columns:repeat(2,minmax(0,1fr))}.generation-media-tile{background:var(--surface-2);border-radius:16px;min-width:0;position:relative;overflow:hidden}.generation-feed-media .studio-result{--result-media-h:68dvh;border-radius:16px;height:auto;min-height:0}.generation-feed-media .result-media-content,.generation-feed-media .result-media-content>.studio-media-preview{height:auto}.generation-feed-media :is(.studio-media-preview img,.result-video video){border-radius:16px;width:auto;max-width:100%;height:auto;max-height:68dvh;display:block}.generation-feed-media .result-video{height:auto}.feed-placeholder{isolation:isolate;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:220px;padding:24px;display:flex;position:relative;overflow:hidden}.feed-placeholder>strong{font-size:14px;font-weight:600}.feed-placeholder>p{color:var(--text-2);overflow-wrap:anywhere;max-width:320px;font-size:13px;line-height:20px}.feed-placeholder>.studio-canvas-status{margin:0}.feed-placeholder.is-running{aspect-ratio:var(--feed-aspect);max-height:68dvh}.feed-shimmer{z-index:-1;background:linear-gradient(110deg,var(--surface-1) 10%,var(--surface-3) 45%,var(--surface-4) 50%,var(--surface-1) 90%);background-size:400% 100%;animation:3s linear infinite ds-shimmer;position:absolute;inset:0}.feed-placeholder.is-stopped>svg{color:var(--danger)}.feed-media-actions{background:var(--surface-1);border-top:1px solid var(--line-1);justify-content:flex-end;padding:10px 12px;display:flex}.feed-media-actions .studio-secondary{min-height:36px;padding:0 12px;font-size:13px}.generation-feed-details{border:1px solid var(--line-2);border-radius:var(--r-lg);background:var(--surface-1);flex-direction:column;align-self:start;gap:16px;min-width:0;padding:16px;display:flex}.feed-details-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.feed-details-heading>.ds-badge:first-child{border-radius:var(--r-xs);white-space:normal;height:auto;min-height:26px;padding:4px 8px}.feed-prompt{color:var(--text-2);white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:20px}.generation-feed-details .studio-details-references{margin:0}.feed-details-footer{border-top:1px solid var(--line-1);color:var(--text-3);font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:center;gap:8px 12px;padding-top:14px;font-size:12px;line-height:18px;display:flex}.feed-details-footer>time{margin-left:auto}.feed-details-footer>.studio-text-button{width:100%;min-height:28px;color:var(--text-2);justify-content:flex-start;font-weight:500}@media (min-width:1280px){.generation-feed-item{grid-template-columns:minmax(0,1fr) 280px;gap:16px}}.image-workspace{height:calc(100dvh - var(--header-h));grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:0;padding:12px;display:grid;position:relative}.image-workspace>.studio-output-column{grid-area:1/1;width:100%;height:100%;min-height:0}.image-workspace>.playground-editor{flex:none;grid-area:1/1;place-self:end center;width:min(880px,100% - 32px);margin:0 0 16px;position:sticky;bottom:16px}.image-workspace .studio-output-scroll{padding-bottom:calc(var(--composer-h,220px) + 32px);display:block;overflow:auto}.image-workspace .generation-feed{min-height:100%}.image-workspace .generation-feed>.studio-guide,.image-workspace .generation-feed>.studio-input-review{min-height:calc(100dvh - var(--header-h) - var(--composer-h,220px) - 124px)}.generation-wall-grid{columns:4;column-gap:8px;padding:8px}.generation-wall-grid>.generation-media-tile{break-inside:avoid;border-radius:12px;margin-bottom:8px}.generation-wall-grid .studio-result{--result-media-h:none;background:var(--surface-2);border-radius:12px;height:auto;min-height:0;display:block}.generation-wall-grid .result-media-content,.generation-wall-grid .result-media-content>.studio-media-preview{width:100%;height:auto;display:block}.generation-wall-grid .result-media-content img{object-fit:cover;border-radius:12px;width:100%;max-width:100%;height:auto;max-height:none;display:block}.generation-wall-grid .feed-placeholder{min-height:180px;aspect-ratio:var(--feed-aspect);padding:28px 12px 60px}.generation-wall-grid .feed-placeholder.is-running{max-height:none}.feed-tile-status{pointer-events:none;justify-content:flex-start;display:flex;position:absolute;top:8px;left:8px;right:8px}.feed-tile-status .studio-canvas-status{background:var(--surface-1);box-shadow:var(--shadow-raise);margin:0}.feed-tile-actions{justify-content:flex-end;align-items:flex-end;gap:6px;display:flex;position:absolute;bottom:8px;left:8px;right:8px}.feed-icon-button.studio-secondary{border-radius:var(--r-sm);background:var(--surface-1);width:36px;min-width:36px;height:36px;min-height:36px;box-shadow:var(--shadow-raise);padding:0}.feed-tile-actions .result-download-wrap{max-width:100%}.feed-tile-actions .result-download-error{z-index:2;position:absolute;bottom:44px;left:0;right:0}.feed-tile-actions .result-download-note{background:var(--surface-1);border-radius:var(--r-sm);padding:8px;position:absolute;bottom:44px;left:0;right:0}.generation-wall-grid .result-unavailable{border:0;border-radius:12px;flex-wrap:wrap;min-height:200px;padding-bottom:60px;display:flex}@media (hover:hover){:is(.is-wall-tile .feed-tile-actions,.is-wall-tile:has(img) .feed-tile-status){opacity:0;transition:opacity var(--t-fast) var(--ease)}.is-wall-tile:hover .feed-tile-actions,.is-wall-tile:focus-within .feed-tile-actions,.is-wall-tile:hover .feed-tile-status,.is-wall-tile:focus-within .feed-tile-status,.is-wall-tile .feed-tile-actions.is-visible{opacity:1}.feed-icon-button.studio-secondary:hover{background:var(--surface-3);border-color:var(--line-3)}}@media (min-width:641px) and (max-width:1279px){.generation-wall-grid{columns:3}}@media (max-width:640px){.selection-dialog:has(.model-options){width:100%}.generation-wall-grid{columns:2;column-gap:6px;padding:6px}.generation-wall-grid>.generation-media-tile{margin-bottom:6px}.generation-feed-list{gap:16px;padding:12px}.generation-feed-media.is-multiple{grid-template-columns:minmax(0,1fr)}.generation-feed-details{gap:12px;padding:14px}.feed-media-actions .studio-secondary,.feed-details-footer>.studio-text-button{min-height:44px}.feed-icon-button.studio-secondary{width:44px;min-width:44px;height:44px;min-height:44px}.feed-tile-actions{gap:0;bottom:4px;left:2px;right:2px}.feed-icon-button.studio-secondary{border-radius:var(--r-xs)}.feed-tile-status{top:6px;left:6px}.feed-tile-status .ds-badge{padding:0 6px;font-size:12px}.image-workspace{padding:8px 6px 0}.image-workspace>.playground-editor{border-radius:20px 20px 0 0;width:calc(100% - 12px);margin-bottom:0;padding:12px;bottom:0}.image-workspace .engine-button strong{white-space:normal;text-overflow:clip;overflow:visible}.image-workspace .playground-create>.studio-primary{min-height:48px}.image-workspace .studio-output-scroll{padding-bottom:calc(var(--composer-h,280px) + 24px)}.generation-wall-grid .feed-placeholder{gap:8px;min-height:210px;font-size:12px}.generation-wall-grid .feed-placeholder>strong{font-size:13px}.generation-wall-grid .feed-placeholder>p{font-size:12px;line-height:18px}}.feed-media-actions{flex-wrap:wrap;gap:8px}@media (hover:hover){.studio-reference-select:hover .studio-main-face-marker{border-color:var(--accent);background:var(--accent-soft)}}.generation-feed-media .feed-placeholder.is-running{width:min(100%,calc(68dvh * var(--feed-ratio,.5625)));height:auto;max-height:none;aspect-ratio:var(--feed-aspect);margin-inline:auto}.generation-feed-media .generation-media-tile:has(.is-running){background:var(--bg-well)}.studio-model-section .selected-model-card strong{white-space:normal;text-overflow:clip;overflow-wrap:anywhere;overflow:visible}.models-page{min-width:0;padding-bottom:48px}.models-page-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px;display:flex}.models-page-heading>div{align-items:center;gap:12px;min-width:0;display:flex}.models-page-heading h1{font-weight:640}.characters-intro{color:var(--text-2);margin-bottom:28px;font-size:14px;line-height:22px}.models-page>.ds-state-card{margin:16px 0}.models-saved-notice{color:var(--accent-text);align-items:center;gap:8px;margin:16px 0;font-size:13px;display:flex}.models-empty{text-align:center;justify-items:center;gap:12px;max-width:480px;margin:12px auto 24px;padding:36px 20px;display:grid}.models-empty>span{border:1px solid var(--line-2);background:var(--surface-2);width:56px;height:56px;box-shadow:var(--shadow-raise);border-radius:16px;place-items:center;display:grid}.models-empty h2{font-size:20px;line-height:26px}.models-empty p{max-width:340px;color:var(--text-2);line-height:22px}.models-gallery{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));align-items:stretch;gap:16px;display:grid}.models-gallery:has(.model-gallery-new:only-child){grid-template-columns:minmax(0,320px);justify-content:center}.model-gallery-card{border:1px solid var(--line-2);border-radius:var(--r-lg);background:var(--surface-1);min-width:0;box-shadow:var(--shadow-card);transition:border-color var(--t-fast) var(--ease);flex-direction:column;display:flex;overflow:hidden}.model-gallery-card:hover{border-color:var(--line-3)}.model-gallery-portrait{aspect-ratio:3/4;background:var(--bg-well);width:100%;display:block;position:relative;overflow:hidden}.model-gallery-portrait>.studio-media-preview{border-radius:0;width:100%;height:100%}.model-gallery-portrait img{object-fit:cover;width:100%;height:100%}.model-gallery-portrait>span{border:1px solid var(--line-3);border-radius:var(--r-pill);background:var(--surface-1);align-items:center;gap:6px;min-height:26px;padding:4px 8px;font-size:12px;font-weight:560;line-height:16px;display:flex;position:absolute;bottom:12px;left:12px}.model-gallery-portrait>i{border:1px solid var(--line-2);border-radius:var(--r-pill);background:var(--surface-2);opacity:0;width:36px;height:36px;transition:opacity var(--t-fast) var(--ease);place-items:center;display:grid;position:absolute;top:12px;right:12px}:is(.model-gallery-portrait:hover>i,.model-gallery-portrait:focus-visible>i){opacity:1}.model-gallery-info{justify-content:space-between;align-items:center;gap:8px;padding:16px 16px 12px;display:flex}.model-gallery-info h2{overflow-wrap:anywhere;font-size:15px;font-weight:600;line-height:22px}.model-gallery-info p{color:var(--text-3);margin-top:4px;font-size:12px;line-height:16px}.model-delete-button{border-radius:var(--r-sm);width:36px;height:36px;color:var(--text-3);flex:0 0 36px;place-items:center;display:grid}.model-delete-button:hover{color:var(--danger);background:var(--danger-soft)}.model-gallery-actions{grid-template-columns:minmax(0,1fr) 36px 36px;gap:8px;margin-top:auto;padding:0 16px 18px;display:grid}.model-gallery-actions button{min-height:36px;padding:0 10px;font-size:13px}.model-gallery-actions .model-edit-button,.model-gallery-actions .model-delete-button{width:36px;height:36px;padding:0}.model-gallery-new{text-align:center;border:1px solid var(--line-2);border-radius:var(--r-lg);background:var(--surface-2);min-height:320px;box-shadow:var(--hairline-top);transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease);flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px;display:flex}.model-gallery-new:hover{background:var(--surface-3);border-color:var(--line-3)}.model-gallery-new>span{border:1px solid var(--line-3);border-radius:var(--r-md);background:var(--surface-3);width:48px;height:48px;box-shadow:var(--shadow-raise);place-items:center;display:grid}.model-gallery-new strong{font-size:15px;font-weight:600}.model-gallery-new small{color:var(--text-3);text-align:center;max-width:180px;line-height:18px}.model-editor-layout{grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);align-items:start;gap:24px;margin-top:24px;display:grid}.model-face-preview{aspect-ratio:3/4;border:1px solid var(--line-2);border-radius:var(--r-lg);background:var(--bg-well);position:relative;overflow:hidden}.model-face-preview>.studio-media-preview{border-radius:0;width:100%;height:100%}.model-face-preview img{object-fit:cover;width:100%;height:100%}.model-face-placeholder{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:14px;height:100%;padding:24px 24px 96px;display:flex}.model-face-placeholder>svg{width:40px;height:40px;color:var(--text-3)}.model-face-placeholder strong{font-size:20px;line-height:26px}.model-face-placeholder span{max-width:220px;color:var(--text-2);font-size:13px;line-height:20px}.model-face-caption{bottom:0;border-top:1px solid var(--line-2);background:var(--surface-1);gap:6px;padding:16px 20px;display:grid;position:absolute;inset-inline:0}.model-face-caption>span{color:var(--text-3);align-items:center;gap:6px;font-size:12px;display:flex}.model-face-caption>strong{overflow-wrap:anywhere;font-size:18px;line-height:24px}.model-editor-panel{border:1px solid var(--line-2);border-radius:var(--r-lg);background:var(--surface-1);box-shadow:var(--shadow-card);padding:20px}.model-editor-field+.model-editor-field{margin-top:24px}.model-editor-field>label{margin-bottom:8px;font-size:13px;font-weight:560;display:block}.model-editor-field>input{width:100%;min-height:48px;padding:12px 14px}.model-reference-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.model-reference-heading h2{font-size:13px;font-weight:560;line-height:18px}.model-reference-heading>span{color:var(--text-3);font-variant-numeric:tabular-nums;font-size:12px}.model-editor-hint{color:var(--text-2);margin:8px 0 16px;font-size:13px;line-height:20px}.model-editor-panel .studio-appearance-list{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;display:grid}.model-editor-panel .studio-reference-tile{aspect-ratio:3/4;border:2px solid var(--line-2);border-radius:var(--r-md);background:var(--surface-2);min-width:0;transition:border-color var(--t-fast) var(--ease);position:relative;overflow:hidden}.model-editor-panel .studio-reference-tile:not(.is-main-face):hover{border-color:var(--line-3)}.model-editor-panel .studio-reference-tile>.studio-media-preview{border-radius:0;width:100%;height:100%}.model-editor-panel .studio-reference-tile img{object-fit:cover;width:100%;height:100%}.model-editor-panel .studio-reference-select{width:100%;min-height:44px;box-shadow:none;background:0 0;border:0;border-radius:0;justify-content:flex-start;align-items:flex-end;padding:6px;display:flex;position:absolute;inset:0}.model-editor-panel .studio-reference-select>span{border:1px solid var(--line-2);border-radius:var(--r-pill);background:var(--surface-3);height:22px;color:var(--text-2);white-space:nowrap;align-items:center;gap:5px;padding:0 8px;font-size:12px;font-weight:560;line-height:1;display:inline-flex}.model-editor-panel .is-main-face{border-color:var(--accent);box-shadow:none}.model-editor-panel .is-main-face .studio-reference-select>span{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-text)}.model-editor-panel .studio-reference-remove{border:1px solid var(--line-3);border-radius:var(--r-pill);background:var(--surface-1);width:28px;height:28px;color:var(--text-1);place-items:center;display:grid;position:absolute;top:8px;right:8px}.model-editor-panel .studio-character-upload,.model-editor-panel .studio-add-reference{border:1px solid var(--line-2);border-radius:var(--r-md);background:var(--surface-2);justify-content:center;align-items:center;gap:14px;width:100%;min-height:140px;padding:20px;display:flex}.model-editor-panel .studio-character-upload{text-align:left}.model-editor-panel .studio-character-symbols{border-radius:var(--r-pill);background:var(--surface-3);flex:0 0 44px;place-items:center;width:44px;height:44px;display:grid}.model-editor-panel .studio-character-upload strong{font-size:14px;font-weight:600;display:block}.model-editor-panel .studio-character-upload small{color:var(--text-3);margin-top:4px;font-size:12px;display:block}.model-editor-panel .studio-add-reference{flex-direction:column;gap:8px;height:100%;min-height:128px;font-size:12px}.model-editor-panel .studio-character-upload:hover,.model-editor-panel .studio-add-reference:hover{background:var(--surface-3);border-color:var(--line-3)}.model-editor-panel .studio-file-input{display:none}.model-editor-save{border-top:1px solid var(--line-2);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:24px;padding-top:20px;display:flex}.model-editor-save>span{color:var(--text-3);align-items:center;gap:6px;font-size:12px;display:flex}.model-removal-confirm{border:1px solid var(--danger-line);border-radius:var(--r-lg);background:var(--surface-1);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;margin-top:24px;padding:20px;display:flex}.model-removal-confirm p{color:var(--text-2);flex:100%;line-height:22px}.models-loading{min-height:280px;color:var(--text-2);justify-content:center;align-items:center;gap:10px;display:flex}.character-library{border-bottom:1px solid var(--line-2);min-width:0;margin-bottom:20px;padding-bottom:20px}.character-library-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.character-library-heading>span{align-items:center;gap:8px;font-size:13px;font-weight:560;display:flex}.character-library-heading>span>svg{color:var(--text-3)}.character-library-heading .studio-text-button{color:var(--text-2);font-size:12px}.character-list{gap:8px;padding:3px 3px 8px;display:flex;overflow-x:auto}.character-tile{flex:0 0 104px;min-width:0;position:relative}.character-tile>button:first-child{border:1px solid var(--line-2);border-radius:var(--r-md);background:var(--surface-2);text-align:left;width:100%;min-width:0;padding:6px;display:block}.character-tile>button:first-child:hover{border-color:var(--line-3);background:var(--surface-3)}.character-tile.is-selected>button:first-child{border-color:var(--accent);background:var(--accent-soft)}.character-tile .studio-media-preview{border-radius:var(--r-sm);background:var(--bg-well);width:90px;height:90px;overflow:hidden}.character-tile img{object-fit:cover;width:100%;height:100%}.character-tile span{text-overflow:ellipsis;white-space:nowrap;margin-top:8px;font-size:13px;font-weight:560;display:block;overflow:hidden}.character-tile small{color:var(--text-3);margin:3px 0 4px;font-size:12px;line-height:16px;display:block}.character-selected{border-radius:var(--r-pill);background:var(--accent);width:20px;height:20px;color:var(--accent-ink);padding:3px;position:absolute;top:72px;right:12px}.character-remove{border:1px solid var(--line-3);border-radius:var(--r-pill);background:var(--surface-1);width:28px;height:28px;color:var(--text-2);opacity:0;place-items:center;display:grid;position:absolute;top:10px;right:10px}.character-tile:hover .character-remove,.character-tile:focus-within .character-remove{opacity:1}.character-remove:hover{color:var(--danger)}.character-empty,.character-notice{color:var(--text-3);font-size:12px;line-height:18px}.character-notice{color:var(--accent-text);margin-top:10px}.character-save-form{border:1px solid var(--line-2);border-radius:var(--r-md);background:var(--surface-2);gap:8px;margin-top:16px;padding:16px;display:grid}.character-save-title{justify-content:space-between;align-items:center;gap:8px;display:flex}.character-save-title strong{font-size:14px}.character-save-title button{border-radius:var(--r-pill);background:var(--surface-3);place-items:center;width:32px;height:32px;display:grid}.character-save-form label{font-size:13px;font-weight:560}.character-save-form input{width:100%;min-width:0;min-height:44px;padding:10px 12px}.character-save-form p{color:var(--text-3);margin:2px 0 6px;font-size:12px;line-height:18px}.character-save-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.character-save-actions button{font-size:13px}.character-delete{border:1px solid var(--danger-line);border-radius:var(--r-md);background:var(--danger-soft);flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:12px;padding:14px;display:flex}.character-delete span{flex:100%;font-size:13px;line-height:20px}.character-confirm-remove{color:var(--danger);border-color:var(--danger-line)}@media (max-width:768px){.models-page-heading{align-items:flex-start;gap:12px}.models-page-heading h1{font-size:28px;line-height:34px}.models-page-heading>button{padding:0 12px;font-size:13px}.model-editor-layout{grid-template-columns:minmax(0,1fr);gap:20px}.model-face-preview{aspect-ratio:1;width:100%}.model-editor-panel{padding:16px}.model-editor-save>.primary-button{flex:100%}.models-empty{padding:24px 0}}@media (max-width:640px){.models-gallery{grid-template-columns:minmax(0,1fr)}.models-gallery:has(.model-gallery-new:only-child){grid-template-columns:minmax(0,1fr)}.model-gallery-new{min-height:240px}.model-gallery-actions{grid-template-columns:minmax(0,1fr) 36px 36px}.model-gallery-actions button{min-height:36px}.model-removal-confirm{padding:16px}.model-removal-confirm button{width:100%}.character-remove{opacity:1;width:32px;height:32px}.character-tile{flex-basis:112px}.character-tile .studio-media-preview{width:98px;height:98px}.character-selected{top:80px}.character-save-title button{width:44px;height:44px}.model-editor-panel .studio-reference-select{min-height:44px}.models-page-heading>div{flex-wrap:wrap;gap:6px}.models-page-heading>button{flex-shrink:0}}@media (max-width:360px){.models-page-heading{flex-wrap:wrap}.models-page-heading>button{width:100%}}.model-editor-panel .studio-reference-tile{width:100%;height:auto}@media (max-width:640px){.character-remove{width:44px;height:44px}.character-library-heading .studio-text-button{min-height:44px}}.model-gallery-actions .model-edit-button,.model-gallery-actions .model-delete-button{position:relative}.model-gallery-actions .model-edit-button:after,.model-gallery-actions .model-delete-button:after{content:"";position:absolute;inset:-4px}.model-editor-panel .studio-reference-remove:after{content:"";position:absolute;inset:-8px}.model-editor-panel .studio-reference-remove svg{width:14px;height:14px}@media (max-width:768px){.model-face-preview:not(.has-face):not(.has-references){display:none}}
