.gif-studio{--studio-accent:var(--foreground);--line:var(--border);--studio-muted:var(--muted-foreground);background:var(--muted);color:var(--foreground);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;min-height:100dvh;font-size:13px}.gif-studio button,.gif-studio a,.gif-studio input,.gif-studio textarea,.gif-studio select{transition:background .15s,border-color .15s}.gif-studio button:disabled{opacity:.45;cursor:not-allowed}.gif-studio button:focus-visible,.gif-studio a:focus-visible,.gif-studio input:focus-visible{outline:2px solid var(--studio-accent);outline-offset:3px}.studio-header{border-bottom:1px solid var(--line);background:var(--background);align-items:center;gap:24px;height:65px;padding:0 25px;display:flex}.studio-brand{letter-spacing:-.6px;align-items:center;gap:7px;font-size:20px;font-weight:750;display:flex}.studio-brand svg{color:var(--studio-accent)}.studio-tool{border-left:1px solid var(--line);align-items:center;gap:20px;padding-left:24px;font-weight:550;display:flex}.studio-header-spacer{flex:1}.studio-icon{padding:8px}.studio-link{font-weight:550}.studio-history-recover{color:var(--muted-foreground);align-self:center;margin-top:10px;font-size:12px;text-decoration:underline}.studio-remove-hint{text-align:center;margin-top:8px}.studio-login-preview{border:1px solid var(--border);background:var(--muted);border-radius:8px;justify-items:center;gap:6px;min-width:0;padding:10px;display:grid}.studio-login-preview img{object-fit:contain;border-radius:4px;max-width:100%;max-height:140px}.studio-login-preview span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--muted-foreground);font-size:12px;overflow:hidden}.studio-balance{color:var(--muted-foreground);font-size:12px}.studio-avatar{background:var(--secondary);border-radius:50%;place-items:center;width:29px;height:29px;display:grid}.studio-body{min-height:calc(100dvh - 65px);display:flex}.studio-panel{background:var(--background);border-right:1px solid var(--line);flex-direction:column;flex-shrink:0;gap:15px;width:282px;max-height:calc(100dvh - 65px);padding:28px 22px 20px;display:flex;overflow:auto}.studio-eyebrow{letter-spacing:1.3px;color:var(--muted-foreground);font-size:10px;font-weight:600}.studio-panel-heading h1{margin:8px 0;font-size:19px;font-weight:650}.studio-panel-heading p{color:var(--studio-muted);font-size:12px;line-height:1.7}.studio-upload,.studio-secondary{border:1px solid var(--line);background:var(--background);border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:11px;font-weight:550;display:flex}.studio-upload{margin-top:5px}.studio-secondary{width:100%;margin:8px 0}.studio-upload:hover,.studio-secondary:hover{background:var(--muted);border-color:var(--border)}.studio-primary{background:var(--foreground);color:var(--primary-foreground);cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;gap:9px;min-height:42px;padding:12px 18px;font-size:13px;font-weight:600;display:flex}.studio-remove-button{white-space:nowrap;gap:7px;padding-inline:10px}.studio-remove-button svg{flex-shrink:0}.studio-primary:disabled{opacity:.45;cursor:not-allowed}.studio-primary.compact{min-height:34px;padding:7px 17px}.studio-hint{color:var(--muted-foreground);font-size:11px;line-height:1.7}.center{text-align:center}.studio-section{border-top:1px solid var(--line);margin-top:5px;padding-top:23px}.studio-section>label,.studio-properties>label{margin-bottom:12px;font-size:12px;font-weight:600;display:block}.studio-option{border:1px solid var(--border);background:var(--muted);border-radius:7px;align-items:center;gap:10px;margin-bottom:10px;padding:11px;display:flex}.studio-option>svg{color:var(--studio-accent);margin-left:auto}.studio-spacer{flex:1;min-height:30px}.studio-file{border:1px solid var(--line);overflow-wrap:anywhere;border-radius:8px;flex-direction:column;gap:5px;padding:12px;display:flex}.studio-file small{color:var(--studio-muted)}.studio-main{flex-direction:column;flex:1;min-width:0;min-height:calc(100dvh - 65px);display:flex}.studio-toolbar{align-items:center;gap:18px;height:65px;padding:0 28px;display:flex}.studio-segment{background:var(--border);border-radius:7px;padding:3px;display:flex}.studio-segment button{color:var(--muted-foreground);border-radius:5px;padding:5px 13px;font-size:11px}.studio-segment button.active{background:var(--background);color:var(--foreground);box-shadow:0 1px 3px #00000012}.studio-filename{color:var(--muted-foreground);white-space:nowrap;text-overflow:ellipsis;max-width:250px;font-size:11px;overflow:hidden}.studio-toolbar-actions{color:var(--muted-foreground);gap:18px;margin-left:auto;display:flex}.studio-stage{flex:1;justify-content:center;align-items:center;min-height:400px;padding:20px 45px 35px;display:flex}.studio-empty{background:var(--background);border:1px dashed var(--border);text-align:center;border-radius:15px;flex-direction:column;align-items:center;width:min(700px,100%);padding:65px 30px 35px;display:flex}.studio-empty-icon{border:1px solid var(--border);background:var(--muted);width:61px;height:61px;color:var(--muted-foreground);border-radius:16px;place-items:center;margin-bottom:24px;display:grid}.studio-empty h2{letter-spacing:-.6px;margin-bottom:10px;font-size:24px;font-weight:650}.studio-empty p{color:var(--muted-foreground);max-width:430px;margin-bottom:25px;line-height:1.8}.studio-empty small{color:var(--muted-foreground);margin-top:13px;font-size:11px}.studio-sample{border-top:1px solid var(--border);color:var(--muted-foreground);align-items:center;gap:17px;margin-top:35px;padding-top:23px;font-size:11px;display:flex}.studio-sample button{border:1px solid var(--border);color:var(--muted-foreground);border-radius:7px;align-items:center;gap:9px;padding:5px 10px;display:flex}.studio-sample img{object-fit:contain;width:32px;height:32px}.studio-checker{background-color:#fff;background-image:linear-gradient(45deg,#e5e7eb 25%,#0000 25%),linear-gradient(-45deg,#e5e7eb 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#e5e7eb 75%),linear-gradient(-45deg,#0000 75%,#e5e7eb 75%);background-position:0 0,0 9px,9px -9px,-9px 0;background-size:18px 18px}.studio-checker.mini{border:1px solid var(--border);border-radius:4px;width:22px;height:22px}.studio-artboard{border-radius:5px;max-width:100%;line-height:0;position:relative;overflow:visible;box-shadow:0 3px 20px #00000008}.studio-artboard canvas{object-fit:contain;border-radius:5px;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 265px)}.studio-processing{background:color-mix(in srgb,var(--background)90%,transparent);color:var(--foreground);flex-direction:column;justify-content:center;align-items:center;gap:20px;line-height:1.5;display:flex;position:absolute;inset:0}.studio-processing p{color:var(--muted-foreground);text-align:center;padding:0 25px;font-size:12px}.studio-playback{background:var(--background);border:1px solid var(--line);width:min(700px,100% - 80px);color:var(--muted-foreground);border-radius:9px;align-items:center;gap:16px;margin:0 auto 20px;padding:13px 17px;font-size:11px;display:flex}.studio-status{color:var(--muted-foreground);justify-content:space-between;gap:10px;padding:15px 28px;font-size:10px;display:flex}.studio-success{color:#43845c;align-items:center;gap:5px;display:flex}.studio-tabs{border-bottom:1px solid var(--line);margin:0 -8px;display:flex}.studio-tabs button{color:var(--muted-foreground);border-bottom:2px solid #0000;flex:1;padding:12px 0;font-size:11px}.studio-tabs .active{color:var(--studio-accent);border-bottom-color:var(--studio-accent)}.studio-properties{flex-direction:column;gap:12px;padding-top:10px;display:flex}.studio-backgrounds{gap:9px;display:flex}.studio-backgrounds button{color:var(--muted-foreground);border:1px solid #0000;border-radius:7px;flex:1;padding:5px;font-size:10px}.studio-backgrounds span{border:1px solid var(--border);border-radius:5px;height:44px;margin-bottom:7px;display:block}.studio-backgrounds .selected{border-color:var(--border);color:var(--foreground)}.studio-colors{gap:12px;display:flex}.studio-colors input,.studio-properties input[type=color]{border:1px solid var(--line);background:0 0;border-radius:6px;width:38px;height:30px;padding:2px}.studio-options{grid-template-columns:1fr 1fr;gap:8px;display:grid}.studio-options button{border:1px solid var(--line);border-radius:7px;padding:14px 5px}.studio-options .selected{border-color:var(--muted-foreground);background:var(--muted)}.studio-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.studio-field{color:var(--muted-foreground);flex-direction:column;gap:7px;font-size:11px;display:flex}.studio-field input,.studio-field select,.studio-layer textarea{border:1px solid var(--border);background:var(--background);width:100%;color:var(--foreground);border-radius:7px;min-width:0;padding:9px}.studio-number{border:1px solid var(--border);background:var(--background);border-radius:7px;align-items:stretch;display:flex;overflow:hidden}.studio-field .studio-number input{text-align:center;font-variant-numeric:tabular-nums;appearance:textfield;border:0;border-radius:0;flex:1;font-size:16px}@media (pointer:fine){.studio-field .studio-number input{font-size:13px}}.studio-number input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.studio-number input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.studio-number button{width:40px;color:var(--foreground);touch-action:manipulation;flex:none;justify-content:center;align-items:center;display:flex}.studio-number button:first-child{border-right:1px solid var(--line)}.studio-number button:last-child{border-left:1px solid var(--line)}.studio-number button:hover:not(:disabled){background:var(--muted)}.studio-number button:disabled{opacity:.35}.studio-number button svg{width:14px;height:14px}.studio-number:focus-within{outline:2px solid var(--ring);outline-offset:1px}.studio-layer{border-top:1px solid var(--line);flex-direction:column;gap:10px;padding:15px 0;display:flex}.studio-row{justify-content:space-between;align-items:center;display:flex}.studio-layer button{color:var(--muted-foreground);font-size:11px}.studio-notice{z-index:40;border:1px solid var(--border);background:var(--popover);width:min(400px,100vw - 32px);color:var(--popover-foreground);border-radius:14px;align-items:flex-start;gap:12px;padding:18px;animation:.16s ease-out studio-notice-enter;display:flex;position:fixed;top:81px;right:20px;box-shadow:0 8px 32px #0000001f}.studio-notice-icon{background:var(--muted);border-radius:50%;flex-shrink:0;place-items:center;width:32px;height:32px;display:grid}.studio-notice-content{flex:1;min-width:0}.studio-notice-content strong{font-size:14px;line-height:1.5;display:block}.studio-notice-content p{color:var(--muted-foreground);overflow-wrap:anywhere;margin:6px 0 0;font-size:13px;line-height:1.6}.studio-notice-content>button{margin-top:14px}.studio-notice-close{width:28px;height:28px;color:var(--muted-foreground);border-radius:6px;flex-shrink:0;place-items:center;margin:-4px -4px 0 0;display:grid}.studio-notice-close:hover{background:var(--muted);color:var(--foreground)}.studio-dialog-error{border:1px solid var(--border);background:var(--muted);color:var(--foreground);border-radius:8px;padding:12px 14px;font-size:13px;line-height:1.6}@keyframes studio-notice-enter{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.studio-notice{animation:none}}.studio-quote{flex-direction:column;gap:12px;padding:25px 0;display:flex}.studio-quote strong{color:var(--foreground);font-size:26px}.studio-quote span{color:var(--muted-foreground);font-size:12px}.studio-export-dialog{flex-direction:column;gap:20px;display:flex}.studio-history-dialog{border-radius:16px;gap:26px;width:min(1008px,100vw - 32px);max-width:min(1008px,100vw - 32px);max-height:calc(100dvh - 48px);padding:32px}.studio-history-dialog [data-slot=dialog-title]{font-size:30px;line-height:1.2}.studio-history-dialog [data-slot=dialog-description]{font-size:15px}.studio-history-dialog [data-slot=dialog-header]{text-align:left;padding-right:24px}.studio-history{overscroll-behavior:contain;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px;max-height:min(680px,100dvh - 210px);padding:2px;display:grid;overflow-y:auto}.studio-history-card{border-radius:10px;min-width:0;position:relative}.studio-history-card.is-removing{pointer-events:none;animation:.36s ease-in forwards studio-history-remove}@keyframes studio-history-remove{to{opacity:0;transform:scale(.94)}}.studio-history-open{text-align:left;border-radius:10px;width:100%;display:block}.studio-history-open:focus-visible{outline:2px solid var(--foreground);outline-offset:1px}.studio-history-preview{background:var(--muted);aspect-ratio:4/3;border-radius:9px;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.studio-history-preview canvas{object-fit:contain;opacity:0;width:100%;height:100%}.studio-history-preview.is-ready canvas{opacity:1}.studio-history-placeholder{text-align:center;color:var(--muted-foreground);background:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:20px;font-size:12px;display:flex;position:absolute;inset:0}.studio-history-details{flex-direction:column;gap:5px;padding:10px 2px 4px;font-size:14px;display:flex}.studio-history-details strong{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.studio-history-details>span{color:var(--muted-foreground);font-size:12px}.studio-history-menu,.studio-history-play{background:var(--background);width:32px;height:32px;color:var(--foreground);border-radius:50%;place-items:center;display:grid;position:absolute;box-shadow:0 1px 5px #0002}.studio-history-menu{top:10px;right:10px}.studio-history-menu:focus-visible{outline:2px solid var(--foreground);outline-offset:2px}.studio-history-play{pointer-events:none;bottom:10px;right:10px}.studio-history-continue{opacity:0;color:#fff;white-space:nowrap;background:#111;border-radius:8px;padding:10px 16px;font-size:13px;font-weight:600;transition:opacity .12s,transform .12s;position:absolute;bottom:14px;left:50%;transform:translate(-50%,4px)}.studio-history-open:focus-visible .studio-history-continue{opacity:1;transform:translate(-50%)}@media (hover:hover){.studio-history-open:hover .studio-history-continue{opacity:1;transform:translate(-50%)}.studio-history-open:hover{outline:1px solid var(--border);outline-offset:3px}}.studio-history-preview-note{background:var(--background);border-radius:4px;padding:4px 8px;font-size:11px;position:absolute;top:8px;left:8px}@media (prefers-reduced-motion:reduce){.studio-history-card.is-removing{animation:none}.studio-history-continue{transition:none}}@media (max-width:640px){.studio-history-dialog{gap:20px;padding:20px 14px}.studio-history-dialog [data-slot=dialog-title]{font-size:24px}.studio-history{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.studio-history-details{font-size:12px}.studio-history-details>span{font-size:11px}.studio-history-menu,.studio-history-play{width:28px;height:28px}.studio-history-menu{top:6px;right:6px}.studio-history-continue{display:none}}@media (max-width:760px){.studio-header{gap:14px;height:57px;padding:0 15px}.studio-brand{font-size:17px}.studio-tool{gap:5px;padding-left:12px;font-size:10px}.studio-balance{display:none}.studio-body{flex-direction:column-reverse;min-height:calc(100dvh - 57px)}.studio-panel{border-right:0;border-top:1px solid var(--line);width:100%;min-height:200px;max-height:none;padding:20px 20px max(20px,env(safe-area-inset-bottom))}.studio-panel-heading{display:none}.studio-main{min-height:450px}.studio-toolbar{height:52px;padding:0 17px}.studio-filename{max-width:130px}.studio-stage{min-height:290px;padding:15px}.studio-artboard canvas{max-height:48dvh}.studio-empty{padding:25px 15px}.studio-empty h2{font-size:21px}.studio-empty-icon{width:45px;height:45px;margin-bottom:15px}.studio-sample{margin-top:23px;padding-top:16px}.studio-playback{gap:9px;width:calc(100% - 30px);margin:10px auto}.studio-status{flex-wrap:wrap;padding:10px 17px}.studio-tabs{background:var(--background);z-index:1;order:-1;position:sticky;top:0}.studio-tabs button{font-size:13px}.studio-properties{max-height:360px;overflow:auto}.studio-backgrounds{max-width:320px}.studio-spacer{display:none}.studio-upload{margin-top:0}.studio-section{margin:0;padding-top:15px}.studio-panel>.studio-hint.center{margin-top:-5px}}@media (prefers-reduced-motion:reduce){.gif-studio *{transition:none!important}}.studio-ai-prompt{border:1px solid var(--border);resize:vertical;border-radius:8px;width:100%;min-height:110px;padding:12px;font-size:13px}@media (max-width:760px){.studio-header{gap:10px}.studio-brand{flex-shrink:0}.studio-tool{flex:1;min-width:0}.studio-tool span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.studio-header-spacer{display:none}.studio-header .studio-icon{padding:5px}.studio-export-dialog{--tw-translate-x:0;--tw-translate-y:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;padding:26px 22px max(26px,env(safe-area-inset-bottom));border-radius:0;justify-content:flex-start;top:0;left:0;overflow:auto;transform:none}}.studio-playback{background:0 0;border:0;width:fit-content;padding:0}.studio-playback button{border:1px solid var(--line);background:var(--background);border-radius:8px;align-items:center;gap:7px;padding:9px 14px;display:inline-flex}.studio-header{background:var(--background)}.studio-brand{color:var(--primary);letter-spacing:-.4px;font-weight:600}.studio-brand img{flex-shrink:0}.studio-primary{background:var(--primary);color:var(--primary-foreground)}.studio-primary:hover{background:color-mix(in srgb,var(--primary)90%,transparent)}.studio-panel-heading h1{letter-spacing:-.025em;font-size:20px}.studio-tabs button.active{color:var(--foreground);border-color:var(--foreground)}.studio-color-fields{gap:12px;display:grid}.studio-color-field{color:var(--muted-foreground);gap:7px;font-size:12px;display:grid}.studio-color-field>div{border:1px solid var(--border);background:var(--background);border-radius:8px;align-items:center;gap:10px;padding:7px 10px;display:flex}.studio-color-field>div>span{font-variant-numeric:tabular-nums;color:var(--foreground);font-size:12px}.studio-layer.is-selected{border-top-color:var(--foreground)}.studio-layer-controls{z-index:1;pointer-events:auto;position:absolute;inset:0}.studio-layer-box{pointer-events:none;border:1px solid #0000;position:absolute}.studio-layer-box.is-selected{border-color:#3578e5}.studio-transform-handles{z-index:2}.studio-layer-move{pointer-events:auto;cursor:move;touch-action:none;background:0 0;border:0;width:100%;height:100%;position:absolute;inset:0}.studio-layer-move:hover{outline:1px solid #3578e5}.studio-layer-handle,.studio-layer-rotate{z-index:2;pointer-events:auto;touch-action:none;color:#1f2937;background:#fff;border:1px solid #3578e5;border-radius:3px;width:14px;height:14px;position:absolute}.studio-layer-handle:after{content:"";position:absolute;inset:-7px}.studio-layer-handle.nw{cursor:nwse-resize;top:-7px;left:-7px}.studio-layer-handle.ne{cursor:nesw-resize;top:-7px;right:-7px}.studio-layer-handle.sw{cursor:nesw-resize;bottom:-7px;left:-7px}.studio-layer-handle.se{cursor:nwse-resize;bottom:-7px;right:-7px}.studio-layer-rotate{cursor:grab;border-radius:50%;place-items:center;width:26px;height:26px;display:grid;top:-38px;left:calc(50% - 13px)}.studio-layer-rotate:before{content:"";background:#3578e5;width:1px;height:12px;position:absolute;top:25px;left:12px}.gif-studio textarea:focus-visible{outline:2px solid var(--ring);outline-offset:2px}@media (max-width:600px){.studio-header{gap:10px}.studio-tool{padding-left:10px}.studio-balance{display:none}}.dark .gif-studio{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.studio-layer-actions{justify-content:space-between;gap:12px;font-size:12px;display:flex}.studio-tool{min-width:0}.studio-tool span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.studio-brand,.studio-header>button,.studio-header>.studio-primary{flex-shrink:0}.studio-sticker-library{border:1px solid var(--border);border-radius:10px;padding:12px}.studio-sticker-categories{flex-wrap:wrap;gap:5px;margin:0 0 12px;display:flex}.studio-sticker-categories button{color:var(--muted-foreground);border-radius:5px;padding:5px 7px;font-size:11px}.studio-sticker-categories button[aria-pressed=true]{background:var(--secondary);color:var(--foreground)}.studio-sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;display:grid}.studio-sticker-grid button{aspect-ratio:1;border:1px solid #0000;border-radius:7px;place-items:center;padding:6px;display:grid}.studio-sticker-grid button:hover:not(:disabled){border-color:var(--border);background:var(--muted)}.studio-sticker-grid img{width:100%;max-width:40px;height:auto}.studio-sticker-credit{color:var(--muted-foreground);margin:10px 0 0;font-size:10px}.studio-sticker-credit a:hover{text-decoration:underline}.studio-guide-trigger{white-space:nowrap;border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;gap:8px;padding:8px;font-size:13px;font-weight:550;display:inline-flex}.studio-guide-trigger:hover{background:var(--muted)}.studio-stage{position:relative}.studio-guide{z-index:4;border:1px solid var(--border);background:var(--popover);width:min(360px,100% - 48px);color:var(--popover-foreground);border-radius:14px;padding:20px 22px;line-height:1.5;animation:.16s ease-out studio-notice-enter;position:absolute;top:20px;left:36px;box-shadow:0 8px 28px #0000001f}.studio-guide:after{content:"";border-right:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--popover);width:12px;height:12px;position:absolute;bottom:-7px;right:22px;transform:rotate(45deg)}.studio-guide-top{color:var(--muted-foreground);justify-content:space-between;align-items:center;margin-bottom:16px;font-size:12px;display:flex}.studio-guide-close{border-radius:6px;place-items:center;width:28px;height:28px;margin:-5px -7px -5px 0;display:grid}.studio-guide-close:hover{background:var(--muted);color:var(--foreground)}.studio-guide-body{align-items:flex-start;gap:14px;display:flex}.studio-guide-icon{color:#926014;background:#fff0cc;border-radius:10px;flex:0 0 40px;place-items:center;width:40px;height:40px;display:grid}.dark .studio-guide-icon{color:#f6ce80;background:#49361b}.studio-guide h2{margin:0 0 6px;font-size:16px;font-weight:650;line-height:1.4}.studio-guide p{color:var(--muted-foreground);margin:0;font-size:13px;line-height:1.6}.studio-guide-actions{justify-content:flex-end;align-items:center;gap:16px;margin-top:18px;display:flex}.studio-guide-skip{color:var(--muted-foreground);margin-right:auto;padding:6px 0;font-size:12px}.studio-guide-skip:hover{color:var(--foreground);text-decoration:underline}.has-guide .studio-layer-box.is-selected,.has-guide .studio-layer-handle,.has-guide .studio-layer-rotate{border-color:#d99c27}.has-guide .studio-layer-rotate:before{background:#d99c27}.has-guide .studio-layer-move:hover{outline-color:#d99c27}@media (max-width:1100px){.studio-guide-trigger span{display:none}.studio-stage.has-guide{flex-direction:column;gap:30px}.studio-guide{flex-shrink:0;align-self:flex-start;width:min(360px,100%);position:relative;top:auto;left:auto}}@media (max-width:760px){.studio-guide{width:100%;padding:16px 18px}.studio-guide-trigger{padding:6px}.studio-header{gap:8px}.studio-tool{display:none}}@media (prefers-reduced-motion:reduce){.studio-guide{animation:none}}.studio-next{border:1.5px solid var(--primary);background:var(--background);width:min(700px,100% - 80px);box-shadow:0 4px 14px color-mix(in srgb,var(--primary)10%,transparent);border-radius:14px;margin:0 auto 16px;padding:14px 16px;position:relative}.studio-next h3{margin:12px 0 2px;font-size:14px;font-weight:650}.studio-next-hint{color:var(--muted-foreground);margin:0 0 10px;font-size:12px}.studio-next-close{color:var(--muted-foreground);border-radius:6px;padding:4px;position:absolute;top:8px;right:8px}.studio-next-close:hover{background:var(--muted)}.studio-next-top{align-items:center;gap:10px;padding-right:26px;display:flex}.studio-next-done{flex:1;align-items:center;gap:6px;font-weight:600;display:flex}.studio-next-done svg{color:#43845c}.studio-next-download{background:var(--foreground);color:var(--background);white-space:nowrap;border-radius:9px;align-items:center;gap:6px;padding:8px 13px;font-weight:600;display:inline-flex}.studio-next-scenes{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.studio-next-scenes button{flex-direction:column;align-items:center;gap:5px;min-width:0;font-size:11px;display:flex;position:relative}.studio-next-scenes img,.studio-next-custom{aspect-ratio:1;object-fit:cover;border-radius:9px;width:100%}.studio-next-scenes button:hover:not(:disabled) :is(img,.studio-next-custom),.studio-next-scenes button.selected img{box-shadow:0 0 0 2px var(--background),0 0 0 4px var(--primary)}.studio-next-scenes span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.studio-next-free{color:#43845c;background:#ffffffeb;border-radius:999px;padding:1px 6px;font-size:10px;font-style:normal;font-weight:650;line-height:16px;position:absolute;top:4px;left:4px}.studio-next-status .studio-next-custom{flex:none;width:56px}.studio-next-custom{background:color-mix(in srgb,var(--primary)10%,var(--background));color:var(--primary);justify-content:center;align-items:center;display:flex}.studio-next-price{color:var(--muted-foreground);justify-content:space-between;gap:10px;margin-top:10px;font-size:12px;display:flex}.studio-next-price span:first-child{color:var(--primary);font-weight:600}.studio-next-status{align-items:center;gap:12px;margin-top:12px;display:flex}.studio-next-status img{object-fit:cover;border-radius:9px;flex:none;width:56px;height:56px}.studio-next-status>div{flex:1;min-width:0}.studio-next-status strong{align-items:center;gap:6px;display:flex}.studio-next-status p{color:var(--muted-foreground);margin:0;font-size:11px}.studio-next-progress{background:color-mix(in srgb,var(--primary)12%,var(--background));border-radius:9px;height:6px;margin:8px 0 6px;overflow:hidden}.studio-next-progress i{background:var(--primary);border-radius:9px;width:40%;height:100%;animation:1.6s ease-in-out infinite studio-next-progress;display:block}@keyframes studio-next-progress{0%{transform:translate(-100%)}to{transform:translate(250%)}}.studio-next-actions{gap:8px;margin-top:12px;display:flex}.studio-next-actions>button{flex:1;margin:0}.studio-next-after{background:var(--muted);border-radius:10px;align-items:center;gap:10px;padding:10px;font-size:12px;display:flex}.studio-next-after img{object-fit:cover;border-radius:8px;flex:none;width:40px;height:40px}.studio-next-after span{flex:1}.studio-next-after button{color:var(--primary);white-space:nowrap;align-items:center;gap:4px;font-weight:600;display:inline-flex}.studio-next-pick{flex-direction:column;display:flex}.studio-next-pick .studio-next-price{order:1}.studio-next-copy{display:contents}@media (min-width:761px){.studio-next{margin-bottom:12px}.studio-next-pick{flex-direction:row;align-items:flex-end;gap:18px}.studio-next-copy{flex:1;min-width:0;display:block}.studio-next-pick .studio-next-price{flex-direction:column;gap:2px;margin-top:0}.studio-next-scenes{grid-template-columns:repeat(5,64px)}}@media (max-width:760px){.studio-next{width:calc(100% - 28px);margin:4px 14px 12px;padding:12px}.studio-next-scenes{gap:6px}}@media (prefers-reduced-motion:reduce){.studio-next-progress i{opacity:.5;width:100%;animation:none}}.studio-ai-promo{border:1.5px solid var(--primary);background:color-mix(in srgb,var(--primary)6%,var(--background));text-align:left;border-radius:12px;grid-template-columns:auto 1fr;gap:6px 12px;width:100%;margin:2px 0 18px;padding:14px;display:grid}.studio-ai-promo:hover{background:color-mix(in srgb,var(--primary)10%,var(--background))}.studio-ai-promo-icon{background:var(--primary);width:36px;height:36px;color:var(--primary-foreground);border-radius:10px;grid-row:span 2;justify-content:center;align-items:center;display:flex}.studio-ai-promo-copy{flex-direction:column;gap:3px;min-width:0;display:flex}.studio-ai-promo-copy strong{font-size:14px}.studio-ai-promo-copy span{color:var(--muted-foreground);font-size:12px;line-height:1.5}.studio-ai-promo-cta{color:var(--primary);grid-column:2;align-items:center;gap:4px;font-size:12px;font-weight:650;display:inline-flex}.studio-panel-scenes{grid-template-columns:repeat(4,minmax(0,1fr))}.studio-matte{flex-wrap:wrap;gap:6px;display:flex}.studio-matte button,.studio-matte-custom{border:1px solid var(--border);min-height:36px;color:var(--foreground);cursor:pointer;border-radius:8px;align-items:center;gap:6px;padding:6px 10px;font-size:12px;display:inline-flex}.studio-matte button>span{border:1px solid var(--border);border-radius:50%;width:16px;height:16px}.studio-matte button[aria-pressed=true],.studio-matte-custom[data-pressed=true]{border-color:var(--foreground);background:var(--muted);font-weight:600}.studio-field .studio-matte-custom input{background:0 0;border:0;border-radius:50%;width:18px;height:18px;padding:0}.studio-tab-icon,.studio-sheet-head{display:none}@media (max-width:760px){.studio-body.is-editing{--studio-dock:calc(60px + env(safe-area-inset-bottom))}.studio-body.is-editing .studio-main{padding-bottom:calc(var(--studio-dock) + 12px)}.is-editing .studio-panel{border-top:0;min-height:0;padding:0}.is-editing .studio-panel>.studio-hint{display:none}.is-editing .studio-tabs{z-index:40;padding:6px 6px max(6px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--background);border-bottom:0;grid-template-columns:repeat(5,1fr);margin:0;display:grid;position:fixed;inset:auto 0 0}.is-editing .studio-tabs button,.is-editing .studio-tabs button.active{min-height:48px;color:var(--muted-foreground);touch-action:manipulation;border:0;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:4px 0;font-size:11px;display:flex}.sheet-open .studio-tabs button.active{color:var(--foreground);background:var(--muted);font-weight:600}.studio-tab-icon{width:20px;height:20px;display:block}.is-editing .studio-properties{left:0;right:0;bottom:max(var(--studio-dock),var(--studio-keyboard,0px));z-index:39;max-height:min(46dvh,420px,calc(var(--studio-visible,100dvh) - 130px));overscroll-behavior:contain;background:var(--background);border-top:1px solid var(--line);transform:translateY(calc(100% + var(--studio-dock)));visibility:hidden;border-radius:16px 16px 0 0;padding:0 16px 16px;transition:transform .22s,visibility 0s linear .22s;position:fixed;overflow:auto;box-shadow:0 -10px 30px #0000001f}.sheet-open .studio-properties{visibility:visible;transition:transform .22s;transform:none}.studio-sheet-head{z-index:1;background:var(--background);justify-content:space-between;align-items:center;margin:0 -16px;padding:12px 16px 8px;font-size:15px;display:flex;position:sticky;top:0}.studio-sheet-head button{border:1px solid var(--line);color:var(--foreground);border-radius:8px;padding:6px 14px;font-weight:600}.is-editing .studio-sticker-library{border:0;padding:0}.is-editing .studio-sticker-categories{scrollbar-width:none;flex-wrap:nowrap;margin:0 -16px 10px;padding:0 16px;overflow-x:auto}.is-editing .studio-sticker-categories button{flex:none;padding:7px 11px;font-size:12px}.is-editing .studio-sticker-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.sheet-open .studio-stage{min-height:0;padding:10px 15px}.sheet-open .studio-artboard canvas{max-height:max(160px,54dvh - 200px)}}@media (max-width:760px) and (prefers-reduced-motion:reduce){.is-editing .studio-properties,.sheet-open .studio-properties{transition:none}}
