.template-workspace{color:#f5f3f1;background:#121212;min-height:100dvh;font-family:Outfit Variable,Outfit,ui-sans-serif,system-ui,sans-serif}.template-workspace-header{z-index:10;min-height:var(--studio-header-height);background:#121212;border-bottom:1px solid #ffffff12;justify-content:flex-end;align-items:center;gap:clamp(4px,1vw,12px);margin-inline-start:var(--grm-sidebar-width);padding-inline:clamp(8px,2vw,24px);display:flex;position:sticky;top:0}.template-workspace-offer{display:none}@media (min-width:960px){.template-workspace-offer{color:#ff9d89;white-space:nowrap;background:#ff765c12;border:1px solid #ff765c40;border-radius:8px;align-items:center;gap:8px;min-width:0;margin-inline-end:auto;padding:6px 10px;font-size:13px;display:inline-flex}.template-workspace-offer span:first-child{text-overflow:ellipsis;overflow:hidden}.template-workspace-offer:hover{background:#ff765c24}}.template-workspace-credits{white-space:nowrap;align-items:center;gap:4px;padding-inline:4px;font-size:13px;font-weight:600;display:inline-flex}.template-workspace-credits svg{color:#ff765c}.template-workspace-main{min-width:0;padding:clamp(16px,3vw,40px);padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}@media (min-width:768px){.template-workspace-main{margin-inline-start:var(--grm-sidebar-width);padding-bottom:40px}.template-workspace-main:has(>.template-workbench){--template-workbench-inset:clamp(16px, 2vw, 24px);padding:var(--template-workbench-inset)}}.template-library-heading,.template-workbench-heading{align-items:center;gap:14px;margin-bottom:20px;display:flex}.template-library-heading{flex-wrap:wrap;justify-content:space-between}.template-workspace h1{font-size:clamp(22px,3vw,32px);font-weight:700}.template-library-search{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#232323;border:1px solid #383838;border-radius:12px;align-items:center;width:min(100%,320px);display:flex}.template-library-search:focus-within{border-color:#ad6858}.template-library-search button{color:#bab6b2;cursor:pointer;border-radius:10px;padding:10px}.template-library-search button:hover{color:#fff}.template-library-search input{background:0 0;width:100%;min-width:0;padding:10px 12px 10px 0}.template-library-search input:focus{outline:none}.template-library-categories{flex-wrap:wrap;gap:6px;margin-bottom:20px;display:flex}.template-library-categories a,.template-workbench-preview h2{border-radius:9px;padding:7px 12px;font-weight:650}.template-library-categories a{color:#bab6b2}.template-library-categories a:hover{color:#fff;background:#242424}.template-library-categories a[aria-current=page]{color:#ff9178;background:#30231e}.template-library-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:13px;display:grid}.template-library-card{aspect-ratio:4/5;background:#252525;border-radius:13px;place-items:center;display:grid;position:relative;overflow:hidden}.template-library-card:hover{box-shadow:0 0 0 2px #ff785d}.template-library-card .scene-preview{width:100%;position:absolute;inset:0}.template-library-card video{object-fit:cover}.template-library-card>img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.template-library-card[data-full-frame] :is(video,img){object-fit:contain}.template-library-card>span{color:#fff;background:linear-gradient(#0000,#000d);padding:28px 12px 10px;font-weight:650;position:absolute;inset:auto 0 0}.template-library-empty{color:#bab6b2;padding-block:24px}.template-workbench{--scene-ink:#f6f4f2;--scene-muted:#b6b0aa;--scene-surface:#232323;--scene-border:#3b3b3b;--scene-accent:#ff604a;--scene-mention-bg:#252525;--scene-mention-hover:#333;--scene-mention-selected-bg:#472b26;--scene-mention-selected-ink:#ffb6a8;--scene-mention-shadow:#0009;container:template-workbench/inline-size}.template-workbench .scene-current-row{align-items:stretch;gap:10px;display:flex;container:scene-current-row/inline-size}.template-workbench .scene-current-row>.scene-template-back{height:auto}.template-workbench .scene-workbench{grid-template-columns:minmax(0,1fr);gap:16px;width:100%}.template-workbench :is(.scene-swap,.template-workbench-preview,.template-workbench-input){background:#181818;border:1px solid #ffffff16;border-radius:16px;min-width:0;padding:clamp(12px,2vw,22px)}.template-workbench .scene-current{border:1px solid var(--scene-border);flex:1;min-width:0;min-height:52px;padding-block:4px}.template-workbench .scene-current-media,.template-workbench .scene-current-media .scene-preview{width:42px;height:42px}.template-workbench .scene-current-title{font:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@container scene-current-row not (min-width:310px){.template-workbench .scene-current{gap:6px}.template-workbench .scene-current-media,.template-workbench .scene-current-media .scene-preview{width:36px;height:36px}}.template-workbench-origin{background:#181818;border:1px solid #ffffff16;border-radius:16px;margin-block-start:24px;padding:clamp(12px,2vw,22px)}.template-workbench-origin h2{font-weight:600}.template-workbench-origin p{max-width:75ch;color:var(--scene-muted);margin-block:8px;line-height:1.6}.template-workbench-origin ul{flex-wrap:wrap;gap:4px 16px;display:flex}.template-workbench-origin a{color:#ff9d89;text-underline-offset:3px;text-decoration:underline}.template-workbench-preview{flex-direction:column;gap:14px;display:flex}.template-workbench-example{display:contents}.template-workbench .template-workbench-preview>.scene-history-toolbar{justify-content:flex-start;width:fit-content;max-width:100%}.template-workbench-preview>.scene-history-toolbar .scene-history-switch{justify-content:flex-start;margin-bottom:0}.template-workbench-preview h2{background:#303030;align-self:start;font-size:14px}.template-workbench-library{overscroll-behavior:contain;height:clamp(330px,58vh,620px);padding:3px;overflow:auto;container-type:inline-size}.template-workbench-library .template-library-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:calc(18.3333cqw - 2.93333px);gap:8px;margin:0;padding:0;list-style:none}.template-workbench-library li{grid-row:span 3;min-width:0}.template-workbench-library .template-library-card-landscape{grid-row:span 1}.template-workbench-library .template-library-card{aspect-ratio:auto;border-radius:10px;height:100%}@container (max-width:385px){.template-workbench-library .template-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:calc(27.5cqw - 2.2px)}}.template-workbench-library .template-library-card[aria-current=page]{box-shadow:0 0 0 2px var(--scene-accent)}.template-workbench-library .template-library-card>span{padding:24px 8px 8px;font-size:13px}.template-workbench-preview{--template-preview-max-height:clamp(220px, calc(100svh - 285px), 540px)}.template-workbench-preview .template-workbench-history{height:clamp(220px,100svh - 285px,540px);min-height:0}.template-workbench-preview .scene-result{width:min(100%, calc(var(--template-preview-max-height) * var(--scene-intro-ratio,.5625)));height:auto;min-height:0;max-height:var(--template-preview-max-height);aspect-ratio:var(--scene-intro-ratio,.5625);background:#101010;flex:0 auto;align-self:center}.template-workbench-preview .template-workbench-history{position:relative}.template-workbench-preview:has(>.template-workbench-history:not([hidden])){grid-template-rows:auto 1fr;grid-template-columns:minmax(0,1fr);gap:0;min-height:0;display:grid}.template-workbench-preview>.template-workbench-history:not([hidden]){grid-area:1/1/3/2;min-width:0}.template-workbench-preview:has(>.template-workbench-history:not([hidden]))>.scene-history-toolbar{z-index:1;grid-area:1/1;place-self:start;position:relative}.template-workbench-history .template-history-region,.template-workbench-history .template-history-frame{height:100%;position:absolute;inset:0}.template-workbench-preview .scene-result video{object-fit:contain;background:#101010}.template-workbench :is(.scene-reference-modes,.scene-output-settings .scene-setting){color:var(--scene-ink);background:#252525}.template-workbench :is(.scene-reference-modes button,.scene-output-settings .scene-setting)[aria-pressed=true]{color:#ffa28d;background:#36241e;border-color:#8a4c3e}.template-workbench .scene-generate{color:#1c120e}.template-workbench .scene-swap-pinned .scene-swap-actions{z-index:2;background:#181818;gap:8px;display:grid;position:sticky;bottom:0}.template-workbench .scene-output-settings{flex-wrap:wrap;display:flex}.template-workbench .scene-output-settings .scene-setting{white-space:nowrap;flex:1 0 auto;width:auto}.template-workbench .scene-setting-value [data-slot=select-value]{white-space:nowrap}.template-workbench .scene-swap-pinned .scene-form-error{order:-1}.template-workspace a:focus-visible{outline-offset:2px;outline:2px solid #ff785d}@container template-workbench not (max-width:615px){.template-workbench-heading{min-height:48px;margin-bottom:16px}.template-workbench .scene-workbench{height:max(var(--template-workbench-min-height,432px), calc(100dvh - var(--studio-header-height,48px) - 2 * var(--template-workbench-inset,16px) - var(--template-workbench-heading-space,64px)));grid-template-rows:minmax(0,1fr);grid-template-columns:clamp(300px,30%,440px) minmax(0,1fr);align-items:stretch}.template-workbench .scene-workbench:has(>.scene-swap-pinned){--template-workbench-heading-space:0px;--template-workbench-min-height:0px}.template-workbench .scene-swap{flex-direction:column;display:flex}.template-workbench :is(.scene-swap,.template-workbench-input,.template-workbench-preview){min-height:0;padding:clamp(12px,1.25vw,20px);overflow:auto}.template-workbench .scene-swap-pinned{grid-template-rows:minmax(0,1fr) auto;display:grid;overflow:visible}.template-workbench .scene-swap-pinned .scene-swap-body{gap:inherit;overscroll-behavior-y:contain;scrollbar-width:thin;flex-direction:column;min-height:0;margin:-2px;padding:2px;display:flex;overflow-y:auto}.template-workbench .scene-swap-pinned .scene-swap-body>*{flex-shrink:0}.template-workbench .scene-swap-pinned .scene-swap-actions{position:static}.template-workbench .scene-references{flex:1 0 auto}.template-workbench .scene-generate{margin-top:auto}.template-workbench .scene-recast .scene-references{--scene-photo-height:138px}.template-workbench .scene-recast .scene-reference-photo{position:relative}.template-workbench .scene-recast .scene-photo-preview{width:auto;height:auto;position:absolute;inset:0}.template-workbench .scene-greeting .scene-mapping{flex:1 0 auto;grid-template-rows:auto minmax(164px,1fr)}.template-workbench .scene-greeting .scene-mapping textarea{height:100%}.template-workbench-preview>:is(.template-workbench-library,.template-workbench-history){flex:1 1 0;height:auto;min-height:0}.template-workbench-example{flex:1;justify-content:center;min-height:0;display:flex;container-type:size}.template-workbench-example>.scene-result{--template-preview-max-height:100cqh}.template-workbench-preview:has(>.template-workbench-history:not([hidden])){grid-template-rows:auto minmax(0,1fr)}}@container template-workbench (max-width:615px){.template-workbench-preview{--template-preview-max-height:min(60svh, 480px)}.template-workbench-preview .scene-result{aspect-ratio:var(--scene-intro-ratio,.5625)}}@media (max-width:480px){.template-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}}
