.g-model-trigger,.g-parameter-trigger{max-width:100%;min-height:40px;color:inherit;font:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:10px;align-items:center;gap:8px;padding:8px 10px;display:inline-flex}.g-model-trigger>span,.g-parameter-trigger>span{text-overflow:ellipsis;min-width:0;overflow:hidden}.g-model-trigger:hover,.g-parameter-trigger:hover{background:color-mix(in srgb, var(--foreground) 4%, transparent)}.g-model-trigger:disabled,.g-parameter-trigger:disabled{opacity:.5;cursor:default}.g-model-search{background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid var(--g-border,var(--input));border-radius:12px;align-items:center;gap:10px;margin-bottom:16px;padding:12px;display:flex}.g-model-search input{width:100%;min-width:0;color:inherit;font:inherit;background:0 0;border:0;outline:none}.g-model-search:focus-within{outline:2px solid var(--foreground);outline-offset:2px}.g-model-options{gap:10px;display:grid}.g-model-options>button{text-align:left;border:1px solid var(--g-border,var(--border));background:color-mix(in srgb, var(--foreground) 4%, transparent);width:100%;min-height:88px;color:inherit;cursor:pointer;border-radius:14px;align-items:center;gap:14px;padding:16px;display:flex}.g-model-options>button[aria-pressed=true]{border-color:var(--foreground);background:var(--secondary)}.g-model-brand{background:color-mix(in srgb, var(--foreground) 4%, transparent);border-radius:12px;flex:0 0 42px;place-items:center;height:42px;font-size:15px;font-weight:600;display:grid}.g-model-copy{flex:1;gap:5px;min-width:0;display:grid}.g-model-copy strong{font-size:15px}.g-model-copy>span,.g-model-copy small{color:var(--muted-foreground);font-size:12px;line-height:1.5}.g-generation-choices{gap:24px;display:grid}.g-generation-choices fieldset{border:0;min-width:0;margin:0;padding:0}.g-generation-choices legend{margin-bottom:12px;padding:0;font-size:14px;font-weight:500}.g-choice-grid{background:color-mix(in srgb, var(--foreground) 4%, transparent);border-radius:12px;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:6px;padding:4px;display:grid}.g-choice-grid label{cursor:pointer;text-align:center;min-height:48px;color:var(--muted-foreground);border:1px solid #0000;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:12px 5px;font-size:13px;display:flex;position:relative}.g-choice-grid label:has(input:checked){color:var(--foreground);background:color-mix(in srgb, var(--foreground) 4%, transparent);border-color:var(--input)}.g-choice-grid label:has(input:focus-visible){outline:2px solid var(--foreground);outline-offset:2px}.g-choice-grid input{pointer-events:none;opacity:0;width:1px;height:1px;position:absolute}.g-choice-grid small{color:var(--muted-foreground);font-size:10px}.g-choice-ratio{border:1.5px solid;border-radius:2px;max-width:32px;height:20px}.g-generation-done{width:100%;min-height:44px;margin-top:24px}.g-template-shared-controls{flex-wrap:wrap;align-items:center;gap:4px;min-width:0;max-width:100%;font-size:13px;display:flex}.g-library-dialog:has(.g-generation-choices){max-width:min(480px,100vw - 24px)}.g-library-dialog:has(.g-video-model-list){max-width:min(560px,100vw - 24px)}.g-creation-composer .g-creation-model{min-width:0;display:flex}.g-creation-composer .g-creation-model:has(.g-model-trigger){visibility:visible}.g-studio-model{min-width:0}@media (width<=767px){:is(.g-library-dialog:has(.g-generation-choices),.g-library-dialog:has(.g-video-model-list)){width:100%;max-width:100%;max-height:calc(100dvh - 24px);padding-bottom:calc(20px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;margin:0;inset:auto 0 0;overflow-y:auto}.g-template-shared-controls{width:100%}.g-template-shared-controls>.g-model-trigger,.g-template-shared-controls>.g-parameter-trigger{flex:1}.g-model-trigger,.g-parameter-trigger{min-height:44px;padding:8px;font-size:12px}.g-creation-toolbar{flex-wrap:wrap}.g-creation-model:has(.g-model-trigger){display:flex!important}.g-model-options>button{min-height:88px}.g-model-copy>span{font-size:12px}.g-choice-grid label{min-height:48px}}@media (prefers-reduced-motion:reduce){.g-library-dialog{animation:none}}.g-library-dialog:has(.g-generation-choices){background:var(--card);border:1px solid var(--border);max-width:min(400px,100vw - 24px);color:var(--foreground);padding:16px}.g-library-dialog:has(.g-generation-choices)::backdrop{background:color-mix(in srgb, var(--foreground) 4%, transparent);-webkit-backdrop-filter:none;backdrop-filter:none}.g-library-dialog:has(.g-generation-choices) .g-dialog-heading{border-bottom:1px solid var(--border);min-height:40px;margin:0 0 18px;padding:0 0 12px}.g-library-dialog:has(.g-generation-choices) .g-dialog-heading h2{font-family:inherit;font-size:16px;font-weight:600;line-height:1.5}.g-generation-choices{gap:18px}.g-generation-choices legend{color:var(--muted-foreground);margin-bottom:9px;font-size:13px}.g-choice-grid{background:var(--card);border-radius:9px;gap:2px;padding:3px}.g-choice-grid label{color:var(--muted-foreground);border:0;border-radius:6px;min-height:44px;padding:9px 6px}.g-choice-grid label:has(input:checked){background:var(--card);color:var(--foreground);border-color:#0000}.g-choice-ratios label{min-height:68px}.g-choice-ratio{max-width:30px;height:18px}.g-generation-range{align-items:center;gap:16px;min-height:44px;display:flex}.g-generation-range input{appearance:none;cursor:pointer;outline-offset:3px;background:0 0;width:100%;min-width:0;height:44px;margin:0}.g-generation-range input::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--foreground) var(--g-range-progress), var(--border) var(--g-range-progress));border-radius:10px;height:3px}.g-generation-range input::-webkit-slider-thumb{appearance:none;border:3px solid var(--input);background:var(--card);border-radius:50%;width:15px;height:15px;margin-top:-6px}.g-generation-range input::-moz-range-track{background:var(--card);border-radius:10px;height:3px}.g-generation-range input::-moz-range-progress{background:var(--foreground);height:3px}.g-generation-range input::-moz-range-thumb{border:3px solid var(--input);background:var(--card);border-radius:50%;width:10px;height:10px}.g-generation-range output{min-width:42px;color:var(--foreground);text-align:right;font-variant-numeric:tabular-nums;flex:none;font-size:12px}.g-generation-summary{border-top:1px solid var(--border);min-height:44px;color:var(--muted-foreground);justify-content:space-between;align-items:center;gap:16px;padding:2px 0;font-size:13px;display:flex}.g-generation-summary strong{color:var(--foreground);text-align:right;font-size:13px;font-weight:400}@media (width<=767px){.g-library-dialog:has(.g-generation-choices){width:100%;max-width:100%;padding:16px 16px max(20px, env(safe-area-inset-bottom));border-radius:18px 18px 0 0;max-height:90dvh;margin:0;inset:auto 0 0}}.g-library-dialog:has(.g-generation-choices) .g-dialog-heading{z-index:1;background:var(--card);padding-top:8px;position:sticky;top:-16px}.g-generation-switch{justify-content:space-between;align-items:center;gap:18px;min-height:54px;display:flex}.g-generation-switch>div{min-width:0}.g-generation-switch label{color:var(--foreground);cursor:pointer;font-size:13px}.g-generation-switch p{color:var(--muted-foreground);margin:5px 0 0;font-size:12px;line-height:1.5}.g-generation-switch button{cursor:pointer;background:0 0;border:0;flex:0 0 44px;width:44px;min-height:44px;padding:10px 2px}.g-generation-switch button>span{background:var(--muted);border:1px solid var(--input);width:36px;height:22px;box-shadow:inset 0 1px 3px var(--studio-inset);border-radius:20px;display:block;position:relative}.g-generation-switch button>span:after{content:"";background:var(--foreground);border-radius:50%;width:16px;height:16px;position:absolute;top:3px;left:3px}.g-generation-switch button[aria-checked=true]>span{background:var(--primary);border-color:var(--studio-action-side)}.g-generation-switch button[aria-checked=true]>span:after{background:var(--primary-foreground);left:17px}.g-task-batch{gap:20px;min-width:0;display:grid}.g-sharing-controls{gap:20px;display:grid}.g-sharing-link{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.g-shared-video{width:min(100%,850px);margin:40px auto;padding:20px}.g-shared-video>video{background:var(--background);border-radius:16px;width:100%;max-height:65dvh}.g-shared-video p{overflow-wrap:anywhere;white-space:pre-wrap}.g-shared-video figure{margin:24px 0}.g-shared-video img{object-fit:contain;max-width:100%;max-height:300px}.g-library-dialog:has(.g-video-model-list){background:var(--card);border-radius:16px;flex-direction:column;width:min(460px,100vw - 32px);max-width:460px;max-height:min(640px,76dvh);padding:14px;display:flex;overflow:hidden}.g-library-dialog:has(.g-video-model-list) .g-dialog-heading{flex:none;min-height:36px;margin:0 0 8px}.g-library-dialog:has(.g-video-model-list) .g-dialog-heading h2{font:600 15px/1.5 var(--font-sans), system-ui, sans-serif}.g-library-dialog:has(.g-video-model-list) .g-icon-button{flex:0 0 44px;width:44px;height:44px}.g-video-model-list{flex-direction:column;min-height:0;display:flex;overflow:hidden}.g-model-search{border:1px solid var(--input);background:var(--card);border-radius:8px;flex:0 0 44px;min-height:44px;margin-bottom:8px;padding:0 10px}.g-model-search input{min-height:40px;font-size:13px}.g-model-options{overscroll-behavior:contain;scrollbar-width:thin;flex-direction:column;gap:2px;min-height:0;padding-bottom:4px;display:flex;overflow-y:auto}.g-model-options>button{background:0 0;border:0;border-radius:8px;flex:none;gap:10px;min-height:64px;padding:9px 8px}.g-model-options>button:hover,.g-model-options>button[aria-pressed=true]{background:color-mix(in srgb, var(--foreground) 4%, transparent)}.g-model-brand{height:34px;color:var(--foreground);border-radius:9px;flex:0 0 34px}.g-model-copy{gap:5px}.g-model-copy strong{font-size:13px;font-weight:500}.g-model-metadata{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.g-model-metadata>span{color:var(--muted-foreground);background:color-mix(in srgb, var(--foreground) 4%, transparent);border-radius:4px;align-items:center;gap:3px;padding:2px 4px;font-size:10px;line-height:15px;display:inline-flex}.g-model-options>button>svg{flex-shrink:0;width:16px}.g-video-generator .g-creation-model,.g-video-generator .g-studio-model{background:0 0;border:0;min-width:0;padding:0}.g-video-generator .g-model-trigger,.g-video-generator .g-creation-parameters>.g-parameter-trigger,.g-template-shared-controls>:is(.g-model-trigger,.g-parameter-trigger){background:color-mix(in srgb, var(--foreground) 4%, transparent);border-radius:8px;min-width:0;height:44px;min-height:44px;padding:0 10px;font-size:13px}.g-model-trigger>svg,.g-parameter-trigger>svg{flex-shrink:0}.g-video-generator:not(.g-studio-generator) .g-creation-toolbar{grid-template-columns:minmax(0,max-content) minmax(0,max-content) minmax(0,1fr);gap:8px;padding:10px 12px;display:grid}.g-video-generator:not(.g-studio-generator) .g-model-trigger{width:100%;max-width:260px}.g-video-generator:not(.g-studio-generator) .g-creation-generate{width:44px;height:44px;min-height:44px}.g-template-shared-controls{grid-template-columns:minmax(0,1fr) auto;gap:8px;width:100%;display:grid}.g-template-shared-controls>button{width:100%}.g-generation-cost{white-space:nowrap;align-items:center;gap:4px;display:inline-flex}@media (width<=767px){.g-library-dialog:has(.g-video-model-list){width:100%;max-width:100%;height:min(58dvh,560px);max-height:58dvh;padding:10px 12px max(12px, env(safe-area-inset-bottom));border-radius:18px 18px 0 0;margin:0;inset:auto 0 0}.g-library-dialog:has(.g-video-model-list) .g-dialog-heading{width:44px;min-height:44px;margin:0;position:absolute;top:10px;right:10px}.g-library-dialog:has(.g-video-model-list) .g-dialog-heading h2{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.g-library-dialog:has(.g-video-model-list) .g-model-search{margin-right:52px}.g-video-generator:not(.g-studio-generator) .g-creation-toolbar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"model model""parameters submit";gap:8px}.g-video-generator:not(.g-studio-generator) .g-creation-model{grid-area:model}.g-video-generator:not(.g-studio-generator) .g-model-trigger{justify-content:flex-start;max-width:none}.g-video-generator:not(.g-studio-generator) .g-model-trigger>span{text-align:left;flex:1}.g-video-generator:not(.g-studio-generator) .g-creation-parameters{grid-area:parameters;min-width:0}.g-video-generator:not(.g-studio-generator) .g-parameter-trigger{justify-content:space-between;width:100%}.g-video-generator:not(.g-studio-generator) .g-creation-submit{grid-area:submit}.g-video-generator .g-creation-cost{font-size:12px}.g-studio-composer-heading{display:block}.g-studio-composer .g-studio-model{background:0 0;border:0;padding:0;display:flex}.g-studio-composer .g-model-trigger{justify-content:flex-start;width:100%}.g-studio-composer .g-model-trigger>span{text-align:left;flex:1}}
