.studio-active{--studio-accent:#ffb524;--studio-button:#ffa600;background:#0c0b0d}.studio-active>.site-header{display:none}.studio-page{color:#faf8f6;min-height:100dvh;padding-bottom:110px;font-size:16px}.studio-page button,.studio-wallet button,.studio-page a{font-family:var(--font)}.studio-page button:focus-visible,.studio-page a:focus-visible,.studio-page input:focus-visible{outline-color:#ffd784}.studio-active .bottom-nav{background:#161417f2;border-color:#ffffff20}.studio-active .bottom-nav button.active{background:#ffb11b24;color:#ffc146;box-shadow:none}.studio-workflow>.bottom-nav{display:none}.studio-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;border:1px solid #ffffff0d;background:#ffffff03;flex-shrink:0}.studio-icon svg{width:22px;height:22px}.studio-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:20px;justify-content:space-between;background:#0c0b0df5;backdrop-filter:blur(16px);border-bottom:1px solid #ffffff12;padding:14px max(22px,calc((100vw - 880px)/2));min-height:72px}.studio-tabs{display:flex;gap:35px;align-items:center}.studio-tabs button{position:relative;padding:12px 0;font-size:17px;white-space:nowrap;color:#b4afb8;font-weight:600;min-height:44px}.studio-tabs button.active{color:#ffbb32}.studio-tabs button.active:after{content:'';position:absolute;left:calc(50% - 12px);bottom:2px;width:24px;height:3px;background:#ffb524;border-radius:5px}.studio-language{color:#e6d7c6;border-color:#ffffff18;height:38px;font-size:13px;background:#ffffff04}.studio-content{width:100%;max-width:880px;margin:auto;padding:0 22px}.studio-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:61px;font-size:12px;letter-spacing:.07em;color:#b2a5ae}.studio-meta>span{font-weight:700;font-size:14px;letter-spacing:.04em}.studio-meta b{font-weight:500;color:#b7a69a;font-size:11px;margin-left:6px}.studio-meta button{display:flex;gap:8px;align-items:center;color:#eac58a;font-size:13px;letter-spacing:0;padding:10px 0;min-height:40px}.studio-meta button svg{height:14px;width:14px}.template-feed{max-width:510px;margin:auto}.template-feed-card{margin-bottom:45px}.template-video-wrap{position:relative;border:1px solid #ffffff19;background:#211a1b;border-radius:16px;overflow:hidden;height:min(720px,calc(100dvh - 310px));min-height:380px}.template-video-wrap>video{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center 28%}.template-video-wrap:after{content:'';position:absolute;inset:60% 0 0;background:linear-gradient(transparent,#0b080cb3);pointer-events:none}.template-star{position:absolute;z-index:3;right:12px;top:12px;width:40px;height:40px;display:grid;place-items:center;background:#100e1475;border:1px solid #ffffff17;border-radius:10px;color:#ffc14a;backdrop-filter:blur(8px)}.template-star svg{height:22px;width:22px;fill:none;stroke:currentColor;stroke-width:1.7}.template-star.on{background:#523709b8}.template-star.on svg{fill:#ffc14a}.template-video-toggle{position:absolute;left:12px;top:12px;width:36px;height:36px;display:grid;place-items:center;background:#100e1450;border:1px solid #ffffff20;border-radius:50%;z-index:3}.template-video-toggle svg{width:18px;height:18px}.template-video-label{position:absolute;bottom:17px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;z-index:2}.template-video-label span{font-size:11px;letter-spacing:.15em;color:#ffe8cd}.template-video-label small{font-size:12px;color:#ffefd7;background:#0004;border-radius:5px;padding:4px 8px}.template-feed-info{padding:15px 0 0}.template-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.template-heading h2{font-size:25px;font-weight:700;line-height:1.3;letter-spacing:-.025em}.template-heading>span{font-size:13px;white-space:nowrap;color:#ffd890}.template-feed-info>p{font-size:13px;color:#c9b2a6;display:flex;gap:14px;margin:9px 0 18px}.template-feed-info>p span{color:#91838f}.studio-primary{width:100%;min-height:52px;border:1px solid #ffbb32;border-radius:10px;background:linear-gradient(110deg,#ffbf37,#ff9e05);color:#171005;font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 20px;text-decoration:none;line-height:1.4;text-align:center;cursor:pointer}.studio-primary:hover{filter:brightness(1.06)}.studio-primary>svg{height:23px;width:23px}.studio-primary:disabled{cursor:default;opacity:.55}.studio-secondary{display:flex;align-items:center;justify-content:center;width:100%;border:1px solid #ffffff24;border-radius:10px;background:#ffffff05;color:#e2d6ce;min-height:48px;font-size:15px;padding:11px 15px;line-height:1.5;text-decoration:none}.studio-filters{display:flex;gap:10px;margin:2px 0 20px}.studio-filters button{min-height:40px;border-radius:24px;border:1px solid #ffffff20;background:#ffffff03;font-size:15px;padding:8px 21px;color:#c8c0c7}.studio-filters button.active{background:#ffae1b;color:#1d1308;border-color:#ffae1b;font-weight:700}.template-masonry{columns:3;column-gap:16px}.template-tile{break-inside:avoid;position:relative;margin-bottom:23px;display:inline-block;width:100%}.template-tile>button:first-child{position:relative;width:100%;display:block;overflow:hidden;background:#20191e;border-radius:11px;padding:0;aspect-ratio:3/4}.template-tile.tile-1>button:first-child{aspect-ratio:4/5}.template-tile.tile-2>button:first-child{aspect-ratio:2/3}.template-tile>button:first-child>img,.template-tile>button:first-child>video{width:100%;height:100%;object-fit:cover;object-position:center 25%}.template-tile .template-star{right:9px;top:9px;width:35px;height:35px;border-radius:9px}.template-tile .template-star svg{width:20px;height:20px}.template-duration{position:absolute;bottom:9px;left:10px;background:#0008;color:#fff;border-radius:4px;padding:3px 6px;font-size:11px}.template-tile>div{padding:10px 3px 0}.template-tile h2{font-size:18px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}.template-tile>div>span{font-size:12px;color:#d5a95e;display:block;margin-top:3px}.studio-empty{text-align:center;max-width:400px;padding:65px 16px;margin:auto}.studio-empty>svg{width:44px;height:44px;color:#ffc250;margin-bottom:24px}.studio-empty h2{font-size:26px;line-height:1.4}.studio-empty p{color:#b0a1ac;font-size:15px;line-height:1.8;margin:15px 0 30px}.studio-subhead{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:78px;padding:14px max(22px,calc((100vw - 700px)/2));background:#0c0b0df5;border-bottom:1px solid #ffffff12;backdrop-filter:blur(16px)}.studio-subhead>.studio-icon svg{transform:rotate(180deg)}.studio-subhead h1{font-size:22px;line-height:1.4;text-align:center;font-weight:700}.studio-work-content{width:100%;max-width:700px;padding:28px 22px 180px;margin:auto}.generation-template{display:flex;align-items:flex-start;gap:22px;margin-bottom:35px}.generation-template>video{width:132px;height:216px;object-fit:cover;object-position:center 25%;border:1px solid #ffffff12;border-radius:12px;flex-shrink:0;background:#241a20}.generation-template>div{min-width:0;padding-top:6px}.studio-label{display:inline-block;background:#ffb01c;color:#211508;font-size:12px;font-weight:700;padding:3px 8px;border-radius:5px;line-height:1.5}.generation-template h2{font-size:27px;line-height:1.3;margin:11px 0 10px;overflow-wrap:anywhere}.generation-template p,.generation-template small{font-size:14px;color:#c0b4c0;line-height:1.7;display:block}.generation-template small{color:#ac8e6b}.template-cost{display:inline-block;border:1px solid #b8813c46;color:#f4c273;background:#eeb04e0b;border-radius:6px;font-size:13px;padding:5px 9px;margin-top:16px}.generation-materials{margin-top:15px}.materials-heading,.materials-subheading{display:flex;align-items:center;justify-content:space-between;gap:12px}.materials-heading h2{font-size:21px;line-height:1.5}.materials-heading>span{font-size:13px;color:#aaa0ae}.materials-subheading{margin:9px 0 12px;font-size:14px;color:#d6c8d4}.materials-subheading strong{font-weight:500}.materials-subheading>span{color:#c1afbf;font-variant-numeric:tabular-nums}.photo-upload{position:relative;border:1px solid #ffffff25;border-radius:13px;background:#191719;overflow:hidden;min-height:191px}.photo-upload>button{display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;width:100%;padding:26px 16px 24px;min-height:156px}.photo-upload>button>svg{width:31px;height:31px;color:#ffbf37}.photo-upload strong{font-size:16px;color:#f3cea2;font-weight:500}.photo-upload small{font-size:12px;color:#9d8d9b}.photo-upload>footer{background:#121113;border-top:1px solid #ffffff0b;color:#a28fa0;text-align:center;font-size:12px;padding:7px;letter-spacing:.03em}.photo-upload.has-photo{display:grid;grid-template-columns:136px 1fr;min-height:0}.photo-upload.has-photo>img{width:136px;height:170px;object-fit:cover}.photo-upload.has-photo>footer{grid-column:1/-1}.photo-actions{display:flex;flex-direction:column;gap:9px;align-items:flex-start;justify-content:center;padding:15px}.photo-actions>span{font-size:13px;color:#b5ceab;display:flex;gap:6px;align-items:center;margin-bottom:5px}.photo-actions>span svg{height:16px;width:16px}.photo-actions button{font-size:14px;color:#f4c888;min-height:30px;padding:0;text-align:left}.photo-actions button:last-child{color:#ad9ba9}.photo-limit{color:#847381;font-size:12px;line-height:1.6;margin:10px 0}.studio-form-error{font-size:14px;color:#f5ad94;line-height:1.65;margin:12px 0;min-height:0}.studio-form-error:empty{display:none}.creation-demo-note{border:1px solid #b07a351c;background:#c2852f07;border-radius:10px;padding:15px 16px;margin-top:28px}.creation-demo-note>span{font-size:11px;font-weight:700;letter-spacing:.08em;color:#c4a379}.creation-demo-note p{font-size:13px;color:#988693;line-height:1.7;margin-top:6px}.studio-generate-footer{position:fixed;bottom:0;left:0;right:0;z-index:25;background:#0c0b0df5;border-top:1px solid #ffffff12;padding:14px max(22px,calc((100vw - 656px)/2)) calc(13px + env(safe-area-inset-bottom));backdrop-filter:blur(15px)}.studio-generate-footer>div{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#a89ba5;margin-bottom:10px}.studio-generate-footer>div button{color:#f5c076;font-weight:700;font-size:15px;padding:0 4px}.studio-generate-footer small{font-size:12px;color:#897987}.studio-generate-footer>p{font-size:11px;line-height:1.5;color:#897581;text-align:center;margin-top:9px}.generation-progress{border:1px solid #ffffff12;border-radius:12px;padding:20px;margin-top:25px;background:#161214}.generation-progress>div{display:flex;align-items:center;gap:12px}.generation-progress h2{font-size:19px}.generation-progress .loading-ring{width:22px;height:22px;border-top-color:#ffb732}.generation-progress progress{width:100%;height:7px;accent-color:#ffb732;margin:20px 0 10px}.generation-progress p{font-size:13px;color:#b9a4b3;line-height:1.7}.generation-progress .text-button{color:#ffcf8b;font-size:14px}.studio-balance{width:100%;display:flex;align-items:center;gap:14px;border:1px solid #bd8d4844;background:linear-gradient(130deg,#4e351d57,#211b1a);border-radius:14px;padding:20px;text-align:left}.studio-balance span{font-size:15px;color:#d8bb96;flex:1}.studio-balance strong{font-size:29px;line-height:1;color:#ffca76}.studio-balance svg{width:18px;height:18px;color:#c29e77}.creation-list{margin-top:25px;display:grid;gap:15px}.creation-row{display:flex;align-items:center;gap:17px;background:#19141a;border:1px solid #ffffff0d;border-radius:14px;padding:14px;text-align:left;width:100%}.creation-row>img{width:76px;height:101px;object-fit:cover;border-radius:8px;flex-shrink:0}.creation-row>div{flex:1;min-width:0}.creation-row strong{font-size:18px;line-height:1.4;display:block}.job-status{display:inline-block;font-size:12px;margin:9px 0;color:#ceaa74}.job-status.succeeded{color:#aad3b2}.job-status.failed,.job-status.cancelled{color:#b49aa8}.creation-row small{font-size:12px;display:block;color:#8f7c8c}.creation-row>svg{height:20px;width:20px;color:#a58b9d}.result-content{max-width:540px;padding-bottom:55px}.result-heading h2{font-size:26px;line-height:1.35;margin:16px 0 10px}.result-heading p{font-size:14px;line-height:1.6;color:#b19aa8;margin-bottom:22px}.creation-output{width:100%;max-height:580px;aspect-ratio:9/16;background:#211621;border-radius:14px;object-fit:contain;margin-bottom:20px}.result-photo{object-fit:cover;max-height:380px;opacity:.6}.result-credit{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#b79fac;font-size:12px;margin:18px 0}.result-credit strong{font-size:13px;color:#dbc1a5;font-weight:500}.result-note{font-size:13px;color:#9b8495;line-height:1.75;margin:20px 0}.studio-wallet{position:fixed;margin:auto;width:calc(100% - 30px);max-width:460px;background:#1a151b;border:1px solid #ffffff20;border-radius:20px;padding:30px;max-height:85dvh;overflow:auto;color:#fff}.studio-wallet::backdrop{background:#060408c9;backdrop-filter:blur(8px)}.studio-wallet>.studio-icon{position:absolute;right:15px;top:14px}.studio-wallet h2{font-size:50px;color:#ffd392;line-height:1.2;margin:25px 0 16px}.studio-wallet h2 small{font-size:14px;color:#a68e9e;display:block;margin-top:8px;font-weight:400}.studio-wallet>p{font-size:14px;color:#a998a5;line-height:1.8}.studio-wallet h3{font-size:18px;margin:28px 0 12px}.credit-ledger>div{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #ffffff0c;padding:14px 0}.credit-ledger span{font-size:15px;color:#d9c9d2}.credit-ledger small{display:block;font-size:12px;color:#907c8c;margin-top:4px}.credit-ledger strong{font-size:16px;color:#d5bba6;font-weight:500}.credit-ledger .positive{color:#accfae}.studio-profile-entry{border-color:#ae75362e}.studio-profile-entry>div>svg{color:#ffbd58}
@media(min-width:1000px){.studio-active .bottom-nav{display:flex;left:50%;transform:translateX(-50%);width:490px;height:78px;bottom:18px;border-radius:24px;position:fixed;z-index:35;padding:7px 10px;justify-content:space-around}.studio-active .bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:13px;width:100px;border-radius:18px}.studio-active .bottom-nav button svg{width:24px;height:24px}.studio-workflow>.bottom-nav{display:none}.studio-topbar{padding-left:max(22px,calc((100vw - 700px)/2));padding-right:max(22px,calc((100vw - 700px)/2))}.studio-meta{max-width:510px;margin:auto}.studio-meta:has(+.studio-filters){max-width:none}}
@media(max-width:700px){.studio-topbar{padding:8px 14px;gap:10px;min-height:65px}.studio-topbar>.studio-icon{height:36px;width:34px;border:0;background:#ffffff04}.studio-topbar>.studio-icon svg{width:19px;height:19px}.studio-tabs{gap:24px}.studio-tabs button{font-size:16px;min-height:43px;padding:10px 0}.studio-language{font-size:12px;height:33px;padding:0 17px 0 8px}.studio-content{padding:0 14px}.studio-meta{min-height:48px;font-size:11px}.studio-meta>span{font-size:12px}.studio-meta b{font-size:10px}.studio-meta button{font-size:12px;gap:5px}.template-feed{max-width:510px}.template-video-wrap{height:calc(100dvh - 308px);min-height:390px;border-radius:11px}.template-heading h2{font-size:23px}.template-heading>span{font-size:12px}.template-feed-info{padding-top:13px}.template-feed-info>p{font-size:12px;margin:7px 0 14px}.studio-primary{font-size:16px;min-height:52px;border-radius:9px;padding:12px 16px}.template-feed-card{margin-bottom:33px}.template-video-label{left:13px;right:13px;bottom:14px}.template-video-label span{font-size:10px}.template-video-label small{font-size:11px}.template-masonry{columns:2;column-gap:12px}.template-tile{margin-bottom:18px}.template-tile h2{font-size:17px;line-height:1.4}.template-tile>div>span{font-size:12px}.studio-filters{margin:8px 0 18px;gap:9px}.studio-filters button{font-size:14px;min-height:36px;padding:7px 18px}.studio-subhead{padding:10px 18px;min-height:65px}.studio-subhead h1{font-size:20px}.studio-subhead>.studio-icon{width:36px;height:36px}.studio-work-content{padding:22px 20px 180px}.generation-template{gap:17px;margin-bottom:31px}.generation-template>video{width:120px;height:200px;border-radius:9px}.generation-template h2{font-size:24px;margin-top:10px}.generation-template p,.generation-template small{font-size:13px}.template-cost{font-size:12px;margin-top:12px}.materials-heading h2{font-size:19px}.materials-subheading{font-size:14px}.photo-upload.has-photo{grid-template-columns:120px 1fr}.photo-upload.has-photo>img{width:120px;height:155px}.photo-actions{padding:14px;gap:8px}.studio-generate-footer{padding:12px 20px calc(12px + env(safe-area-inset-bottom))}.creation-demo-note{margin-top:26px;padding:14px}.creation-demo-note p{font-size:12px}.creation-row{gap:13px;padding:12px}.creation-row strong{font-size:17px}.creation-row>img{width:66px;height:90px}.result-content{padding-bottom:45px}.result-heading h2{font-size:24px}.result-heading p{font-size:13px}.result-credit{flex-wrap:wrap;gap:6px}.studio-wallet{padding:25px}.studio-balance{padding:18px}.studio-balance span{font-size:14px}.studio-balance strong{font-size:26px}}
@media(max-width:380px){.studio-tabs{gap:15px}.studio-tabs button{font-size:14px}.studio-topbar{padding-left:10px;padding-right:10px;gap:7px}.studio-topbar>.studio-icon{width:30px}.studio-content{padding:0 10px}.template-heading{gap:8px}.template-heading h2{font-size:21px}.template-heading>span{font-size:11px}.template-video-wrap{min-height:355px}.studio-work-content{padding-left:17px;padding-right:17px}.generation-template{gap:14px}.generation-template>video{width:106px;height:178px}.generation-template h2{font-size:21px}.generation-template p,.generation-template small{font-size:12px}.studio-subhead h1{font-size:18px}.template-tile h2{font-size:16px}.photo-actions{padding:12px}.photo-actions>span{font-size:12px}.studio-generate-footer{padding-left:17px;padding-right:17px}}
@media(min-width:701px){.template-video-wrap{height:min(720px,calc(100dvh - 385px));min-height:250px}}

@media(max-width:700px){.template-video-wrap{height:calc(100dvh - 365px);min-height:230px}}
/* Keep translated discovery tabs inside the viewport beside the language menu. */
@media(max-width:700px){.studio-topbar>.studio-icon,.studio-topbar>.language-picker{flex-shrink:0}.studio-topbar .studio-tabs{min-width:0;gap:8px;overflow-x:auto;scrollbar-width:none}.studio-topbar .studio-tabs::-webkit-scrollbar{display:none}.studio-topbar .studio-tabs button{flex-shrink:0}}
@media(max-width:380px){.studio-topbar .studio-tabs{gap:6px}.studio-topbar{gap:5px}}
