/* Scoped layout copied from the existing Mogaiji studio source. */
.studio-source{container:oneclick / inline-size;--bg:#f7f4f8;--panel:#fff;--text:#221b25;--muted:#8a818e;--line:#e6e0e8;--pink:#fa477b;--pink-dark:#da387e;--violet:#8e69ff;--shadow:0 12px 32px #38284010}
.studio-source *{box-sizing:border-box}
.studio-source .studio-app{margin:0;background:var(--bg);color:var(--text);font-family:"Studio Han Sans","Microsoft YaHei UI","Microsoft YaHei","微软雅黑","PingFang SC","Noto Sans CJK SC","Noto Sans SC",Arial,sans-serif}
.studio-source button,.studio-source input,.studio-source textarea{font:inherit}
.studio-source button,.studio-source a,.studio-source label.upload{touch-action:manipulation}
.studio-source button{cursor:pointer}
.studio-source button:disabled{opacity:.6;cursor:wait}
.studio-source button:focus-visible,.studio-source a:focus-visible,.studio-source input:focus-visible,.studio-source textarea:focus-visible{outline:3px solid #c3b5f5;outline-offset:3px}
.studio-source [hidden]{display:none!important}
.studio-source fieldset{padding:0;margin:0;border:0;min-width:0}
.studio-source h1,.studio-source h2,.studio-source p{margin:0}
.studio-source .icon-definitions{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.studio-source .ui-icon{display:inline-block;flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.studio-source .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.studio-source .studio{width:100%;max-width:1280px;margin:auto;padding:18px 18px 28px}
.studio-source .page-header{padding:18px;background:#fff;display:flex;flex-direction:column;gap:14px}
.studio-source .page-header h1{display:flex;align-items:center;gap:9px;font-size:24px;line-height:1.35;color:var(--pink);font-weight:800}
.studio-source .camera-icon{width:22px;height:22px;fill:currentColor;stroke:none}
.studio-source .view-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-self:stretch;padding:5px;gap:8px;background:#ffffffed;border:1px solid #e5dfe7;border-radius:17px;box-shadow:0 8px 22px #3b204018}
.studio-source .view-tabs a{display:flex;align-items:center;justify-content:center;min-width:100px;min-height:40px;padding:10px 17px;color:#817685;border:1px solid #eee8ef;border-radius:12px;font-size:14px;font-weight:700;text-decoration:none;background:#fff}
.studio-source .view-tabs a.active{border-color:transparent;background:linear-gradient(110deg,#fa4a7b,#f24680);color:#fff;box-shadow:0 6px 14px #f24f7830}
.studio-source .generator-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start;position:relative}
.studio-source .form-card,.studio-source .result-card{min-width:0;border:1px solid #e9e3ec;border-radius:22px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
.studio-source .form-card{padding:16px}
.studio-source .form-section{padding:20px 0;border-bottom:1px solid #e6e0e8}
.studio-source .form-section:first-child{padding-top:0}
.studio-source .form-section.specifications{padding-bottom:0;border:0}
.studio-source .section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.studio-source .step-title{display:flex;gap:9px;min-width:0}
.studio-source .step-number{flex:none;display:grid;place-items:center;width:32px;height:32px;border:1px solid #facfe1;border-radius:12px;background:linear-gradient(135deg,#fde4eb,#f1eaf8);color:#f33873;font-size:14px;font-weight:800}
.studio-source .step-title h2{font-size:16px;line-height:22px;font-weight:700}
.studio-source .step-title p{margin-top:1px;color:#8a808e;font-size:11px;font-weight:400;line-height:1.5}
.studio-source .pink{border:0;background:linear-gradient(110deg,#fa477b,#da387e);color:#fff;box-shadow:0 9px 20px #ef40742b}
.studio-source .small{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:35px;padding:8px 10px;border-radius:8px;font-size:14px;line-height:19px;font-weight:700;white-space:nowrap}
.studio-source .small .ui-icon{width:12px;height:12px;stroke-width:2}
.studio-source .upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.studio-source .upload-item{min-width:0}
.studio-source .upload{display:block;position:relative;aspect-ratio:1;border-radius:12px;background:#eee9f0;overflow:hidden;cursor:pointer}
.studio-source .upload img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 18%}
.studio-source .upload #scenePreview{object-position:center}
.studio-source .upload-label{position:absolute;z-index:1;left:6px;top:6px;display:inline-flex;align-items:center;gap:4px;min-height:27px;padding:5px 7px;border:1px solid #ffffffd9;border-radius:9px;background:#fffffff2;color:#27202a;font-size:10px;font-weight:750;line-height:15px;white-space:nowrap;pointer-events:none;box-shadow:0 2px 4px #00000006}
.studio-source .upload-label .ui-icon{width:13px;height:13px;color:#ff477d;stroke-width:1.8}
.studio-source .upload input{position:absolute;z-index:2;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.studio-source .upload:focus-within{outline:3px solid var(--violet);outline-offset:2px}
.studio-source .replace{position:absolute;z-index:1;bottom:6px;left:50%;transform:translateX(-50%);padding:4px 8px;border-radius:999px;background:#24202bc7;color:#fff;font-size:9px;font-weight:700;line-height:14px;white-space:nowrap;pointer-events:none}
.studio-source .prompt-heading{display:block;margin-bottom:10px}
.studio-source .prompt-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:10px}
.studio-source .pill{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:39px;padding:8px 10px;border-radius:999px;font-size:15px;font-weight:700;line-height:21px;white-space:nowrap}
.studio-source .outline{background:#fff;border:1px solid #ffb9cf;color:#fb4278;border-radius:12px;padding:10px 16px;font-weight:650}
.studio-source .outline.pill{border-radius:999px;padding:8px 10px;font-weight:500}
.studio-source .pill .ui-icon{width:16px;height:16px}
.studio-source .prompt-field{position:relative}
.studio-source textarea{display:block;resize:vertical;min-height:260px;width:100%;padding:14px;border:1px solid #e0d7e2;border-radius:17px;background:#f7f3f7;color:#28202b;font-size:16px;line-height:1.75}
.studio-source .content-note{margin-top:11px;color:#ff2357;font-size:16px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.studio-source .options-grid{display:grid;grid-template-columns:1fr;gap:9px;margin-top:14px}
.studio-source .option-group{padding:14px 16px 15px;border:1px solid #e4dce7;border-radius:17px;background:#f6f2f7}
.studio-source .option-group legend{float:left;display:block;width:100%;margin-bottom:8px;color:#8b808f;font-size:11px;font-weight:700;line-height:16px}
.studio-source .choices{display:flex;gap:6px;clear:both}
.studio-source .choices label{position:relative;flex:1;min-width:0;cursor:pointer}
.studio-source .choices input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.studio-source .choices span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 4px;border:1px solid #ece8ef;border-radius:10px;background:#fff;color:#716478;font-size:12px;font-weight:700;line-height:22px}
.studio-source .choices input:checked+span{background:linear-gradient(120deg,#eae5f8,#f3e7ef);border-color:#9673ff;color:#5940dc}
.studio-source .choices input:focus-visible+span{outline:3px solid #c3b5f5;outline-offset:2px}
.studio-source .generate{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:58px;margin-top:24px;padding:14px 12px;border-radius:17px;line-height:24px}
.studio-source .generate b{font-size:18px;font-weight:800;white-space:nowrap}
.studio-source .generate #submitHint{font-size:11px;font-weight:650;line-height:17px}
.studio-source .generate .generate-divider{display:block;flex:none;width:1px;height:16px;background:#ffffff65}
.studio-source .result-card>header{display:flex;align-items:center;justify-content:space-between;padding:17px 16px 12px}
.studio-source .result-card header p{margin-bottom:4px;color:#fd4c80;font-size:11px;font-weight:700;line-height:15px}
.studio-source .result-card h2{font-size:21px;font-weight:800;line-height:26px}
.studio-source .badge{padding:7px 10px;border:1px solid #e6dfe9;border-radius:999px;background:#f7f3f9;color:#8b808f;font-size:10px;line-height:15px}
.studio-source .result-stage{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;margin:0 8px;border-radius:12px;background:#161319;overflow:hidden}
.studio-source .result-stage video,.studio-source .result-preview{display:block;width:100%;height:100%;aspect-ratio:16/9}
.studio-source .result-stage video{max-height:560px;object-fit:contain;background:#000}
.studio-source .result-stage.portrait{aspect-ratio:9/16;max-height:560px}
.studio-source .result-stage.portrait video{aspect-ratio:9/16}
.studio-source .status-panel{margin:8px;border:1px solid #e5deea;border-radius:16px;padding:14px;background:radial-gradient(ellipse at 0 0,#fff3f8,transparent 65%),radial-gradient(ellipse at 100% 0,#f3efff,transparent 65%),#fff}
.studio-source .status-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.studio-source .status-top>div>span{display:block;margin-bottom:4px;color:#918797;font-size:10px;font-weight:600;line-height:15px}
.studio-source .status-top strong{font-size:16px;font-weight:750;line-height:23px}
.studio-source .remaining{display:flex;flex-direction:column;justify-content:center;min-width:86px;min-height:54px;padding:8px 12px;border:1px solid #e5deea;border-radius:16px;background:#f8f4f9;text-align:right}
.studio-source .status-top .remaining>span{font-size:9px;font-weight:500;margin-bottom:2px}
.studio-source .status-top .remaining strong{color:#ff4379;font-size:14px;line-height:18px}
.studio-source .stage-track{height:8px;margin-top:17px;overflow:hidden;border:1px solid #e3d9ef;border-radius:99px;background:#eee5f6}
.studio-source .stage-track>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#f980aa,#a389f9);border-radius:inherit}
.studio-source .stage-track[data-stage="1"]>span{width:33.333%}
.studio-source .stage-track[data-stage="2"]>span{width:66.666%}
.studio-source .stage-track[data-stage="3"]>span{width:83.333%}
.studio-source .stage-track[data-stage="4"]>span{width:100%}
.studio-source .progress-steps{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;list-style:none;margin:15px 0 14px;padding:0}
.studio-source .progress-steps:before{content:"";position:absolute;left:12.5%;right:12.5%;top:6px;height:1px;background:#e1dde5}
.studio-source .progress-steps li{position:relative;color:#8b8191;font-size:10px;font-weight:700;line-height:15px;text-align:center}
.studio-source .progress-steps li:before{content:"";position:relative;display:block;width:13px;height:13px;margin:0 auto 5px;border:2px solid #e5e2e9;border-radius:50%;background:#fff}
.studio-source .progress-steps li.done,.studio-source .progress-steps li.active{color:#cc4381}
.studio-source .progress-steps li.done:before{border-color:#f26697;background:#f26697}
.studio-source .progress-steps li.active:before{border-color:#f26697;box-shadow:0 0 0 3px #fce8f1}
.studio-source .status-bottom{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #e9e3ee}
.studio-source .status-bottom p{flex:1;min-width:0;margin:0;color:#938999;font-size:10px;line-height:17px;overflow-wrap:anywhere}
.studio-source .status-bottom small{flex:none;max-width:42%;padding:4px 8px;border:1px solid #e4dbe7;border-radius:999px;background:#f8f4f9;color:#504657;font-size:10px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-source .status-panel button{width:100%;margin-top:12px;font-size:12px}
.studio-source .result-card footer{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 15px;color:#938898;font-size:10px;line-height:16px}
.studio-source .result-card footer b{display:inline-block;margin-left:6px;padding:6px 8px;border-radius:8px;background:#f7f3f8;color:#423749;font-size:10px;font-weight:750;line-height:16px}
.studio-source .studio-footnote{padding:20px 10px 0;color:#978b9d;font-size:10px;text-align:center;line-height:1.7}
.studio-source .error{margin-top:16px;padding:12px;border-radius:10px;background:#fff0f3;color:#b52a49;font-size:13px;line-height:1.7}
.studio-source .effect-preview.effect-pending{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:linear-gradient(135deg,#f5e8ef,#eee9f9);color:#88728c}
.studio-source .effect-pending strong{font-size:48px;font-weight:750;color:#d296b0;line-height:1}
.studio-source .effect-pending>span{font-size:13px;letter-spacing:.04em}
.studio-source .gallery-heading{display:flex;gap:14px;align-items:baseline;padding:36px 0 22px}
.studio-source .gallery-heading h2{font-size:27px;color:var(--pink)}
.studio-source .gallery-heading span{font-size:13px;color:var(--muted)}
.studio-source .gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.studio-source .effect-card{min-width:0;border-radius:20px;background:#fff;border:1px solid var(--line);overflow:hidden;box-shadow:var(--shadow)}
.studio-source .effect-preview{position:relative;overflow:hidden;aspect-ratio:26/15;background:#2b222e;display:block;width:100%;border:0;padding:0}
.studio-source .effect-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.studio-source .effect-preview .play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;background:#fffffff0;color:var(--pink);width:44px;height:44px;display:grid;place-items:center;box-shadow:0 10px 26px #0003}
.studio-source .effect-preview .category-badge{position:absolute;top:8px;right:8px;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:24px;padding:4px 8px;border:1px solid #ffffffa6;border-radius:999px;background:#f45483;color:#fff;font-size:10px;font-weight:700;line-height:1;white-space:nowrap;box-shadow:0 1px 4px #0002;pointer-events:none}
.studio-source .card-copy{padding:16px}
.studio-source .card-copy h3{margin:0;font-size:16px}
.studio-source .card-copy p{color:var(--muted);font-size:12px;margin:9px 0 15px;line-height:1.7}
.studio-source .card-copy button{font-size:12px}
.studio-source .empty-gallery{color:var(--muted);padding:40px}
.studio-source #sampleDialog{border:0;border-radius:24px;background:#211725;color:#fff;max-width:520px;width:calc(100% - 16px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 70px #0008}
.studio-source #sampleDialog::backdrop{background:#160e1aca;backdrop-filter:blur(5px)}
.studio-source #sampleDialog .sample-media{position:relative;background:#000}
.studio-source #samplePlayer{display:block;width:100%;aspect-ratio:16/9;max-height:66vh;max-height:66dvh;object-fit:contain;background:#000}
.studio-source #sampleDialog .sample-close{position:absolute;z-index:2;top:12px;right:10px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#f7f5f7;color:#28222b;font-size:26px;font-weight:400;line-height:1;cursor:pointer;box-shadow:0 1px 5px #0002}
.studio-source #sampleDialog .sample-details{padding:20px 15px 15px}
.studio-source #sampleCategory{margin:0 0 5px;color:#ff6797;font-size:11px;font-weight:700;line-height:1.4}
.studio-source #sampleTitle{margin:0;color:#fff;font-size:18px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
.studio-source #sampleError{margin:10px 0 0;color:#ffabc5;font-size:12px;line-height:1.5}
.studio-source #sampleDialog .sample-generate{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;margin-top:13px;padding:12px 16px;border:0;border-radius:13px;background:linear-gradient(105deg,#f5487d,#e3356b);color:#fff;text-decoration:none;font-size:14px;font-weight:700;line-height:1.4;cursor:pointer;box-sizing:border-box}
.studio-source #sampleDialog .sample-generate:hover{filter:brightness(1.05)}
.studio-source #sampleDialog .sample-generate:focus-visible,.studio-source #sampleDialog .sample-close:focus-visible{outline:3px solid #ffb6ce;outline-offset:-4px}
@container oneclick (max-width:1100px){.studio-source .generator-layout{grid-template-columns:1fr;gap:14px}
.studio-source .result-stage.portrait{aspect-ratio:16/9}
.studio-source .result-stage.portrait video{width:auto;max-width:100%;aspect-ratio:9/16}
}
@container oneclick (max-width:767px){.studio-source .studio{padding:12px 12px 24px}
.studio-source .page-header{padding:14px 12px 16px;gap:12px}
.studio-source .page-header h1{font-size:20px;gap:8px;line-height:1.35}
.studio-source .camera-icon{width:21px;height:21px}
.studio-source .view-tabs a{min-width:98px;min-height:40px;padding:10px 15px;font-size:14px}
.studio-source .form-card{padding:12px}
.studio-source .gallery-heading{padding-top:26px}
.studio-source .gallery-heading h2{font-size:23px}
.studio-source .gallery{gap:10px}
.studio-source .gallery .effect-card{min-width:0;border-radius:14px}
.studio-source .gallery .card-copy{padding:12px}
.studio-source .gallery .effect-preview.effect-pending{gap:8px;padding:10px 4px}
.studio-source .gallery .effect-pending strong{font-size:32px}
.studio-source .gallery .effect-pending>span{font-size:11px;line-height:1.4;text-align:center}

}
@container oneclick (max-width:359px){.studio-source .studio{padding-left:8px;padding-right:8px}
.studio-source .page-header{padding-left:12px;padding-right:12px}
.studio-source .page-header h1{font-size:18px}
.studio-source .view-tabs a{min-width:90px;font-size:13px;padding-left:12px;padding-right:12px}
.studio-source .section-heading{gap:6px}
.studio-source .step-title{gap:7px}
.studio-source .step-title h2{font-size:15px}
.studio-source .step-title p{font-size:10px}
.studio-source .small{font-size:12px;padding:7px 8px;gap:3px}
.studio-source .small .ui-icon{width:10px;height:10px}
.studio-source .upload-label{left:4px;top:4px;font-size:9px;padding:4px;gap:3px;min-height:24px}
.studio-source .upload-label .ui-icon{width:11px;height:11px}
.studio-source .pill{font-size:13px;gap:5px;padding-left:6px;padding-right:6px}
.studio-source .pill .ui-icon{width:14px;height:14px}
.studio-source .generate{gap:9px}
.studio-source .generate b{font-size:17px}
.studio-source .generate #submitHint{font-size:10px}
.studio-source .status-panel{padding:12px}
.studio-source .status-bottom{gap:7px}
.studio-source .content-note{font-size:14px}

}
@media(prefers-reduced-motion:no-preference){.studio-source button,.studio-source a{transition:background .15s,box-shadow .15s}
.studio-source .pink:hover:not(:disabled){box-shadow:0 11px 25px #f24f783b}
.studio-source .stage-track>span{transition:width .25s ease}
}
.studio-source{display:block;min-width:0}
.studio-source .studio-app{min-height:70vh}
.studio-source .studio-result-actions{padding:4px 16px 14px;display:flex;gap:8px;flex-wrap:wrap}
.studio-source .studio-result-actions p{width:100%;font-size:11px;color:var(--muted);line-height:1.6}
.studio-source .studio-app .studio{padding-top:0}
.studio-source .coupon-hint{padding:12px 14px;border:1px solid #f6bad3;background:#fff1f7;border-radius:12px;color:#b92661;font-size:13px;font-weight:600}
@container oneclick (min-width:1101px){.studio-source .generator-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
}
.studio-source /* Compact studio controls. Prompt actions straddle the input bottom edge. */
.studio{padding:0 12px 16px}
.studio-source .page-header{padding:8px 0 10px;background:transparent;gap:0}
.studio-source .generator-layout{gap:12px}
.studio-source .form-card{padding:14px}
.studio-source .form-section{padding:12px 0}
.studio-source .section-heading{margin-bottom:9px}
.studio-source .step-title p{font-size:12px;line-height:1.5}
.studio-source .prompt-heading{margin-bottom:0}
.studio-source .content-note{margin:7px 0 10px;font-size:14px;line-height:1.55}
.studio-source .prompt-field{margin-bottom:22px}
.studio-source .prompt-field textarea{min-height:192px;padding:12px 12px 32px;line-height:1.7}
.studio-source .prompt-field .prompt-actions{position:absolute;z-index:2;left:50%;bottom:0;transform:translate(-50%,50%);width:calc(100% - 24px);max-width:420px;margin:0;gap:8px}
.studio-source .prompt-actions .pill{min-height:38px;font-size:14px;line-height:20px;padding:8px 9px;gap:5px;box-shadow:0 3px 10px #dd4b7820}
.studio-source .prompt-actions .ui-icon{width:14px;height:14px}
.studio-source .prompt-actions .outline{background:#fff}
.studio-source .options-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:8px;margin-top:10px}
.studio-source .option-group{padding:10px;border-radius:14px}
.studio-source .option-group legend{margin-bottom:5px}
.studio-source .choices{gap:4px}
.studio-source .choices span{padding:8px 3px;min-height:40px}
.studio-source .generate{min-height:52px;margin-top:14px;padding:12px}
.studio-source .studio-footnote{padding:12px 8px 0}
.studio-source .gallery-heading{padding:16px 0 12px}
.studio-source .gallery-heading h2{font-size:22px}
.studio-source .gallery{gap:12px}
@container oneclick (max-width:767px){.studio-source .studio{padding:0 10px 14px}
.studio-source .page-header{padding:6px 0 10px}
.studio-source .form-card{padding:12px}
.studio-source .view-tabs a{padding:10px 8px}
.studio-source .gallery-heading{padding-top:12px}
}
@container oneclick (max-width:359px){.studio-source .studio{padding-left:8px;padding-right:8px}
.studio-source .prompt-field .prompt-actions{width:calc(100% - 12px);gap:6px}
.studio-source .prompt-actions .pill{font-size:12px;padding:8px 5px;gap:3px}
.studio-source .prompt-actions .ui-icon{width:12px;height:12px}
.studio-source .content-note{font-size:13px}
.studio-source .options-grid{grid-template-columns:1fr}
.studio-source .step-title p{font-size:11px}
}



/* Web sizing and host-page isolation; retain the original studio palette. */
.studio-source{padding-top:28px;padding-bottom:48px;min-width:0}
.studio-source>.breadcrumbs{margin-bottom:20px}
.studio-source>.source-studio-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;color:#f5f3f7}
.studio-source>.source-studio-heading h1{font-size:30px;line-height:1.3;margin:0}
.studio-source>.source-studio-heading p{font-size:13px;color:#aaa2b3;margin-top:7px}
.studio-source>.source-studio-heading img{width:64px;height:64px;object-fit:contain}
.studio-source .studio-app{border-radius:22px;padding:22px;min-width:0}
.studio-source .studio{padding:0;min-width:0}
.studio-source .page-header{padding:0 0 20px}
.studio-source .view-tabs{max-width:600px;width:100%;align-self:center}
.studio-source .section-heading{display:flex;letter-spacing:normal}
.studio-source .prompt-heading{display:block}
.studio-source .step-title h2,.studio-source .gallery-heading h2{letter-spacing:normal}
.studio-source .form-card{padding:20px}
.studio-source .upload{width:100%;border:0;padding:0;text-align:left;color:inherit}
.studio-source .form-section{padding-top:18px;padding-bottom:18px}
.studio-source .form-section:first-child{padding-top:0}
.studio-source .prompt-field textarea{min-height:220px}
.studio-source .choices{margin:0}
.studio-source .choices label{display:block}
.studio-source .generate{flex-wrap:wrap;gap:10px}
.studio-source .generate #submitHint{white-space:nowrap}
.studio-source .result-card>header,.studio-source .result-card>footer{position:static;height:auto;min-height:0;inset:auto;background:#fff}
.studio-source .result-stage{position:relative;aspect-ratio:16/9;margin:0 12px}
.studio-source .result-preview{height:100%;width:100%;position:relative}
.studio-source .result-sample{position:relative;display:block;border:0;padding:0;width:100%;height:100%;aspect-ratio:16/9;background:#17131c;overflow:hidden;color:white}
.studio-source .result-sample img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.studio-source .result-sample .play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;border:1px solid #ffffffaa;border-radius:50%;width:52px;height:52px;background:#18121d99;color:#fff;font-size:22px}
.studio-source .result-sample-label{position:absolute;bottom:12px;left:12px;right:12px;text-align:center;padding:7px 10px;border-radius:8px;background:#1a1223c9;color:#fff;font-size:12px}
.studio-source .status-panel{margin:12px}
.studio-source #newButton{margin-top:12px;font-size:12px}
.studio-source .studio-result-actions{padding:4px 12px 12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.studio-source .studio-result-actions button{min-width:0;padding:9px 8px;font-size:13px;line-height:20px}
.studio-source .studio-result-actions p{grid-column:1/-1;font-size:12px;line-height:1.6}
.studio-source .studio-draft-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px 12px}
.studio-source .studio-draft-actions button{min-height:36px;font-size:12px;padding:7px 12px}
.studio-source .studio-draft-actions p{width:100%;font-size:11px;line-height:1.6;color:var(--muted)}
.studio-source .gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.studio-source .effect-card{min-width:0}
.studio-source .effect-preview{width:100%;display:block;padding:0;position:relative;aspect-ratio:26/15;border:0}
.studio-source .effect-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.studio-source .card-copy h3{text-align:center;font-size:18px;line-height:1.5}
.studio-source .card-copy p{font-size:17px;line-height:1.65;font-weight:400}
.studio-source .studio-footnote{font-size:12px;line-height:1.7;padding:14px 4px 0}
.studio-source #sampleDialog{max-width:min(900px,calc(100vw - 32px));max-height:90dvh;padding:0}
.studio-source #sampleDialog .sample-media{min-height:160px;background:#000}
.studio-source #sampleDialog video{display:block;width:100%;max-height:68dvh;object-fit:contain;background:#000}
.studio-source #sampleDialog .sample-generate{width:100%}
.studio-app-steps[hidden],.studio-download-more[hidden],.studio-download-note[hidden]{display:none!important}
.studio-app-steps{padding:0;list-style-position:inside;text-align:left;color:#bfb4c8;font-size:13px;line-height:2}
.studio-download-more{display:inline-block;font-size:13px;color:#ff84b8;margin-top:18px}
.studio-download-note{font-size:11px!important;color:#a49aaa!important;line-height:1.8!important;margin-top:10px!important}
@media(min-width:1000px){.studio-source .generator-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:22px}.studio-source .result-card{position:sticky;top:88px}}
@media(max-width:999px){.studio-source .generator-layout{grid-template-columns:minmax(0,1fr)}.studio-source .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-source .result-card{position:static}}
@media(max-width:600px){.studio-source{padding-top:20px}.studio-source>.source-studio-heading h1{font-size:26px}.studio-source>.source-studio-heading img{width:52px;height:52px}.studio-source .studio-app{padding:12px;border-radius:16px}.studio-source .form-card{padding:12px}.studio-source .view-tabs a{min-width:0;padding:10px 6px;font-size:13px}.studio-source .form-section{padding:14px 0}.studio-source .section-heading{gap:6px}.studio-source .step-title{gap:7px}.studio-source .step-title h2{font-size:14px}.studio-source .step-title p{font-size:11px}.studio-source .small{font-size:11px;padding:6px;gap:3px}.studio-source .upload-label{font-size:9px;padding:4px;left:4px;top:4px}.studio-source .upload-label .ui-icon{width:11px}.studio-source .replace{font-size:9px;padding:3px 6px}.studio-source .prompt-field textarea{min-height:210px;font-size:15px}.studio-source .gallery{gap:10px}.studio-source .card-copy{padding:12px}.studio-source .card-copy h3{font-size:16px}.studio-source .card-copy p{font-size:14px}.studio-source .options-grid{grid-template-columns:1fr 1fr;gap:6px}.studio-source .option-group{padding:9px 6px}.studio-source .choices span{font-size:11px;padding:8px 2px}.studio-source .content-note{font-size:12px}.studio-source #sampleDialog{max-width:calc(100vw - 20px)}}
@media(max-width:380px){.studio-source .gallery{grid-template-columns:1fr}.studio-source .upload-grid{gap:4px}.studio-source .upload-label{gap:2px;font-size:8px}.studio-source .upload-label .ui-icon{display:none}.studio-source .prompt-actions .pill{font-size:11px;gap:3px}.studio-source .prompt-actions .ui-icon{width:12px}.studio-source .step-number{width:26px;height:26px}.studio-source .options-grid{grid-template-columns:1fr}}
