.studio-shell[data-workspace=create]{height:100dvh;min-height:0;overflow:hidden}.studio-shell[data-workspace=create] .studio-workspace.create-workspace-fixed{min-height:0;overflow-y:auto;overflow-x:clip;overscroll-behavior-y:contain}.studio-shell[data-workspace=create] .studio-header{margin-bottom:14px;box-shadow:none;border-radius:var(--radius-lg)}.studio-shell[data-workspace=create] .studio-brand-slogan{display:none}.studio-shell[data-workspace=create] .studio-nav button{font-weight:500}.studio-shell[data-workspace=create] .studio-nav button.active{font-weight:600}.studio-shell[data-workspace=create] .studio-nav button.active:before{display:none}.studio-shell[data-workspace=create] .production-sidebar-stage-status{color:var(--muted)}.studio-create.studio-design-slice{flex:0 0 auto;height:auto;min-height:0;overflow:visible;grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr);align-items:start;gap:16px}.studio-design-slice .composer-surface,.studio-design-slice .recent-surface{min-height:0;height:auto;border-radius:var(--radius-lg);border:1px solid var(--line);padding:16px;background:var(--surface);box-shadow:none;overflow:visible}.studio-design-slice .create-production-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:10px;gap:10px;padding-bottom:10px;margin:0;border-bottom:1px solid var(--line)}.studio-design-slice .create-production-title-row h2{font-size:19px;font-weight:600;line-height:1.4}.studio-design-slice .create-title-recipe{grid-row:2;grid-column:1/-1}.studio-design-slice .studio-mode-toggle{grid-column:2;grid-row:1}.studio-design-slice .studio-mode-toggle button{min-height:36px;font-weight:600}.studio-design-slice .studio-composer-form,.studio-design-slice .studio-video-composer-form{display:flex;flex-direction:column;height:auto;min-height:0;flex:none;gap:10px;margin-top:12px}.studio-design-slice .prompt-heading{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.studio-design-slice .prompt-heading label{color:var(--ink);font-size:13px;font-weight:600}.studio-design-slice .prompt-heading .studio-field-hint{color:var(--muted);font-size:11px;font-weight:400;line-height:1.5}.studio-design-slice .prompt-composer,.studio-design-slice .studio-video-composer-form .prompt-composer{display:flex;flex-direction:column;height:auto;min-height:0;flex:none;background:var(--control);border-radius:var(--radius);border:1px solid var(--line);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.studio-create.studio-design-slice .prompt-composer:focus-within{border-color:var(--accent);box-shadow:none;outline:1px solid var(--accent);outline-offset:0}.studio-design-slice .prompt-composer textarea{display:block;height:180px;min-height:160px;flex:none;padding:16px;font-size:15px;line-height:1.75;font-weight:400;resize:vertical}.studio-design-slice .prompt-composer textarea::placeholder{color:var(--muted);font-weight:400}.studio-design-slice .composer-tools{flex:none;flex-wrap:wrap;min-height:44px;padding:6px 10px;gap:8px;border-top:1px solid var(--line)}.studio-design-slice .composer-tools .studio-reference-action{display:inline-flex;width:auto;gap:6px;padding:0 9px;border-radius:var(--radius-sm);font-size:12px}.studio-design-slice .composer-count{-webkit-margin-start:auto;margin-inline-start:auto;font-size:11px}.studio-design-slice .composer-settings:not(.video-create-output-settings){display:grid;grid-template-columns:minmax(0,1fr) 90px;grid-gap:10px 16px;gap:10px 16px;padding:6px 0;background:transparent;border:0;border-radius:0;box-shadow:none}.studio-design-slice .composer-settings:not(.video-create-output-settings) .size-picker{grid-column:1;grid-row:1}.studio-design-slice .composer-settings:not(.video-create-output-settings) .variation-picker{grid-column:2;grid-row:1}.studio-design-slice .composer-settings:not(.video-create-output-settings) .quality-picker{grid-column:1/-1;grid-row:2}.studio-design-slice .setting-label{font-size:12px;font-weight:500;color:var(--ink-soft)}.studio-design-slice .quality-options{display:flex;width:100%;padding:3px;border-radius:var(--radius-sm)}.studio-design-slice .quality-options button{flex:1 1;min-height:34px;font-weight:500;border-radius:var(--radius-xs)}.studio-design-slice .quality-options button.active{color:var(--ink);background:var(--surface);box-shadow:none}.studio-design-slice .negative-prompt-panel{border-radius:var(--radius-sm);box-shadow:none}.studio-design-slice .studio-generate-footer{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-top:16px;border-top:1px solid var(--line)}.studio-generate-context{flex:1 1;min-width:100px;display:grid;grid-gap:4px;gap:4px}.studio-generate-context>span{color:var(--ink);font-size:12px;font-weight:600}.studio-generate-context small{color:var(--muted);font-size:11px;line-height:1.5}.studio-design-slice .studio-generate-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid transparent;border-radius:var(--radius-sm);background:var(--accent);color:#fff;font-size:13px;font-weight:600;white-space:nowrap;transition:background .14s ease,transform .14s ease}.studio-design-slice .studio-generate-button:hover:not(:disabled){background:var(--accent-strong)}.studio-design-slice .studio-generate-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.studio-design-slice .studio-generate-button:active:not(:disabled){transform:translateY(1px)}.studio-design-slice .studio-generate-button:disabled{background:var(--subtle);color:var(--muted);opacity:1;cursor:not-allowed}.studio-design-slice .studio-preview-rail{height:auto;max-height:none;overflow:visible;padding:0}.studio-design-slice .recent-surface{display:flex;flex-direction:column}.studio-design-slice .recent-grid{flex:none;max-height:none;overflow:visible}.studio-design-slice .recent-grid>.empty-state{grid-column:1/-1}.studio-design-slice .rail-heading{align-items:start;gap:12px;margin-bottom:16px}.studio-design-slice .rail-heading h3{font-size:19px;font-weight:600;line-height:1.4}.studio-design-slice .studio-output-toolbar-actions{flex-wrap:wrap;gap:8px}.studio-design-slice .studio-view-mode-pill{background:var(--control);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:none}.studio-design-slice .studio-view-mode-pill button{min-width:30px;border-radius:var(--radius-xs)}.studio-design-slice .studio-view-mode-pill button.active{background:var(--surface);color:var(--ink);box-shadow:none;outline:1px solid var(--line)}.studio-design-slice .studio-output-compare-tools>button,.studio-design-slice .studio-output-filter-trigger{border-radius:var(--radius-sm);box-shadow:none;min-height:34px}.studio-design-slice .image-card{border-radius:var(--radius);box-shadow:none}.studio-design-slice .image-card-title{font-weight:500}.studio-design-slice .image-card:focus-within .image-card-actions{opacity:1;pointer-events:auto;transform:none}.studio-output-guidance{margin:-3px 0 16px;color:var(--muted);font-size:12px;line-height:1.6}@media (max-width:1180px){.studio-create.studio-design-slice{grid-template-columns:minmax(0,1fr)}.studio-design-slice .prompt-composer textarea{height:180px}}@media (max-width:720px){.studio-design-slice .composer-surface,.studio-design-slice .recent-surface{padding:16px}.studio-design-slice .create-production-title-row{gap:10px;padding-bottom:12px}.studio-design-slice .studio-composer-form{gap:10px;margin-top:14px}.studio-design-slice .prompt-composer textarea{height:160px;min-height:140px;font-size:16px}.studio-design-slice .quality-options button,.studio-design-slice .studio-mode-toggle button,.studio-design-slice .studio-reference-action{min-height:44px}.studio-design-slice .studio-field-hint{display:none}.studio-design-slice .studio-generate-footer{gap:8px;padding-top:12px}.studio-design-slice .studio-generate-button{padding-inline:12px}.studio-design-slice .studio-generate-context small{max-width:130px}.studio-design-slice .studio-output-toolbar-actions{width:100%;justify-content:space-between}.studio-design-slice .studio-output-toolbar-actions button{min-height:44px}.studio-design-slice .studio-view-mode-pill>button{min-height:44px!important}}@media (prefers-reduced-motion:reduce){.studio-design-slice .studio-generate-button{transition:none}}.studio-create.studio-design-slice :is(.size-picker-trigger,.variation-stepper,.quality-options,.studio-mode-toggle,.production-recipe-trigger,.enhance-split-button){border-radius:var(--radius-sm);box-shadow:none;background:var(--control)}.studio-create.studio-design-slice .quality-options{display:flex;width:100%}.studio-create.studio-design-slice .quality-options button.active,.studio-create.studio-design-slice .studio-view-mode-pill button.active{background:var(--surface);color:var(--ink);box-shadow:none}.studio-create.studio-design-slice .studio-generate-button{box-shadow:none}html[data-theme=dark] .studio-create.studio-design-slice .studio-generate-button:not(:disabled){color:var(--bg)}html[data-theme=dark] .studio-create.studio-design-slice .studio-view-mode-pill button.active{background:var(--surface);color:var(--ink);box-shadow:none}@media (min-width:1181px){.studio-create.studio-design-slice .composer-surface,.studio-create.studio-design-slice .recent-surface{min-height:calc(100dvh - 96px)}.studio-create.studio-design-slice .composer-surface{display:flex;flex-direction:column}.studio-create.studio-design-slice .prompt-composer,.studio-create.studio-design-slice .studio-composer-form{flex:1 0 auto}.studio-create.studio-design-slice .prompt-composer textarea{flex:1 0 180px;height:auto}}.studio-create.studio-design-slice .studio-quality-hint{display:block;margin-top:7px;color:var(--muted);font-size:11px;line-height:1.5;font-weight:400}.studio-image-model{display:grid;grid-gap:4px;gap:4px;font-size:11px;color:var(--muted)}.studio-image-model select{max-width:200px;min-height:36px;color:var(--ink);font:inherit;font-size:13px}.studio-design-slice .studio-selection-guidance,.studio-image-model select{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--control)}.studio-design-slice .studio-selection-guidance{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;padding:10px 12px;margin-bottom:14px;font-size:12px;line-height:1.6}.studio-design-slice .studio-selection-guidance span{color:var(--muted)}.studio-design-slice .studio-selection-count{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:4px;background:var(--subtle)}.studio-create.studio-design-slice .studio-output-compare-tools{flex-wrap:nowrap}.studio-output-load-error{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px;margin-bottom:12px;font-size:13px}.studio-output-load-error,.studio-output-load-error button{border:1px solid var(--line);border-radius:var(--radius-sm)}.studio-output-load-error button{min-height:44px;background:var(--control);color:var(--ink);padding:0 12px}dialog.media-compare-overlay{inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;color:var(--ink)}dialog.media-compare-overlay:not([open]){display:none}.studio-header.studio-preferences-header :is(.language-switch,.theme-switch){display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:44px;height:44px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--control);color:var(--ink);box-shadow:none;font-size:13px;font-weight:500}.studio-header.studio-preferences-header .theme-switch{width:44px;padding:0}.studio-header.studio-preferences-header :is(.language-switch,.theme-switch):hover{background:var(--subtle)}.studio-header.studio-preferences-header :is(.language-switch,.theme-switch):focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (max-width:620px){.studio-header.studio-preferences-header{grid-template-columns:minmax(0,1fr)}.studio-preferences-header .header-actions{width:100%;justify-content:space-between}.studio-header.studio-preferences-header .header-control-cluster{display:flex;gap:6px}.studio-header.studio-preferences-header .language-switch{min-width:70px}.studio-image-model select{min-height:44px;font-size:16px}}.studio-create.studio-design-slice .studio-output-compare-tools .compare-action:not(.ready){background:var(--control);color:var(--ink);border-color:var(--line);box-shadow:none}dialog.media-compare-overlay .media-compare-card-stage{grid-template:minmax(0,1fr) /minmax(0,1fr);overflow:hidden}dialog.media-compare-overlay .media-compare-card-stage :is(img,video){min-width:0;min-height:0;max-height:100%}dialog.media-compare-overlay .media-compare-card footer{position:relative;background:var(--surface)}@media (max-width:840px){dialog.media-compare-overlay .media-compare-actions button{min-height:44px}dialog.media-compare-overlay .media-compare-close{min-width:44px}}dialog.media-compare-overlay .media-compare-grid{align-content:start;grid-auto-rows:max-content}@media (max-width:620px){.studio-preferences-header :is(.header-search-popover,.notification-popover,.video-queue-popover,.header-project-menu){inset-block-start:var(--studio-header-bottom,calc(max(8px, env(safe-area-inset-top)) + 116px))}}html[data-theme=dark] .studio-create.studio-design-slice .studio-output-compare-tools .compare-action.ready,html[data-theme=dark] dialog.media-compare-overlay .media-compare-actions button.active{background:var(--accent);color:var(--bg)}.studio-shell[data-workspace=create] .create-workspace-fixed[data-studio-mode=image]{overflow:hidden}.studio-create.studio-image-desk{flex:1 1;height:0;min-height:0;overflow:hidden;align-items:stretch;grid-template-rows:minmax(0,1fr)}.studio-create.studio-image-desk>:is(.composer-surface,.recent-surface){height:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column}.studio-create.studio-image-desk .studio-composer-form{flex:1 1;height:0;min-height:0;gap:8px;margin-top:8px}.studio-create.studio-image-desk .prompt-composer{flex:1 1;height:0;min-height:0}.studio-create.studio-image-desk .prompt-composer textarea{flex:1 1;height:0;min-height:40px;overflow-y:auto;resize:none;padding:12px}.studio-create.studio-image-desk .recent-grid{flex:1 1;min-height:0;height:0;overflow-y:auto;overflow-x:hidden;align-content:start;padding:2px 3px 16px;scrollbar-gutter:stable;overscroll-behavior:contain}.studio-create.studio-image-desk .prompt-heading{flex:none;align-items:center;justify-content:space-between;min-height:34px;flex-wrap:nowrap}.studio-create.studio-image-desk .create-title-recipe{display:flex;align-items:center;gap:6px;min-width:0}.studio-create.studio-image-desk .create-production-title-row{flex:none;padding-bottom:8px}.studio-create.studio-image-desk .studio-secondary-tools{flex:none;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.studio-inline-settings{flex:1 0 100%;min-width:0}.studio-create.studio-image-desk .studio-generate-footer{flex:none;padding-top:10px}.studio-create.studio-image-desk .quality-options,.studio-tool-sheet .quality-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;width:100%;height:auto;min-height:38px;box-sizing:border-box;grid-gap:3px;gap:3px;padding:3px}.studio-create.studio-image-desk .quality-options button,.studio-tool-sheet .quality-options button{min-width:0;width:auto;height:auto;min-height:32px;padding:4px 6px;line-height:1.3;white-space:normal}.studio-improve-trigger,.studio-tool-sheet-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 8px;background:var(--control);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-sm);font-size:12px;white-space:nowrap}.studio-tool-sheet-trigger small{color:var(--muted);font-size:11px}.studio-panel-switch{display:none}.studio-improve-menu{width:340px;max-width:calc(100vw - 32px);max-height:min(440px,70dvh);overflow-y:auto}.studio-improve-menu header{display:grid;grid-gap:5px;gap:5px;padding:8px;font-size:13px}.studio-improve-menu header small{font-size:12px;font-weight:400;line-height:1.5;color:var(--muted)}.studio-improve-menu button:disabled{opacity:.55;cursor:not-allowed}.studio-tool-sheet{padding:0;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}.studio-tool-sheet[open]{display:flex;flex-direction:column}.studio-tool-sheet::-webkit-backdrop{background:rgb(0 0 0/.45)}.studio-tool-sheet::backdrop{background:rgb(0 0 0/.45)}.studio-tool-sheet>footer,.studio-tool-sheet>header{flex:none;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line)}.studio-tool-sheet h2{margin:0;font-size:18px}.studio-tool-sheet>footer{justify-content:flex-end;border-bottom:0;border-top:1px solid var(--line)}.studio-tool-sheet>footer button,.studio-tool-sheet>header button{min-width:44px;min-height:44px;border:1px solid var(--line);background:var(--control);color:var(--ink);border-radius:6px}.studio-tool-sheet>footer button{padding-inline:20px}.studio-tool-sheet-body{padding:16px;min-height:0;overflow-y:auto}.studio-tool-sheet .composer-settings{display:flex;flex-direction:column;gap:20px;border:0;padding:0}.studio-tool-sheet .setting-control{display:grid;grid-gap:8px;gap:8px}.studio-tool-sheet .size-picker-trigger{width:100%}.studio-tool-sheet .quality-options button{min-height:44px}.studio-tool-sheet .reference-strip{max-height:none;overflow:visible}@media (max-width:1180px){.studio-create.studio-image-desk{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px}.studio-panel-switch{display:flex;gap:4px;padding:3px;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius-sm)}.studio-panel-switch button{flex:1 1;min-height:38px;background:transparent;border:0;border-radius:5px;color:var(--muted);font:inherit;font-size:13px}.studio-panel-switch button[aria-pressed=true]{background:var(--subtle);color:var(--ink);font-weight:600}.studio-create.studio-image-desk .studio-tool-sheet-trigger small,.studio-image-desk[data-active-panel=create]>.studio-preview-rail,.studio-image-desk[data-active-panel=outputs]>.composer-surface{display:none}}@media (max-width:720px){.studio-create.studio-image-desk>:is(.composer-surface,.recent-surface){padding:10px}.studio-create.studio-image-desk .composer-tools{flex-wrap:nowrap;padding:4px;gap:4px}.studio-create.studio-image-desk .composer-count,.studio-create.studio-image-desk .studio-generate-context small{display:none}.studio-create.studio-image-desk .studio-reference-action,.studio-improve-trigger,.studio-panel-switch button,.studio-tool-sheet-trigger{min-height:44px}.studio-create.studio-image-desk .studio-composer-form{gap:5px;margin-top:5px}.studio-create.studio-image-desk .studio-generate-context{min-width:0;flex-basis:100%}.studio-create.studio-image-desk .studio-generate-footer{gap:4px 8px;padding-top:6px}.studio-create.studio-image-desk .studio-generate-button{flex:1 1}.studio-create.studio-image-desk .studio-secondary-tools{gap:4px;flex-wrap:nowrap}}@media (max-height:600px){.studio-create.studio-image-desk .studio-generate-context{display:none}.studio-create.studio-image-desk .create-production-title-row h2{font-size:16px}.studio-create.studio-image-desk .composer-surface{padding-block:6px}}dialog.studio-improve-menu{position:fixed;inset:0;margin:auto;transform:none;border:1px solid var(--line);padding:10px;border-radius:12px;color:var(--ink);background:var(--surface)}dialog.studio-improve-menu:not([open]){display:none}dialog.studio-improve-menu::-webkit-backdrop{background:rgb(0 0 0/.4)}dialog.studio-improve-menu::backdrop{background:rgb(0 0 0/.4)}.studio-improve-menu .studio-improve-close{min-height:44px;justify-content:center;margin-top:8px;border:1px solid var(--line);border-radius:6px}.studio-preferences-header .header-project-trigger-copy{display:grid;text-align:start;grid-gap:2px;gap:2px;min-width:0}.studio-preferences-header .header-project-trigger-copy small{color:var(--muted);font-size:10px;font-weight:500}.studio-preferences-header .header-project-trigger-copy strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.studio-preferences-header .header-project-menu-refined{display:flex;flex-direction:column;width:min(400px,calc(100vw - 24px));max-height:min(600px,calc(100dvh - var(--studio-header-bottom, 100px) - 20px));padding:8px;overflow:hidden;border-radius:10px;box-shadow:0 14px 40px rgb(0 0 0/.14)}.header-project-menu-heading{display:flex;align-items:center;justify-content:space-between;-webkit-padding-start:8px;padding-inline-start:8px;font-size:13px}.header-project-menu-heading button{border:0;background:transparent;color:var(--muted);width:44px;height:44px}.header-project-menu-results{min-height:0;overflow-y:auto;overscroll-behavior:contain}.header-project-menu-footer{display:flex;gap:6px;border-top:1px solid var(--line);padding-top:8px;flex:none}.header-project-menu-footer button{display:flex;flex:1 1;gap:6px;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:6px;background:var(--control);color:var(--ink);font-size:12px}.header-project-menu-refined .header-project-menu-section>div>button{box-shadow:none;border-radius:6px}.header-project-menu-refined .header-project-menu-section>div>button.active{background:var(--accent-soft)}.account-menu.account-menu-refined{padding:10px;border-radius:12px;box-shadow:0 14px 40px rgb(0 0 0/.16);overflow-y:auto}.account-menu-refined .account-menu-head{position:relative;padding:8px 28px 12px 4px;gap:10px}.account-menu-refined .account-menu-head strong{font-size:14px}.account-menu-refined .account-menu-dismiss{position:absolute;inset-inline-end:-2px;top:0;width:36px;height:36px;border:0;background:transparent;color:var(--muted)}.account-menu-refined .account-menu-section{padding:8px 0;margin:0}.account-menu-refined .account-credits-section{display:grid;grid-template-columns:1fr auto;grid-gap:6px;gap:6px;padding:12px;background:var(--control);border:1px solid var(--line);border-radius:8px}.account-menu-refined .account-credits-summary{grid-column:1}.account-menu-refined .account-credits-summary strong{font-size:24px}.account-menu-refined .account-credits-open{grid-column:2;grid-row:1;align-self:center;width:auto;padding-inline:10px}.account-menu-refined .account-billing-link{grid-column:1/-1;justify-content:flex-start}.account-menu-refined .account-compact-toggle small,.account-menu-refined .account-density-preview,.account-menu-refined .account-menu-section-heading{display:none}.account-menu-refined .account-compact-toggle{min-height:44px;border:0;background:transparent;padding-inline:8px;border-radius:6px;display:flex}.account-menu-refined .account-compact-toggle>span:nth-child(2){flex:1 1}.account-menu-refined .account-menu-section summary{min-height:44px;display:flex;align-items:center;gap:8px;padding-inline:8px;cursor:pointer;font-size:13px}.account-menu-refined summary::-webkit-details-marker{display:none}.account-menu-refined summary>svg:last-child{-webkit-margin-start:auto;margin-inline-start:auto}.account-menu-refined details[open]>summary>svg:last-child{transform:rotate(180deg)}.account-menu-refined .account-menu-link,.account-menu-refined .account-security-actions>button,.account-menu-refined .account-session-actions>button{min-height:44px;border-radius:6px;padding-inline:8px}.account-menu-refined .account-system-theme{display:none}@media (max-width:620px){.studio-preferences-header .header-project-menu-refined{width:auto}}.studio-improve-menu .compact-enhance-mode{min-height:54px;padding:10px}.studio-improve-menu .compact-enhance-mode strong{font-weight:600;font-size:13px;white-space:normal}.studio-improve-menu .compact-enhance-mode small{font-weight:400;font-size:12px;white-space:normal;overflow:visible;line-height:1.4;text-overflow:clip}.studio-create.studio-image-desk .studio-size-select,.studio-tool-sheet .studio-size-select{width:100%;max-width:none;min-width:0;height:38px;padding:0 8px;border:1px solid var(--line);border-radius:6px;font:inherit;font-size:12px;color:var(--ink);background:var(--control)}.studio-tool-sheet .studio-size-select{height:44px;font-size:16px}.studio-create.studio-image-desk .composer-settings .studio-image-model{grid-column:1/-1;grid-row:3}@media (min-width:721px) and (max-height:500px){.studio-create.studio-image-desk{grid-template-columns:minmax(320px,1fr) minmax(280px,1fr);grid-template-rows:minmax(0,1fr)}.studio-image-desk[data-active-panel]>:is(.composer-surface,.studio-preview-rail){display:flex}.studio-image-desk .studio-quality-hint,.studio-image-desk>.studio-panel-switch{display:none}}.studio-create.studio-image-desk>.studio-preview-rail{min-height:0;height:100%;max-height:100%;overflow:hidden;padding:0;display:flex;flex-direction:column}.studio-create.studio-image-desk .studio-preview-rail>.recent-surface{min-height:0;height:100%;flex:1 1;overflow:hidden}@media (max-width:1180px){.studio-create.studio-image-desk[data-active-panel=create]>.studio-preview-rail,.studio-create.studio-image-desk[data-active-panel=outputs]>.composer-surface{display:none}}@media (min-width:721px) and (max-height:500px){.studio-create.studio-image-desk[data-active-panel]>:is(.studio-preview-rail,.composer-surface){display:flex}}.studio-image-desk .prompt-heading .create-title-recipe{flex:0 0 auto;gap:4px}.studio-image-desk .production-recipe-clear{display:inline-flex;align-items:center;justify-content:center;width:32px;min-width:32px;padding:0}@media (max-width:720px){.studio-image-desk .enhancer-undo span{display:none}.studio-image-desk .enhancer-undo{padding:0;flex:0 0 auto}.studio-image-desk .enhancer-undo,.studio-image-desk .production-recipe-clear{min-width:44px;width:44px;min-height:44px}.studio-create.studio-image-desk .prompt-heading{gap:4px}}@media (max-width:380px){.studio-create.studio-image-desk .studio-reference-action{min-width:44px;width:44px;padding:0;justify-content:center}.studio-image-desk .studio-reference-action span{display:none}}@media (max-width:620px){.studio-shell[data-workspace=create] .create-workspace-fixed[data-studio-mode=image]{padding:max(8px,env(safe-area-inset-top)) 8px calc(84px + env(safe-area-inset-bottom))}.studio-shell[data-workspace=create] .create-workspace-fixed[data-studio-mode=image] .studio-header{margin-bottom:8px}}@media (max-height:650px){.studio-create.studio-image-desk>.composer-surface{gap:2px}.studio-create.studio-image-desk .create-production-title-row{padding-bottom:0}.studio-image-desk .create-production-title-row h2{font-size:16px}.studio-create.studio-image-desk .prompt-heading{min-height:32px}.studio-create.studio-image-desk .studio-composer-form{gap:3px;margin-top:3px}.studio-create.studio-image-desk .composer-tools{min-height:44px;padding-block:0}.studio-create.studio-image-desk .studio-generate-context{display:none}.studio-create.studio-image-desk .studio-generate-footer{padding-top:2px}}.studio-create.studio-image-desk .studio-tool-sheet .composer-settings{display:flex;flex-direction:column;gap:18px;padding:0}.studio-create.studio-image-desk .studio-tool-sheet .quality-options button{min-height:44px}.studio-create.studio-image-desk .studio-tool-sheet .variation-stepper{height:44px;width:130px}.studio-create.studio-image-desk .studio-tool-sheet .variation-stepper button{min-width:44px;min-height:44px}@media (min-width:621px) and (max-height:700px){.studio-shell[data-workspace=create] .studio-preferences-header{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;min-height:60px;height:60px;padding:6px}.studio-shell[data-workspace=create] .studio-preferences-header .header-actions{width:auto;flex:0 0 auto}.studio-shell[data-workspace=create] .studio-preferences-header .header-command-context{min-width:0;flex:1 1}.studio-create.studio-image-desk .create-production-title-row{min-height:0;grid-template-rows:auto;padding-bottom:4px}.studio-create.studio-image-desk .studio-mode-toggle button{min-height:32px}.studio-create.studio-image-desk .composer-count{display:none}.studio-create.studio-image-desk .composer-tools{flex-wrap:nowrap;min-height:38px;padding:2px 4px}.studio-create.studio-image-desk .studio-composer-form{gap:4px;margin-top:4px}.studio-create.studio-image-desk .studio-generate-footer{padding-top:4px}}.studio-create.studio-image-desk .studio-reference-action span{white-space:nowrap}.studio-preferences-header .header-project-menu-refined .header-project-menu-section>div>button{min-height:54px;padding:8px;border:0;background:transparent}.studio-preferences-header .header-project-menu-refined .header-project-menu-section>div>button.active{background:var(--accent-soft)}.studio-preferences-header .header-project-menu-refined .header-project-menu-section>div>button:hover{background:var(--subtle)}.header-project-menu-refined .header-project-menu-section>div>button strong{font-size:13px;font-weight:600;line-height:1.4}.header-project-menu-refined .header-project-menu-section>div>button small{font-size:11px;font-weight:400;line-height:1.4}.account-menu.account-menu-refined>.account-menu-section:not(.account-credits-section){padding:6px 0;margin:0;gap:0}.account-menu.account-menu-refined .account-menu-section .account-compact-toggle{display:flex;width:100%;gap:12px;padding:8px;min-height:44px;background:transparent;border:0}.account-menu.account-menu-refined .account-menu-section .account-compact-toggle>span:nth-child(2){display:block;width:auto;flex:1 1;min-width:0}.account-menu.account-menu-refined .account-menu-section .account-compact-toggle strong{white-space:nowrap;font-size:13px;font-weight:500}.account-menu.account-menu-refined .account-switch{flex:0 0 30px}.account-menu.account-menu-refined .account-menu-section summary{width:100%;box-sizing:border-box}.account-menu.account-menu-refined .account-menu-head .avatar{width:36px;height:36px;background:var(--subtle);border-radius:50%;display:grid;place-items:center}.account-menu.account-menu-refined .account-menu-head{background:transparent;border:0}.account-menu.account-menu-refined .account-menu-section .account-credits-open{box-shadow:none;min-height:44px;background:var(--surface);border:1px solid var(--line);border-radius:6px}.account-menu.account-menu-refined .account-menu-section button{font-weight:500}.account-menu.account-menu-refined .account-menu-dismiss{min-width:44px;min-height:44px}dialog.studio-improve-menu{width:420px;max-height:calc(100dvh - 32px)}.studio-improve-menu header{position:-webkit-sticky;position:sticky;top:-10px;z-index:1;grid-template-columns:minmax(0,1fr) 36px;align-items:center;background:var(--surface)}.studio-improve-menu header small{grid-column:1/-1}.studio-improve-menu .studio-improve-dismiss{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;background:transparent;color:var(--muted)}.studio-create.studio-image-desk .composer-settings:not(.video-create-output-settings){grid-template-columns:minmax(0,1fr) minmax(100px,.75fr) 90px}.studio-create.studio-image-desk .composer-settings .quality-picker{grid-column:2;grid-row:1}.studio-create.studio-image-desk .composer-settings .variation-picker{grid-column:3;grid-row:1}.studio-create.studio-image-desk .composer-settings .studio-image-model{grid-row:2}.studio-quality-compact select{min-width:0;width:100%;height:38px;border:1px solid var(--line);border-radius:6px;background:var(--control);color:var(--ink);font:inherit;font-size:12px;padding-inline:8px}.studio-tool-sheet .studio-quality-compact select{height:44px;font-size:16px}.studio-create.studio-image-desk .prompt-composer{overflow:visible}@media (min-width:621px){.studio-shell>.studio-sidebar{display:flex;flex-direction:column;align-items:stretch;height:100dvh;min-height:0}.studio-shell>.studio-sidebar>.studio-brand{flex:none;width:100%}.studio-shell>.studio-sidebar>.studio-nav{flex:1 1;width:100%;min-height:0;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}.studio-shell>.studio-sidebar>.sidebar-account{flex:none}.studio-shell>.studio-sidebar .studio-nav-button{flex-shrink:0}}.account-resources-back,.account-resources-link{display:flex;align-items:center;gap:8px;min-height:44px;width:100%;border:0;background:transparent;color:var(--ink);font:inherit;font-size:13px;text-align:start;border-radius:6px;padding:8px}.account-resources-link>span{flex:1 1}.account-resources-view h3{font-size:12px;color:var(--muted);margin:12px 8px 4px}.account-resources-back:hover,.account-resources-link:hover{background:var(--subtle)}[dir=rtl] .account-resources-back>svg,[dir=rtl] .account-resources-link>svg:last-child{transform:rotate(180deg)}dialog.credits-dialog-refined{position:fixed;inset:0;width:min(440px,calc(100vw - 24px));height:-moz-fit-content;height:fit-content;max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lift);-webkit-backdrop-filter:none;backdrop-filter:none}dialog.credits-dialog-refined:not([open]){display:none}dialog.credits-dialog-refined::-webkit-backdrop{background:rgb(0 0 0/.4)}dialog.credits-dialog-refined::backdrop{background:rgb(0 0 0/.4)}.credits-dialog-refined .credits-drawer{width:100%;height:auto;max-height:calc(100dvh - 26px);padding:0;gap:0;border:0;border-radius:inherit;overflow:hidden!important;box-shadow:none}.credits-dialog-refined .credits-drawer>header{flex:none;padding:14px 16px;border-bottom:1px solid var(--line)}.credits-dialog-refined .eyebrow{display:none}.credits-dialog-refined h2{font-size:18px;margin:0}.credits-dialog-refined header button{width:44px;height:44px;border-radius:6px}.credits-dialog-refined .credits-drawer-body{min-height:0;overflow-y:auto;padding:16px}.credits-dialog-refined .credits-drawer-balance{gap:4px;margin:0;padding:0 0 16px;border:0;border-radius:0;background:transparent}.credits-dialog-refined .credits-drawer-balance strong{font-size:34px;line-height:1.2;font-weight:600}.credits-dialog-refined .credits-drawer-balance small,.credits-dialog-refined .credits-drawer-balance span{font-size:12px}.credits-dialog-refined .credits-drawer-grid{gap:0;border-block:1px solid var(--line);margin:0 0 16px}.credits-dialog-refined .credits-drawer-grid>span{box-sizing:border-box;padding:9px 0;min-height:40px;border:0;border-radius:0;background:transparent;font-size:11px;font-weight:400}.credits-dialog-refined .credits-drawer-grid strong{font-size:13px;font-weight:600}.credits-dialog-refined .credits-drawer-ledger{gap:6px;padding:0}.credits-hold-note{margin:0 0 4px;color:var(--muted);font-size:11px;line-height:1.5}.credits-dialog-refined .credits-drawer-ledger h3{font-size:12px;color:var(--muted)}.credits-dialog-refined .credits-drawer-ledger article{gap:8px;padding:10px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.credits-dialog-refined .credits-drawer-ledger article strong{font-size:12px;font-weight:500}.credits-dialog-refined .credits-drawer-ledger article small{font-size:11px}.credits-dialog-refined .credits-drawer-ledger article em{white-space:nowrap;font-size:13px;font-weight:600;font-style:normal}.credits-dialog-refined .credits-drawer>footer{flex:none;border-top:1px solid var(--line);padding:12px 16px}.credits-dialog-refined .credits-drawer-manage{min-height:44px;margin:0;padding:10px 12px;border-radius:8px;background:var(--control)}.credits-dialog-refined .credits-drawer-manage small{font-size:11px}.header-search-label{display:none}@media (min-width:1280px){.studio-preferences-header .header-search-trigger{width:auto;padding-inline:12px;gap:6px}.header-search-label{display:inline;font-size:12px;font-weight:500}}@media (min-width:621px){.studio-shell.sidebar-collapsed{grid-template-columns:80px minmax(0,1fr)}.sidebar-collapsed .studio-nav-button{display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:54px;width:100%;padding:4px 0}.production-compact-caption,.sidebar-collapsed .studio-nav-label.compact{display:block;width:100%;font-size:9px;line-height:12px;font-weight:500;text-align:center;white-space:normal;overflow-wrap:anywhere}.sidebar-collapsed .studio-nav-button>.team-nav-icon,.sidebar-collapsed .studio-nav-button>.voices-nav-icon,.sidebar-collapsed .studio-nav-button>svg{width:22px;height:22px;flex-basis:22px}.sidebar-collapsed .production-sidebar-nav{flex:none;width:100%}.sidebar-collapsed .production-sidebar-trigger{display:flex;flex-direction:column;width:100%;min-height:58px;gap:3px;padding:4px 0}.sidebar-collapsed .production-sidebar-trigger-icon{width:28px;height:28px;flex-basis:28px}.sidebar-collapsed .studio-nav .sidebar-nav-kicker{display:none}.studio-shell.sidebar-collapsed>.studio-sidebar{gap:8px;padding-inline:8px}.sidebar-collapsed .studio-brand{min-height:48px;padding:4px 0}.sidebar-collapsed .sidebar-account{align-self:center}}.negative-prompt-panel.avoid-panel{display:inline-flex;width:-moz-fit-content;width:fit-content;max-width:100%;min-width:0;gap:0;padding:0;border:0;border-radius:var(--radius-xs);background:transparent;box-shadow:none}.negative-prompt-panel.avoid-panel .avoid-disclosure{display:inline-flex;align-items:center;gap:6px;width:auto;max-width:100%;min-height:32px;padding:5px 8px;border:1px solid var(--line);border-radius:var(--radius-xs);background:var(--surface);text-align:start}.negative-prompt-panel .avoid-disclosure strong{color:var(--muted);font-size:11px;font-weight:500;line-height:1.4;white-space:nowrap}.negative-prompt-panel .avoid-disclosure .avoid-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;min-height:18px;padding:0 4px;border-radius:4px;background:var(--accent-soft);color:var(--accent-strong);font-size:10px;font-weight:650}.negative-prompt-panel .avoid-disclosure:hover{border-color:var(--line-strong);background:var(--control)}.negative-prompt-panel .avoid-editor-dialog{position:fixed;inset:0;width:min(480px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:0;overflow:hidden;border:1px solid var(--line-strong);border-radius:var(--radius-lg);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-overlay);overscroll-behavior:contain}.negative-prompt-panel .avoid-editor-dialog[open]{display:flex;flex-direction:column}.negative-prompt-panel .avoid-editor-dialog::-webkit-backdrop{background:rgba(12,12,16,.42)}.negative-prompt-panel .avoid-editor-dialog::backdrop{background:rgba(12,12,16,.42)}html[data-theme=dark] .negative-prompt-panel .avoid-editor-dialog::-webkit-backdrop{background:rgba(0,0,0,.64)}html[data-theme=dark] .negative-prompt-panel .avoid-editor-dialog::backdrop{background:rgba(0,0,0,.64)}.negative-prompt-panel .avoid-editor-header{display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 16px 8px}.negative-prompt-panel .avoid-editor-header h2{margin:0;color:var(--ink);font-size:17px;font-weight:650;line-height:1.5}.negative-prompt-panel .avoid-editor-header p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.negative-prompt-panel .avoid-editor-close{display:grid;place-items:center;flex:0 0 36px;width:36px;min-height:36px;padding:0;border:1px solid var(--line);border-radius:var(--radius-xs);background:var(--surface);color:var(--muted)}.negative-prompt-panel .negative-prompt-body{display:grid;min-width:0;min-height:0;grid-gap:7px;gap:7px;padding:0 16px 12px;overflow-y:auto;overscroll-behavior:contain}.negative-prompt-panel .avoid-input-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.negative-prompt-panel .avoid-input-heading label{color:var(--ink-soft);font-size:12px;font-weight:600}.negative-prompt-panel .avoid-clear-pill{min-height:32px;padding:4px 6px;border:0;border-radius:var(--radius-xs);background:transparent;color:var(--accent-strong);font-size:11px;font-weight:600}.negative-prompt-panel .avoid-clear-pill:disabled{color:var(--muted);opacity:.65;cursor:default}.negative-prompt-panel .avoid-prompt-input{display:block;width:100%;min-width:0;min-height:74px;padding:8px 10px;resize:vertical;border:1px solid var(--line-strong);border-radius:var(--radius-xs);background:var(--surface-strong);color:var(--ink);font:inherit;font-size:16px;line-height:1.5}.negative-prompt-panel .avoid-input-hint{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.negative-prompt-panel .avoid-chip-groups{gap:8px;margin-top:5px}.negative-prompt-panel .avoid-chip-groups section{grid-template-columns:minmax(0,1fr);gap:4px}.negative-prompt-panel .avoid-chip-groups section>span{min-height:0;color:var(--muted);font-size:10px;font-weight:600;text-transform:none}.negative-prompt-panel .avoid-chip-list{gap:5px}.negative-prompt-panel .avoid-chip-list button{display:inline-flex;align-items:center;justify-content:center;gap:4px;max-width:100%;min-height:30px;padding:5px 8px;border-color:var(--line);border-radius:var(--radius-xs);background:var(--surface);color:var(--ink-soft);font-size:11px;font-weight:500;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.negative-prompt-panel .avoid-chip-list button svg{flex:0 0 auto}.negative-prompt-panel .avoid-chip-list button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong);box-shadow:none}.negative-prompt-panel .avoid-help{margin-top:3px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.55}.negative-prompt-panel .avoid-help summary{min-height:30px;padding-block:7px;cursor:pointer}.negative-prompt-panel .avoid-help p{margin:0 0 3px}.negative-prompt-panel .avoid-editor-footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px;border-top:1px solid var(--line)}.negative-prompt-panel .avoid-editor-footer span{color:var(--muted);font-size:11px;line-height:1.5}.negative-prompt-panel .avoid-editor-footer button{min-height:44px;min-width:74px;padding:8px 14px;border:1px solid var(--line-strong);border-radius:var(--radius-xs);background:var(--ink);color:var(--surface);font-size:12px;font-weight:600}.prompt-template-control{display:inline-flex;align-items:center;flex:0 0 auto;min-width:0}.prompt-template-control .production-recipe-trigger{min-height:34px;max-width:100%;padding:6px 9px;border-radius:var(--radius-xs);background:var(--surface);color:var(--ink-soft);font-size:11px;font-weight:550}.prompt-template-control .production-recipe-trigger:disabled{color:var(--muted);opacity:.6}.prompt-template-dialog{position:fixed;inset:0;width:min(960px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:0;overflow:hidden;border:1px solid var(--line-strong);border-radius:var(--radius-lg);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-overlay);overscroll-behavior:contain}.prompt-template-dialog[open]{display:flex;flex-direction:column}.prompt-template-dialog::-webkit-backdrop{background:rgba(12,12,16,.5)}.prompt-template-dialog::backdrop{background:rgba(12,12,16,.5)}html[data-theme=dark] .prompt-template-dialog::-webkit-backdrop{background:rgba(0,0,0,.7)}html[data-theme=dark] .prompt-template-dialog::backdrop{background:rgba(0,0,0,.7)}.prompt-template-dialog .prompt-template-chooser{display:flex;flex-direction:column;min-height:0}.prompt-template-dialog .prompt-template-header{display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 14px}.prompt-template-dialog .prompt-template-header>div{min-width:0}.prompt-template-dialog h2{margin:0;color:var(--ink);font-size:20px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}.prompt-template-dialog .prompt-template-header p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.6}.prompt-template-dialog .prompt-modal-close{flex:0 0 44px;width:44px;min-height:44px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink-soft)}.prompt-template-dialog .prompt-modal-close:hover{background:var(--control)}.prompt-template-dialog .prompt-template-search{flex:0 0 auto;display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding-inline:12px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-strong);color:var(--muted)}.prompt-template-dialog .prompt-template-search input{width:100%;min-width:0;min-height:44px;padding:8px 0;border:0;border-radius:0;background:transparent;color:var(--ink);font:inherit;font-size:16px;box-shadow:none;outline:none}.prompt-template-dialog .prompt-template-search:focus-within{outline:2px solid var(--accent);outline-offset:2px}.prompt-template-dialog .prompt-template-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px 14px}.prompt-template-dialog .prompt-template-group+.prompt-template-group{margin-top:24px}.prompt-template-dialog .prompt-template-group h3{display:flex;align-items:center;gap:8px;margin:0 0 9px;color:var(--ink-soft);font-size:12px;font-weight:650}.prompt-template-dialog .prompt-template-group h3>span{font-weight:400}.prompt-template-dialog .prompt-template-row{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;width:100%;min-width:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);text-align:start;transition:border-color .15s ease,background-color .15s ease}.prompt-template-dialog .prompt-template-row:hover{border-color:var(--line-strong);background:var(--control)}.prompt-template-dialog .prompt-template-row.active{background:var(--accent-soft)}.prompt-template-dialog .prompt-template-row-copy{display:grid;min-width:0;grid-gap:4px;gap:4px;padding:12px;-webkit-padding-end:30px;padding-inline-end:30px}.prompt-template-dialog .prompt-template-row strong{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:14px;line-height:1.45;font-weight:600}.prompt-template-dialog .prompt-template-row small{color:var(--muted);font-size:12px;line-height:1.55;overflow-wrap:anywhere}.prompt-template-dialog .prompt-template-active{display:inline-flex;align-items:center;gap:3px;color:var(--accent-strong);font-size:10px;font-weight:600}.prompt-template-dialog .prompt-template-row-arrow{position:absolute;inset-inline-end:10px;bottom:15px;color:var(--muted)}.prompt-template-dialog[dir=rtl] :is(.prompt-template-row-arrow,.prompt-template-back svg){transform:rotate(180deg)}.prompt-template-dialog .prompt-template-empty{margin:18px 0;color:var(--muted);font-size:14px;line-height:1.5}.prompt-template-dialog .prompt-template-footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;padding:12px 20px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.5}.prompt-template-dialog .prompt-template-brief{display:flex;flex-direction:column;width:100%;min-height:0;max-height:none;padding:0;overflow:hidden;border:0;border-radius:0;background:var(--surface);box-shadow:none}.prompt-template-dialog .prompt-template-back{display:inline-flex;align-items:center;gap:6px;min-height:36px;margin:-8px 0 3px;padding:4px 0;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:500}.prompt-template-dialog .prompt-template-brief-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px 20px}.prompt-template-dialog .recipe-apply-mode{display:flex;flex-wrap:wrap;gap:6px;width:100%;margin:0 0 12px;padding:4px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--control)}.prompt-template-dialog .recipe-apply-mode button{flex:1 1 180px;min-height:44px;padding:8px 10px;border:1px solid transparent;border-radius:var(--radius-xs);background:transparent;color:var(--muted);font-size:12px;font-weight:600;white-space:normal}.prompt-template-dialog .recipe-apply-mode button.active{border-color:var(--line-strong);background:var(--surface);color:var(--ink);box-shadow:none}.prompt-template-dialog :is(.recipe-brief-fields label,.recipe-current-prompt,.recipe-brief-preview){color:var(--ink-soft);font-size:12px;font-weight:600}.prompt-template-dialog .recipe-brief-fields label>span{flex-wrap:wrap}.prompt-template-dialog .recipe-brief-fields label>span small{color:var(--muted);font-size:10px;font-weight:400}.prompt-template-dialog :is(.recipe-brief-fields input,.recipe-current-prompt textarea,.recipe-brief-preview textarea){min-width:0;min-height:44px;border-color:var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-strong);font:inherit;font-size:16px;font-weight:400;line-height:1.5}.prompt-template-dialog .recipe-brief-preview textarea{background:var(--control)}.prompt-template-dialog .recipe-brief-required{color:var(--amber);font-size:12px;line-height:1.5}.prompt-template-dialog .prompt-template-replace-note{margin:0 0 12px;color:var(--amber);font-size:12px;line-height:1.6}.prompt-template-dialog .prompt-template-actions{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px;margin:0;padding:12px 20px;border-top:1px solid var(--line)}.prompt-template-dialog .prompt-template-actions button{min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);font-size:13px;line-height:1.4;white-space:normal}.prompt-template-dialog .prompt-template-actions .prompt-template-apply{border-color:var(--accent);background:var(--accent);color:#fff;box-shadow:none}html[data-theme=dark] .prompt-template-dialog .prompt-template-actions .prompt-template-apply{color:#171719}.prompt-template-dialog .prompt-template-actions .prompt-template-apply:disabled{border-color:var(--line);background:var(--control);color:var(--muted);opacity:1;cursor:not-allowed}:is(.negative-prompt-panel,.prompt-template-control,.prompt-template-dialog) :is(button,textarea,input,summary):focus-visible{outline:2px solid var(--accent);outline-offset:2px}.prompt-template-dialog .prompt-template-context{display:block;margin-bottom:4px;color:var(--accent-strong);font-size:10px;font-weight:650;letter-spacing:.04em}.prompt-template-dialog .prompt-template-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.65fr);align-items:end;flex:0 0 auto;grid-gap:10px;gap:10px;margin:0 20px 18px}.prompt-template-dialog .prompt-template-category{display:grid;min-width:0;grid-gap:4px;gap:4px;color:var(--muted);font-size:10px}.prompt-template-dialog .prompt-template-category select{width:100%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-strong);color:var(--ink);font-size:16px}.prompt-template-dialog .prompt-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:12px;gap:12px}.prompt-template-dialog .prompt-template-details{color:var(--muted);font-size:10px;line-height:1.45}.prompt-template-dialog .prompt-template-preview{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;flex:0 0 auto;overflow:hidden;border:0;border-bottom:1px solid var(--line);background:var(--control)}.prompt-template-dialog .prompt-template-custom-preview{display:grid;place-items:center;color:var(--muted)}.prompt-template-dialog .prompt-template-custom-preview>span{display:grid;place-items:center;width:64px;height:64px;border:1px solid var(--line-strong);border-radius:var(--radius);color:var(--ink-soft);font-size:22px;font-weight:600}@media (max-width:780px){.prompt-template-dialog .prompt-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:600px){.negative-prompt-panel .avoid-chip-list button{min-height:38px}.negative-prompt-panel .avoid-clear-pill{min-height:44px}.negative-prompt-panel .avoid-editor-close{min-height:44px;flex-basis:44px}.negative-prompt-panel .avoid-editor-footer button{min-height:44px}.prompt-template-dialog .prompt-template-category select{font-size:16px}.prompt-template-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:var(--radius-lg)}.prompt-template-dialog .prompt-template-header{gap:8px;padding:14px 14px 12px}.prompt-template-dialog h2{font-size:18px}.prompt-template-dialog .prompt-template-header p{font-size:12px}.prompt-template-dialog .prompt-template-filters{margin-inline:14px;grid-template-columns:minmax(0,1fr)}.prompt-template-dialog .prompt-template-category{grid-template-columns:auto minmax(0,1fr);align-items:center}.prompt-template-dialog .prompt-template-grid{gap:10px}.prompt-template-dialog .prompt-template-row-copy{padding:10px;-webkit-padding-end:24px;padding-inline-end:24px}.prompt-template-dialog .prompt-template-row strong{font-size:12px}.prompt-template-dialog :is(.prompt-template-list,.prompt-template-brief-body){padding-inline:14px}.prompt-template-dialog .recipe-brief-fields{grid-template-columns:minmax(0,1fr)}.prompt-template-dialog .recipe-apply-mode button{flex-basis:100%}.prompt-template-dialog .prompt-template-actions,.prompt-template-dialog .prompt-template-footer{padding:10px 14px}.prompt-template-dialog .prompt-template-actions button{flex:1 1;min-width:0;padding-inline:10px}}@media (prefers-reduced-motion:reduce){.negative-prompt-panel *,.prompt-template-control *,.prompt-template-dialog *{animation:none;transition:none}}@media (pointer:coarse){.negative-prompt-panel.avoid-panel .avoid-disclosure,.prompt-template-control .production-recipe-trigger{min-height:44px}}@media (max-height:480px){.prompt-template-dialog .prompt-template-context,.prompt-template-dialog .prompt-template-header p{display:none}.prompt-template-dialog .prompt-template-header{padding-block:8px}.prompt-template-dialog .prompt-template-filters{margin-bottom:10px}.negative-prompt-panel .avoid-editor-header{padding-block:8px}.negative-prompt-panel .avoid-editor-header p{display:none}}dialog.prompt-review-dialog{inset:0;width:min(940px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:0;overflow:hidden;border:1px solid var(--line-strong);border-radius:var(--radius-lg);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-overlay);backdrop-filter:none;-webkit-backdrop-filter:none}dialog.prompt-review-dialog:not([open]){display:none}dialog.prompt-review-dialog[open]{display:flex;flex-direction:column}dialog.prompt-review-dialog::-webkit-backdrop{background:rgba(12,12,16,.5)}dialog.prompt-review-dialog::backdrop{background:rgba(12,12,16,.5)}html[data-theme=dark] dialog.prompt-review-dialog{background:var(--surface)}html[data-theme=dark] dialog.prompt-review-dialog::-webkit-backdrop{background:rgba(0,0,0,.7)}html[data-theme=dark] dialog.prompt-review-dialog::backdrop{background:rgba(0,0,0,.7)}dialog.prompt-review-dialog .prompt-intelligence-modal{display:flex;flex-direction:column;width:100%;min-height:0;max-height:none;padding:0;overflow:hidden;border:0;border-radius:0;background:var(--surface);box-shadow:none}.prompt-review-dialog .prompt-intelligence-modal>header{flex:0 0 auto;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}.prompt-review-dialog .prompt-intelligence-modal h2{font-size:19px;line-height:1.45}.prompt-review-dialog .prompt-modal-close{flex:0 0 44px;width:44px;height:44px}.prompt-review-dialog .prompt-review-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px}.prompt-review-dialog .prompt-review-body textarea{font-size:16px}.prompt-review-dialog .modal-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:0;padding:12px 20px;border-top:1px solid var(--line)}.prompt-review-dialog .modal-actions button{min-height:44px;padding:8px 12px;font-size:13px;white-space:normal}.prompt-review-dialog :is(button,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (max-width:600px){.prompt-review-dialog .modal-actions,.prompt-review-dialog .prompt-intelligence-modal>header,.prompt-review-dialog .prompt-review-body{padding:12px}.prompt-review-dialog .modal-actions button{flex:1 1 auto}}dialog.studio-improve-menu.studio-improve-visual-dialog{width:min(740px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;overflow:hidden;border-color:var(--line-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow-overlay)}dialog.studio-improve-visual-dialog[open]{display:flex;flex-direction:column}.studio-improve-visual-dialog .prompt-improve-picker{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--surface)}.studio-improve-visual-dialog .prompt-improve-header{position:static;display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--line)}.studio-improve-visual-dialog .prompt-improve-header>div{min-width:0}.studio-improve-visual-dialog .prompt-improve-header h2{margin:0;color:var(--ink);font-size:20px;line-height:1.4;font-weight:650}.studio-improve-visual-dialog .prompt-improve-header p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.studio-improve-visual-dialog .prompt-improve-dismiss{grid-template-columns:auto;grid-template-rows:auto;display:grid;flex:0 0 44px;place-items:center;width:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink-soft)}.studio-improve-visual-dialog .prompt-improve-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px}.studio-improve-visual-dialog .prompt-improve-unavailable{margin:0 0 12px;color:var(--amber);font-size:12px;line-height:1.6}.studio-improve-visual-dialog .prompt-improve-example-label{margin-bottom:9px;color:var(--muted);font-size:11px;line-height:1.5}.studio-improve-visual-dialog .prompt-improve-featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.studio-improve-visual-dialog .prompt-improve-choice{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%;min-width:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);text-align:start;transition:border-color .15s ease,background-color .15s ease}.studio-improve-visual-dialog .prompt-improve-choice:hover:not(:disabled){background:var(--control);border-color:var(--line-strong)}.studio-improve-visual-dialog .prompt-improve-choice img{display:block;width:100%;aspect-ratio:2/1;height:auto;object-fit:cover;object-position:50% 35%;border-bottom:1px solid var(--line);background:var(--control)}.studio-improve-visual-dialog .prompt-improve-choice-copy{display:grid;place-items:normal;width:auto;height:auto;border-radius:0;background:transparent;min-width:0;grid-gap:3px;gap:3px;padding:10px 12px;-webkit-padding-end:30px;padding-inline-end:30px}.studio-improve-visual-dialog .prompt-improve-choice strong{font-size:14px;font-weight:600;line-height:1.45;white-space:normal}.studio-improve-visual-dialog .prompt-improve-choice>svg{position:absolute;inset-inline-end:10px;bottom:12px;color:var(--muted)}.studio-improve-visual-dialog .prompt-improve-more{margin-top:12px;border-bottom:1px solid var(--line)}.studio-improve-visual-dialog .prompt-improve-more summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 0;color:var(--ink-soft);font-size:12px;font-weight:550;list-style:none;cursor:pointer}.studio-improve-visual-dialog .prompt-improve-more summary::-webkit-details-marker{display:none}.studio-improve-visual-dialog .prompt-improve-more summary>span{display:flex;align-items:center;gap:8px}.studio-improve-visual-dialog .prompt-improve-more summary small{color:var(--muted);font-size:11px;font-weight:400}.studio-improve-visual-dialog .prompt-improve-more summary>svg{transition:transform .15s ease}.studio-improve-visual-dialog .prompt-improve-more[open] summary>svg{transform:rotate(180deg)}.studio-improve-visual-dialog .prompt-improve-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:4px 12px;gap:4px 12px;padding-bottom:10px}.studio-improve-visual-dialog .prompt-improve-secondary button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:56px;padding:9px;border:0;border-radius:var(--radius-sm);background:var(--control);color:var(--ink-soft);text-align:start}.studio-improve-visual-dialog .prompt-improve-secondary button>span{display:grid;place-items:normal;width:auto;height:auto;border-radius:0;background:transparent;min-width:0;grid-gap:3px;gap:3px}.studio-improve-visual-dialog .prompt-improve-secondary button>svg{flex:0 0 auto}.studio-improve-visual-dialog .prompt-improve-secondary strong{white-space:normal;color:var(--ink);font-size:12px;font-weight:550;line-height:1.5}.studio-improve-visual-dialog .prompt-improve-secondary small{white-space:normal;color:var(--muted);font-size:11px;font-weight:400;line-height:1.55}.studio-improve-visual-dialog .prompt-improve-format{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding-top:10px}.studio-improve-visual-dialog .prompt-improve-format button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;max-width:100%;min-height:44px;padding:6px 0;border:0;background:transparent;color:var(--ink-soft);font-size:12px;line-height:1.5;white-space:normal}.studio-improve-visual-dialog .prompt-improve-format svg{flex:0 0 auto}.studio-improve-visual-dialog .prompt-improve-footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;border-top:1px solid var(--line)}.studio-improve-visual-dialog .prompt-improve-cost{min-width:0;color:var(--muted);font-size:12px;line-height:1.5}.studio-improve-visual-dialog .prompt-improve-footer>button{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-height:44px;padding:8px 18px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink-soft);font-size:12px}.studio-improve-visual-dialog [dir=rtl] :is(.prompt-improve-choice>svg,.prompt-improve-secondary button>svg){transform:rotate(180deg)}.studio-improve-visual-dialog :is(button,summary):focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (max-width:600px){dialog.studio-improve-menu.studio-improve-visual-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.studio-improve-visual-dialog :is(.prompt-improve-header,.prompt-improve-body,.prompt-improve-footer){padding:12px}.studio-improve-visual-dialog .prompt-improve-header h2{font-size:18px}.studio-improve-visual-dialog .prompt-improve-featured{gap:9px}.studio-improve-visual-dialog .prompt-improve-choice img{aspect-ratio:1.4/1}.studio-improve-visual-dialog .prompt-improve-choice-copy{padding:9px}.studio-improve-visual-dialog .prompt-improve-choice strong{font-size:12px}.studio-improve-visual-dialog .prompt-improve-choice>svg{display:none}.studio-improve-visual-dialog .prompt-improve-secondary{grid-template-columns:minmax(0,1fr)}.studio-improve-visual-dialog .prompt-improve-cost{font-size:11px}}@media (max-width:359px){.prompt-template-dialog .prompt-template-grid{grid-template-columns:minmax(0,1fr)}}@media (max-height:480px){.studio-improve-visual-dialog .prompt-improve-header{padding-block:8px}.studio-improve-visual-dialog .prompt-improve-header p{display:none}}@media (prefers-reduced-motion:reduce){.studio-improve-visual-dialog *{transition:none;animation:none}}.generation-wait{display:contents}.generation-wait-controls{display:inline-flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0}.generation-wait-controls .studio-generate-button{gap:8px;border-radius:var(--radius-sm);white-space:nowrap;width:auto;opacity:1;background:var(--surface);color:var(--muted);cursor:wait}.generation-wait-cancel,.generation-wait-controls .studio-generate-button{display:inline-flex;align-items:center;padding:8px 12px;font:inherit;font-size:13px;min-height:44px;border:1px solid var(--line)}.generation-wait-cancel{justify-content:center;border-radius:var(--radius-sm);background:transparent;color:var(--ink);cursor:pointer}.generation-wait-cancel:hover{background:var(--surface)}.generation-wait-cancel:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.generation-wait-note{flex:0 0 100%;grid-column:1/-1;width:100%;min-width:0;margin:0;color:var(--muted);font-size:12px;line-height:1.6;text-align:end;overflow-wrap:anywhere}:where(:has(>.generation-wait)){flex-wrap:wrap}@media (max-width:480px){.generation-wait-controls{gap:6px;grid-column:2}.generation-wait-cancel{padding-inline:10px}.generation-wait-note{text-align:start}}.studio-generate-footer>.generation-wait>.generation-wait-controls{-webkit-margin-start:auto;margin-inline-start:auto}.studio-generate-footer>.credit-estimate-pill:has(+.generation-wait){-webkit-margin-start:auto;margin-inline-start:auto}.studio-generate-footer>.credit-estimate-pill+.generation-wait>.generation-wait-controls{-webkit-margin-start:0;margin-inline-start:0}@media (max-width:430px){.studio-create.studio-image-desk .studio-generate-footer>.generation-wait>.generation-wait-controls{grid-column:2;margin:0;justify-self:stretch}.studio-create.studio-image-desk .generation-wait-controls{gap:4px}.studio-create.studio-image-desk .generation-wait-controls .studio-generate-button{padding-inline:6px}.studio-create.studio-image-desk .generation-wait-cancel{padding-inline:8px}}@media (max-height:500px),(max-width:720px) and (max-height:650px){.studio-create.studio-image-desk .studio-generate-footer>.generation-wait>.generation-wait-controls{grid-column:2;margin:0;justify-self:stretch;flex-wrap:nowrap}.studio-create.studio-image-desk .generation-wait-controls{gap:4px}.studio-create.studio-image-desk .generation-wait-controls .studio-generate-button{padding-inline:6px}.studio-create.studio-image-desk .generation-wait-cancel{padding-inline:8px}.studio-create.studio-image-desk .studio-composer-form:has(.generation-wait) .prompt-composer{overflow-y:auto;overscroll-behavior:contain}.studio-create.studio-image-desk .studio-composer-form:has(.generation-wait) .prompt-composer textarea{flex:0 0 64px}}