.topup-dialog .modal-card{width:min(920px,100%);background:#171a19}
.studio{display:block;max-width:1240px;margin:auto;padding:24px}.studio-main{max-width:none}.studio-tools{display:flex;gap:24px;justify-content:flex-end;margin-bottom:20px}.studio-tools .text-button{font-size:12px;min-height:36px}.studio-title .eyebrow{display:none}.workspace-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.model-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.model-description{display:none}.duration-field{display:block;margin:22px 0}.duration-field>span{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#b8c7b9}.duration-field output{font-size:16px;color:#e7f0e6}.duration-field input{width:100%;height:32px;accent-color:#d9f86b;cursor:pointer;margin:8px 0}.duration-bounds small{font-size:11px}.reference-item .reference-preview{width:76px;height:64px;padding:0;border:1px solid #4e5c4b;border-radius:4px;overflow:hidden;flex-shrink:0;background:#101612}.reference-item .reference-preview img{width:100%;height:100%;object-fit:contain}.reference-item audio{width:150px;max-width:40%;height:40px}.reference-full{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}.topup-options .bonus-credit{color:#d9f86b;font-size:13px;font-weight:600}.topup-options .pack-saving{color:#b2d8ce;min-height:36px}.scene-caption{padding:12px 0}.scene-caption .text-button{min-width:0}.studio-note{font-size:11px}.composer-heading strong{font-size:16px}.settings-heading{margin-top:22px}
@media(max-width:600px){.studio{padding:16px}.studio-tools{justify-content:flex-start;gap:20px}.reference-item .reference-preview{width:58px;height:54px}.reference-item audio{width:110px}.studio-title h1{font-size:28px}}
.topup-dialog h2{font-size:28px;letter-spacing:0}
.checkout-context>div{display:flex;justify-content:space-between;gap:16px}
.checkout-context>div strong{font-size:24px}
.topup-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.topup-options button{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:18px;padding:20px 16px;background:#111613;color:#eef3ed;border:1px solid #425045;border-radius:8px;min-width:0;font:inherit}
.topup-options button:hover,.topup-options button:focus-visible{border-color:#c9f269;outline:2px solid #c9f269;outline-offset:2px}
.topup-options button[data-recommended=true]{border-color:#c9f269}
.topup-name{font-size:16px;font-weight:600;min-height:40px}
.topup-options small{display:block;font-size:11px;color:#adbcae;font-weight:400;line-height:1.6;margin-top:5px}
.topup-options strong{font-size:30px;font-weight:600}
.topup-value{font-size:13px;line-height:1.6}
.topup-cta{display:flex;align-items:center;justify-content:space-between;gap:6px;background:#c9f269;color:#15200d;padding:12px 8px;border-radius:4px;font-size:11px;font-weight:600;margin-top:auto}
.topup-cta svg{width:16px;height:16px;flex-shrink:0}
.creations{border-top:1px solid #364536;margin-top:32px;padding:24px 0;scroll-margin-top:90px}
.creations header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.creations h2{font-size:20px;letter-spacing:0;margin:0}
.creations h2 span{font-size:12px;color:#a5b49e;margin-left:8px}
.creations p{font-size:13px;color:#a5b49e}
[hidden]{display:none!important}
#creationList{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.creation-card{min-width:0;border:1px solid #344039;border-radius:6px;overflow:hidden;background:#171c19}
.creation-media{aspect-ratio:16/9;background:#0a0d0b;overflow:hidden}
.creation-media video{width:100%;height:100%;object-fit:contain;display:block}
.creation-progress{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#18231e;border:0;padding:16px}
.creation-progress strong{font-size:15px}.creation-progress small{font-size:11px;line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.creation-details{padding:14px}.creation-details b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.creation-details small{display:block;font-size:11px;color:#a8b8ab;line-height:1.6;margin-top:6px}
.creation-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:14px}.creation-actions button{min-height:32px;font-size:11px}
.result-actions{flex-wrap:wrap}.result-actions small{flex-basis:100%;font-size:11px;color:#a8b8ab}.result-actions .button{font-size:12px}
.creations .empty-history{grid-column:1/-1}
@media(max-width:1000px){#creationList{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#creationList{grid-template-columns:1fr}.workspace-grid .preview-stack{order:0}}
.creation-row{display:flex;align-items:center;gap:16px;width:100%;border:0;border-bottom:1px solid #303c31;background:transparent;color:#edf2eb;padding:18px 4px;text-align:left}
.creation-row:hover{background:#ffffff06}
.creation-row>span:nth-child(2){flex:1;min-width:0}
.creation-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.creation-row small{display:block;color:#a5b49e;font-size:11px;margin-top:6px}
.creation-icon{display:grid;place-items:center;width:42px;height:42px;background:#25322a;color:#b9ded0;flex-shrink:0;border-radius:4px}
.creation-state{font-size:11px;color:#c9f269;flex-shrink:0}
.preview-stage:has(.job-status:not(.hidden)){height:320px;width:100%;min-width:0}
.preview-stage .job-status{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;background:#141b18;padding:28px;text-align:left;overflow:auto;transform:none;border:0;border-radius:0}
.job-status strong{font-size:24px;color:#e8f1e8}
.job-status p{font-size:13px;line-height:1.6;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#b4c4b6}
.job-status small{font-size:11px;color:#a6c1b3;line-height:1.6}
.render-activity{height:4px;width:100%;background:#435b4b;margin:18px 0;animation:render-pulse 2s ease-in-out infinite}
@keyframes render-pulse{50%{background:#b7dca5}}
@media(prefers-reduced-motion:reduce){.render-activity{animation:none}}
@media(max-width:600px){.topup-options{grid-template-columns:1fr}.topup-options button{gap:12px}.topup-name{min-height:0}.topup-dialog .modal-card{padding:32px 20px 20px}.creation-row{gap:10px}.creation-icon{width:32px;height:32px}.preview-stage .job-status{padding:16px}.job-status strong{font-size:20px}}

/* The composer and its results share one workspace at every viewport. */
.app-body{--bg:#111313;--surface:#191c1b;--line:#333937;--muted:#a0aaa5;background:var(--bg)}
.app-nav{height:68px;background:#151817;gap:36px}
.studio{max-width:1600px;padding:28px 40px 32px;position:relative}
.studio-main{padding:0;max-width:none}
.studio-title{margin:0 0 28px;min-height:42px}
.studio-title h1{font-size:28px;margin:0;font-weight:600}
.studio-title .live-status{margin-right:280px;font-size:11px}
.studio-tools{position:absolute;right:40px;top:28px;gap:20px;margin:0;height:42px;align-items:center}
.studio-tools .text-button{color:#b4c0ba;font-size:12px;padding:0}
.workspace-grid{display:grid;grid-template-columns:minmax(340px,440px) minmax(0,1fr);gap:36px}
.composer-card{padding:24px;background:#191c1b;border-color:#363d39;border-radius:8px}
.composer-heading{margin-bottom:18px}.composer-heading strong{font-size:16px}
.step-number{display:none}
.prompt-label{color:#d0d7d2;font-size:12px}.prompt-label span{font-size:10px;color:#9aa69e}
#prompt{min-height:132px;font-size:14px;line-height:1.7;padding:14px;background:#101413;border-color:#424b45;border-radius:6px}
#prompt::placeholder{color:#839389}
.upload-tile{margin-top:10px;min-height:44px;border-style:solid;border-color:#3e4d44;background:#1b251f}
.upload-tile:hover{background:#263329}.upload-tile b{font-size:12px}
.reference-count{font-size:10px;line-height:1.7;color:#94a99d;text-align:left;margin-top:10px}
#referenceLibrary{display:inline-flex;min-height:32px;font-size:11px;color:#b0cdc0;padding:0}
.reference-item{background:#121715;border:1px solid #303b35;padding:8px;gap:10px}
.reference-item b{font-size:12px}.reference-item small{font-size:10px}
.reference-item>span{flex:1;min-width:0}.reference-item>button:last-child{min-width:36px;min-height:36px;color:#becac2}
.settings-heading{padding-top:16px;margin-top:12px;margin-bottom:12px}.settings-heading strong{font-size:13px;color:#d5ded8}
.model-row{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:12px}.model-field{grid-column:auto}
.model-row label{font-size:12px;color:#aabdb1}.model-row select{min-height:44px;padding:10px;font-size:13px;background:#121715;border-color:#414d44}
.duration-field{margin:18px 0 6px}.duration-field input{appearance:none;display:block;border:0;height:5px;border-radius:4px;background:linear-gradient(to right,#d9f86b var(--progress,9%),#47534a var(--progress,9%));margin:18px 0;outline-offset:8px}
.duration-field input::-webkit-slider-thumb{appearance:none;width:18px;height:18px;border:3px solid #d9f86b;border-radius:50%;background:#1a2518;box-shadow:0 0 0 4px #d9f86b12}
.duration-field input::-moz-range-thumb{width:14px;height:14px;border:3px solid #d9f86b;border-radius:50%;background:#1a2518}
.advanced-settings summary{font-size:12px;min-height:44px}.advanced-settings summary span{font-size:10px;color:#a8bbb0}
.paired-controls{gap:12px}.segmented button,.aspect-grid button{min-height:40px;font-size:11px}.sound-toggle{min-height:36px}
.generate-row{grid-template-columns:1fr;gap:8px;margin-top:16px;padding-top:16px}
.estimate{display:flex;justify-content:space-between;align-items:center}.estimate-label{font-size:12px;margin:0}.estimate strong{font-size:18px}
.button-generate{min-height:50px;font-size:14px;font-weight:600;padding:12px 16px}.button-generate span{font-size:13px;margin-left:auto}
.generate-row>small{font-size:10px;text-align:center;color:#afbeb4}
.preview-top{margin:0 0 12px;min-height:36px}.preview-top strong{font-size:16px}.sample-tag{font-size:10px;background:#25352c;color:#b4d4c4;padding:5px 9px;border-radius:4px}
#examplesPreviewButton{display:none}
.preview-stage{border:1px solid #333d37;border-radius:8px}.preview-empty{max-height:420px}.preview-video{max-height:420px}.video-label{font-size:10px;line-height:1.6}.video-toolbar{padding:28px 14px 10px}
.preview-meta{font-size:12px;line-height:1.7;color:#c0d0c6;gap:5px}
.scene-caption{margin:0;padding:10px 0}.scene-caption .text-button{font-size:12px;min-height:36px;color:#bad7c7}
.creations{margin-top:16px;padding:22px 0 0;border-color:#354039}.creations h2{font-size:16px}.creations header{margin-bottom:16px}
#creationList{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.creation-card{border-color:#3a473f;background:#181e1a;border-radius:8px}.creation-card.selected{border-color:#bedf85}
.creation-details{padding:12px}.creation-details>b{font-weight:500;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:36px;line-height:1.5}
.creation-details small{color:#9aafa2}.creation-actions{gap:12px;margin-top:10px}.creation-actions .text-button{font-size:11px;min-height:36px;color:#c3dbc9}.creation-actions svg{width:15px;height:15px}
.creation-progress{background:#1c2821;color:#cde0d4}.creation-progress>svg{color:#d9f86b;width:24px;height:24px}
.empty-history,#creationList>p{grid-column:1/-1;margin:0;padding:28px 0;color:#9eb2a4;line-height:1.7;font-size:13px}
.preview-stage:has(.job-status:not(.hidden)){height:auto;aspect-ratio:16/9;min-height:280px}
.preview-stage .job-status{background:#18231d;padding:28px}.job-status strong{font-size:22px}.job-status p{margin:10px 0;color:#c1d2c6}.job-status small{color:#a9c3b3}
.studio-note{margin-top:28px;font-size:11px;color:#9bb0a2}.studio-note .text-button{font-size:11px;min-height:36px}
.topup-dialog .modal-card{padding:34px}.topup-dialog h2{font-size:28px;margin-bottom:10px}.topup-dialog #modalContent>p{font-size:13px;line-height:1.7}
.checkout-context{padding:14px 0;margin:18px 0;border-top:1px solid #3c4840;border-bottom:1px solid #3c4840}.checkout-context p{font-size:12px;line-height:1.7;margin-top:5px}
.topup-options{margin-top:0;gap:14px}.topup-options button{gap:16px;padding:20px 16px;background:#111914;border-color:#44584a}
.topup-name{font-size:16px;min-height:38px}.topup-name small{color:#c2df90;font-size:10px}.topup-options strong{font-size:32px;line-height:1.15}.topup-options strong>small{font-size:11px}
.topup-options .bonus-credit{font-size:13px;color:#d9f86b}.topup-options .pack-saving{min-height:36px;font-size:11px;line-height:1.6;color:#b3dac6}.topup-value{font-size:15px;line-height:1.5}.topup-value>small{font-size:11px}.topup-cta{min-height:42px;font-size:12px;padding:10px}
.checkout-footnote{margin-top:14px!important;font-size:11px!important;color:#a9baae}.result-actions{margin:4px 0 12px}.result-actions .button{min-height:40px;padding:9px 12px}
.topup-options button[data-buy-confirm="starter"] .bonus-credit{display:none}
.studio-budget-note{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin:16px 0 0;border:1px solid #43533c;background:#1a2418;border-radius:8px;font-size:11px;line-height:1.7;color:#c8d5bd}
.studio-budget-note p{margin:0;max-width:340px}.studio-budget-note a{color:#d9fa8b;text-decoration:underline;text-underline-offset:3px;flex-shrink:0}
@media(max-width:480px){.studio-budget-note{align-items:flex-start;flex-direction:column;gap:5px}}
.checkout-context p{margin-bottom:0}
@media(min-width:1900px){.studio{padding-top:34px}.studio-tools{top:34px}.workspace-grid{grid-template-columns:minmax(400px,480px) minmax(0,1fr);gap:44px}}
@media(max-width:1000px){.studio{padding:24px}.studio-tools{right:24px;top:24px}.studio-title .live-status{display:none}.workspace-grid{grid-template-columns:minmax(320px,1fr) minmax(0,1fr);gap:24px}.composer-card{padding:18px}#creationList{grid-template-columns:1fr}}
@media(max-width:740px){.app-nav{padding:0 16px;gap:12px}.app-nav .brand-category{display:none}.app-nav .button{font-size:11px;min-height:40px}.app-nav-right{gap:8px}.credit-pill{min-height:38px}.credit-pill svg:last-child{display:none}.studio{padding:20px 16px 24px}.studio-tools{position:static;justify-content:flex-start;gap:24px;height:36px;margin:0 0 14px}.studio-title{margin-bottom:18px;min-height:32px}.studio-title h1{font-size:24px}.workspace-grid{display:flex;flex-direction:column;gap:28px}.workspace-grid .preview-stack{order:0}.composer-card{padding:18px}.model-row{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}.model-field{grid-column:auto}.advanced-settings summary span{font-size:9px}.preview-top strong{font-size:16px}#creationList{grid-template-columns:repeat(2,minmax(0,1fr))}.topup-dialog .modal-card{padding:30px 18px 20px}.topup-options{grid-template-columns:1fr}.topup-options button{display:grid;grid-template-columns:1fr auto;gap:10px 14px}.topup-name{min-height:0}.topup-options strong{font-size:26px;text-align:right;grid-column:2;grid-row:1 / 3}.topup-value{grid-column:1/-1}.topup-options .pack-saving{min-height:0}.topup-cta{grid-column:1/-1}.topup-options strong small{margin:3px 0 0}.topup-dialog h2{font-size:25px}.topup-dialog #modalContent>p{font-size:12px}.studio-note{margin-top:20px}}
@media(max-width:480px){#creationList{grid-template-columns:1fr}.studio-tools{gap:22px}.studio-tools .text-button{font-size:11px}.app-nav .brand b{font-size:16px}.app-nav .brand-logo{width:28px;height:28px}.app-nav .brand{gap:8px}.app-nav .button{max-width:92px;font-size:10px;padding:8px}.composer-card{padding:16px}.reference-item audio{max-width:48%;width:130px}.preview-stage:has(.job-status:not(.hidden)){min-height:300px}.preview-stage .job-status{padding:20px}.preview-meta{font-size:11px}.topup-dialog .modal-card{padding:32px 16px 20px}.modal{padding:10px}}
@media(max-width:740px){.topup-options strong{grid-row:1}.topup-options button{padding:16px}.topup-value{font-size:14px}.topup-value small{margin-top:3px}}
