.brand-mascot{width:38px;height:38px;object-fit:contain;margin-right:9px;filter:drop-shadow(0 7px 14px rgba(139,92,246,.22))}.auth-mascot{position:absolute;width:clamp(150px,14vw,235px);right:-10px;top:-115px;filter:drop-shadow(0 30px 55px rgba(116,72,237,.2));pointer-events:none}.auth-copy{position:relative}.auth-card{width:100%;max-width:460px;justify-self:end;padding:38px}.auth-card form label{margin:18px 0}.auth-card input{min-height:51px}.auth-shell{grid-template-columns:minmax(540px,1.25fr) minmax(420px,.75fr);gap:clamp(64px,8vw,130px)}
.notification-button,.avatar-button{display:grid;place-items:center}.notification-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.avatar-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.notification-button:hover{background:#241d38;border-color:rgba(151,124,255,.45)}
.video-options{grid-template-columns:1fr;margin-top:10px}.video-options>label{display:none}.video-builder{display:grid;gap:14px;margin-top:12px}.option-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;color:#cbc5d7}.option-label em{font-style:normal;color:#8f88a0;font-weight:500}.video-plan-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.video-plan{min-height:78px;display:grid;align-content:center;gap:3px;padding:11px;border-radius:14px;border:1px solid var(--line);background:#100d19;text-align:left}.video-plan b{font-size:12px}.video-plan span{font-size:10px;color:#8f899d}.video-plan strong{font-size:12px;color:#baa9ff}.video-plan.active{border-color:#9277ff;background:linear-gradient(145deg,rgba(121,88,242,.24),rgba(238,83,171,.08));box-shadow:0 0 0 2px rgba(130,99,255,.1)}.option-segments{display:grid;grid-template-columns:1fr 1fr;gap:7px}.option-segments button{min-height:43px;border:1px solid var(--line);border-radius:12px;background:#100d19;color:#9992a6}.option-segments button.active{color:#fff;border-color:#7e63ef;background:#26203b}.sound-switch{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:#100d19}.sound-switch span{display:grid;gap:2px}.sound-switch small{color:#8b8499}.switch-control{width:46px;height:26px;border-radius:99px;background:#312b40;padding:3px;transition:.2s}.switch-control:before{content:"";display:block;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}.switch-control.on{background:linear-gradient(90deg,#7659f7,#e65aac)}.switch-control.on:before{transform:translateX(20px)}
.studio-products{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin:70px 0 0}.product-surface{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:26px;padding:24px;background:linear-gradient(145deg,#191526,#100e19)}.product-surface h3{font-family:Unbounded,sans-serif;margin:8px 0;font-size:22px}.product-surface p{color:var(--muted);line-height:1.55;margin:0}.task-list{display:grid;gap:9px;margin-top:18px}.task-card{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;border-radius:15px;padding:12px;background:rgba(255,255,255,.045)}.task-card i{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#2a2240;font-style:normal}.task-card b,.task-card small{display:block}.task-card small{color:var(--muted);margin-top:3px}.task-card button{background:transparent;color:#b9a6ff;font-weight:700}.trendbox-orbit{position:absolute;width:170px;height:170px;border-radius:50%;right:-55px;top:-65px;background:radial-gradient(circle,#ffcf63 0 10%,#8c5eff 35%,transparent 67%);opacity:.6}.trendbox-progress{height:9px;border-radius:99px;background:#292437;overflow:hidden;margin:20px 0 8px}.trendbox-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#ffd263,#f85eaf,#8064ff);transition:.4s}.trendbox-meta{display:flex;justify-content:space-between;color:#a7a0b5;font-size:12px}.trendbox-action{margin-top:20px}
.roulette-section{margin-top:65px}.roulette-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}.roulette-head h2{font-family:Unbounded,sans-serif;margin:8px 0 0;font-size:30px}.character-reel{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:3px 2px 15px;scrollbar-color:#44385f transparent}.character-card{flex:0 0 174px;min-height:218px;scroll-snap-align:start;position:relative;display:grid;align-content:end;padding:17px;border-radius:22px;overflow:hidden;border:1px solid var(--line);background:radial-gradient(circle at 50% 15%,rgba(168,123,255,.45),transparent 35%),linear-gradient(155deg,#28203d,#11101a)}.character-card:before{content:attr(data-emoji);position:absolute;top:30px;left:0;right:0;text-align:center;font-size:60px;filter:drop-shadow(0 14px 20px rgba(0,0,0,.25))}.character-card small{color:#d398c1;text-transform:uppercase;font-size:9px;letter-spacing:1px}.character-card b{font-size:14px;line-height:1.3;margin-top:5px}.roulette-cta{flex:0 0 230px;border-color:rgba(241,91,176,.38);background:linear-gradient(145deg,#38203d,#171124)}
.profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.profile-action{padding:12px;border-radius:12px;background:#211b31;border:1px solid var(--line);font-size:12px;font-weight:700}.profile-action:hover{border-color:#8066ff}.profile-section-title{display:flex;justify-content:space-between;align-items:center}.identity-email{font-size:12px;color:#8f899d}.identity-empty{padding:13px;border:1px dashed var(--line);border-radius:13px;color:#9891a7;font-size:12px;margin-top:11px}.telegram-connect-copy{font-size:12px;color:#9b94aa;line-height:1.45;margin:8px 0 12px}
.form-dialog .dialog-grid{display:grid;gap:10px}.form-dialog .dialog-actions{display:flex;gap:9px;margin-top:14px}.merge-summary{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin:22px 0}.merge-account{padding:16px;border-radius:16px;background:#0f0d18}.merge-account small,.merge-account b{display:block}.merge-account b{font-size:22px;margin:5px 0}.merge-plus{color:#ac94ff;font-size:22px}.merge-total{padding:14px;border-radius:14px;background:rgba(84,202,145,.1);color:#9de3bd;text-align:center}.local-telegram-note{padding:13px 14px;border-radius:13px;background:rgba(91,174,255,.08);color:#8dcbef;font-size:12px;line-height:1.45;text-align:left}
@media(max-width:1000px){.auth-shell{grid-template-columns:1fr;max-width:660px;margin:auto}.auth-card{justify-self:center}.auth-mascot{display:none}.studio-products{grid-template-columns:1fr}.video-plan-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.auth-card{padding:24px}.brand-mascot{width:32px;height:32px}.profile-actions{grid-template-columns:1fr}.roulette-head{display:block}.merge-summary{grid-template-columns:1fr}.merge-plus{text-align:center}.video-plan-grid{gap:6px}.video-plan{padding:9px}.studio-products{margin-top:48px}.product-surface{padding:19px}}

/* Product funnel: generator → trends → rewards → discovery */
.brand-mascot-shell{width:40px;height:40px;margin-right:10px;padding:3px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#8b6cff,#f75db0);box-shadow:0 9px 28px rgba(139,92,246,.26);overflow:hidden}.brand-mascot-shell .brand-mascot{width:100%;height:100%;margin:0;border-radius:10px;object-fit:cover}.auth-mascot-shell{position:absolute;right:-20px;top:-118px;width:220px;height:220px;border-radius:58px;padding:8px;background:linear-gradient(145deg,rgba(143,105,255,.7),rgba(244,90,176,.42));transform:rotate(6deg);box-shadow:0 35px 90px rgba(107,65,222,.24);overflow:hidden}.auth-mascot-shell .auth-mascot{position:static;width:100%;height:100%;border-radius:50px;object-fit:cover;filter:none}.balance-pill{display:flex;align-items:center;gap:5px}.balance-pill>span{margin:0}.balance-pill #creditUnit{color:#c9c2dc;margin:0}.balance-pill em{display:none;margin-left:5px;padding-left:8px;border-left:1px solid rgba(255,255,255,.16);font-style:normal;font-size:11px;color:#fff}.balance-pill.is-zero{border-color:rgba(255,94,159,.55);background:linear-gradient(110deg,rgba(112,73,230,.27),rgba(238,81,166,.18))}.balance-pill.is-zero em{display:inline}
html[lang="en"] .auth-mascot-shell{right:0;top:-225px;width:200px;height:200px;border-radius:52px}html[lang="en"] .auth-mascot-shell .auth-mascot{border-radius:44px}
.image-options{display:grid;gap:9px;margin-top:13px}.photo-format-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.photo-format{min-height:54px;padding:8px 5px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:12px;background:#100d19;color:#9992a6}.photo-format i{display:block;border:1.5px solid currentColor;border-radius:2px}.format-auto{width:16px;height:16px;border-style:dashed!important}.format-square{width:16px;height:16px}.format-portrait{width:14px;height:18px}.format-story{width:10px;height:19px}.format-wide{width:20px;height:12px}.photo-format.active{color:#fff;border-color:#8d71ff;background:linear-gradient(145deg,rgba(122,88,242,.29),rgba(237,82,173,.09));box-shadow:0 0 0 2px rgba(130,99,255,.08)}
.selected-trend-card{min-height:68px;margin-bottom:8px;padding:8px;display:grid;grid-template-columns:50px 1fr auto 30px;gap:11px;align-items:center;border:1px solid rgba(151,124,255,.4);border-radius:15px;background:linear-gradient(100deg,rgba(119,84,238,.17),rgba(238,79,166,.08))}.selected-trend-card img{width:50px;height:50px;border-radius:11px;object-fit:cover}.selected-trend-card span{display:grid;gap:3px}.selected-trend-card small{color:#ae9cff;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:1px}.selected-trend-card b{font-size:13px}.selected-trend-card em{font-style:normal;color:#c5b9ee;font-size:12px}.selected-trend-card button{width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.06);color:#aaa2b8;font-size:18px}
#featuredTrends.trend-carousel{display:flex;gap:15px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 1px 10px}.trend-carousel::-webkit-scrollbar{display:none}.trend-carousel .trend-card{flex:0 0 clamp(230px,24%,294px);scroll-snap-align:start}.section-heading{margin-top:58px}.studio-products{margin-top:52px}.product-surface{min-height:100%}.task-surface{background:linear-gradient(145deg,#1b1629,#100e19)}.reward-surface{border-color:rgba(143,105,255,.24);background:radial-gradient(circle at 100% 0,rgba(126,85,255,.19),transparent 45%),linear-gradient(145deg,#191526,#100e19)}
.character-promo{position:relative;min-height:300px;margin-top:18px;padding:42px 46px;display:grid;grid-template-columns:1fr 1fr;align-items:center;overflow:hidden;border:1px solid rgba(234,84,172,.28);border-radius:30px;background:radial-gradient(circle at 78% 44%,rgba(138,91,255,.25),transparent 31%),linear-gradient(120deg,#1b142a,#120e1c 56%,#231329)}.character-copy{position:relative;z-index:2;max-width:530px}.character-copy h2{font:700 clamp(28px,3.2vw,43px)/1.1 Unbounded,sans-serif;margin:10px 0 14px}.character-copy p{font-size:15px;line-height:1.6;max-width:480px}.character-copy .primary{margin-top:20px}.character-stage{position:relative;height:220px}.character-glow{position:absolute;width:210px;height:210px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#f15aaa 0 6%,#8b5ef6 24%,rgba(90,54,189,.18) 58%,transparent 70%);filter:blur(3px)}.character-mascot-shell{position:absolute;width:145px;height:145px;left:50%;top:48%;transform:translate(-50%,-50%) rotate(4deg);padding:6px;border-radius:42px;background:linear-gradient(145deg,#9c7bff,#ed62b1);box-shadow:0 25px 55px rgba(0,0,0,.34);overflow:hidden}.character-mascot-shell img{width:100%;height:100%;object-fit:cover;border-radius:36px}.role-token{position:absolute;width:54px;height:54px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(34,27,54,.91);font-size:25px;box-shadow:0 16px 30px rgba(0,0,0,.27);animation:roleFloat 4s ease-in-out infinite}.role-one{left:8%;top:16%}.role-two{right:7%;top:5%;animation-delay:-1.2s}.role-three{right:5%;bottom:14%;animation-delay:-2.1s}.character-stage small{position:absolute;left:50%;bottom:-2px;transform:translateX(-50%);white-space:nowrap;color:#c6b7e8;font-size:11px}.character-mini-reel{display:flex;gap:7px;overflow-x:auto;margin:17px 0;padding-bottom:8px}.character-mini-reel .character-card{flex:0 0 94px;min-height:112px;padding:9px;border-radius:15px}.character-mini-reel .character-card:before{top:15px;font-size:34px}.character-mini-reel .character-card small{font-size:7px}.character-mini-reel .character-card b{font-size:9px}
.achievement-toast{position:fixed;z-index:110;right:22px;bottom:22px;min-width:285px;padding:14px 16px;display:flex;align-items:center;gap:12px;border:1px solid rgba(185,163,255,.72);border-radius:17px;background:rgba(31,24,49,.98);box-shadow:0 24px 70px rgba(0,0,0,.45);transform:translateY(120px);opacity:0;transition:.35s}.achievement-toast.show{transform:none;opacity:1}.achievement-toast>i{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#7659f7,#e65aac);font-style:normal;font-size:20px}.achievement-toast span{display:grid;gap:2px}.achievement-toast b{color:#fff;font-weight:800;text-shadow:0 1px 12px rgba(255,255,255,.2)}.achievement-toast small{color:#d7caff}@keyframes roleFloat{50%{transform:translateY(-8px) rotate(4deg)}}
@media(max-width:800px){.character-promo{grid-template-columns:1fr;padding:30px}.character-stage{margin-top:20px}.photo-format-grid{grid-template-columns:repeat(5,minmax(52px,1fr))}.auth-mascot-shell{display:none}}
@media(max-width:560px){.brand-mascot-shell{width:34px;height:34px}.balance-pill em{display:none!important}.photo-format-grid{overflow-x:auto;grid-template-columns:repeat(5,64px);padding-bottom:4px}.photo-format{min-height:50px;display:grid;gap:3px}.selected-trend-card{grid-template-columns:44px 1fr 26px}.selected-trend-card img{width:44px;height:44px}.selected-trend-card em{display:none}.character-promo{padding:25px 20px}.character-stage{height:185px}.character-mascot-shell{width:120px;height:120px}.studio-products{margin-top:38px}.achievement-toast{left:14px;right:14px;bottom:88px;min-width:0}}

/* Product UX release: compact journey, stable generator and conversion surfaces */
.studio-banner{display:none!important}.journey-strip{margin:-18px 0 30px}.journey-strip>button{width:100%;display:grid;grid-template-columns:44px minmax(220px,auto) 1fr auto;gap:14px;align-items:center;padding:13px 16px;text-align:left;border:1px solid rgba(155,124,255,.34);border-radius:18px;color:#fff;background:linear-gradient(100deg,rgba(119,84,238,.18),rgba(238,79,166,.09))}.journey-strip>button:hover{border-color:#9b7cff;transform:translateY(-1px)}.journey-gift{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#7457f0,#e250b2);box-shadow:0 10px 24px rgba(126,82,240,.25)}.journey-strip small,.journey-strip b{display:block}.journey-strip small{color:#bdb4ce;font-size:11px}.journey-strip b{font-size:14px;margin-top:2px}.journey-strip em{font-style:normal;color:#c2b4ff;font-weight:700;font-size:13px}.journey-mini-progress{height:6px;border-radius:99px;background:#2a2438;overflow:hidden}.journey-mini-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffd269,#ef5eaf,#8064ff);transition:.35s}.journey-dialog{width:min(820px,calc(100% - 28px))}.journey-dialog-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-top:20px}.journey-dialog .task-list{margin:0}.journey-reward{position:relative;overflow:hidden;padding:21px;border:1px solid rgba(144,108,255,.25);border-radius:20px;background:radial-gradient(circle at 100% 0,rgba(126,85,255,.2),transparent 48%),#100e19}.journey-reward h3{font:700 20px Unbounded,sans-serif;margin:8px 0}.journey-reward p{color:var(--muted);font-size:13px;line-height:1.5}.task-card.done{opacity:.72}.task-card.done i{background:rgba(73,190,137,.16);color:#8de0b7}.task-card em{font-style:normal;color:#8de0b7;font-size:12px;font-weight:700}
#createView>.section-heading{margin:18px 0 18px}#featuredTrends{margin-bottom:30px}#featuredTrends.trend-carousel{padding:2px 1px 12px}#featuredTrends .trend-card{flex-basis:clamp(280px,31%,380px);aspect-ratio:1.32}#featuredTrends .trend-meta{left:15px;right:15px;bottom:13px}.trend-kind{position:absolute;z-index:3;left:12px;top:12px;padding:6px 9px;border-radius:99px;background:rgba(10,8,18,.68);backdrop-filter:blur(10px);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px}.trend-card:hover video{transform:scale(1.035)}.filter-pills{flex-wrap:wrap;justify-content:flex-end}
.workspace{align-items:stretch}.upload-panel{display:flex;min-width:0;flex-direction:column}.upload-panel .dropzone{height:100%;min-height:430px}.preview-grid{pointer-events:auto;grid-auto-rows:minmax(0,1fr);align-content:stretch}.reference-item{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:16px;background:#171421}.preview-grid .reference-item:only-child{grid-column:1/-1}.preview-grid .reference-item img{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:16px}.reference-number{position:absolute;left:9px;bottom:9px;z-index:4;padding:5px 8px;border-radius:9px;background:rgba(10,8,18,.78);color:#fff;font-size:10px;font-weight:800;backdrop-filter:blur(8px)}.reference-remove{position:absolute;z-index:5;right:8px;top:8px;width:30px;height:30px;border-radius:50%;background:rgba(10,8,18,.82);color:#fff;font-size:20px;line-height:1;box-shadow:0 5px 18px rgba(0,0,0,.28)}.reference-remove:hover{background:#e65794}.dropzone>input{z-index:2}.preview-grid{z-index:3}.reference-item{z-index:4}.dropzone:has(.reference-item) #fileInput{left:auto;top:auto;right:12px;bottom:12px;width:42px;height:42px;z-index:5;border-radius:14px}.dropzone:has(.reference-item):after{content:"+";position:absolute;right:12px;bottom:12px;z-index:4;width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#7457ed;color:#fff;font-size:22px}.prompt-panel{min-width:0}.prompt-panel textarea{min-height:250px}
.billing-modal{width:min(690px,calc(100% - 28px))}.packs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pack-card{position:relative;display:grid;grid-template-columns:1fr auto 24px;gap:12px;min-height:112px;text-align:left;padding:18px;background:linear-gradient(145deg,#12101b,#0b0a11)}.pack-card:last-child{grid-column:1/-1}.pack-card.popular{border-color:#8b6cff;background:linear-gradient(145deg,rgba(118,81,235,.18),#0e0c16)}.pack-card>i{position:absolute;right:13px;top:-9px;padding:4px 8px;border-radius:99px;background:linear-gradient(90deg,#7f60f5,#e656af);font-style:normal;font-size:9px;font-weight:800;text-transform:uppercase}.pack-card b{font-size:17px}.pack-card small{display:block;margin-top:6px;line-height:1.35}.pack-card .pack-economy{color:#b5a5ff;font-size:11px;font-weight:750}.pack-card strong{align-self:center;font-size:18px}.pack-card>em{align-self:center;font-style:normal;color:#9d8bed}.pack-card:hover{transform:translateY(-2px);box-shadow:0 16px 35px rgba(0,0,0,.22)}
#profileForm label:nth-child(2)>select{position:absolute;opacity:0;pointer-events:none}.locale-segmented{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:8px;padding:5px;border:1px solid var(--line);border-radius:14px;background:#0e0c16}.locale-segmented button{padding:11px;border-radius:10px;color:#aaa3b7;background:transparent;font-weight:800}.locale-segmented button.active{color:#fff;background:linear-gradient(135deg,#654bd7,#a34fec);box-shadow:0 7px 18px rgba(107,73,220,.25)}
.role-four{left:15%;bottom:4%;animation-delay:-3s}.character-promo{min-height:270px}.character-stage{isolation:isolate}.role-token{z-index:2}.character-mascot-shell{z-index:1}.form-dialog:has(#rouletteForm){width:min(720px,calc(100% - 28px))}.character-mini-reel{display:grid;grid-template-columns:repeat(5,1fr);overflow:visible;gap:8px}.character-mini-reel .character-card{min-width:0;min-height:128px}.roulette-drop{min-height:210px!important;margin:12px 0 14px;background:radial-gradient(circle at 50% 35%,rgba(128,91,245,.12),transparent 44%),rgba(7,6,13,.42)}
.studio-footer{width:min(1240px,calc(100% - 40px));margin:34px auto 0;padding:24px 0 34px;display:flex;align-items:center;justify-content:space-between;gap:25px;border-top:1px solid var(--line);color:#8f899d}.footer-brand{display:flex;align-items:center;gap:10px;color:#c9c3d2;font-weight:800}.footer-brand img{width:38px;height:38px;border-radius:12px;object-fit:cover}.studio-footer nav{display:flex;align-items:center;justify-content:flex-end;gap:20px;flex-wrap:wrap}.studio-footer a:hover{color:#fff}.footer-support{padding:9px 13px;border:1px solid rgba(155,124,255,.35);border-radius:11px;color:#bdadff}
@media(max-width:760px){.journey-strip>button{grid-template-columns:40px 1fr auto}.journey-mini-progress{grid-column:2/-1;width:100%}.journey-dialog-grid{grid-template-columns:1fr}.packs-grid{grid-template-columns:1fr}.pack-card:last-child{grid-column:auto}.character-mini-reel{grid-template-columns:repeat(3,1fr)}.studio-footer{align-items:flex-start;flex-direction:column}.studio-footer nav{justify-content:flex-start}.upload-panel .dropzone{min-height:330px}}
@media(max-width:520px){.journey-strip em{display:none}#featuredTrends .trend-card{flex-basis:78vw}.filter-pills{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.filter-pills button{white-space:nowrap}.character-mini-reel{display:flex;overflow-x:auto}.character-mini-reel .character-card{flex:0 0 104px}.studio-footer nav{gap:12px;font-size:12px}.journey-dialog{padding:23px 16px}.reference-number{font-size:9px}}

/* Studio product pass 2 */
#profileDialog{overflow-x:hidden;box-sizing:border-box}#profileDialog *{min-width:0;box-sizing:border-box}.local-telegram-note{max-width:100%;overflow-wrap:anywhere;word-break:break-word}.profile-actions{max-width:100%}
.telegram-login{flex-wrap:wrap;gap:8px}.telegram-widget-loading{width:100%;padding:13px;text-align:center;color:var(--muted);font-size:12px}.telegram-widget-retry{margin-top:0}.telegram-widget-help{display:block;width:100%;color:var(--muted);font-size:11px;line-height:1.45;text-align:center}
.catalog-filters{display:grid;gap:10px;min-width:min(620px,55vw)}.audience-pills,.collection-pills{justify-content:flex-end}.collection-pills button{background:#241b2d;color:#bcb1c2}.collection-pills button.active{background:linear-gradient(135deg,#7858ef,#d752ad);color:#fff}.filter-pills button{border:1px solid transparent;transition:.2s}.filter-pills button:hover{border-color:rgba(159,132,255,.35);color:#fff}
.character-promo{margin-bottom:38px}.character-promo+.mode-grid{margin-top:0}
.journey-view{padding-bottom:30px}.journey-page-head{margin-bottom:24px}.journey-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr 260px;gap:28px;align-items:center;min-height:330px;padding:38px 42px;border:1px solid rgba(151,113,255,.36);border-radius:30px;background:radial-gradient(circle at 84% 50%,rgba(234,83,174,.24),transparent 30%),linear-gradient(125deg,#201634,#120f1d 60%,#24132e)}.journey-hero-copy{position:relative;z-index:2;max-width:650px}.journey-hero h2{font:700 clamp(27px,3vw,43px)/1.15 Unbounded,sans-serif;margin:10px 0 12px}.journey-hero p{color:var(--muted);line-height:1.6}.trendbox-progress.large{height:12px;margin-top:26px}.journey-hero .trendbox-action{margin-top:20px}.trendbox-visual{position:relative;z-index:2;display:grid;justify-items:center}.trendbox-chest{width:160px;height:160px;display:grid;place-items:center;border:7px solid rgba(255,255,255,.12);border-radius:48px;background:linear-gradient(145deg,#7958ee,#ed57b0);font-size:66px;box-shadow:0 30px 70px rgba(90,44,170,.38);transform:rotate(3deg)}.trendbox-visual b{margin-top:18px;font:700 24px Unbounded,sans-serif}.trendbox-visual small{color:#bdb2c8}.prize-ladder{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.prize-ladder article{display:flex;gap:12px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:18px;background:#171321}.prize-ladder i{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#2c2143;color:#bca7ff;font-style:normal;font-weight:800}.prize-ladder b,.prize-ladder small{display:block}.prize-ladder small{color:var(--muted);margin-top:3px}.journey-content{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}.reward-history h3{font-family:Unbounded,sans-serif}.reward-history summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;cursor:pointer}.reward-history summary::-webkit-details-marker{display:none}.reward-history summary>span{display:grid;gap:5px}.reward-history summary h3{margin:0}.reward-history summary>em{min-width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#2c2143;color:#cabaff;font-style:normal;font-weight:800}.reward-history summary:after{content:"⌄";color:#a994ef;font-size:22px}.reward-history[open] summary:after{transform:rotate(180deg)}.recent-rewards{display:grid;gap:9px;margin-top:18px}.reward-row{display:flex;gap:11px;align-items:center;padding:12px;border-radius:14px;background:rgba(255,255,255,.04)}.reward-row>i{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:rgba(73,190,137,.14);color:#8de0b7;font-style:normal}.reward-row b,.reward-row small{display:block}.reward-row small{color:var(--muted)}.task-actions{display:flex;align-items:center;gap:7px}.task-actions a,.task-actions button{padding:8px 10px;border-radius:10px;font-size:11px;font-weight:800}.task-actions a{background:#252034;color:#c7b9ff}.task-actions button{background:linear-gradient(135deg,#7558ec,#d853af);color:#fff}
.roulette-dialog{width:min(760px,calc(100% - 28px));overflow-x:hidden}.roulette-value{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:10px;align-items:center;margin:20px 0}.roulette-value>span{display:flex;align-items:center;gap:8px;padding:10px;border-radius:14px;background:rgba(255,255,255,.04)}.roulette-value i{width:26px;height:26px;display:grid;place-items:center;border-radius:9px;background:#302349;color:#c5b1ff;font-style:normal}.roulette-value b{font-size:11px}.roulette-value>em{color:#6f657c;font-style:normal}.roulette-drop{position:relative;min-height:230px!important;overflow:hidden}.roulette-drop>input{z-index:2}.roulette-drop>span{position:relative;z-index:1}.roulette-drop #roulettePreview{position:absolute;z-index:3;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);object-fit:cover;border-radius:18px}.roulette-drop #rouletteRemove{z-index:5}.roulette-file-name{position:absolute!important;z-index:5!important;left:20px;bottom:18px;max-width:70%;padding:6px 9px;border-radius:9px;background:rgba(9,7,15,.76);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.roulette-submit{display:flex;align-items:center;justify-content:space-between;padding:15px 20px}.roulette-submit em{font-style:normal;padding-left:15px;border-left:1px solid rgba(255,255,255,.22)}.roulette-note{text-align:center;color:#797184;font-size:11px}.roulette-dialog .character-mini-reel{grid-template-columns:repeat(10,1fr)}.roulette-dialog .character-mini-reel .character-card{min-height:92px}.roulette-dialog .character-mini-reel .character-card:before{top:12px;font-size:29px}.roulette-dialog .character-mini-reel .character-card small{display:none}.roulette-dialog .character-mini-reel .character-card b{font-size:7px}
.studio-footer{box-sizing:border-box;padding:28px 0 38px}.footer-brand{display:flex;align-items:center;gap:13px;text-decoration:none}.footer-mascot{width:50px;height:50px;padding:3px;border-radius:16px;background:linear-gradient(145deg,#8c69f4,#ee5bb4);box-shadow:0 12px 28px rgba(108,63,210,.22)}.footer-mascot img{width:100%;height:100%;border-radius:13px;object-fit:cover}.footer-brand>span:last-child{display:grid;gap:3px}.footer-brand b{color:#f3eff8;font:700 15px Unbounded,sans-serif}.footer-brand small{color:#777080;font-size:11px}.studio-footer nav>a{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:9px 12px;border:1px solid transparent;border-radius:12px;color:#aaa1b5;text-decoration:none;font-size:12px;font-weight:700}.studio-footer nav>a:hover{border-color:var(--line);background:#171321;color:#fff}.studio-footer nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}.studio-footer .footer-icon-link svg{fill:currentColor;stroke:none}.studio-footer .footer-icon-link{color:#65bde9}.studio-footer .footer-support{border-color:rgba(151,113,255,.35);background:linear-gradient(135deg,rgba(118,83,235,.13),rgba(224,78,167,.09));color:#cbbcff}
@media(max-width:900px){.catalog-filters{min-width:0;margin-top:22px}.audience-pills,.collection-pills{justify-content:flex-start}.journey-hero{grid-template-columns:1fr 190px}.trendbox-chest{width:130px;height:130px}.prize-ladder{grid-template-columns:1fr 1fr}.journey-content{grid-template-columns:1fr}.roulette-dialog .character-mini-reel{grid-template-columns:repeat(5,1fr)}}
@media(max-width:620px){.journey-hero{grid-template-columns:1fr;padding:26px 20px}.trendbox-visual{display:none}.prize-ladder{grid-template-columns:1fr 1fr}.prize-ladder article{padding:11px}.task-card{grid-template-columns:34px 1fr}.task-card>button,.task-card>.task-actions,.task-card>em{grid-column:2;justify-self:start}.roulette-value{grid-template-columns:1fr}.roulette-value>em{display:none}.roulette-dialog .character-mini-reel{display:flex}.studio-footer nav{display:grid;grid-template-columns:1fr 1fr;width:100%}.studio-footer nav>a{justify-content:center}.footer-brand small{line-height:1.4}.mobile-nav button{padding:7px 10px}}


/* Studio product pass 3 */
#createView>.hero-row{display:none!important}
#createView>.journey-strip{margin-top:-20px}
#featuredTrends.trend-showcase{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;overflow:visible;padding:0;margin-bottom:34px}
#featuredTrends.trend-showcase .trend-card{width:100%;aspect-ratio:1.18;min-height:0;flex:none}
#featuredTrends.trend-showcase .trend-meta b{font-size:14px}
#trendsView .page-head{display:block;margin-bottom:24px}
#trendsView .page-head>div:first-child{max-width:650px}
.catalog-filters{min-width:0!important;margin-top:24px;padding:13px 15px;border:1px solid var(--line);border-radius:18px;background:rgba(20,16,31,.72)}
.filter-group{display:grid;grid-template-columns:78px minmax(0,1fr);gap:10px;align-items:center;min-width:0}
.filter-group>small{color:#777080;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.8px}
.audience-pills,.collection-pills{justify-content:flex-start!important;flex-wrap:nowrap!important;overflow-x:auto;padding:2px 0 5px;scrollbar-width:thin;scrollbar-color:#49375f transparent}
.filter-pills button{flex:0 0 auto;padding:8px 12px!important;font-size:12px;white-space:nowrap}.filter-pills button small{display:inline-grid;min-width:18px;height:18px;margin-left:6px;place-items:center;border-radius:9px;background:rgba(255,255,255,.09);color:inherit;font-size:9px}
.result-modal .modal-close{z-index:30}
.result-modal:not(.result-complete){position:fixed;inset:auto 22px 22px auto;width:min(420px,calc(100% - 28px));margin:0;padding:0;border-radius:20px;box-shadow:0 24px 70px rgba(0,0,0,.48)}
.result-modal:not(.result-complete) .result-stage{min-height:230px;padding:28px}
.result-modal:not(.result-complete) .generating{width:100%}
.result-modal:not(.result-complete) .orb{width:58px;height:58px;margin-bottom:15px}
.result-modal:not(.result-complete) .generating h2{font-size:19px}
.generation-minimize{margin-top:18px;padding:9px 13px;border:1px solid var(--line);border-radius:11px;background:#211c2e;color:#d7cfdf;font-weight:700}
.result-modal.result-complete{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;width:min(760px,calc(100% - 32px))}
.download-button{display:inline-flex;align-items:center;justify-content:center;padding:13px 22px;border-radius:13px;background:#fff;color:#15111d!important;text-decoration:none;font-weight:800;box-shadow:0 10px 30px rgba(255,255,255,.14)}
.download-button:hover{background:#f0ebf5;transform:translateY(-1px)}

.roulette-wheel-stage{position:relative;width:330px;height:330px;margin:16px auto 22px;display:grid;place-items:center}
.roulette-pointer{position:absolute;z-index:8;left:50%;top:-7px;transform:translateX(-50%);width:0;height:0;border-left:15px solid transparent;border-right:15px solid transparent;border-top:27px solid #ffcf67;filter:drop-shadow(0 5px 8px rgba(0,0,0,.45))}
.roulette-pointer:after{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:#fff;left:-4px;top:-24px}
.roulette-hub{position:absolute;z-index:6;width:92px;height:92px;padding:5px;border-radius:30px;background:linear-gradient(145deg,#8a68f4,#ec59b0);box-shadow:0 15px 40px rgba(92,49,180,.45)}
.roulette-hub img{width:100%;height:100%;object-fit:cover;border-radius:25px}
.roulette-dialog .character-mini-reel{position:relative;width:310px;height:310px;margin:0;padding:0;border:1px solid rgba(176,143,255,.3);border-radius:50%;overflow:visible;background:radial-gradient(circle,rgba(120,80,220,.2) 0 30%,transparent 31%),conic-gradient(from 0deg,rgba(127,91,240,.18),rgba(232,82,171,.11),rgba(92,195,239,.13),rgba(127,91,240,.18));box-shadow:inset 0 0 50px rgba(125,86,224,.17),0 20px 60px rgba(0,0,0,.3);transform:rotate(var(--roulette-stop,0deg))}
.roulette-dialog .character-mini-reel:after{content:"";position:absolute;inset:12px;border:1px dashed rgba(255,255,255,.1);border-radius:50%}
.roulette-dialog .character-card{position:absolute;z-index:3;left:50%;top:50%;width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;margin:-29px;padding:0!important;border-radius:50%!important;display:grid;place-items:center;background:linear-gradient(145deg,#35244f,#191323)!important;border:1px solid rgba(255,255,255,.13);box-shadow:0 9px 22px rgba(0,0,0,.3)}
.roulette-dialog .character-card:before{position:static!important;font-size:27px!important;transform:none!important}
.roulette-dialog .character-card small,.roulette-dialog .character-card b{display:none!important}

.roulette-dialog .character-card:nth-child(1){transform:rotate(0deg) translateY(-124px) rotate(0deg)}
.roulette-dialog .character-card:nth-child(2){transform:rotate(36deg) translateY(-124px) rotate(-36deg)}
.roulette-dialog .character-card:nth-child(3){transform:rotate(72deg) translateY(-124px) rotate(-72deg)}
.roulette-dialog .character-card:nth-child(4){transform:rotate(108deg) translateY(-124px) rotate(-108deg)}
.roulette-dialog .character-card:nth-child(5){transform:rotate(144deg) translateY(-124px) rotate(-144deg)}
.roulette-dialog .character-card:nth-child(6){transform:rotate(180deg) translateY(-124px) rotate(-180deg)}
.roulette-dialog .character-card:nth-child(7){transform:rotate(216deg) translateY(-124px) rotate(-216deg)}
.roulette-dialog .character-card:nth-child(8){transform:rotate(252deg) translateY(-124px) rotate(-252deg)}
.roulette-dialog .character-card:nth-child(9){transform:rotate(288deg) translateY(-124px) rotate(-288deg)}
.roulette-dialog .character-card:nth-child(10){transform:rotate(324deg) translateY(-124px) rotate(-324deg)}
.roulette-dialog .character-mini-reel.is-spinning{animation:rouletteWheelSpin .62s linear infinite}
.roulette-dialog .character-mini-reel.is-settling{animation:none;transform:rotate(var(--roulette-stop));transition:transform 1.8s cubic-bezier(.12,.72,.08,1)}
@keyframes rouletteWheelSpin{from{transform:rotate(var(--roulette-start,0deg))}to{transform:rotate(calc(var(--roulette-start,0deg) + 360deg))}}
@media(max-width:900px){#featuredTrends.trend-showcase{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#featuredTrends.trend-showcase{grid-template-columns:1fr 1fr;gap:9px}#featuredTrends.trend-showcase .trend-card{aspect-ratio:.86}.filter-group{grid-template-columns:1fr;gap:5px}.roulette-wheel-stage{width:270px;height:270px}.roulette-dialog .character-mini-reel{width:254px;height:254px}.roulette-dialog .character-card{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;margin:-25px}.roulette-dialog .character-card:nth-child(1){transform:rotate(0deg) translateY(-100px) rotate(0deg)}.roulette-dialog .character-card:nth-child(2){transform:rotate(36deg) translateY(-100px) rotate(-36deg)}.roulette-dialog .character-card:nth-child(3){transform:rotate(72deg) translateY(-100px) rotate(-72deg)}.roulette-dialog .character-card:nth-child(4){transform:rotate(108deg) translateY(-100px) rotate(-108deg)}.roulette-dialog .character-card:nth-child(5){transform:rotate(144deg) translateY(-100px) rotate(-144deg)}.roulette-dialog .character-card:nth-child(6){transform:rotate(180deg) translateY(-100px) rotate(-180deg)}.roulette-dialog .character-card:nth-child(7){transform:rotate(216deg) translateY(-100px) rotate(-216deg)}.roulette-dialog .character-card:nth-child(8){transform:rotate(252deg) translateY(-100px) rotate(-252deg)}.roulette-dialog .character-card:nth-child(9){transform:rotate(288deg) translateY(-100px) rotate(-288deg)}.roulette-dialog .character-card:nth-child(10){transform:rotate(324deg) translateY(-100px) rotate(-324deg)}.roulette-hub{width:78px;height:78px}.result-modal:not(.result-complete){inset:auto 14px 82px 14px;width:auto}}

/* Preserve faces in portrait trend artwork */
#featuredTrends .trend-card img{object-position:center top}


/* Multi-job queue, internal gallery and roulette result */
.jobs-button{position:relative;width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:13px;background:#171321;color:#b9add1}.jobs-button.has-jobs{color:#fff;border-color:rgba(147,112,255,.55);background:linear-gradient(145deg,#30204e,#21152f)}.jobs-spinner{font-size:17px}.jobs-button.has-jobs .jobs-spinner{animation:jobPulse 1.6s ease-in-out infinite}.jobs-button b{position:absolute;right:-5px;top:-6px;min-width:19px;height:19px;padding:0 5px;display:grid;place-items:center;border-radius:20px;background:#ef579f;color:#fff;font-size:10px}.jobs-button:not(.has-jobs) b{display:none}@keyframes jobPulse{50%{transform:rotate(90deg) scale(1.12)}}
.jobs-dialog{width:min(620px,calc(100% - 28px))}.jobs-list{display:grid;gap:9px;margin:20px 0}.jobs-empty{padding:35px 18px;text-align:center;border:1px dashed var(--line);border-radius:18px;color:var(--muted)}.job-row{width:100%;display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;padding:13px;text-align:left;border:1px solid var(--line);border-radius:16px;background:#100e19;color:#fff}.job-row:disabled{cursor:default}.job-row.completed{cursor:pointer}.job-row.completed:hover{border-color:#856af1}.job-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#2c2142;color:#bba8ff}.job-row.completed .job-icon{background:rgba(66,186,132,.14);color:#83dfb0}.job-row.failed .job-icon{background:rgba(220,75,117,.14);color:#ef87a6}.job-row>span:nth-child(2){display:grid;gap:3px;min-width:0}.job-row b,.job-row small{display:block}.job-row small{color:var(--muted);font-size:11px}.job-row i{height:4px;overflow:hidden;border-radius:9px;background:#292338}.job-row i em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#795cf4,#ed57ad);transition:.35s}.job-row strong{font-size:12px;color:#b7a8d0}
.media-viewer{position:fixed;width:min(980px,calc(100% - 32px));height:min(90vh,900px);padding:18px;border:1px solid var(--line);border-radius:28px;background:#100e18;color:#fff;overflow:hidden;box-shadow:var(--shadow)}.media-viewer::backdrop{background:rgba(5,3,10,.84);backdrop-filter:blur(10px)}.viewer-stage{height:calc(100% - 76px);display:grid;place-items:center;padding:18px;border-radius:21px;background:#090810;overflow:hidden}.viewer-stage img,.viewer-stage video{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:20px;box-shadow:0 18px 50px rgba(0,0,0,.3)}.viewer-arrow{position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:48px;height:64px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(22,18,33,.82);color:#fff;font-size:36px;backdrop-filter:blur(10px)}.viewer-arrow:hover{background:#fff;color:#17121e}.viewer-prev{left:28px}.viewer-next{right:28px}.viewer-footer{height:70px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 10px 0}.viewer-footer>span{display:grid;gap:3px;min-width:0}.viewer-footer b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viewer-footer small{color:var(--muted)}
.result-modal.result-complete{background:#100e18}.result-modal.result-complete .result-stage{min-height:0;padding:18px;background:#100e18}.result-ready{display:grid;gap:0}.result-media-frame{height:min(72vh,720px);display:grid;place-items:center;padding:12px;border-radius:22px;background:#090810;overflow:hidden}.result-media-frame img,.result-media-frame video{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:18px}.result-actions{background:#100e18}
.library-card{cursor:pointer;transition:.22s}.library-card:hover{transform:translateY(-3px);border-color:rgba(143,109,255,.45)}.library-card.queued,.library-card.processing,.library-card.retrying{cursor:default}.library-pending{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:10px;color:#afa3c7;background:radial-gradient(circle,rgba(123,84,224,.17),transparent 55%),#100e19}.library-pending span{font-size:30px;animation:jobPulse 1.6s ease-in-out infinite}.library-pending b{font-size:12px}
.roulette-hub{left:50%;top:50%;transform:translate(-50%,-50%)}.roulette-drop{width:min(360px,100%);aspect-ratio:1/1;min-height:0!important;margin:16px auto!important}.roulette-drop #roulettePreview{object-fit:cover;object-position:center top}.roulette-live{display:grid;justify-items:center;gap:13px;margin-top:18px;padding:20px;border:1px solid rgba(150,113,255,.28);border-radius:22px;background:radial-gradient(circle at 50% 0,rgba(133,85,235,.18),transparent 45%),#100e19;text-align:center}.roulette-live .orb{width:64px;height:64px;margin:0}.roulette-live h3{margin:0;font:700 20px Unbounded,sans-serif}.roulette-live p,.roulette-live small{margin:0;color:var(--muted)}.roulette-live .progress{width:min(420px,90%);margin:3px 0}.roulette-role{display:grid;justify-items:center;gap:4px}.roulette-role>span{width:56px;height:56px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,#6748d4,#d850a4);font-size:28px}.roulette-role small{margin-top:4px}.roulette-result-frame{width:min(480px,100%);max-height:56vh;padding:10px;border-radius:22px;background:#090810;overflow:hidden}.roulette-result-frame img{display:block;width:100%;max-height:calc(56vh - 20px);object-fit:contain;border-radius:17px}.roulette-result-actions{display:flex;justify-content:center;gap:10px;width:100%}
@media(max-width:620px){.jobs-button{width:38px;height:38px}.media-viewer{width:calc(100% - 16px);height:88vh;padding:10px}.viewer-stage{padding:8px}.viewer-arrow{width:38px;height:52px;font-size:28px}.viewer-prev{left:16px}.viewer-next{right:16px}.viewer-footer{padding-left:4px;padding-right:4px}.viewer-footer .download-button{padding:11px 14px}.roulette-result-actions{display:grid;grid-template-columns:1fr 1fr}.roulette-result-actions>*{width:100%}}


/* UX pass: full media, stable cards and inline completion */
.media-viewer[open]{display:grid;grid-template-rows:minmax(0,1fr) auto}.viewer-stage{height:auto!important;min-height:0}.viewer-stage img,.viewer-stage video{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.inline-generation.pending{position:absolute;z-index:8;left:12px;right:12px;bottom:12px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px;border:1px solid rgba(154,119,255,.42);border-radius:16px;background:rgba(17,13,27,.92);box-shadow:0 15px 40px rgba(0,0,0,.34);backdrop-filter:blur(16px);text-align:left}.inline-orb{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#7658ef,#e953ad);animation:jobPulse 1.5s ease-in-out infinite}.inline-generation.pending>span:nth-child(2){display:grid;gap:3px;min-width:0}.inline-generation.pending small{color:#aaa1b6}.inline-generation.pending i{height:4px;overflow:hidden;border-radius:10px;background:#30293e}.inline-generation.pending i em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8061f5,#ef58ad);transition:.35s}.inline-generation.pending>strong{font-size:12px;color:#c4b4df}.dropzone.generation-pending .preview-grid,.dropzone.generation-pending #uploadEmpty{filter:brightness(.72)}
.dropzone.showing-result{display:block;min-height:430px;border-style:solid;background:#090810}.dropzone.showing-result>:not(#inlineGeneration){display:none!important}.inline-generation.ready{position:absolute;inset:0;display:grid;grid-template-rows:minmax(0,1fr) auto;padding:10px;text-align:left}.inline-result-media{min-height:0;display:grid;place-items:center;overflow:hidden;border-radius:18px;background:#08070e}.inline-result-media img,.inline-result-media video{display:block;width:100%;height:100%;min-height:0;object-fit:contain;border-radius:18px}.inline-result-caption{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 3px 2px}.inline-result-caption>span{display:grid;gap:2px}.inline-result-caption small{color:#9e93ab}.inline-result-caption>div{display:flex;gap:8px}.inline-result-caption .download-button,.inline-result-caption .secondary{padding:11px 14px}
.roulette-dialog .character-card{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;line-height:1!important}.roulette-dialog .character-card:before{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:grid!important;place-items:center!important;line-height:1!important;text-align:center!important}.roulette-dialog{max-height:calc(100dvh - 24px);overflow:hidden!important}.roulette-dialog[open]:not(.has-live-result){display:grid;grid-template-columns:1fr 1fr;column-gap:18px;align-items:center}.roulette-dialog[open]:not(.has-live-result)>.eyebrow,.roulette-dialog[open]:not(.has-live-result)>h2,.roulette-dialog[open]:not(.has-live-result)>p,.roulette-dialog[open]:not(.has-live-result)>.roulette-value{grid-column:1/-1}.roulette-dialog[open]:not(.has-live-result)>.roulette-wheel-stage{grid-column:1;grid-row:5}.roulette-dialog[open]:not(.has-live-result)>#rouletteForm{grid-column:2;grid-row:5}.roulette-dialog[open]:not(.has-live-result)>.roulette-note{grid-column:1/-1}.roulette-dialog .roulette-wheel-stage{width:280px;height:280px;margin:8px auto}.roulette-dialog .character-mini-reel{width:270px;height:270px}.roulette-dialog .character-card{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;margin:-25px}.roulette-dialog .character-card:nth-child(1){transform:rotate(0deg) translateY(-105px) rotate(0deg)}.roulette-dialog .character-card:nth-child(2){transform:rotate(36deg) translateY(-105px) rotate(-36deg)}.roulette-dialog .character-card:nth-child(3){transform:rotate(72deg) translateY(-105px) rotate(-72deg)}.roulette-dialog .character-card:nth-child(4){transform:rotate(108deg) translateY(-105px) rotate(-108deg)}.roulette-dialog .character-card:nth-child(5){transform:rotate(144deg) translateY(-105px) rotate(-144deg)}.roulette-dialog .character-card:nth-child(6){transform:rotate(180deg) translateY(-105px) rotate(-180deg)}.roulette-dialog .character-card:nth-child(7){transform:rotate(216deg) translateY(-105px) rotate(-216deg)}.roulette-dialog .character-card:nth-child(8){transform:rotate(252deg) translateY(-105px) rotate(-252deg)}.roulette-dialog .character-card:nth-child(9){transform:rotate(288deg) translateY(-105px) rotate(-288deg)}.roulette-dialog .character-card:nth-child(10){transform:rotate(324deg) translateY(-105px) rotate(-324deg)}.roulette-dialog .roulette-drop{width:min(290px,100%);margin:6px auto 10px!important}.roulette-dialog.has-live-result[open]{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:center}.roulette-dialog.has-live-result>.eyebrow,.roulette-dialog.has-live-result>h2{grid-column:1/-1}.roulette-dialog.has-live-result>p,.roulette-dialog.has-live-result>.roulette-value,.roulette-dialog.has-live-result>.roulette-note{display:none!important}.roulette-dialog.has-live-result>.roulette-wheel-stage{grid-column:1;grid-row:3;width:220px;height:220px}.roulette-dialog.has-live-result .character-mini-reel{width:210px;height:210px}.roulette-dialog.has-live-result .character-card{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;margin:-20px}.roulette-dialog.has-live-result .character-card:nth-child(1){transform:rotate(0deg) translateY(-82px) rotate(0deg)}.roulette-dialog.has-live-result .character-card:nth-child(2){transform:rotate(36deg) translateY(-82px) rotate(-36deg)}.roulette-dialog.has-live-result .character-card:nth-child(3){transform:rotate(72deg) translateY(-82px) rotate(-72deg)}.roulette-dialog.has-live-result .character-card:nth-child(4){transform:rotate(108deg) translateY(-82px) rotate(-108deg)}.roulette-dialog.has-live-result .character-card:nth-child(5){transform:rotate(144deg) translateY(-82px) rotate(-144deg)}.roulette-dialog.has-live-result .character-card:nth-child(6){transform:rotate(180deg) translateY(-82px) rotate(-180deg)}.roulette-dialog.has-live-result .character-card:nth-child(7){transform:rotate(216deg) translateY(-82px) rotate(-216deg)}.roulette-dialog.has-live-result .character-card:nth-child(8){transform:rotate(252deg) translateY(-82px) rotate(-252deg)}.roulette-dialog.has-live-result .character-card:nth-child(9){transform:rotate(288deg) translateY(-82px) rotate(-288deg)}.roulette-dialog.has-live-result .character-card:nth-child(10){transform:rotate(324deg) translateY(-82px) rotate(-324deg)}.roulette-dialog.has-live-result .roulette-hub{width:66px;height:66px;border-radius:22px}.roulette-dialog.has-live-result .roulette-hub img{border-radius:18px}.roulette-dialog.has-live-result>#rouletteLive{grid-column:2;grid-row:3;margin:0;padding:12px;gap:7px}.roulette-dialog.has-live-result .roulette-role>span{width:42px;height:42px;font-size:22px}.roulette-dialog.has-live-result .roulette-role h3{font-size:16px}.roulette-dialog.has-live-result .roulette-result-frame{height:min(38dvh,390px);max-height:none}.roulette-dialog.has-live-result .roulette-result-frame img{width:100%;height:100%;max-height:none;object-fit:contain}
@media(max-width:680px){.inline-result-caption{align-items:stretch;flex-direction:column}.inline-result-caption>div{display:grid;grid-template-columns:1fr 1fr}.roulette-dialog[open]:not(.has-live-result),.roulette-dialog.has-live-result[open]{display:grid;grid-template-columns:1fr;padding:20px 14px}.roulette-dialog[open]:not(.has-live-result)>.roulette-wheel-stage,.roulette-dialog[open]:not(.has-live-result)>#rouletteForm,.roulette-dialog.has-live-result>.roulette-wheel-stage,.roulette-dialog.has-live-result>#rouletteLive{grid-column:1;grid-row:auto}.roulette-dialog[open]:not(.has-live-result)>.roulette-wheel-stage{width:190px;height:190px}.roulette-dialog[open]:not(.has-live-result) .character-mini-reel{width:180px;height:180px}.roulette-dialog[open]:not(.has-live-result) .character-card{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:-18px}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(1){transform:rotate(0deg) translateY(-70px) rotate(0deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(2){transform:rotate(36deg) translateY(-70px) rotate(-36deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(3){transform:rotate(72deg) translateY(-70px) rotate(-72deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(4){transform:rotate(108deg) translateY(-70px) rotate(-108deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(5){transform:rotate(144deg) translateY(-70px) rotate(-144deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(6){transform:rotate(180deg) translateY(-70px) rotate(-180deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(7){transform:rotate(216deg) translateY(-70px) rotate(-216deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(8){transform:rotate(252deg) translateY(-70px) rotate(-252deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(9){transform:rotate(288deg) translateY(-70px) rotate(-288deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(10){transform:rotate(324deg) translateY(-70px) rotate(-324deg)}.roulette-dialog .roulette-drop{width:min(210px,100%)}.roulette-dialog.has-live-result>.roulette-wheel-stage{width:150px;height:150px}.roulette-dialog.has-live-result .character-mini-reel{width:140px;height:140px}.roulette-dialog.has-live-result>#rouletteLive{width:100%}.roulette-dialog.has-live-result .roulette-result-frame{height:min(30dvh,260px)}}

@media(max-width:680px){.roulette-dialog.has-live-result .character-card:nth-child(1){transform:rotate(0deg) translateY(-52px) rotate(0deg)}.roulette-dialog.has-live-result .character-card:nth-child(2){transform:rotate(36deg) translateY(-52px) rotate(-36deg)}.roulette-dialog.has-live-result .character-card:nth-child(3){transform:rotate(72deg) translateY(-52px) rotate(-72deg)}.roulette-dialog.has-live-result .character-card:nth-child(4){transform:rotate(108deg) translateY(-52px) rotate(-108deg)}.roulette-dialog.has-live-result .character-card:nth-child(5){transform:rotate(144deg) translateY(-52px) rotate(-144deg)}.roulette-dialog.has-live-result .character-card:nth-child(6){transform:rotate(180deg) translateY(-52px) rotate(-180deg)}.roulette-dialog.has-live-result .character-card:nth-child(7){transform:rotate(216deg) translateY(-52px) rotate(-216deg)}.roulette-dialog.has-live-result .character-card:nth-child(8){transform:rotate(252deg) translateY(-52px) rotate(-252deg)}.roulette-dialog.has-live-result .character-card:nth-child(9){transform:rotate(288deg) translateY(-52px) rotate(-288deg)}.roulette-dialog.has-live-result .character-card:nth-child(10){transform:rotate(324deg) translateY(-52px) rotate(-324deg)}}


/* Definitive full-frame viewer and clean completed state */
.viewer-stage{position:relative!important}.viewer-stage img,.viewer-stage video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}.dropzone.showing-result:after{display:none!important}.dropzone.showing-result #fileInput{display:none!important}.generate-button[aria-busy="true"]{cursor:wait;filter:saturate(.72);opacity:.82}.generate-button[aria-busy="true"] i{animation:jobPulse 1s ease-in-out infinite}

/* Viewer controls must stay above fitted media. */
.media-viewer>.modal-close{z-index:12;color:#fff;background:rgba(38,33,49,.92);box-shadow:0 8px 24px rgba(0,0,0,.32)}
.viewer-footer>.download-button{flex:0 0 auto;min-width:190px;white-space:nowrap}.viewer-download-locked{border:0;background:linear-gradient(115deg,#7357f5,#a65cfa 55%,#eb59af);color:#fff!important;box-shadow:0 12px 35px rgba(113,75,230,.25)}.viewer-download-locked:hover{background:linear-gradient(115deg,#8066ff,#b569ff 55%,#f266ba)}

/* Ready TrendBox and reward reveal. */
.journey-hero.box-ready{border-color:rgba(255,204,94,.62);box-shadow:0 0 0 1px rgba(255,208,102,.12),0 26px 80px rgba(135,73,220,.22)}
.journey-hero.box-ready .trendbox-chest{cursor:pointer;animation:readyBoxPulse 1.7s ease-in-out infinite}
.journey-hero.box-ready .trendbox-visual b,.journey-hero.box-ready .trendbox-visual small{color:#ffe39a}
#releaseBoxButton[hidden]{display:none}.trendbox-action{min-width:210px}
.trendbox-reward-dialog{width:min(540px,calc(100% - 24px));padding:0;overflow:hidden;border:1px solid rgba(179,139,255,.45);border-radius:30px;background:radial-gradient(circle at 50% 20%,rgba(135,85,241,.27),transparent 42%),#12101c;color:#fff;box-shadow:0 35px 110px rgba(0,0,0,.58)}
.trendbox-reward-dialog::backdrop{background:rgba(5,3,10,.84);backdrop-filter:blur(12px)}
.trendbox-reward-dialog>.modal-close{z-index:8;color:#fff}.reward-reveal{position:relative;z-index:2;display:grid;justify-items:center;padding:58px 36px 38px;text-align:center}.reward-glow{position:absolute;top:18px;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,rgba(255,213,99,.4),rgba(145,83,244,.18) 48%,transparent 70%);filter:blur(5px)}
.reward-box{position:relative;width:138px;height:138px;display:grid;place-items:center;margin-bottom:28px;border:7px solid rgba(255,255,255,.14);border-radius:42px;background:linear-gradient(145deg,#7958ee,#ed57b0);font-size:58px;box-shadow:0 25px 65px rgba(113,60,211,.5)}
.reward-reveal h2{margin:12px 0 10px;font:700 clamp(24px,5vw,34px)/1.2 Unbounded,sans-serif}.reward-reveal p{max-width:390px;margin:0 0 25px;color:var(--muted);line-height:1.55}.reward-reveal .primary{min-width:220px}.reward-confetti{position:absolute;inset:0;z-index:1;pointer-events:none}.reward-confetti i{position:absolute;left:50%;top:35%;width:9px;height:17px;border-radius:3px;background:#ffd361;opacity:0}.reward-confetti i:nth-child(3n){background:#f05caf}.reward-confetti i:nth-child(3n+1){background:#8268ff}
.trendbox-reward-dialog.show .reward-box{animation:rewardBoxOpen .75s cubic-bezier(.18,.89,.32,1.28) both}.trendbox-reward-dialog.show .reward-reveal h2,.trendbox-reward-dialog.show .reward-reveal p,.trendbox-reward-dialog.show .reward-reveal .primary{animation:rewardCopyIn .45s .45s both}.trendbox-reward-dialog.show .reward-confetti i{animation:studioConfetti 1.25s calc(var(--n,0)*.035s) cubic-bezier(.15,.7,.25,1) both}
.reward-confetti i:nth-child(1){--n:1;--x:-205px;--y:210px;--r:420deg}.reward-confetti i:nth-child(2){--n:2;--x:-165px;--y:280px;--r:270deg}.reward-confetti i:nth-child(3){--n:3;--x:-120px;--y:230px;--r:520deg}.reward-confetti i:nth-child(4){--n:4;--x:-72px;--y:300px;--r:330deg}.reward-confetti i:nth-child(5){--n:5;--x:-28px;--y:245px;--r:610deg}.reward-confetti i:nth-child(6){--n:6;--x:30px;--y:295px;--r:380deg}.reward-confetti i:nth-child(7){--n:7;--x:78px;--y:225px;--r:560deg}.reward-confetti i:nth-child(8){--n:8;--x:128px;--y:285px;--r:310deg}.reward-confetti i:nth-child(9){--n:9;--x:178px;--y:235px;--r:490deg}.reward-confetti i:nth-child(10){--n:10;--x:215px;--y:275px;--r:350deg}.reward-confetti i:nth-child(11){--n:11;--x:-185px;--y:170px;--r:580deg}.reward-confetti i:nth-child(12){--n:12;--x:190px;--y:165px;--r:460deg}.reward-confetti i:nth-child(13){--n:13;--x:-92px;--y:190px;--r:290deg}.reward-confetti i:nth-child(14){--n:14;--x:95px;--y:185px;--r:650deg}
@keyframes readyBoxPulse{0%,100%{transform:rotate(3deg) scale(1);box-shadow:0 30px 70px rgba(90,44,170,.38)}50%{transform:rotate(-1deg) scale(1.045);box-shadow:0 30px 90px rgba(239,91,178,.55)}}@keyframes rewardBoxOpen{0%{opacity:0;transform:scale(.45) rotate(-18deg)}55%{opacity:1;transform:scale(1.13) rotate(5deg)}100%{transform:scale(1) rotate(0)}}@keyframes rewardCopyIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}@keyframes studioConfetti{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r))}}
@media(prefers-reduced-motion:reduce){.journey-hero.box-ready .trendbox-chest,.trendbox-reward-dialog.show .reward-box,.trendbox-reward-dialog.show .reward-confetti i,.trendbox-reward-dialog.show .reward-reveal h2,.trendbox-reward-dialog.show .reward-reveal p,.trendbox-reward-dialog.show .reward-reveal .primary{animation:none!important}}

.trendbox-reward-dialog.opening .reward-box{animation:trendboxOpening 1.15s ease-in-out infinite}.trendbox-reward-dialog.opening .reward-glow{animation:trendboxGlow 1.15s ease-in-out infinite}.trendbox-reward-dialog.opening .reward-confetti{opacity:0}.trendbox-reward-dialog #trendboxRewardContinue[hidden]{display:none}
@keyframes trendboxOpening{0%,100%{transform:rotate(-3deg) scale(.96)}50%{transform:rotate(4deg) scale(1.06)}}@keyframes trendboxGlow{50%{transform:scale(1.14);opacity:.72}}


/* Mobile Studio layout: compact, contained and always navigable. */
.profile-mobile-nav,.profile-mobile-activity{display:none}
@media(max-width:700px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
  main{width:100%;max-width:none;padding:0 14px;overflow:hidden}
  .topbar{height:64px;padding:0 12px;gap:8px}
  .brand-mascot-shell{width:34px;height:34px;margin-right:7px;border-radius:11px}
  .brand{font-size:16px;min-width:0}.brand>span:nth-child(2){white-space:nowrap}.brand em{display:none}
  .account-actions{margin-left:auto;gap:5px}.notification-button,.jobs-button,.avatar-button{width:36px;height:36px;flex:0 0 36px}
  .balance-pill{height:36px;padding:0 9px;white-space:nowrap}.balance-pill #creditUnit{display:none}.balance-pill>span{margin-right:4px}
  .app-shell{width:100%;padding:24px 0 28px}
  .view,.page-head,.catalog-filters,.workspace,.mode-grid,.studio-products,.journey-hero,.journey-content{min-width:0;max-width:100%}
  .page-head{margin-bottom:20px}.page-head h1{font-size:clamp(34px,11vw,44px);letter-spacing:-2.5px;margin:9px 0 10px}.page-head p{font-size:14px;line-height:1.5}
  .mode-grid{grid-template-columns:1fr 1fr;gap:9px}.mode-card{min-width:0;min-height:78px;padding:12px;gap:10px}.mode-icon{width:42px;height:42px;flex:0 0 42px}.mode-card b{font-size:14px}.mode-card small{font-size:10px;line-height:1.3}.mode-card>i{display:none}
  .workspace{grid-template-columns:1fr;padding:12px;gap:12px;border-radius:20px}.upload-panel .dropzone{min-height:260px}.prompt-panel textarea{min-height:190px}
  .photo-format-grid{grid-template-columns:repeat(5,minmax(56px,1fr));overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:5px}
  .section-heading{margin:34px 0 14px;align-items:center}.section-heading h2{font-size:24px}.section-heading .text-link{padding:8px 0;font-size:12px}
  #featuredTrends.trend-showcase{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin-right:-14px;padding-right:14px;padding-bottom:8px}
  #featuredTrends.trend-showcase .trend-card{flex:0 0 min(78vw,300px);aspect-ratio:.82;scroll-snap-align:start}
  .catalog-filters{width:100%;padding:12px;overflow:hidden}.filter-group{min-width:0}.audience-pills,.collection-pills{width:100%;max-width:100%;overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start;overscroll-behavior-inline:contain;padding-bottom:5px}.filter-pills button{flex:0 0 auto;white-space:nowrap}
  .trends-grid,.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%}.trends-grid .trend-card{width:100%;min-width:0;aspect-ratio:.72;border-radius:16px}.trends-grid .trend-meta{left:11px;right:8px;bottom:11px}.trends-grid .trend-meta b{font-size:12px;line-height:1.25}.trends-grid .trend-meta small{font-size:11px}.trends-grid .trend-kind{left:8px;top:8px;font-size:8px;padding:5px 7px}
  .library-card{min-width:0;border-radius:16px}.library-info{padding:10px}.library-info b{font-size:12px}.library-info small{font-size:10px}
  .journey-page-head .primary{width:100%;margin-top:14px}.journey-hero{padding:22px 16px;border-radius:22px}.journey-hero h2{font-size:25px}.prize-ladder{grid-template-columns:1fr 1fr;gap:8px}.prize-ladder article{min-width:0;gap:8px}.prize-ladder b{font-size:12px}.product-surface{padding:16px;border-radius:20px}.task-card{padding:10px;gap:9px}.reward-history{padding:0!important}.reward-history summary{min-height:72px;padding:14px 16px}.reward-history:not([open]) .recent-rewards{display:none}.reward-history[open] .recent-rewards{padding:0 16px 16px;margin-top:0}.reward-history summary h3{font-size:17px}.reward-history summary>em{margin-left:auto}
  .character-promo{padding:22px 16px;border-radius:22px}.character-copy h2{font-size:27px}.character-stage{max-width:100%}
  .studio-footer{display:none!important}
  .mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:80;left:50%;right:auto;bottom:max(8px,env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:calc(100% - 20px);max-width:430px;padding:6px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(19,15,30,.94);box-shadow:0 18px 55px rgba(0,0,0,.5);backdrop-filter:blur(20px)}
  .mobile-nav button{min-width:0;padding:7px 3px;border-radius:12px}.mobile-nav button span{font-size:9px;white-space:nowrap}
  #profileDialog{inset:8px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;margin:auto!important;padding:24px 16px 30px!important;border-radius:22px!important;overflow-y:auto!important;overscroll-behavior:contain}
  #profileDialog>.modal-close{position:sticky;z-index:5;float:right;top:0;margin:-8px -2px 0 0}
  #profileDialog h2{clear:both;font-size:29px;margin-top:8px}#profileDialog .profile-balance{margin:14px 0;padding:15px}#profileDialog label{margin:10px 0}#profileDialog input,#profileDialog select{padding:11px 12px}
  .profile-mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:14px 0;padding:6px;border-radius:15px;background:#0f0c18}.profile-mobile-nav button{display:grid;justify-items:center;gap:3px;padding:9px 2px;border-radius:10px;background:transparent;color:#a69eaf;font-size:15px}.profile-mobile-nav button span{font-size:9px}.profile-mobile-nav button:hover{background:#29213d;color:#fff}
  .profile-mobile-activity{display:grid;grid-template-columns:1fr;gap:7px;margin:-7px 0 14px}.profile-mobile-activity button{min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:12px;background:#171321;color:#c6bdd3}.profile-mobile-activity button span{font-size:11px;font-weight:700}
  #profileDialog .profile-section{margin-top:15px;padding-top:14px}#profileDialog .profile-actions{grid-template-columns:1fr 1fr;gap:7px}#profileDialog .danger-button{margin-bottom:8px}
  .modal:not(#profileDialog),.form-dialog{max-height:calc(100dvh - 20px);overflow-y:auto}
  .toast{left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));text-align:center}
}
@media(max-width:380px){
  .brand{font-size:14px}.mode-grid{grid-template-columns:1fr}.trends-grid,.library-grid{grid-template-columns:1fr 1fr}.trends-grid .trend-meta small{font-size:10px}
}

/* Mobile roulette owns the viewport; completed photos open in the shared viewer. */
.inline-result-media[data-inline-preview]{cursor:zoom-in;outline:none}.inline-result-media[data-inline-preview]:focus-visible{box-shadow:inset 0 0 0 2px #a98cff}.inline-result-media[data-inline-preview] img{transition:transform .2s}.inline-result-media[data-inline-preview]:hover img{transform:scale(1.01)}
@media(max-width:700px){
  html.roulette-scroll-locked,html.roulette-scroll-locked body{overflow:hidden!important;overscroll-behavior:none}
  #trendsView .catalog-filters{display:grid!important;height:auto!important;min-height:0!important}#trendsView .filter-group:not([hidden]){display:grid!important}#trendsView .filter-pills:not([hidden]){display:flex!important;min-height:42px}
  .roulette-dialog{position:fixed!important;inset:8px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;margin:auto!important;padding:14px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;border-radius:22px!important}
  .roulette-dialog>.modal-close{position:sticky;z-index:20;float:right;top:0;margin:0}.roulette-dialog>.eyebrow{display:block;padding-top:3px;font-size:9px}.roulette-dialog>h2{clear:both;margin:6px 0 8px;font-size:clamp(25px,8vw,32px);line-height:1.08}.roulette-dialog>p,.roulette-dialog>.roulette-value,.roulette-dialog>.roulette-note{display:none!important}
  .roulette-dialog[open]:not(.has-live-result),.roulette-dialog.has-live-result[open]{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;align-content:start!important}
  .roulette-dialog[open]:not(.has-live-result)>.eyebrow,.roulette-dialog[open]:not(.has-live-result)>h2,.roulette-dialog[open]:not(.has-live-result)>.roulette-wheel-stage,.roulette-dialog[open]:not(.has-live-result)>#rouletteForm,.roulette-dialog.has-live-result>.eyebrow,.roulette-dialog.has-live-result>h2,.roulette-dialog.has-live-result>.roulette-wheel-stage,.roulette-dialog.has-live-result>#rouletteLive{grid-column:1!important;grid-row:auto!important}
  .roulette-dialog[open]:not(.has-live-result)>.roulette-wheel-stage{width:clamp(220px,72vw,270px)!important;height:clamp(220px,72vw,270px)!important;margin:0 auto!important}.roulette-dialog[open]:not(.has-live-result) .character-mini-reel{width:clamp(210px,68vw,254px)!important;height:clamp(210px,68vw,254px)!important}.roulette-dialog[open]:not(.has-live-result) .character-card{width:clamp(42px,12.2vw,48px)!important;height:clamp(42px,12.2vw,48px)!important;min-width:clamp(42px,12.2vw,48px)!important;min-height:clamp(42px,12.2vw,48px)!important;margin:-24px!important}.roulette-dialog[open]:not(.has-live-result) .roulette-hub{width:78px;height:78px}
  .roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(1){transform:rotate(0deg) translateY(clamp(-100px,-25.5vw,-82px)) rotate(0deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(2){transform:rotate(36deg) translateY(clamp(-100px,-25.5vw,-82px)) rotate(-36deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(3){transform:rotate(72deg) translateY(clamp(-100px,-25.5vw,-82px)) rotate(-72deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(4){transform:rotate(108deg) translateY(clamp(-100px,-25.5vw,-82px)) rotate(-108deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(5){transform:rotate(144deg) translateY(clamp(-100px,-25.5vw,-82px)) rotate(-144deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(6){transform:rotate(180deg) translateY(clamp(-100px,-25.5vw,-82px)) rotate(-180deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(7){transform:rotate(216deg) translateY(clamp(-100px,-25.5vw,-82px)) rotate(-216deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(8){transform:rotate(252deg) translateY(clamp(-100px,-25.5vw,-82px)) rotate(-252deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(9){transform:rotate(288deg) translateY(clamp(-100px,-25.5vw,-82px)) rotate(-288deg)}.roulette-dialog[open]:not(.has-live-result) .character-card:nth-child(10){transform:rotate(324deg) translateY(clamp(-100px,-25.5vw,-82px)) rotate(-324deg)}
  .roulette-dialog #rouletteForm{display:grid;gap:8px}.roulette-dialog .roulette-drop{width:min(58vw,220px)!important;margin:0 auto!important}.roulette-dialog .roulette-submit{min-height:48px;padding:12px 16px}
  .roulette-dialog.has-live-result>.roulette-wheel-stage{width:clamp(190px,58vw,220px)!important;height:clamp(190px,58vw,220px)!important;margin:0 auto!important}.roulette-dialog.has-live-result .character-mini-reel{width:clamp(180px,55vw,210px)!important;height:clamp(180px,55vw,210px)!important}.roulette-dialog.has-live-result .character-card{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;margin:-20px!important}.roulette-dialog.has-live-result>#rouletteLive{width:100%;margin:0!important;padding:10px!important;gap:7px!important}.roulette-dialog.has-live-result .roulette-result-frame{height:min(34dvh,300px)!important}.roulette-dialog.has-live-result .roulette-result-frame img{height:100%;object-fit:contain}
  .roulette-dialog.has-live-result .character-card:nth-child(1){transform:rotate(0deg) translateY(clamp(-82px,-21vw,-70px)) rotate(0deg)}.roulette-dialog.has-live-result .character-card:nth-child(2){transform:rotate(36deg) translateY(clamp(-82px,-21vw,-70px)) rotate(-36deg)}.roulette-dialog.has-live-result .character-card:nth-child(3){transform:rotate(72deg) translateY(clamp(-82px,-21vw,-70px)) rotate(-72deg)}.roulette-dialog.has-live-result .character-card:nth-child(4){transform:rotate(108deg) translateY(clamp(-82px,-21vw,-70px)) rotate(-108deg)}.roulette-dialog.has-live-result .character-card:nth-child(5){transform:rotate(144deg) translateY(clamp(-82px,-21vw,-70px)) rotate(-144deg)}.roulette-dialog.has-live-result .character-card:nth-child(6){transform:rotate(180deg) translateY(clamp(-82px,-21vw,-70px)) rotate(-180deg)}.roulette-dialog.has-live-result .character-card:nth-child(7){transform:rotate(216deg) translateY(clamp(-82px,-21vw,-70px)) rotate(-216deg)}.roulette-dialog.has-live-result .character-card:nth-child(8){transform:rotate(252deg) translateY(clamp(-82px,-21vw,-70px)) rotate(-252deg)}.roulette-dialog.has-live-result .character-card:nth-child(9){transform:rotate(288deg) translateY(clamp(-82px,-21vw,-70px)) rotate(-288deg)}.roulette-dialog.has-live-result .character-card:nth-child(10){transform:rotate(324deg) translateY(clamp(-82px,-21vw,-70px)) rotate(-324deg)}
}

.resolution-label{margin-top:12px}.image-resolution-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.image-resolution{min-height:48px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:12px;background:#100d19;color:#9992a6}.image-resolution b{color:inherit}.image-resolution span{font-size:12px}.image-resolution.active{color:#fff;border-color:#8d71ff;background:linear-gradient(145deg,rgba(122,88,242,.35),rgba(237,82,173,.14));box-shadow:0 0 0 2px rgba(130,99,255,.08)}

/* Mobile-first completion pass. */
:where(button,a,input,textarea,select,[role="button"]):focus-visible{outline:3px solid rgba(169,140,255,.9);outline-offset:3px}
.draft-resume-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-20px 0 18px;padding:15px 17px;border:1px solid rgba(104,214,167,.32);border-radius:17px;background:linear-gradient(110deg,rgba(49,170,122,.15),rgba(118,83,235,.12));color:#fff}
.draft-resume-banner span{display:grid;gap:3px}.draft-resume-banner small{color:#b6c8c1;line-height:1.4}.draft-resume-banner button{white-space:nowrap}
.advanced-settings{margin-top:11px;border:1px solid var(--line);border-radius:14px;background:rgba(12,10,18,.45)}.advanced-settings summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;cursor:pointer;color:#c7bed6;font-size:12px;font-weight:800;list-style:none}.advanced-settings summary::-webkit-details-marker{display:none}.advanced-settings summary:after{content:"＋";color:#a993ff;font-size:17px}.advanced-settings[open] summary:after{content:"−"}.advanced-settings summary span{margin-left:auto;color:#746d81;font-size:10px;font-weight:600}.advanced-settings .resolution-label,.advanced-settings .image-resolution-grid{margin-left:12px;margin-right:12px}.advanced-settings .image-resolution-grid{margin-bottom:12px}
.filter-group{position:relative}.filter-group:after{content:"";position:absolute;z-index:3;right:0;top:0;bottom:5px;width:26px;background:linear-gradient(90deg,transparent,rgba(20,16,31,.96));pointer-events:none}
.filter-pills{padding-right:22px!important}
@media(max-width:700px){
  body.keyboard-open .mobile-nav{display:none!important}
  .toast,.toast[popover]{bottom:calc(84px + env(safe-area-inset-bottom,0px));inset-inline:12px;text-align:center}
  body.keyboard-open .toast,body.keyboard-open .toast[popover]{bottom:12px}
  .auth-shell{display:flex;flex-direction:column;gap:26px;padding:24px 0 40px}.auth-card{order:-1;justify-self:auto}.auth-copy h1{font-size:34px;margin:12px 0}.auth-copy>p{font-size:14px;line-height:1.55}.auth-proof{margin-top:18px}
  .upload-panel .dropzone{min-height:240px}.prompt-panel textarea{min-height:150px}
  .modal-close,.reference-remove{width:44px!important;height:44px!important;min-width:44px;min-height:44px}
  .dropzone:has(.reference-item) #fileInput,.dropzone:has(.reference-item):after{width:48px;height:48px}
  .filter-pills button,.notification-item button,.text-button{min-height:44px}
  .mobile-nav button{min-height:48px}.mobile-nav button span,.profile-mobile-nav button span{font-size:11px}
  .jobs-button:not(.has-jobs){display:none}
  .draft-resume-banner{align-items:stretch;flex-direction:column;margin:0 0 14px}.draft-resume-banner button{width:100%;min-height:44px}
  #profileDialog,.billing-modal,.jobs-dialog,.form-dialog,#resetDialog{inset:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:24px 16px calc(24px + env(safe-area-inset-bottom,0px))!important;border-radius:0!important;overflow-y:auto!important}
  .billing-modal .packs-grid{padding-bottom:20px}.billing-modal .pack-card{min-height:76px;padding:14px}
}
@media(max-width:430px){
  .topbar{gap:5px}.brand-mascot-shell{width:32px;height:32px;margin-right:5px}.brand{font-size:14px}.account-actions{gap:4px}.avatar-button,.jobs-button{width:36px;height:36px}.balance-pill{padding:0 8px}
  .mode-card small{display:none}.mode-card{min-height:66px}.mode-icon{width:38px;height:38px;flex-basis:38px}
}
@media(max-width:360px){
  .brand>span:nth-child(2){display:none}.brand-mascot-shell{margin-right:0}
  .trends-grid,.library-grid{grid-template-columns:1fr!important}.trends-grid .trend-card{aspect-ratio:.9}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.draft-resume-banner{transition:none!important}}

/* Optional analytics is disabled until the user makes this explicit choice. */
.cookie-consent{position:fixed;z-index:10000;left:50%;bottom:max(18px,env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;width:min(920px,calc(100% - 32px));align-items:center;justify-content:space-between;gap:24px;padding:20px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:#1d1729;color:#fff;box-shadow:0 24px 80px rgba(0,0,0,.58)}.cookie-consent[hidden]{display:none}.cookie-consent__copy{display:grid;gap:6px;max-width:590px}.cookie-consent__copy strong{font-size:18px}.cookie-consent__copy p{margin:0;color:#cfc6d9;font-size:14px;line-height:1.55}.cookie-consent__copy a{color:#fff;text-decoration:underline;text-underline-offset:3px}.cookie-consent__actions{display:flex;gap:10px;flex:0 0 auto}.cookie-consent__actions button{min-height:44px;padding:11px 16px;border:1px solid rgba(255,255,255,.22);border-radius:12px;color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.cookie-consent__necessary{background:transparent}.cookie-consent__accept{background:linear-gradient(115deg,#7357f5,#e653ad);border-color:transparent!important}.cookie-settings-link{display:inline-block;margin:8px 0 0;padding:0;border:0;background:none;color:#aaa0b8;font:inherit;font-size:11px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}#profileDialog>.cookie-settings-link{width:100%;min-height:40px;margin-top:12px}.cookie-settings-link:focus-visible,.cookie-consent button:focus-visible{outline:3px solid #bcaaff;outline-offset:3px}
@media(max-width:680px){.cookie-consent{bottom:max(10px,env(safe-area-inset-bottom,0px));width:calc(100% - 20px);align-items:stretch;flex-direction:column;gap:16px;padding:18px;border-radius:18px}.cookie-consent__actions{display:grid;grid-template-columns:1fr}.cookie-consent__actions button{width:100%}}

.cookie-consent{width:min(780px,calc(100% - 32px));gap:20px;padding:17px 18px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(28,23,40,.98);box-shadow:0 20px 60px rgba(0,0,0,.42)}.cookie-consent__copy{gap:3px}.cookie-consent__copy strong{font-size:16px}.cookie-consent__copy p{font-size:13px}.cookie-consent__copy a{text-decoration:none;color:#cabaff}.cookie-consent__copy a:hover{text-decoration:underline}.cookie-consent__actions button{min-height:42px;padding:10px 15px;border-radius:11px;font-size:12px}.cookie-consent__necessary{background:#292337;color:#ddd5e6}.cookie-consent__accept{background:#8061f4;box-shadow:none}.cookie-settings-link{text-decoration:none}.cookie-settings-link:hover{color:#c7baff}
@media(max-width:680px){.cookie-consent{gap:13px;padding:16px}.cookie-consent__actions{grid-template-columns:1fr 1fr}.cookie-consent__actions button{padding-inline:9px}}

.video-options>label[data-seedance-duration-control]:not([hidden]){display:grid;gap:8px;margin-top:12px;font-size:12px;color:#cbc5d7}.video-plan[data-seedance-only] b{color:#dacfff}

/* Duration choices: native buttons retain keyboard and touch behavior. */
.video-duration-control { display:grid;gap:10px; }
.video-duration-picker { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
.video-duration-picker button { appearance:none;display:flex;flex-direction:row;align-items:baseline;justify-content:center;gap:8px;min-width:0;min-height:54px;margin:0;padding:15px 8px;border:1px solid var(--line);border-radius:12px;background:#100d19;color:#9992a6;white-space:nowrap;font:inherit;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s; }
.video-duration-picker button>span { font-size:16px;font-weight:400;line-height:1.4; }
.video-duration-picker button>span small { font:inherit; }
.video-duration-picker button>small { color:inherit;font-size:12px;font-weight:400;line-height:1.4; }
.video-duration-picker button.active,.video-duration-picker button[aria-pressed="true"] { color:#fff;border-color:#8d71ff;background:linear-gradient(145deg,rgba(122,88,242,.29),rgba(237,82,173,.09));box-shadow:0 0 0 2px rgba(130,99,255,.08); }
.video-duration-picker button:focus-visible { outline:2px solid #b79bff;outline-offset:3px; }
.video-duration-picker button:disabled { opacity:.5;cursor:default; }
.video-duration-picker button:not(:disabled):hover { border-color:#b79bff; }

/* One compact settings surface; native selects remain form controls only. */
#videoOptions > .video-auto-note, #videoOptions > label:has(#aspectRatio) {display:none}
.video-fine-settings{border:1px solid var(--line);border-radius:14px;background:rgba(12,10,18,.45);overflow:hidden}
.video-fine-settings>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 13px;cursor:pointer;color:#c7bed6;font-size:12px;font-weight:800;list-style:none}
.video-fine-settings>summary::-webkit-details-marker{display:none}
.video-fine-settings>summary:after{content:'＋';color:#a993ff;font-size:17px}.video-fine-settings[open]>summary:after{content:'−'}
.video-fine-settings>summary small{margin-left:auto;color:#746d81;font-size:10px;font-weight:600}
.video-fine-content{padding:0 16px 16px;display:grid;gap:12px}
.video-fine-content label[hidden]{display:none!important}
.video-fine-content .option-segments button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px}
.video-fine-content .option-segments small{font-size:11px;opacity:.65}
.video-fine-content .sound-switch{padding:12px 0 0;border:0;border-top:1px solid #ffffff10;border-radius:0}
.video-fine-settings+*{margin-top:0}
#videoOptions label:has(#videoResolution){display:none!important}
.video-fine-settings[open]>summary [data-video-fine-summary]{display:none}

.video-fine-content .sound-switch{padding:13px 15px;border:1px solid rgba(167,143,211,.14);border-radius:14px;background:linear-gradient(125deg,rgba(139,103,213,.09),rgba(210,109,181,.035));box-shadow:none;gap:16px}
.video-fine-content .sound-switch span{min-width:0;gap:4px}.video-fine-content .sound-switch b{font-size:13px}.video-fine-content .sound-switch small{font-size:12px;line-height:1.45}

@media(max-width:560px){.video-duration-picker button{gap:5px;padding:15px 5px;min-height:50px}.video-duration-picker button>span{font-size:14px}.video-duration-picker button>small{font-size:11px}}

/* Full examples are loaded on demand, independently of catalog thumbnails. */
body.trend-preview-open{overflow:hidden}
.trend-preview-dialog{width:min(1080px,calc(100vw - 48px));height:min(800px,86dvh);max-width:none;max-height:calc(100dvh - 40px);padding:0;border-radius:24px;overflow:hidden;background:#15111f}
.trend-preview-layout{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:0}
.trend-preview-stage{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden;background:#09070f}
.trend-preview-stage>video,.trend-preview-photo img{display:block;width:100%;height:100%;object-fit:contain}
.trend-preview-stage>video{max-width:100%;max-height:100%}
.trend-preview-photo{border:0;padding:0;background:transparent;display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:zoom-in}
.trend-preview-stage.is-zoomed{overflow:auto;display:block}
.trend-preview-stage.is-zoomed .trend-preview-photo{width:max-content;height:max-content;min-width:100%;min-height:100%;cursor:zoom-out}
.trend-preview-stage.is-zoomed img{width:auto;height:auto;max-width:none;max-height:none}
.trend-preview-info{display:flex;flex-direction:column;gap:14px;padding:38px 24px 24px;min-width:0;overflow:auto}
.trend-preview-info h2{font-size:24px;line-height:1.3;letter-spacing:-.7px;margin:0;overflow-wrap:anywhere}
.trend-preview-info p{font-size:13px;line-height:1.65;margin:0}
.trend-preview-info p:empty{display:none}
.trend-preview-info .eyebrow{font-size:10px;color:#ac97f3;margin:0}
.trend-preview-info [data-trend-preview-price]{margin-top:auto;font-size:16px}
.trend-preview-repeat{width:100%;min-height:48px;border:0;color:#fff;flex-shrink:0}
.trend-preview-types{display:flex;flex-wrap:wrap;gap:7px}
.trend-preview-types[hidden]{display:none}
.trend-preview-types button{padding:8px 11px;border-radius:10px;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:12px}
.trend-preview-types button[aria-pressed="true"]{color:#fff;border-color:#8d71ff;background:#2b2140}
.trend-preview-dialog>.modal-close{z-index:3;right:12px;top:12px;width:36px;height:36px;background:rgba(22,17,32,.9);color:#fff}
.trend-card[role="button"]:focus-visible{outline:2px solid #b99cff;outline-offset:4px}
@media(max-width:700px){
 .trend-preview-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
 .trend-preview-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
 .trend-preview-info{gap:8px;padding:16px 18px max(16px,env(safe-area-inset-bottom));max-height:44dvh}
 .trend-preview-info h2{font-size:20px;letter-spacing:-.4px}
 .trend-preview-info [data-trend-preview-description]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px}
 .trend-preview-info [data-trend-preview-description]:empty{display:none}
 .trend-preview-info [data-trend-preview-price]{margin-top:0;font-size:14px}
 .trend-preview-repeat{position:sticky;bottom:0;min-height:46px;margin-top:2px}
}

/* Retain a real cover until Safari has decoded a video frame. */
.trend-card>.trend-video-cover,.trend-card>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.trend-card>video[data-preview-src]{opacity:0;transition:none}
.trend-card>video[data-preview-src].has-preview-frame{opacity:1}
/* Video formats are a fixed pair, not the horizontally scrollable photo grid. */
.tool-options .photo-format-grid.tool-video-format-grid{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;overscroll-behavior-inline:auto;padding-bottom:0}
.tool-video-format-grid>.photo-format{min-width:0;min-height:50px;display:flex;align-items:center;justify-content:center;gap:10px;transform:none}
@media(max-width:700px){
 /* Keep native iOS volume controls entirely below the close button. */
 .trend-preview-dialog{padding-top:calc(56px + env(safe-area-inset-top,0px))}
 .trend-preview-dialog>.modal-close{top:calc(6px + env(safe-area-inset-top,0px));right:12px}
 .media-viewer{padding-top:calc(60px + env(safe-area-inset-top,0px))}
 .media-viewer>.modal-close{top:calc(8px + env(safe-area-inset-top,0px))}
 .result-modal{padding-top:calc(60px + env(safe-area-inset-top,0px))}
 .result-modal>.modal-close{top:calc(8px + env(safe-area-inset-top,0px))}
}
