@font-face{font-family:Manrope;src:url('assets/manrope-regular.ttf');font-weight:400;font-display:swap}@font-face{font-family:Manrope;src:url('assets/manrope-semibold.ttf');font-weight:500 600;font-display:swap}@font-face{font-family:Manrope;src:url('assets/manrope-bold.ttf');font-weight:700 800;font-display:swap}
:root{--bg:#111113;--surface:#19191c;--surface2:#202023;--line:#2a2a2e;--text:#f6f5f7;--muted:#929298;--accent:#ff315b;--accent-hover:#ff4c70;--sidebar:226px;--radius:14px;color-scheme:dark;font-family:Manrope,Arial,sans-serif;font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button{color:inherit;border:0;background:none}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button,a{transition:background .18s,color .18s,border-color .18s,transform .18s}svg{width:20px;height:20px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}p,h1,h2,h3{margin:0}h1,h2,h3{font-weight:700}p{line-height:1.65}button:active:not(:disabled){transform:translateY(1px)}.skip-link{position:fixed;left:10px;top:-50px;z-index:20;background:var(--accent);padding:10px}.skip-link:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;background:#141416;border-right:1px solid var(--line);padding:25px 17px 18px;z-index:30}.brand{display:block;width:167px;height:41px;overflow:hidden;margin:0 11px 39px}.brand img{display:block;width:171px;height:57px;object-fit:contain;margin-top:-8px}.nav-label{color:#727279;font-size:10px;font-weight:700;letter-spacing:1.6px;margin:0 13px 13px}.nav-group{display:grid;gap:6px}.nav-item{display:flex;align-items:center;gap:13px;padding:13px 14px;border-radius:9px;font-size:13px;font-weight:600;color:#a2a2a8}.nav-item:hover{background:#202023;color:white}.nav-item.active{background:#312028;color:#ff5d7d}.nav-item.active svg{stroke:var(--accent)}.nav-item .tiny-tag{margin-left:auto}.nav-divider{height:1px;background:var(--line);margin:24px 13px}.sidebar-bottom{margin-top:auto;padding-top:40px}.side-note{padding:16px 14px;background:#1c1c20;border:1px solid #2b2b30;border-radius:12px;margin-bottom:19px}.side-note-title{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700}.side-note-title svg{color:#ff708d;width:16px}.side-note p{font-size:11px;color:var(--muted);margin:8px 0 13px}.side-note a{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700}.side-note a svg{width:15px}.user-card{display:flex;align-items:center;gap:10px;padding:14px 8px 0;border-top:1px solid var(--line)}.avatar{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;border-radius:50%;background:#c9c2b7;color:#333131;font-size:12px;font-weight:800;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.user-text{display:grid;gap:3px;flex:1}.user-text strong{font-size:12px}.user-text span{font-size:10px;color:var(--muted)}.user-card>svg{width:16px;color:var(--muted)}.main-shell{margin-left:var(--sidebar);min-width:0}.topbar{height:77px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.breadcrumbs{font-size:12px;display:flex;align-items:center;gap:12px;color:var(--muted)}.breadcrumbs svg{width:14px;color:#616166}.breadcrumbs strong{color:#d7d6da;font-weight:500}.top-actions{display:flex;align-items:center;gap:19px}.balance-pill{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:600}.balance-pill>svg{width:15px;color:#ff587b;fill:#ff587b;stroke-width:1}.balance-pill .plus{border:1px solid #3c3c41;border-radius:5px;display:grid;place-items:center;width:22px;height:22px;margin-left:5px}.balance-pill .plus svg{width:13px}.top-separator{width:1px;height:24px;background:var(--line)}.icon-btn{width:35px;height:35px;display:inline-grid;place-items:center;border-radius:8px;color:#aaa9b0}.icon-btn:hover{background:#2b2b30;color:white}.top-avatar{width:29px;height:29px;font-size:10px}.mobile-logo,.mobile-menu,.bottom-nav{display:none}.content{max-width:1620px;margin:0 auto;padding:31px 36px 28px}.page-enter{animation:page-in .4s ease both}.eyebrow{text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:1.9px;color:#c3c0c8;display:flex;align-items:center;gap:8px}.eyebrow svg{width:14px;height:14px;color:var(--accent)}.hero{position:relative;height:318px;overflow:hidden;border-radius:14px;background:#220d12}.hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:.9}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,10,15,.3),transparent 75%);pointer-events:none}.hero-copy{position:relative;z-index:1;padding:35px 38px;max-width:660px}.hero h1{font-size:47px;line-height:1.13;letter-spacing:-2px;margin:13px 0 14px;font-weight:800}.hero h1 span{color:#ff5878}.hero-copy>p{font-size:12px;color:#c1b5bb;line-height:1.8}.hero-actions{display:flex;align-items:center;gap:18px;margin-top:23px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:8px;padding:12px 18px;font-size:12px;line-height:1.2;font-weight:700;min-height:40px;white-space:nowrap}.btn svg{width:16px;height:16px}.btn-primary{background:var(--accent);color:white}.btn-primary:hover{background:var(--accent-hover)}.btn-secondary{background:#28282d;border:1px solid #37373d;color:#efedf1}.btn-secondary:hover{background:#34343b}.btn-ghost{color:#efedef}.btn-ghost:hover{background:#ffffff0b}.btn-white{background:#f4f2f5;color:#171518}.btn-white:hover{background:#fff}.hero-label{position:absolute;right:20px;bottom:19px;z-index:1;font-size:9px;letter-spacing:.8px;display:flex;gap:6px;align-items:center;color:#ded1d4}.hero-label svg{width:12px;height:12px}.hero-pagination{position:absolute;bottom:18px;left:38px;display:flex;gap:5px;z-index:2}.hero-pagination span{height:3px;width:13px;border-radius:5px;background:#ffffff40}.hero-pagination span:first-child{width:23px;background:#ff315b}.section{margin-top:31px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:19px}.section-heading h2{font-size:21px;letter-spacing:-.65px}.section-heading p{font-size:11px;color:var(--muted);margin-top:6px}.text-link{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:#b9b7bf;white-space:nowrap}.text-link:hover{color:white}.text-link svg{width:14px;height:14px}.preset-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:19px}.segmented{padding:4px;border:1px solid #2d2d32;background:#17171a;display:inline-flex;border-radius:9px;gap:3px}.segmented button{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 15px;font-size:11px;color:#a2a0a8;border-radius:6px;white-space:nowrap}.segmented button svg{width:14px;height:14px}.segmented button.active{color:white;background:#333338}.segmented button:hover{color:#fff}.segmented .count{font-size:9px;color:#a4a1ac;background:#222226;line-height:16px;padding:0 5px;border-radius:4px;margin-left:2px}.search-input{display:flex;align-items:center;gap:9px;min-width:190px;background:#19191c;padding:9px 12px;border:1px solid #303036;border-radius:7px;color:#818189}.search-input svg{width:15px;height:15px}.search-input input{border:0;outline:none!important;color:white;width:100%;background:none;font-size:11px}.search-input input::placeholder{color:#82818a}.filter-row{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:19px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #303035;border-radius:6px;color:#a5a3ac;font-size:10px;font-weight:600;white-space:nowrap}.chip svg{width:12px;height:12px}.chip:hover{border-color:#5b525b;color:white}.chip.active{border-color:#a52d48;background:#341c24;color:#ff6383}.sort-control{display:flex;gap:7px;align-items:center;color:#a5a3ac;font-size:10px;white-space:nowrap}.sort-control svg{width:13px;height:13px}.sort-control select{border:0;background:transparent;padding:3px;color:#b1afb8;outline-offset:1px;font-size:10px;max-width:115px}.preset-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.preset-card{position:relative;min-width:0;animation:page-in .45s both;animation-delay:calc(var(--i,0)*45ms)}.card-art{position:relative;display:block;width:100%;aspect-ratio:4/5;border-radius:11px;overflow:hidden;background:#29262b;text-align:left}.card-art>img,.card-art>video{width:100%;height:100%;object-fit:cover;display:block;transition:transform .65s cubic-bezier(.2,.65,.2,1),filter .3s}.card-art:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.45));opacity:.4;transition:opacity .3s}.card-art:hover>img,.card-art:hover>video{transform:scale(1.055)}.card-art:hover:after{opacity:1}.card-badge{position:absolute;top:10px;left:10px;font-size:8px;font-weight:700;letter-spacing:.5px;padding:5px 7px;background:#18181d99;backdrop-filter:blur(12px);border-radius:4px;color:white;z-index:1}.card-badge.hot{background:#ff315b}.card-badge.new{background:#f4f3ec;color:#202023}.card-hover{position:absolute;bottom:13px;left:13px;right:13px;background:#f8f5f2;color:#18171a;padding:10px;border-radius:7px;font-size:10px;font-weight:700;z-index:2;display:flex;align-items:center;justify-content:space-between;opacity:0;transform:translateY(7px);transition:opacity .2s,transform .2s}.card-hover svg{width:14px;height:14px}.card-art:hover .card-hover,.card-art:focus-visible .card-hover{opacity:1;transform:none}.favorite{position:absolute;right:9px;top:9px;width:27px;height:27px;background:#17151b60;color:white;border-radius:50%;display:grid;place-items:center;opacity:0;z-index:3;backdrop-filter:blur(8px)}.favorite svg{width:13px;height:13px}.preset-card:hover .favorite,.favorite:focus-visible,.favorite.saved{opacity:1}.favorite.saved{color:#ff315b;background:#18151bbb}.favorite.saved svg{fill:currentColor}.card-caption{padding:11px 1px 0;display:flex;justify-content:space-between;align-items:center;gap:6px}.card-caption h3{font-size:12px;letter-spacing:-.1px}.card-caption span{font-size:9px;color:#8e8c96;display:flex;align-items:center;gap:4px;white-space:nowrap}.card-caption svg{width:10px;height:10px}.card-subtitle{font-size:10px;color:#77757f;margin:5px 0 0}.card-type{position:absolute;bottom:10px;right:10px;z-index:1;width:23px;height:23px;display:grid;place-items:center;background:#1d1b2170;backdrop-filter:blur(10px);border-radius:5px;color:#fff}.card-type svg{width:12px;height:12px}.video-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.video-grid .card-art{aspect-ratio:16/10}.play-circle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #ffffff66;background:#14121725;backdrop-filter:blur(4px);border-radius:50%;width:37px;height:37px;display:grid;place-items:center;z-index:1;transition:background .2s}.play-circle svg{width:14px;height:14px;fill:currentColor;margin-left:2px}.card-art:hover .play-circle{background:#ff315b;border-color:#ff315b}.video-duration{position:absolute;bottom:10px;left:11px;background:#16141780;padding:3px 5px;font-size:9px;border-radius:4px;z-index:1}.motion-heading{display:flex;gap:9px;align-items:center}.tiny-tag{background:#29262c;padding:3px 5px;font-size:8px;letter-spacing:.6px;color:#bfb9c4;border-radius:4px}.pink-tag{background:#3d1d29;color:#ff6988}.pro-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 25px;background:#1a191d;border:1px solid #2e2930;border-radius:12px;margin-top:32px}.pro-banner-copy{display:flex;align-items:center;gap:16px}.pro-symbol{display:grid;place-items:center;width:43px;height:43px;background:#2c2028;color:#ff5d7d;border:1px solid #56303e;border-radius:11px}.pro-banner h3{font-size:14px}.pro-banner p{color:#918c98;font-size:11px;margin-top:5px}.footer{display:flex;align-items:center;justify-content:space-between;margin-top:33px;padding-top:20px;border-top:1px solid #252429;font-size:9px;color:#6f6d78;gap:15px}.footer-links{display:flex;gap:18px}.footer button{font-size:9px;color:#85808d}.footer button:hover{color:white}.status-dot{display:inline-block;width:5px;height:5px;background:#a3b89d;border-radius:50%;margin-right:5px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading h1{font-size:32px;letter-spacing:-1.2px;line-height:1.3}.page-heading p{color:#929099;font-size:12px;margin-top:7px}.page-heading .eyebrow{margin-bottom:10px;color:#a6a1ad}.demo-label{display:inline-flex;gap:6px;align-items:center;padding:6px 9px;border:1px solid #3c303d;color:#b6a8bc;background:#261f2a;font-size:9px;border-radius:5px;white-space:nowrap}.demo-label svg{width:12px;height:12px}.editor-layout{display:grid;grid-template-columns:380px minmax(0,1fr);gap:23px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px}.editor-panel{padding:23px}.mode-toggle{width:100%;margin-bottom:24px}.mode-toggle button{flex:1}.field{margin-top:22px}.field:first-child{margin-top:0}.field-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:11px;font-weight:700;gap:8px}.field-label>span{font-size:10px;color:#7c7885;font-weight:400}.field-label .text-link{font-size:10px;color:#e75b7c}.selected-preset{display:flex;align-items:center;gap:12px;background:#232126;border:1px solid #3a2c35;border-radius:9px;padding:9px}.selected-preset img{width:48px;height:54px;object-fit:cover;border-radius:5px}.selected-preset strong{font-size:11px;display:block}.selected-preset p{font-size:10px;color:#97909c;margin-top:4px}.selected-preset>button{margin-left:auto;font-size:10px;color:#f17997}.upload-area{border:1px dashed #49434e;border-radius:9px;padding:22px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;cursor:pointer;background:#1c1b1f;position:relative;min-height:120px;overflow:hidden}.upload-area:hover,.upload-area.dragging{border-color:var(--accent);background:#251c23}.upload-area>svg{color:#a69caa;width:24px;height:24px;margin-bottom:3px}.upload-area strong{font-size:11px;font-weight:600}.upload-area>span{font-size:9px;color:#7c7682}.upload-area input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.upload-area img{width:100%;max-height:170px;object-fit:contain;border-radius:6px}.input,.textarea,.select{width:100%;border:1px solid #39343e;border-radius:7px;background:#1d1c20;color:#ded9e2;padding:12px;font-size:11px;line-height:1.7}.textarea{resize:vertical;min-height:119px}.input::placeholder,.textarea::placeholder{color:#726e7b}.field-hint{font-size:9px;color:#837b8c;margin-top:7px;line-height:1.6}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ratio-options{display:flex;gap:7px}.ratio-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 7px;border:1px solid #3b3640;border-radius:7px;font-size:9px;color:#96909e}.ratio-btn.active{color:#ff7492;border-color:#bd3e5b;background:#302029}.ratio-icon{height:17px;width:17px;display:block;border:1px solid currentColor;border-radius:2px}.ratio-icon.portrait{width:12px}.ratio-icon.landscape{width:23px;height:14px;margin-block:1.5px}.editor-bottom{margin-top:24px;border-top:1px solid #302b36;padding-top:20px}.generate-btn{width:100%;font-size:12px;padding:14px}.generate-btn>span{margin-left:auto;font-size:10px;background:#a1123440;padding:4px 6px;border-radius:4px}.generation-note{font-size:9px;text-align:center;margin-top:10px;color:#8b8191}.preview-panel{min-height:617px;display:flex;flex-direction:column;overflow:hidden}.preview-top{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 21px;border-bottom:1px solid var(--line);font-size:11px;font-weight:600}.preview-top>span{display:flex;gap:7px;align-items:center;color:#a39ca9;font-size:9px;font-weight:400}.preview-top .status-dot{margin-right:0}.preview-body{min-height:490px;flex:1;position:relative;display:grid;place-items:center;background-color:#151418;background-image:radial-gradient(#312b362e 1px,transparent 1px);background-size:16px 16px;padding:24px}.preview-placeholder{text-align:center;max-width:280px}.preview-symbol{width:66px;height:66px;background:#252128;border:1px solid #3a313f;border-radius:18px;display:grid;place-items:center;color:#e27893;margin:0 auto 22px;transform:rotate(-6deg)}.preview-symbol svg{width:29px;height:29px;transform:rotate(6deg)}.preview-placeholder h3{font-size:18px;letter-spacing:-.5px}.preview-placeholder p{font-size:11px;color:#877e90;margin-top:11px}.preview-example{position:relative;max-width:330px;width:74%;aspect-ratio:3/4;overflow:hidden;border-radius:8px}.preview-example img,.preview-example video{width:100%;height:100%;object-fit:cover;display:block}.preview-example.landscape{width:100%;max-width:100%;aspect-ratio:16/9}.preview-example.square{aspect-ratio:1;max-width:390px;width:88%}.preview-caption{position:absolute;bottom:12px;left:12px;background:#10101699;color:#eee5ef;backdrop-filter:blur(10px);border-radius:5px;padding:6px 9px;font-size:9px;display:flex;align-items:center;gap:5px}.preview-caption svg{width:11px;height:11px}.preview-footer{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-top:1px solid var(--line);font-size:10px;color:#938999;gap:12px}.preview-footer .btn{font-size:10px;min-height:32px;padding:9px 12px}.progress-ring{width:56px;height:56px;border:2px solid #49303f;border-top-color:#ff315b;border-radius:50%;animation:spin .85s linear infinite;margin:0 auto 22px}.progress-track{height:3px;background:#33232d;border-radius:3px;margin-top:23px;overflow:hidden}.progress-track span{display:block;height:100%;width:100%;background:#ff315b;transform-origin:left;animation:progress 2.4s linear both}.workflow-steps{display:flex;align-items:center;gap:13px;margin:0 0 24px;color:#7f7589;font-size:10px}.workflow-steps span{display:flex;align-items:center;gap:7px}.workflow-steps b{font-size:9px;border:1px solid #4c3b51;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;font-weight:600}.workflow-steps .current{color:#eecbd6}.workflow-steps .current b{background:#ff315b;border-color:#ff315b;color:white}.workflow-steps i{width:32px;height:1px;background:#39303e}.studio-tips{margin-top:18px;display:flex;gap:10px;color:#8c8193;padding:14px 5px;font-size:10px}.studio-tips svg{width:16px;color:#a594b0}.mini-presets{margin-top:30px}.mini-presets .preset-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.mini-presets .card-art{aspect-ratio:1.3}.mini-presets h2{font-size:16px}
.profile-header{display:flex;align-items:center;gap:19px;padding:24px;margin-bottom:22px}.profile-avatar{width:71px;height:71px;font-size:24px}.profile-info h2{font-size:22px;letter-spacing:-.5px}.profile-info p{font-size:11px;color:#9d919f;margin-top:5px}.profile-header>.btn{margin-left:auto}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:28px}.stat{padding:20px}.stat-label{font-size:10px;color:#9a8c9e;display:flex;align-items:center;gap:8px}.stat-label svg{width:15px;color:#b9aabb}.stat-value{display:flex;align-items:baseline;gap:9px;font-size:28px;letter-spacing:-1px;font-weight:700;margin-top:8px}.stat-value small{font-size:10px;color:#827287;font-weight:400;letter-spacing:0}.library-tabs{display:flex;align-items:center;gap:25px;border-bottom:1px solid #342b37;margin-bottom:24px}.library-tabs button{font-size:12px;color:#97899b;padding:0 0 13px;border-bottom:2px solid transparent}.library-tabs button.active{color:#fff;border-color:#ff315b}.library-tabs button span{font-size:9px;margin-left:5px;color:#9b8da2}.empty-state{padding:58px 20px;text-align:center;border:1px dashed #3b3041;border-radius:12px}.empty-state>svg{color:#bc8297;width:28px;height:28px}.empty-state h3{font-size:17px;margin-top:17px}.empty-state p{font-size:11px;color:#95839c;margin:8px 0 20px}.creation-card{position:relative}.creation-card .card-art{cursor:pointer}.settings-panel{max-width:630px;padding:26px}.settings-panel h3{font-size:17px;margin-bottom:22px}.settings-panel .btn{margin-top:22px}.settings-panel .field-grid .field{margin-top:0}.balance-hero{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:25px 28px;background:#1f1920;border:1px solid #3b2832;border-radius:12px;margin-bottom:30px}.balance-hero .stat-label{color:#bd9fad}.balance-hero .stat-label svg{color:#ff587b}.balance-number{font-size:35px;font-weight:700;letter-spacing:-1.3px;margin-top:7px}.balance-number span{font-size:12px;font-weight:400;letter-spacing:0;color:#a88c9f;margin-left:7px}.balance-hero-note{display:flex;align-items:center;gap:8px;color:#b49fae;font-size:10px}.balance-hero-note svg{width:16px;color:#ca9cb1}.packages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;margin-top:26px}.package{position:relative;border:1px solid #39323d;border-radius:12px;padding:27px 24px;background:#19171c;display:flex;flex-direction:column}.package.featured{border-color:#f44770;background:#21191f}.package-popular{position:absolute;left:50%;top:0;transform:translate(-50%,-50%);background:#ff315b;color:#fff;padding:6px 15px;border-radius:5px;font-size:9px;font-weight:700;white-space:nowrap}.package-icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid #4a3544;border-radius:10px;background:#2f212c;color:#fd7d9b;margin-bottom:20px}.package h3{font-size:18px;letter-spacing:-.4px}.package>p{font-size:10px;color:#9c8a9f;margin-top:6px}.package-price{font-size:39px;font-weight:700;letter-spacing:-1.5px;margin:23px 0 4px}.package-price span{font-size:11px;color:#937f98;font-weight:400;letter-spacing:0;margin-left:6px}.package-credits{font-size:12px;color:#d7bed4;display:flex;gap:6px;align-items:center}.package-credits svg{width:14px;color:#ff6489}.package ul{margin:23px 0 26px;padding:21px 0 0;list-style:none;border-top:1px solid #3a2d3a;display:grid;gap:13px}.package li{display:flex;align-items:center;gap:8px;font-size:10px;color:#c4afc6}.package li svg{width:14px;color:#af90ad}.package .btn{width:100%;margin-top:auto}.pricing-note{text-align:center;color:#85758e;font-size:10px;margin:22px 0 35px}.pricing-note svg{vertical-align:middle;width:13px;height:13px;margin-right:5px}.faq{max-width:760px;margin:0 auto}.faq h2{font-size:21px;letter-spacing:-.5px;margin-bottom:20px}.faq details{border-bottom:1px solid #352a3a;padding:18px 0}.faq summary{font-size:12px;font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:20px}.faq summary:after{content:'+';font-size:19px;color:#a38eac;line-height:1}.faq details[open] summary:after{content:'−'}.faq details p{color:#a190ab;font-size:11px;margin-top:12px;max-width:630px}.history-table{width:100%;border-collapse:collapse;font-size:11px}.history-table th{font-size:9px;text-align:left;color:#8d7e97;padding:14px;border-bottom:1px solid #392d40;font-weight:500}.history-table td{padding:16px 14px;border-bottom:1px solid #2b2231;color:#c9b7d1}.history-table .positive{color:#90bd9b}.history-table .negative{color:#d698ac}.history-table td:last-child{text-align:right}.history-table th:last-child{text-align:right}.billing-demo-note{padding:12px 15px;background:#251e2b;border:1px solid #403047;border-radius:8px;color:#bda7c9;font-size:10px;margin-top:20px}
dialog{border:1px solid #433447;border-radius:16px;background:#1b171f;color:#fff;padding:0;width:min(540px,calc(100% - 32px));max-height:calc(100% - 48px);overflow:auto;box-shadow:0 30px 120px #0008}dialog[open]{animation:modal-in .25s ease}dialog::backdrop{background:#070509c7;backdrop-filter:blur(7px)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:23px 25px 0;gap:16px}.modal-header h2{font-size:21px;letter-spacing:-.6px}.modal-body{padding:12px 25px 25px}.modal-body>p{font-size:11px;line-height:1.8;color:#a998b4}.modal-body .btn{margin-top:20px}.checkout-summary{margin:23px 0;border:1px solid #453248;border-radius:9px;padding:17px;display:flex;justify-content:space-between;align-items:center}.checkout-summary strong{font-size:15px}.checkout-summary p{font-size:10px;color:#a389ac;margin-top:5px}.checkout-summary>b{font-size:26px}.checkout-assurance{padding:13px;border-radius:8px;background:#2b2030;display:flex;align-items:flex-start;gap:10px;color:#bda5c7;font-size:10px;line-height:1.7}.checkout-assurance svg{width:18px;color:#d291af}.full-width{width:100%}.success-icon{width:62px;height:62px;border:1px solid #605065;background:#302537;color:#e5c6e5;border-radius:50%;display:grid;place-items:center;margin:15px auto}.success-icon svg{width:27px;height:27px}.success-message{text-align:center;padding:13px 0}.success-message h3{font-size:24px;letter-spacing:-.7px;margin-bottom:10px}.success-message p{font-size:12px;color:#b59cc0}.preset-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px}.preset-picker button{text-align:left;min-width:0}.preset-picker img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:7px;transition:filter .2s}.preset-picker button:hover img{filter:brightness(.8)}.preset-picker strong{font-size:10px;margin-top:6px;display:block}.toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translate(-50%,20px);border:1px solid #68516b;background:#2b2230;color:#f4eaf8;padding:13px 20px;border-radius:9px;font-size:12px;z-index:100;opacity:0;visibility:hidden;transition:opacity .2s,transform .2s,visibility .2s;max-width:calc(100vw - 32px);box-shadow:0 8px 35px #0005}.toast.visible{opacity:1;transform:translate(-50%,0);visibility:visible}.help-steps{margin:18px 0;padding-left:19px;color:#c0aac8;font-size:12px;line-height:2}.credits-links a{color:#e9a8c3;text-decoration:underline}.gallery-result{width:100%;max-height:55vh;object-fit:contain;border-radius:8px}.modal-actions{display:flex;justify-content:space-between;gap:12px}.modal-actions .btn{flex:1}.motion-preview{animation:drift 8s ease-in-out infinite alternate}.no-results{grid-column:1/-1;padding:40px;text-align:center;color:#a195a8;font-size:12px}.filter-count{font-size:10px;color:#83768c}.mobile-overlay{display:none}
@keyframes page-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes modal-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes drift{from{transform:scale(1)}to{transform:scale(1.12) translate(-1%,-1%)}}
@media(min-width:1650px){:root{--sidebar:246px}.content{padding:36px 44px}.hero{height:365px}.hero-copy{padding:43px}.hero h1{font-size:56px}.hero-copy>p{font-size:14px}.hero-actions{margin-top:26px}.hero .btn{font-size:13px;padding:14px 20px}.hero-pagination{left:43px}.card-caption h3{font-size:14px}.card-subtitle{font-size:11px}.section-heading h2{font-size:24px}}
@media(max-width:1250px){:root{--sidebar:202px}.sidebar{padding-left:13px;padding-right:13px}.brand{width:157px;margin-left:8px}.brand img{width:157px}.topbar{padding:0 26px}.content{padding:25px 26px}.hero{height:300px}.hero h1{font-size:41px}.hero-copy{padding:33px 29px}.hero-pagination{left:29px}.preset-grid{gap:12px}.card-caption h3{font-size:11px}.card-caption span{font-size:8px}.card-subtitle{font-size:9px}.chips{gap:5px}.chip{padding:7px 9px;font-size:9px}.editor-layout{grid-template-columns:330px minmax(0,1fr)}.editor-panel{padding:19px}.package{padding:24px 18px}.package li{font-size:9px}.nav-item{font-size:12px;padding:12px}.hero-image{object-position:56% center}}
@media(max-width:1050px){:root{--sidebar:184px}.brand{width:145px;margin-left:4px}.brand img{width:145px}.nav-item{gap:10px}.nav-item svg{width:17px}.nav-item .tiny-tag{display:none}.side-note{padding:12px}.topbar{padding:0 23px;height:69px}.content{padding:24px 23px}.hero h1{font-size:36px}.hero-copy{padding:30px 25px}.hero-copy>p{font-size:11px;max-width:290px}.hero{height:290px}.hero-image{object-position:60% center}.hero:after{background:linear-gradient(90deg,#170a1090,transparent 85%)}.preset-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card-caption h3{font-size:12px}.card-subtitle{font-size:10px}.filter-row{align-items:start}.chips{max-width:85%}.preset-controls .search-input{min-width:140px;width:160px}.segmented button{padding:8px 11px}.editor-layout{grid-template-columns:1fr 1fr;gap:16px}.editor-panel{padding:17px}.preview-panel{min-height:615px}.preview-body{padding:15px}.preview-example{width:100%}.preview-footer{padding:12px;flex-wrap:wrap}.packages{gap:13px}.package{padding:24px 14px}.package h3{font-size:16px}.package-price{font-size:34px}.package>p{font-size:9px}.pro-banner{padding:19px}.pro-banner p{font-size:10px}.pro-banner h3{font-size:13px}.mini-presets .preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.balance-hero{padding:22px}.balance-hero-note{max-width:200px;line-height:1.7}}
@media(max-width:800px){:root{--sidebar:0px}.sidebar{transform:translateX(-100%);width:235px;transition:transform .25s ease;z-index:60}.sidebar.open{transform:none}.sidebar .brand{width:170px;margin:0 12px 30px}.sidebar .brand img{width:170px}.sidebar.open+.mobile-overlay{display:block;position:fixed;inset:0;background:#000a;z-index:50;backdrop-filter:blur(5px)}.main-shell{margin:0}.topbar{height:68px;padding:0 22px;position:sticky;top:0;z-index:20;background:#111113ed;backdrop-filter:blur(12px)}.mobile-menu{display:inline-grid}.breadcrumbs{display:none}.mobile-logo{display:block;width:138px;height:35px;overflow:hidden;margin-right:auto}.mobile-logo img{width:138px;height:46px;margin-top:-6px;display:block}.top-actions{gap:12px}.top-actions>.icon-btn,.top-separator,.top-actions>.avatar{display:none}.balance-pill{font-size:11px;gap:5px}.balance-pill .plus{margin-left:3px}.content{padding:23px 22px 85px}.hero{height:320px}.hero h1{font-size:44px}.hero-copy{padding:34px 29px}.hero-copy>p{max-width:320px}.hero-image{object-position:58% center}.hero-pagination{left:29px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#171619f5;backdrop-filter:blur(14px);border-top:1px solid #39323c;z-index:25;padding:8px 15px max(8px,env(safe-area-inset-bottom));justify-content:space-around}.bottom-nav a{display:flex;flex-direction:column;gap:5px;align-items:center;color:#938797;font-size:8px;padding:4px 12px;min-width:55px}.bottom-nav a svg{width:19px;height:19px}.bottom-nav a.active{color:#ff6b8c}.editor-layout{grid-template-columns:340px minmax(0,1fr)}.packages{gap:14px}.package{padding:25px 19px}.toast{left:50%;bottom:85px}.footer{flex-wrap:wrap}.footer-links{margin-left:auto}.mini-presets .preset-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.mini-presets .card-caption h3{font-size:9px}.mini-presets .card-subtitle,.mini-presets .card-caption span{display:none}}
@media(max-width:620px){.content{padding:20px 18px 88px}.topbar{padding:0 14px;gap:7px}.mobile-logo{width:126px}.mobile-logo img{width:126px}.mobile-menu{width:30px}.balance-pill{font-size:10px}.balance-pill>svg{width:12px}.hero{height:365px;border-radius:11px}.hero-image{object-position:63% center;opacity:.62}.hero:after{background:linear-gradient(90deg,#1d0c17a6,transparent),linear-gradient(0deg,#1c0a144d,transparent)}.hero-copy{padding:31px 23px}.hero .eyebrow{font-size:8px;letter-spacing:1.6px}.hero h1{font-size:41px;line-height:1.15;letter-spacing:-1.8px;margin-top:21px}.hero-copy>p{font-size:11px;max-width:250px;margin-top:17px;color:#c8b8c3}.hero-actions{margin-top:25px;gap:8px}.hero .btn{padding:12px 13px;font-size:10px}.hero .btn-ghost{padding-left:8px;padding-right:5px}.hero-pagination{left:23px;bottom:20px}.hero-label{font-size:7px;right:13px;bottom:17px}.section{margin-top:27px}.section-heading{gap:12px;margin-bottom:18px}.section-heading h2{font-size:20px}.section-heading p{font-size:10px;max-width:230px}.text-link{font-size:9px;gap:5px}.preset-controls{flex-wrap:wrap;gap:14px;padding-bottom:14px}.preset-controls .search-input{width:100%;padding:11px 12px}.segmented{width:100%}.segmented button{flex:1;font-size:10px;padding:8px 10px}.filter-row{display:block;margin-bottom:17px}.chips{max-width:100%;gap:6px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{font-size:9px;padding:8px 11px}.sort-control{justify-content:flex-end;margin-top:7px}.preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.card-art{border-radius:9px;aspect-ratio:3/4}.card-caption h3{font-size:11px}.card-caption span{font-size:8px}.card-subtitle{font-size:9px}.favorite{opacity:1;width:25px;height:25px}.card-badge{top:8px;left:8px;font-size:7px}.video-grid .card-art{aspect-ratio:1.15}.pro-banner{align-items:start;flex-wrap:wrap;padding:20px 17px;gap:17px}.pro-banner-copy{gap:13px}.pro-banner p{font-size:10px;max-width:220px}.pro-banner .btn{margin-left:56px;font-size:10px}.footer{font-size:8px;line-height:1.7;gap:13px}.footer-links{margin-left:0}.footer .system-status{margin-left:auto}.footer button{font-size:8px}.page-heading{align-items:start;margin-bottom:25px;gap:12px}.page-heading h1{font-size:28px}.page-heading p{font-size:11px;max-width:265px}.page-heading .demo-label{font-size:8px;padding:5px 7px;margin-top:5px}.page-heading .demo-label svg{display:none}.page-heading .eyebrow{font-size:9px}.editor-layout{display:flex;flex-direction:column;gap:19px}.editor-panel,.preview-panel{width:100%}.editor-panel{padding:20px}.preview-panel{min-height:420px}.preview-body{min-height:345px;padding:20px}.preview-example{width:70%;max-width:300px}.preview-top{height:48px}.preview-footer{padding:13px 17px;flex-wrap:nowrap}.mode-toggle button{font-size:11px;padding:10px}.workflow-steps{font-size:9px;gap:11px;margin-bottom:20px}.workflow-steps i{width:22px}.mini-presets .preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mini-presets .card-art{aspect-ratio:.85}.mini-presets .card-caption h3{font-size:10px}.mini-presets .card-badge{display:none}.mini-presets .favorite{display:none}.profile-header{padding:20px;gap:13px;flex-wrap:wrap}.profile-avatar{width:54px;height:54px;font-size:20px}.profile-info h2{font-size:20px}.profile-info p{font-size:10px}.profile-header>.btn{margin-left:67px;min-height:32px;padding:9px 12px;font-size:10px}.stats{gap:9px}.stat{padding:15px 11px}.stat-label{font-size:8px;gap:5px}.stat-label svg{width:12px}.stat-value{font-size:23px;flex-wrap:wrap;gap:2px}.stat-value small{font-size:8px;flex-basis:100%}.library-tabs{gap:22px}.library-tabs button{font-size:11px}.balance-hero{padding:20px;flex-wrap:wrap;gap:14px}.balance-hero-note{max-width:none;font-size:9px}.balance-number{font-size:33px}.packages{grid-template-columns:1fr;gap:25px;margin-top:31px}.package{padding:25px;display:grid;grid-template-columns:1fr auto;column-gap:20px}.package-icon{grid-column:1;margin-bottom:14px}.package h3{grid-column:1;font-size:20px}.package>p{grid-column:1;font-size:11px}.package-price{grid-column:2;grid-row:1/3;align-self:center;margin:0;font-size:40px}.package-price span{display:block;font-size:10px;text-align:right;letter-spacing:0}.package-credits{grid-column:1/-1;margin-top:14px;font-size:12px}.package ul{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:13px 10px;margin:19px 0 23px;padding-top:18px}.package li{font-size:10px}.package .btn{grid-column:1/-1}.pricing-note{font-size:9px;margin-top:19px}.faq h2{font-size:20px}.faq summary{font-size:11px;line-height:1.6}.faq details p{font-size:10px}.settings-panel{padding:21px}.settings-panel .field-grid{grid-template-columns:1fr}.settings-panel .field-grid .field+.field{margin-top:10px}.history-table{font-size:9px}.history-table th,.history-table td{padding:12px 7px}.history-table th{font-size:8px}.modal-header{padding:19px 20px 0}.modal-header h2{font-size:19px}.modal-body{padding:10px 20px 23px}.modal-actions{flex-wrap:wrap}.preview-caption{font-size:8px}.preset-picker{gap:10px}.preset-picker strong{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.progress-track span{transform:scaleX(.7)}}

/* Consistent field alignment and responsive studio canvas. */
.field-grid{margin-top:22px}.field-grid>.field{margin-top:0}.mode-toggle+.field{margin-top:0}.generate-btn>span{display:inline-flex;align-items:center;gap:3px}.generate-btn>span svg{width:12px;height:12px}.preview-footer>span{display:flex;align-items:center;gap:5px}.preview-footer>span svg{width:13px;height:13px}#presets,.preview-panel{scroll-margin-top:85px}@media(min-width:621px){.editor-layout{align-items:stretch}.editor-layout>div{display:flex;flex-direction:column}.preview-panel{flex:1}.studio-tips{margin-bottom:0;padding-bottom:0}}

@media(max-width:800px){.sidebar{visibility:hidden;transition:transform .25s ease,visibility .25s}.sidebar.open{visibility:visible}}
@media(max-width:620px){.hero{height:390px}.hero-pagination{display:none}.hero-label{bottom:12px}.section-heading>span.text-link{display:none}.balance-hero{display:block}.balance-hero-note{margin-top:17px}.hero-copy>p{max-width:245px}}
@media(max-width:380px){.hero h1{font-size:35px}.hero-copy{padding:30px 20px}.hero-actions{gap:2px}.hero .btn{font-size:9px;padding:12px 10px}.hero{height:370px}.mobile-logo{width:116px}.mobile-logo img{width:116px}.top-actions{gap:5px}.balance-pill{font-size:9px}.balance-pill .plus{width:20px;height:20px}}
@media(max-width:380px){.segmented .count{display:none}.segmented button{font-size:9px;padding:8px 7px;gap:5px}}

/* Image presets: optional, keyboard-accessible pose selection. */
/* Compact image controls, upload references, and collapsible option carousels. */
.prompt-editor{position:relative;background:#1d1c20;border-radius:7px}
.prompt-editor .textarea,.prompt-highlight{font-family:inherit;font-size:11px;font-weight:400;line-height:1.7;letter-spacing:normal;padding:12px;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;tab-size:8}
.prompt-editor .textarea{position:relative;z-index:1;display:block;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:#f4edf6}
.prompt-editor .textarea::placeholder{color:#726e7b;-webkit-text-fill-color:#726e7b}
.prompt-editor .textarea::selection{background:#ff315b45;color:transparent}
.prompt-highlight{position:absolute;inset:0;margin:0;width:100%;height:100%;border:1px solid transparent;border-radius:7px;overflow:hidden;color:#ded9e2;pointer-events:none;user-select:none}
.prompt-reference{color:var(--accent);background:transparent;font:inherit}
.reference-card .reference-link,.reference-card .reference-link.linked{color:var(--accent)}
.editor-select{position:relative;min-width:0}
.select-trigger{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #39343e;border-radius:8px;background:#1d1c20;color:#ded9e2;padding:11px 12px;font-size:11px;line-height:1.7;text-align:left;transition:border-color .18s,background .18s}
.select-trigger>svg{flex-shrink:0;width:14px;height:14px;color:#98899f;transition:transform .18s}
.select-trigger:hover{background:#25202a;border-color:#68516b}
.editor-select.is-open .select-trigger{border-color:var(--accent);background:#29202b}
.editor-select.is-open .select-trigger>svg{transform:rotate(180deg);color:var(--accent)}
.select-menu{position:absolute;z-index:40;top:calc(100% + 6px);left:0;right:0;padding:5px;background:#231e29;border:1px solid #55405b;border-radius:9px;box-shadow:0 12px 26px #0005;max-height:220px;overflow-y:auto}
.select-menu[hidden]{display:none}
.editor-select.opens-up .select-menu{top:auto;bottom:calc(100% + 6px)}
.select-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:6px;min-height:38px;padding:9px 8px;border-radius:5px;font-size:11px;text-align:left;color:#c9bdcf}
.select-option>svg{width:13px;height:13px;flex-shrink:0;opacity:0}
.select-option[aria-selected="true"]{background:#3a2330;color:#ff6486}
.select-option[aria-selected="true"]>svg{opacity:1}
.select-option:hover,.select-option:focus-visible{background:#493043;outline:0;color:#fff}
.select-trigger:disabled{opacity:.5;cursor:default}
.duration-field output{font-size:12px;font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums}
.duration-slider{display:block;width:100%;height:32px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;accent-color:var(--accent)}
.duration-slider::-webkit-slider-runnable-track{height:5px;border-radius:99px;background:linear-gradient(to right,var(--accent) 0 var(--range-progress),#423447 var(--range-progress) 100%)}
.duration-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:19px;height:19px;border-radius:50%;margin-top:-7px;background:var(--accent);border:3px solid #ffb2c3;box-shadow:0 0 0 4px #ff315b12}
.duration-slider::-moz-range-track{height:5px;border-radius:99px;background:#423447}
.duration-slider::-moz-range-progress{height:5px;border-radius:99px;background:var(--accent)}
.duration-slider::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--accent);border:3px solid #ffb2c3}
.duration-slider:focus-visible{outline:2px solid #ff6486;outline-offset:3px;border-radius:5px}
.duration-slider:disabled{opacity:.45;cursor:default}
.duration-limits{display:flex;justify-content:space-between;font-size:9px;color:#8d7f97;font-variant-numeric:tabular-nums}
.editor-layout>div{width:100%;min-width:0}
@media(max-width:800px){.style-picker .choice-controls,.motion-controls [data-action="motion-scroll"]{display:none}.style-picker .style-picker-body{padding-top:3px}}
@media(max-width:380px){.select-trigger{font-size:10px;padding-inline:9px}.select-option{font-size:10px;padding-inline:6px}}

.reference-field{min-width:0}
.reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.reference-card{position:relative;min-width:0;aspect-ratio:3/4;overflow:hidden;border:1px solid #3d3440;border-radius:9px;background:#211d25}
.reference-card>img{display:block;width:100%;height:100%;object-fit:cover}
.reference-remove{position:absolute;top:5px;right:5px;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#151217df;color:#e7e1eb}
.reference-remove svg{width:14px;height:14px}
.reference-remove:hover{background:#4b2130;color:#ff96ae}
.reference-link{position:absolute;bottom:0;left:0;right:0;min-height:32px;padding:7px 4px;display:flex;align-items:center;justify-content:center;gap:4px;background:#17131de8;color:#ece6ef;font-size:9px}
.reference-link svg{width:14px;height:14px;flex-shrink:0}
.reference-link:hover,.reference-link.linked{background:#4b2435;color:#ff91ad}
.reference-add{min-height:0;height:100%;aspect-ratio:3/4;padding:10px 4px;gap:5px}
.reference-add strong{font-size:9px}
.reference-add>svg{width:22px;height:22px}
.reference-dropzone{border-radius:9px;transition:outline-color .18s}
.reference-dropzone.dragging{outline:2px solid var(--accent);outline-offset:3px}
.reference-dropzone.is-loading{opacity:.6;pointer-events:none}
.reference-hint{display:flex;align-items:center;gap:5px;margin-top:9px}
.reference-hint svg{width:12px;height:12px}
.style-pickers{margin-top:22px;border:1px solid #37303c;border-radius:9px;overflow:hidden}
.style-picker+.style-picker{border-top:1px solid #37303c}
.style-picker summary{display:flex;align-items:center;gap:10px;min-height:46px;padding:12px;list-style:none;cursor:pointer;user-select:none}
.style-picker summary::-webkit-details-marker{display:none}
.style-picker summary strong{font-size:11px;font-weight:600}
.style-picker summary>span{margin-left:auto;font-size:10px;color:#a59aaa}
.style-picker summary>svg{width:14px;height:14px;color:#a59aaa;transition:transform .2s}
.style-picker[open] summary>svg{transform:rotate(180deg)}
.style-picker summary:hover{background:#211c25}
.style-picker-body{padding:0 10px 11px}
.choice-controls{display:flex;justify-content:flex-end;gap:4px;margin-bottom:7px}
.choice-controls .icon-btn{width:26px;height:26px;border:1px solid #3c3342;border-radius:5px}
.choice-controls .icon-btn svg{width:13px;height:13px}
.choice-controls .icon-btn:disabled{opacity:.3;cursor:default}
.choice-prev svg{transform:rotate(180deg)}
.choice-track{position:relative;display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding:3px;margin:-3px}
.choice-track::-webkit-scrollbar{display:none}
.choice-track .pose-option{flex:0 0 29%;min-width:84px;scroll-snap-align:start}
.compact-settings{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.compact-settings>.field{min-width:0}
.compact-settings .select{font-size:11px;padding-right:5px}
.image-editor-layout>div{width:100%;min-width:0}.image-editor-layout .textarea{min-height:145px}
.image-editor-layout .preview-panel{min-height:500px}
.image-editor-layout .preview-body{min-height:390px}
.image-editor-layout .preview-placeholder h3{font-size:16px;font-weight:500;color:#afa2b6}
@media(max-width:380px){.reference-grid{gap:6px}.reference-link{font-size:8px;gap:3px}.reference-link svg{width:12px;height:12px}.reference-remove{width:25px;height:25px;top:4px;right:4px}.compact-settings{gap:10px}.compact-settings .select{font-size:10px}}

.pose-picker{border:0;padding:0;min-width:0;margin-inline:0;margin-bottom:0}
.pose-picker legend{width:100%;padding:0;float:left}
.pose-grid{clear:both;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pose-option{position:relative;display:block;min-width:0;cursor:pointer}
.pose-option input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pose-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:91px;padding:10px 4px 9px;background:#1d1b20;border:1px solid #39333e;border-radius:8px;color:#aca1b4;transition:background .18s,border-color .18s,color .18s}
.pose-figure{width:53px;height:53px;stroke-width:2;pointer-events:none;transition:transform .2s;color:inherit}
.pose-figure circle,.pose-figure ellipse{fill:currentColor;fill-opacity:.12}
.pose-prop{opacity:.35;stroke-width:1.5}
.pose-name{font-size:9px;line-height:1.4;font-weight:600;text-align:center;white-space:nowrap}
.pose-check{position:absolute;top:6px;right:6px;width:13px;height:13px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;opacity:0;transform:scale(.7);transition:opacity .18s,transform .18s}
.pose-check svg{width:9px;height:9px;stroke-width:2.5}
.pose-option:hover .pose-card{background:#262029;border-color:#6a4e62;color:#e3d3e7}
.pose-option input:checked+.pose-card{background:#302028;border-color:#bd3e5b;color:#ff92ab}
.pose-option input:checked+.pose-card .pose-check{opacity:1;transform:scale(1)}
.pose-option input:focus-visible+.pose-card{outline:2px solid var(--accent);outline-offset:3px}
.pose-option input:disabled+.pose-card{opacity:.55;cursor:not-allowed}
.pose-description{min-height:29px;line-height:1.6;margin-top:9px}
@media(max-width:380px){.pose-grid{gap:6px}.pose-name{font-size:8px}.pose-card{min-height:85px}.pose-figure{width:48px;height:48px}}

/* Video presets: photo-first workflow with an inline motion carousel. */
.editor-panel{min-width:0}
.motion-picker{min-width:0}
.motion-heading-row{min-height:28px;margin-bottom:10px}
.motion-heading-row>strong{font:inherit}
.motion-controls{display:flex;align-items:center;gap:3px}
.motion-controls .icon-btn{width:28px;height:28px;border:1px solid #353039;border-radius:6px;background:#211e24;color:#b9abbf}
.motion-controls .icon-btn svg{width:13px;height:13px}
.motion-controls .icon-btn:hover{background:#332630;border-color:#6a3c50;color:#ff8aa4}
.motion-controls .icon-btn:disabled{opacity:.3;cursor:default}
.motion-prev svg{transform:rotate(180deg)}
.motion-track{position:relative;display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:3px 2px 8px;margin:0 -2px}
.motion-track::-webkit-scrollbar{display:none}
.motion-option{position:relative;display:block;flex:0 0 45%;min-width:126px;scroll-snap-align:start;cursor:pointer}
.motion-option input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;z-index:2;cursor:pointer}
.motion-card{display:block;border:1px solid #39333e;border-radius:9px;overflow:hidden;background:#211d25;transition:border-color .2s,background .2s}
.motion-art{position:relative;display:block;aspect-ratio:4/5;overflow:hidden;background:#28212a}
.motion-art video,.motion-art img{display:block;width:100%;height:100%;object-fit:cover}
.motion-duration{position:absolute;top:9px;left:8px;background:#17131dcc;border-radius:4px;padding:3px 5px;font-size:8px;color:#fff;font-variant-numeric:tabular-nums}
.motion-check{position:absolute;top:9px;right:8px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:var(--accent);color:#fff;opacity:0;transform:scale(.8);transition:opacity .2s,transform .2s}
.motion-check svg{width:12px;height:12px;stroke-width:2.5}
.motion-caption{display:grid;gap:6px;padding:11px 10px;min-height:65px}
.motion-caption strong{font-size:10px;line-height:1.4;font-weight:600;color:#dbd1e0}
.motion-caption>span{display:flex;align-items:center;gap:4px;color:#a18da9;font-size:9px}
.motion-caption svg{width:11px;height:11px}
.motion-option:hover .motion-card{border-color:#946071;background:#2c232d}
.motion-option input:checked+.motion-card{border-color:var(--accent);background:#34212d}
.motion-option input:checked+.motion-card .motion-check{opacity:1;transform:scale(1)}
.motion-option input:checked+.motion-card .motion-caption strong{color:#ffb4c6}
.motion-option input:focus-visible+.motion-card{outline:2px solid #ff8ba5;outline-offset:2px}
.motion-option input:disabled{cursor:default}
.motion-option input:disabled+.motion-card{opacity:.55}
.motion-picker>.field-hint{margin-top:2px;color:#b79cac}
@media(max-width:620px){.motion-controls .icon-btn{width:32px;height:32px}.motion-option{flex-basis:46%}.motion-caption{padding:10px 9px}}

/* First-visit age confirmation. Blur applies before JavaScript unlocks the app. */
html.age-pending,html.age-pending body{overflow:hidden}
.age-pending #app{filter:blur(10px);opacity:.7;pointer-events:none;user-select:none}
.age-pending>.skip-link,.age-pending .skip-link{visibility:hidden}
.age-gate{width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:31px 38px 28px;margin:auto;border:1px solid #44303c;border-radius:18px;background:#19171c;text-align:center;box-shadow:0 24px 100px #0008}
.age-gate::backdrop{background:#08070b9c}
.age-brand{width:162px;height:37px;overflow:hidden;margin:0 auto 25px}
.age-brand img{display:block;width:162px;height:54px;object-fit:contain;margin-top:-8px}
.age-badge{width:73px;height:73px;display:flex;align-items:center;justify-content:center;margin:0 auto 25px;border-radius:20px;border:1px solid #703244;background:#36202a;color:#ff6485;font-size:31px;font-weight:800;letter-spacing:-1.8px}
.age-badge span{font-size:23px;align-self:flex-start;margin-top:16px;margin-left:2px;letter-spacing:0}
.age-eyebrow{color:#aa8d9c;font-size:9px;font-weight:700;letter-spacing:1.7px;margin-bottom:13px}
.age-gate h2{font-size:28px;line-height:1.25;letter-spacing:-1px;color:#f7f3f7;outline:none}
.age-gate #age-description{margin:14px auto 0;font-size:12px;line-height:1.85;color:#aea2b2;max-width:325px}
.age-actions{display:grid;gap:9px;margin-top:28px}
.age-actions .btn{width:100%;min-height:46px;font-size:12px;border-radius:8px}
.age-actions .btn-primary{justify-content:space-between;padding-inline:19px}
.age-decline{background:#221e25;border:1px solid #3d333f;color:#c3b7c9}
.age-decline:hover{background:#302731;color:#fff;border-color:#66506a}
.age-note{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:21px;color:#8e7f96;font-size:9px;line-height:1.7}
.age-note svg{width:12px;height:12px}
@media(max-width:480px){.age-gate{padding:27px 24px 24px;border-radius:14px}.age-brand{margin-bottom:22px}.age-badge{width:65px;height:65px;font-size:29px;margin-bottom:23px}.age-badge span{margin-top:13px}.age-gate h2{font-size:26px}.age-eyebrow{font-size:8px;letter-spacing:1.35px}.age-gate #age-description{font-size:11px}.age-note{font-size:8px}.age-actions{margin-top:24px}}
@media(max-height:640px){.age-gate{padding-top:18px;padding-bottom:18px}.age-brand{margin-bottom:15px}.age-badge{width:50px;height:50px;border-radius:14px;font-size:24px;margin-bottom:15px}.age-badge span{font-size:17px;margin-top:10px}.age-actions{margin-top:18px}.age-note{margin-top:14px}}

/* Face swap: two inputs and a duration-based estimate. */
.video-mode-toggle{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.video-mode-toggle button{min-width:0;white-space:nowrap;justify-content:center;padding:10px 6px;font-size:10px;gap:5px}
.video-mode-toggle button svg{width:14px;height:14px;flex-shrink:0}
.face-upload-field .field-label>span{font-variant-numeric:tabular-nums}
.face-dropzone{border-radius:10px;transition:box-shadow .2s,background .2s}
.face-dropzone.dragging{box-shadow:0 0 0 2px var(--accent);background:#ff315b0d}
.face-upload-preview{overflow:hidden;background:#121115;border:1px solid #3b333e;border-radius:9px}
.face-upload-preview img,.face-upload-preview video{display:block;width:100%;height:160px;object-fit:contain}
.face-file-info{display:flex;align-items:center;gap:10px;padding:6px 0 3px}
.face-file-info>span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;color:#b6aabf;flex:1}
.face-file-info .icon-btn{width:28px;height:28px;flex-shrink:0}
.face-file-info .icon-btn svg{width:14px;height:14px}
.face-replace{min-height:36px;padding:8px;flex-direction:row;gap:7px}
.face-replace>svg{width:14px;height:14px;margin:0}
.face-replace strong{font-size:10px}
.face-dropzone[aria-busy="true"]{opacity:.65}
.face-estimate{margin-top:24px;padding:16px;border:1px solid #45303b;border-radius:10px;background:#ff315b08}
.face-estimate>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.face-estimate>div>span{font-size:11px;color:#d9cbd9}
.face-estimate strong{display:flex;align-items:center;gap:4px;font-size:20px;font-weight:700;color:#ff7092;font-variant-numeric:tabular-nums;letter-spacing:-.4px}
.face-estimate strong svg{width:16px;height:16px}
.face-estimate small{font-size:10px;letter-spacing:0;font-weight:500}
.face-estimate p{margin-top:6px;font-size:9px;color:#ab96aa;line-height:1.6}
@media(max-width:380px){.video-mode-toggle button{font-size:10px;padding:10px 4px}.video-mode-toggle button svg{display:none}}

/* iOS-inspired navigation: one material, a thin optical rim, and a moving lens. */
.glass-filter-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
@media(max-width:800px){
  .content{padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))}
  .bottom-nav{--selected-index:0;--light-x:50%;--light-y:0%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;left:max(16px,env(safe-area-inset-left,0px));right:max(16px,env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px));width:auto;max-width:480px;height:66px;padding:4px;margin-inline:auto;border:0;border-radius:999px;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 8px 28px #0003,0 1px 5px #0002;isolation:isolate;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
  .glass-material,.glass-rim,.glass-light{position:absolute;inset:0;border-radius:inherit;pointer-events:none}
  .glass-material{z-index:-3;background:linear-gradient(180deg,#ffffff12,#ffffff03 52%,#ffffff0b),#d8dce42e;-webkit-backdrop-filter:blur(10px) saturate(155%) brightness(1.15);backdrop-filter:blur(10px) saturate(155%) brightness(1.15);box-shadow:inset 0 1px 1px #ffffff32,inset 0 -1px 1px #ffffff10}
  .has-refraction .glass-material{backdrop-filter:url(#nav-glass-refraction) blur(4px) saturate(155%) brightness(1.15)}
  .glass-rim{z-index:2;padding:1px;background:linear-gradient(145deg,#ffffff9e 0%,#ffffff26 18%,#ffffff08 43%,#ffffff45 75%,#ffffff80 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;opacity:.8}
  .glass-light{z-index:-1;background:radial-gradient(ellipse 150px 90px at var(--light-x) var(--light-y),#ffffff29,transparent 75%);opacity:0;transition:opacity .3s}
  .glass-track{position:absolute;inset:4px;pointer-events:none;z-index:0}
  .glass-lens{position:absolute;inset:0 auto 0 0;width:20%;border-radius:999px;transform:translateX(calc(var(--selected-index)*100%));background:linear-gradient(180deg,#ffffff21,#ffffff12);box-shadow:inset 0 1px 1px #ffffff28,inset 0 0 0 .5px #ffffff16,0 1px 4px #0000000a;opacity:1}
  .glass-ready .glass-lens{transition:transform .48s cubic-bezier(.2,.85,.2,1.12),background .22s,box-shadow .22s,opacity .2s}
  .bottom-nav.no-selection .glass-lens{opacity:0}
  .bottom-nav a{position:relative;z-index:1;min-width:0;min-height:56px;padding:5px 1px 4px;border-radius:999px;gap:3px;justify-content:center;color:#f4f4f6;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif;font-size:10px;font-weight:600;line-height:1.15;letter-spacing:.02px;background:transparent;box-shadow:none;transition:color .18s,transform .3s cubic-bezier(.2,.8,.2,1);text-shadow:0 1px 4px #0002}
  .bottom-nav a svg{width:23px;height:23px;stroke-width:1.9;transition:transform .32s cubic-bezier(.2,.8,.2,1)}
  .bottom-nav a.active{color:#ff496f;background:transparent;box-shadow:none;text-shadow:none}
  .bottom-nav a.active svg{stroke-width:2.2}
  .bottom-nav a:active{transform:scale(1.06);background:transparent}
  .bottom-nav a:focus-visible{outline:2px solid #ff7797;outline-offset:-3px}
  .bottom-nav.is-pressed .glass-light{opacity:1}
  .bottom-nav.is-pressed .glass-lens{background:linear-gradient(180deg,#ffffff36,#ffffff1c);box-shadow:inset 0 1px 1px #ffffff65,inset 0 0 0 1px #ffffff30,0 2px 8px #0001}
  .bottom-nav.is-dragging .glass-lens{transition:none;scale:1.06 1.08}
  .bottom-nav.is-settling .glass-lens{animation:glass-settle .46s cubic-bezier(.2,.8,.2,1)}
  .toast{bottom:calc(100px + env(safe-area-inset-bottom,0px))}
}
@keyframes glass-settle{0%{scale:1.08 .94}52%{scale:.98 1.035}100%{scale:1}}
@media(max-width:360px){.bottom-nav{left:12px;right:12px;height:64px}.bottom-nav a{font-size:9px;min-height:54px}.bottom-nav a svg{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){.glass-ready .glass-lens,.glass-light,.bottom-nav a,.bottom-nav a svg{transition:none}.bottom-nav.is-settling .glass-lens{animation:none}.bottom-nav.is-dragging .glass-lens,.bottom-nav a:active{scale:1;transform:none}.bottom-nav.is-dragging .glass-lens{transform:translateX(calc(var(--selected-index)*100%))}}
@media(prefers-reduced-transparency:reduce){.glass-material,.has-refraction .glass-material{background:#343437;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media(prefers-contrast:more){.glass-material{background:#202023}.glass-rim{opacity:1;background:#ffffffb3}.bottom-nav a{color:#fff}.bottom-nav a.active{color:#ff8da7}.glass-lens{background:#ffffff29}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.glass-material{background:#343437}}

@media(max-width:800px){
  .bottom-nav.glass-on-light a{color:#202024;text-shadow:0 1px 2px #ffffff24}
  .bottom-nav.glass-on-light a.active{color:#cc123c;text-shadow:none}
  .bottom-nav.glass-on-light .glass-material{background:linear-gradient(180deg,#ffffff1c,#ffffff08)}
  .bottom-nav.glass-on-light .glass-lens{background:#ffffff2e;box-shadow:inset 0 1px 1px #ffffff66,inset 0 0 0 .5px #ffffff38}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.bottom-nav.glass-on-light a{color:#fff;text-shadow:none}.bottom-nav.glass-on-light a.active{color:#ff8da7}.bottom-nav.glass-on-light .glass-material{background:#343437}}

@media(max-width:800px){.bottom-nav a.glass-label-dark{color:#202024;text-shadow:0 1px 2px #ffffff24}.bottom-nav a.glass-label-dark.active{color:#c90e36;text-shadow:none}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.bottom-nav a.glass-label-dark{color:#fff}.bottom-nav a.glass-label-dark.active{color:#ff8da7}}

/* Credits: a compact, single-choice top-up flow with an explicit total. */
.credits-page{width:100%;max-width:600px;margin:0 auto}
.credits-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.credits-heading h1{font-size:29px;letter-spacing:-1.15px;line-height:1.25}
.credits-heading p{margin-top:7px;font-size:12px;color:#a49ba9}
.credits-heading-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:13px;background:#ff315b12;color:#ff597d;border:1px solid #ff315b2b}
.credits-heading-icon svg{width:23px;height:23px}
.credit-current-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;margin-bottom:23px;border-radius:11px;background:#1c1b1f;border:1px solid #302c35}
.credit-current-balance>span{display:flex;align-items:center;gap:9px;color:#a49caa;font-size:12px}
.credit-current-balance svg{width:16px;height:16px;color:#b2a7b9}
.credit-current-balance>strong{font-size:21px;font-weight:700;letter-spacing:-.4px;font-variant-numeric:tabular-nums}
.credit-current-balance>strong>span{font-size:11px;font-weight:500;color:#a79cac;letter-spacing:0;margin-left:3px}
.credit-options{border:0;margin:0;padding:0;min-width:0}
.credit-options legend{float:left;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;padding:0;font-size:13px;font-weight:700}
.credit-options legend>span{font-size:10px;font-weight:400;color:#928795}
.credit-pack-list{clear:both;display:grid;gap:10px}
.credit-pack{display:block;position:relative;cursor:pointer}
.credit-pack>input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;z-index:1;cursor:pointer}
.credit-pack-card{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:13px;align-items:center;padding:16px 18px;min-height:87px;border:1px solid #3b343e;border-radius:12px;background:#1b191e;transition:background .2s,border-color .2s,box-shadow .2s}
.credit-radio{display:grid;place-items:center;width:19px;height:19px;border:1.5px solid #66576d;border-radius:50%;color:white;transition:background .2s,border-color .2s}
.credit-radio svg{width:12px;height:12px;stroke-width:3;opacity:0}
.credit-pack-amount{display:grid;gap:6px;min-width:0}
.credit-pack-amount>strong{font-size:23px;line-height:1;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.credit-pack-amount small{font-size:12px;font-weight:500;letter-spacing:0;color:#d1c7d7}
.credit-pack-amount>span{font-size:10px;color:#9c8da5;line-height:1.3}
.credit-pack-price{display:grid;justify-items:end;gap:7px}
.credit-pack-price>strong{font-size:22px;letter-spacing:-.6px;line-height:1;font-variant-numeric:tabular-nums}
.credit-badge{display:inline-block;border-radius:4px;padding:4px 6px;background:#ff315b17;color:#ff86a1;font-size:9px;font-weight:600;line-height:1;white-space:nowrap}
.credit-badge.value{background:#afd1b511;color:#b7ceb5}
.credit-starter{font-size:9px;color:#94859d;line-height:1}
.credit-pack:hover .credit-pack-card{border-color:#826374;background:#211c23}
.credit-pack input:checked+.credit-pack-card{border-color:#ff315b;background:#2b1b24;box-shadow:0 0 0 1px #ff315b19}
.credit-pack input:checked+.credit-pack-card .credit-radio{background:var(--accent);border-color:var(--accent)}
.credit-pack input:checked+.credit-pack-card .credit-radio svg{opacity:1}
.credit-pack input:focus-visible+.credit-pack-card{outline:2px solid #ff93ad;outline-offset:3px}
.credit-assurances{display:flex;align-items:center;justify-content:center;gap:20px;margin:15px 0 21px;color:#ada1b2;font-size:10px}
.credit-assurances>span{display:flex;align-items:center;gap:5px}
.credit-assurances svg{width:12px;height:12px;color:#b4c7ae}
.credit-use{display:flex;gap:11px;align-items:center;padding:15px 0;border-top:1px solid #302a35}
.credit-use-icon{width:33px;height:33px;display:grid;place-items:center;flex-shrink:0;border-radius:10px;background:#ff315b0f;color:#f48ba6}
.credit-use-icon svg{width:17px;height:17px}
.credit-use strong{font-size:12px;font-weight:600;color:#e8dfe9;line-height:1.5}
.credit-use strong>span{color:#97839f;font-weight:400;margin:0 3px}
.credit-use p{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:10px;color:#9f91a8}
.credit-info{display:inline-grid;place-items:center;width:24px;height:24px;margin:-5px 0;flex-shrink:0;color:#ac9bb5;border-radius:50%}
.credit-info svg{width:13px;height:13px}
.credit-info:hover{color:#fff;background:#ffffff0c}
.credit-checkout{padding-top:3px}
.credit-value-note{display:flex;justify-content:center;align-items:center;gap:5px;margin-bottom:10px;font-size:10px;font-weight:500;color:#d3b8c6}
.credit-value-note svg{width:12px;height:12px;color:#ff809d}
.credit-buy{display:flex;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:15px 18px;border-radius:10px;font-size:13px;box-shadow:0 5px 24px #ff315b17}
.credit-buy>strong{display:flex;align-items:center;gap:13px;font-size:14px}
.credit-buy>strong>svg{width:17px;height:17px}
.credit-balance-after{text-align:center;font-size:10px;color:#a495ad;margin-top:11px}
.credit-balance-after strong{color:#cdbed4;font-weight:500}
.credit-demo-note{text-align:center;font-size:9px;color:#8b7e95;margin-top:6px}
.credit-details{margin-top:23px;border-top:1px solid #302a35}
.credit-details>details{border-bottom:1px solid #302a35}
.credit-details summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;font-size:11px;font-weight:500;color:#b6a7bf;cursor:pointer;list-style:none}
.credit-details summary::-webkit-details-marker{display:none}
.credit-details summary>span{display:flex;align-items:center;gap:10px;font-size:10px;color:#8e8097}
.credit-details summary svg{width:14px;height:14px;transition:transform .2s}
.credit-details details[open] summary svg{transform:rotate(45deg)}
.credit-details details>p{font-size:11px;color:#a191ad;line-height:1.8;margin:0 0 13px;max-width:550px}
.credit-history-list{list-style:none;padding:0 0 5px;margin:0}
.credit-history-list li{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-top:1px solid #28232c}
.credit-history-list li>span{display:grid;gap:5px;min-width:0}
.credit-history-list strong{font-size:10px;font-weight:500;color:#c5b7ce;line-height:1.5}
.credit-history-list time{font-size:9px;color:#8e7d99}
.credit-history-list b{font-size:12px;font-weight:600;white-space:nowrap}
.credit-history-list .positive{color:#aac69f}.credit-history-list .negative{color:#cda0b2}
.content:has(.credits-page)>.footer{max-width:600px;margin-inline:auto;font-size:8px}
.topup-review{padding-top:9px}
.topup-item{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:19px 0;border-bottom:1px solid #3c3042}
.topup-item>span{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:700;letter-spacing:-.5px}
.topup-item svg{width:20px;color:var(--accent)}
.topup-item>strong{font-size:25px;letter-spacing:-.6px}
.topup-item small{font-size:10px;color:#a38fac;font-weight:400;letter-spacing:0}
.topup-balance{display:grid;grid-template-columns:1fr auto;gap:12px;padding:19px 0;font-size:11px}
.topup-balance>span{color:#aa97b4}
.topup-balance>b{font-weight:500;color:#c7b8cf;text-align:right}
.topup-balance>strong{text-align:right;color:#f3deed;font-size:12px}
.topup-terms{font-size:10px;line-height:1.6;color:#a38baa;padding-bottom:19px}
.topup-demo{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #403146;border-radius:8px;background:#241d28}
.topup-demo>svg{width:16px;height:16px;flex-shrink:0;color:#b19bbc;margin-top:2px}
.topup-demo p{font-size:10px;line-height:1.6;color:#a58eaf}
.topup-demo strong{display:block;font-weight:600;color:#d8c2e2;margin-bottom:2px}
.topup-review>.btn,.topup-success>.btn{min-height:47px;font-size:12px;justify-content:space-between}
.topup-change{display:block;margin:14px auto 0;font-size:11px;color:#bc9ecb;text-decoration:underline;text-underline-offset:3px;padding:4px 10px}
.topup-success{text-align:center;padding:6px 0}
.topup-success-icon{display:grid;place-items:center;width:52px;height:52px;margin:13px auto 20px;border-radius:50%;background:#ff315b13;border:1px solid #ff315b55;color:#ff7d9a}
.topup-success-icon svg{width:25px;height:25px}
.topup-success h3{font-size:23px;letter-spacing:-.7px}
.topup-success>p{font-size:12px;color:#b09cba;margin-top:8px}
.topup-success-balance{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:21px;font-size:11px;color:#a68bae}
.topup-success-balance svg{width:18px;color:var(--accent)}
.topup-success-balance strong{font-size:26px;color:white;letter-spacing:-.8px}
.topup-success>.credit-demo-note{font-size:9px;margin-top:17px;color:#8b7e95}
@media(max-width:620px){.credits-heading{margin-bottom:17px}.credits-heading h1{font-size:26px;letter-spacing:-1px}.credits-heading p{font-size:11px}.credits-heading-icon{display:none}.credit-current-balance{padding:12px 14px;margin-bottom:20px}.credit-pack-card{padding:14px;gap:12px;min-height:82px}.credit-pack-amount>strong{font-size:22px}.credit-pack-price>strong{font-size:21px}.credit-assurances{margin:14px 0 17px}.credit-use{padding:13px 0}.credit-details{margin-top:20px}}
@media(max-width:360px){.credit-pack-card{padding:13px 11px;gap:10px;grid-template-columns:18px minmax(0,1fr) auto}.credit-pack-amount>span{font-size:9px}.credit-pack-amount small{font-size:11px}.credit-badge{font-size:8px;padding:4px 5px}.credit-starter{font-size:8px}.credit-pack-amount>strong{font-size:21px}.credit-use strong{font-size:11px}.credit-use-icon{width:28px;height:28px}.credit-use{gap:8px}.credit-use p{font-size:9px}.credit-assurances{gap:13px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.credit-pack-card,.credit-radio,.credit-details summary svg{transition:none}}
@media(max-width:620px) and (max-height:740px){
  .credits-page{padding-bottom:62px}
  .credit-buy{position:fixed;z-index:24;left:18px;right:18px;bottom:calc(90px + env(safe-area-inset-bottom,0px));width:calc(100% - 36px);min-height:49px;box-shadow:0 0 0 6px #111113e8,0 -8px 26px #111113cc}
  .credit-checkout{padding-top:6px}
  .credit-value-note{margin-bottom:4px}
}
@media(max-width:620px) and (max-height:740px){.credit-pack-card{min-height:74px;padding-block:11px}.credit-current-balance{margin-bottom:16px}.credit-assurances{margin-block:12px}.credits-heading{margin-bottom:15px}}
/* Keep the compact checkout dock anchored to the viewport, outside transforms. */
.content:has(.credits-page){transform:none;animation:credits-enter .24s ease both}
@keyframes credits-enter{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.content:has(.credits-page){animation:none}}
/* Compact personal library, using the same scale and surfaces as Credits. */
.profile-page{max-width:760px;margin:0 auto;padding:2px 0 16px}
.profile-heading{margin-bottom:20px}
.profile-heading h1{font-size:29px;line-height:1.25;letter-spacing:-1px;font-weight:700}
.profile-heading p{font-size:12px;color:#a49aaa;margin-top:7px}
.profile-account{border:1px solid #302c35;background:#1c1b1f;border-radius:12px;margin-bottom:23px;overflow:hidden}
.profile-identity{display:flex;align-items:center;gap:12px;padding:16px}
.profile-identity>.avatar{width:39px;height:39px;font-size:12px;flex-shrink:0;background:#3c2832;color:#f9b3c5}
.profile-identity>div{flex:1;min-width:0}
.profile-identity h2{font-size:14px;font-weight:650;letter-spacing:-.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-identity p{font-size:11px;line-height:1.4;color:#9f92a7;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-identity>.icon-btn{width:36px;height:36px;color:#baabbf;border:1px solid #3d343f;border-radius:8px;flex-shrink:0}
.profile-identity>.icon-btn svg{width:15px;height:15px}
.profile-balance{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-top:1px solid #302c35;font-size:11px;transition:background .2s}
.profile-balance:hover{background:#ffffff04}
.profile-balance>span{display:flex;align-items:center;gap:5px;color:#9e91a7}
.profile-balance strong{font-size:14px;letter-spacing:-.3px;color:#ede4ef;font-weight:650}
.profile-balance>span:last-child{color:#ff86a1;font-weight:600;gap:8px}
.profile-balance svg{width:14px;height:14px;color:#f18da6}
.profile-balance>span:first-child>svg{margin-right:3px}
.profile-library-tabs{display:flex;gap:22px;border-bottom:1px solid #302a35;margin-bottom:18px}
.profile-library-tabs>button{display:flex;align-items:center;gap:7px;position:relative;min-height:42px;padding:0 0 13px;font-size:12px;font-weight:600;color:#96879f;transition:color .2s}
.profile-library-tabs>button.active{color:#f5ebf8}
.profile-library-tabs>button.active:after{content:'';position:absolute;bottom:-1px;height:2px;background:var(--accent);left:0;right:0;border-radius:2px}
.profile-library-tabs>button>span{display:inline-grid;place-items:center;min-width:20px;padding:3px 5px;border-radius:5px;background:#242027;color:#a795b1;font-size:9px;font-variant-numeric:tabular-nums}
.profile-library-tabs>button.active>span{background:#ff315b16;color:#ff93ae}
.creation-grid,.profile-library>.preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.creation-tile{min-width:0}
.creation-art{display:block;position:relative;width:100%;aspect-ratio:4/5;border-radius:10px;overflow:hidden;background:#201b24;text-align:left}
.creation-art>img{width:100%;height:100%;object-fit:cover;transition:transform .4s cubic-bezier(.2,.7,.3,1)}
.creation-art:hover>img{transform:scale(1.035)}
.creation-type{position:absolute;top:9px;left:9px;display:flex;align-items:center;gap:4px;background:#111113b8;border:1px solid #ffffff1a;backdrop-filter:blur(12px);border-radius:5px;padding:5px 6px;color:#f4edf8;font-size:8px;font-weight:500}
.creation-type svg{width:11px;height:11px}
.creation-art .play-circle{width:38px;height:38px}
.creation-art .play-circle svg{width:17px;height:17px}
.creation-info{display:flex;gap:6px;align-items:center;justify-content:space-between;margin:11px 0 9px}
.creation-info h3{font-size:11px;font-weight:600;color:#dbd0e0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.creation-info time{flex-shrink:0;font-size:9px;color:#9b89a6}
.recreate-button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:36px;border-radius:7px;border:1px solid #47333f;background:#2a1e26;color:#ff9ab2;font-size:10px;font-weight:600;transition:background .2s,border-color .2s}
.recreate-button:hover{background:#3b2230;border-color:#b3546e}
.recreate-button>svg{width:13px;height:13px}
.recreate-button>svg:last-child{margin-left:auto;color:#c68599}
.recreate-button>svg:first-child{margin-right:auto}
.profile-empty{text-align:center;padding:38px 18px;border:1px dashed #3b303f;border-radius:12px;background:#1b171d}
.profile-empty>svg{width:28px;height:28px;color:#b18ca7;margin:0 auto 15px}
.profile-empty h3{font-size:16px;font-weight:650;letter-spacing:-.3px}
.profile-empty p{font-size:11px;color:#9e8ba9;line-height:1.7;max-width:250px;margin:8px auto 20px}
.profile-empty .btn{font-size:11px;padding:12px 15px}
.compact-profile-form{padding-top:8px}
.compact-profile-form>.field{margin-bottom:17px}
.compact-profile-form>.field-hint{font-size:10px;margin:2px 0 20px}
.compact-profile-form>.btn{justify-content:space-between;min-height:46px;font-size:12px}
.creation-detail .gallery-result{max-height:43vh;object-fit:contain;margin:0 auto 12px;background:#141116;border-radius:9px}
.creation-specs{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#b09bbb;line-height:1.7;margin:10px 0 17px}
.creation-specs>span{font-size:9px;color:#8e7b99}
.creation-detail-actions{display:flex;gap:8px}
.creation-detail-actions>.btn{min-height:43px;padding:11px 13px;font-size:12px}
.creation-detail-actions>.btn:first-child{flex:1}
.creation-detail-actions>.icon-btn{width:40px;height:43px;color:#9d859e;flex-shrink:0}
.creation-detail-actions svg{width:16px;height:16px}
.creation-settings{border-top:1px solid #3c3042;margin-top:18px}
.creation-settings summary{display:flex;align-items:center;justify-content:space-between;padding:14px 0 2px;list-style:none;cursor:pointer;font-size:11px;color:#b5a0bf}
.creation-settings summary::-webkit-details-marker{display:none}
.creation-settings summary svg{width:14px;height:14px;transition:transform .2s}
.creation-settings[open] summary svg{transform:rotate(180deg)}
.creation-settings dl{display:grid;gap:9px;font-size:11px;margin:16px 0}
.creation-settings dl>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.creation-settings dt{color:#98819f}.creation-settings dd{margin:0;color:#cdb8d8}
.creation-prompt{font-size:11px;line-height:1.8;color:#b6a0c2;white-space:pre-wrap;overflow-wrap:anywhere}
.creation-settings .field-hint{overflow-wrap:anywhere}
.preview-footer:has(.result-actions){flex-wrap:wrap;gap:12px}
.result-actions{display:flex;align-items:center;gap:5px;margin-left:auto}
.result-actions>.btn{font-size:11px;padding:10px 12px;white-space:nowrap}
.result-actions>.icon-btn{width:36px;height:36px}
.reference-missing{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;height:100%;padding:26px 9px 35px;cursor:pointer;background:#2c2029;color:#ff9cb3}
.reference-missing>svg{width:23px;height:23px}
.reference-missing>strong{font-size:11px}
.reference-missing>span{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b590a8}
.reference-missing>input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}
.missing-upload-note{font-size:11px;line-height:1.6;margin-top:8px;color:#ff9cb3;overflow-wrap:anywhere}
.content:has(.profile-page)>.footer{max-width:760px;margin-inline:auto;font-size:8px}
@media(max-width:620px){.profile-heading{margin-bottom:17px}.profile-heading h1{font-size:26px}.profile-heading p{font-size:11px}.profile-account{margin-bottom:18px}.profile-identity{padding:13px;gap:10px}.profile-balance{padding:11px 13px}.creation-grid,.profile-library>.preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.creation-info{flex-wrap:wrap;gap:4px;margin-top:9px}.creation-info h3{width:100%;font-size:11px}.recreate-button{height:38px}.creation-type{left:7px;top:7px;font-size:8px}.profile-library-tabs{margin-bottom:15px;gap:20px}.creation-specs{flex-wrap:wrap}.profile-empty{padding:32px 15px}}
@media(max-width:360px){.profile-identity h2{font-size:12px}.profile-identity p{font-size:10px}.creation-type svg{display:none}.creation-type{font-size:7px}.creation-grid{gap:16px 10px}.recreate-button{font-size:9px}.profile-identity>.avatar{width:34px;height:34px}.profile-library-tabs>button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.creation-art>img,.recreate-button,.profile-library-tabs>button,.profile-balance,.creation-settings summary svg{transition:none}}
/* My files and the shared photo/video chooser. */
.profile-library-tabs{gap:20px}.profile-library-tabs>button{white-space:nowrap}
.files-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 17px}
.files-filters{display:flex;gap:3px;background:#201c24;padding:3px;border-radius:8px}
.files-filters>button{padding:7px 10px;border-radius:5px;font-size:10px;color:#a392ad;transition:background .2s,color .2s}
.files-filters>button.active{background:#3b2b36;color:#ffe4ed}
.files-add.btn{padding:9px 12px;font-size:10px;gap:6px;min-height:34px;border-radius:8px}
.files-add svg{width:13px;height:13px}
.files-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 14px}
.file-tile{min-width:0}.file-art{position:relative;display:block;width:100%;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#251e2a}
.file-art>img,.file-art>video,.file-choice-art>img,.file-choice-art>video{width:100%;height:100%;object-fit:cover}
.file-video-mark{display:flex;align-items:center;gap:4px;position:absolute;left:8px;bottom:8px;padding:5px 6px;border:1px solid #ffffff20;background:#17131dcc;backdrop-filter:blur(8px);border-radius:5px;font-size:9px;color:#faf1ff}
.file-video-mark>svg{width:12px;height:12px}
.file-caption{display:flex;gap:7px;align-items:center;margin-top:9px}
.file-caption>div{min-width:0;flex:1}.file-caption strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d5c5de;font-size:11px;font-weight:600}
.file-caption span{display:block;margin-top:5px;font-size:9px;color:#a28bae}
.file-caption .icon-btn{flex-shrink:0;width:31px;height:34px;color:#a1839d}.file-caption .icon-btn:hover{color:#ff8eaa;background:#3b2531}.file-caption .icon-btn svg{width:14px;height:14px}
.files-private{display:flex;justify-content:center;align-items:center;gap:5px;font-size:9px;color:#96819f;margin-top:25px}.files-private svg{width:12px;height:12px}
.files-state{font-size:12px;color:#a790b1;text-align:center;padding:35px 0}
.files-error{padding:20px 10px;text-align:center}.files-error p{color:#c2a4ca;font-size:12px;line-height:1.7;margin-bottom:15px}.files-error .btn{font-size:11px}
#modal.file-dialog{max-width:580px;width:calc(100% - 32px)}
.file-dialog .modal-body{padding-top:4px}.file-picker{display:flex;flex-direction:column;min-height:0}
.file-upload-choice{display:flex;align-items:center;gap:12px;border:1px dashed #765268;border-radius:10px;background:#30232d;padding:16px 14px;position:relative;cursor:pointer;transition:background .2s,border-color .2s}
.file-upload-choice:hover{background:#3a2934;border-color:#c27391}.file-upload-choice>svg{width:20px;height:20px;color:#ff93af;flex-shrink:0}.file-upload-choice>svg:last-of-type{width:15px;height:15px;margin-left:auto}
.file-upload-choice>span{display:grid;gap:5px}.file-upload-choice strong{font-size:12px;color:#f4dfea;font-weight:600}.file-upload-choice small{font-size:9px;color:#b092b8;line-height:1.5}
.file-upload-choice>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-upload-choice:focus-within{outline:2px solid #ff93ad;outline-offset:3px}.file-upload-choice.is-busy{opacity:.7;cursor:wait}
.file-upload-progress{min-height:15px;font-size:9px;line-height:1.6;margin:8px 0 19px;color:#9d83a9}
.files-inline-error{font-size:11px;line-height:1.7;color:#ff9eb4;margin:0 0 16px}
.picker-section-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:13px;color:#ddc8e8}.picker-section-label>span{font-size:9px;color:#9c81aa}
.file-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 12px;max-height:44vh;overflow:auto;padding:3px 3px 8px;overscroll-behavior:contain}
.file-choice{min-width:0;text-align:left;align-self:start}.file-choice-art{position:relative;display:block;aspect-ratio:1;overflow:hidden;border-radius:9px;border:2px solid transparent;background:#281d2e;transition:border-color .2s}
.file-choice.selected .file-choice-art{border-color:var(--accent)}.file-choice:hover .file-choice-art{border-color:#b55f84}.file-choice:disabled{opacity:.4;cursor:default}
.file-choice>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:500;color:#d8c0e3;margin-top:7px}.file-choice>small{display:block;font-size:9px;color:#a182b0;margin-top:4px}
.file-selected-mark{position:absolute;top:7px;right:7px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid #ffffff77;background:#15111766}.file-selected-mark svg{width:12px;height:12px;opacity:0}.selected .file-selected-mark{background:var(--accent);border-color:var(--accent)}.selected .file-selected-mark svg{opacity:1;color:#fff}
.file-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:17px;padding-top:15px;border-top:1px solid #49334f;background:inherit}.file-picker-footer>span{font-size:10px;color:#a88cb4}.file-picker-footer>.btn{font-size:12px;min-height:42px;padding:10px 16px}.file-picker-footer .btn:disabled{opacity:.35;cursor:not-allowed}
.picker-empty{text-align:center;padding:28px 10px 24px;border:1px dashed #49334f;border-radius:9px}.picker-empty>svg{width:25px;height:25px;color:#a27bad;margin:0 auto 12px}.picker-empty p{font-size:12px;color:#c8afcf}.picker-empty span{font-size:10px;color:#9d80aa;display:block;margin-top:7px}
.saved-file-preview{border-radius:10px;overflow:hidden;background:#16101b;text-align:center}.saved-file-preview>img,.saved-file-preview>video{display:block;max-width:100%;width:100%;max-height:55vh;object-fit:contain}.file-preview-meta{font-size:10px;color:#aa8cb5;margin:13px 0 18px;line-height:1.6}
.file-delete-name{font-size:13px;color:#ead3ed;overflow-wrap:anywhere}.file-delete-note{font-size:12px;line-height:1.8;color:#ac8fb5;margin-top:13px}
button.upload-area{width:100%;font-family:inherit;cursor:pointer}.reference-missing{border:0;text-align:center}
@media(max-width:620px){.files-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.profile-library-tabs{gap:17px}.profile-library-tabs>button{font-size:11px;gap:5px}.file-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:42vh}.file-upload-choice{padding:14px 11px;gap:10px}.file-upload-choice strong{font-size:11px}.file-upload-choice small{font-size:8px}.file-dialog .modal-body{padding-inline:18px}.files-filters>button{padding:7px 8px}}
@media(max-width:360px){.profile-library-tabs{gap:12px}.profile-library-tabs>button{font-size:10px;gap:4px}.profile-library-tabs>button>span{font-size:8px;min-width:16px;padding:3px 4px}.files-add.btn{padding-inline:9px;font-size:9px}.files-filters>button{font-size:9px;padding:7px}.file-choice-grid{gap:13px 9px}}
@media(prefers-reduced-motion:reduce){.files-filters>button,.file-upload-choice,.file-choice-art{transition:none}}
/* A compact preset gallery with both filter rows anchored while browsing. */
.content:has(.discover-page){transform:none;animation:credits-enter .24s ease both;padding-top:12px}
.discover-page{min-width:0;scroll-margin-top:80px}
.discover-filters{position:sticky;top:0;z-index:19;margin:0 -16px 14px;padding:7px 16px 8px;background:#111113f5;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid #302a35}
.discover-types{display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;overflow-x:auto;scrollbar-width:none;padding:3px;border:1px solid #302a35;border-radius:9px;background:#1b191e}
.discover-types::-webkit-scrollbar,.discover-styles::-webkit-scrollbar{display:none}
.discover-types>button,.discover-types>a{display:flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:31px;padding:6px 13px;border-radius:6px;color:#9f93a7;font-size:11px;font-weight:600;white-space:nowrap}
.discover-types svg{width:14px;height:14px}
.discover-types>button.active{background:#38232d;color:#ff8da8}
.discover-types>button:hover,.discover-types>a:hover{color:#ffe7ed;background:#2b232b}
.discover-types>button.active:hover{background:#422936}
.discover-types>:focus-visible{outline-offset:-2px}
.discover-styles{display:flex;align-items:center;gap:6px;margin-top:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0;white-space:nowrap}
.discover-styles>button{flex-shrink:0;padding:6px 10px;min-height:27px;border-radius:5px;font-size:10px;color:#9e8fa8;border:1px solid transparent;line-height:1.3}
.discover-styles>button:hover{color:#e7d7ee;background:#211c25}
.discover-styles>button.active{color:#f2e5f7;background:#2a232e;border-color:#443549}
.discover-styles>:focus-visible{outline-offset:-2px}
.discover-grid{row-gap:17px}
.discover-grid .card-art{aspect-ratio:1}
.discover-grid .card-subtitle{display:none}
.discover-grid .card-caption{align-items:flex-start;margin-top:7px}
.discover-grid .card-caption h3{line-height:1.5}
.discover-grid .card-caption>span{padding-top:3px}
.discover-empty{padding:30px 20px;text-align:center;border:1px dashed #3c303f;border-radius:10px;color:#ad97b7;font-size:12px}
.discover-empty>.text-link{margin-top:12px;color:#ff8da8}
@media(max-width:800px){.discover-filters{top:68px}}
@media(max-width:620px){
  .content:has(.discover-page){padding-top:7px}
  .discover-filters{margin-inline:-18px;padding:6px 18px 7px;margin-bottom:12px}
  .discover-types{width:100%;gap:2px;padding:3px}
  .discover-types>button,.discover-types>a{gap:5px;padding:6px 8px;min-height:31px;flex:1;font-size:10px}
  .discover-types svg{width:13px;height:13px}.discover-types .desktop-label{display:none}
  .discover-styles{gap:4px;margin-top:5px}.discover-styles>button{padding:6px 10px;min-height:26px;font-size:9px}
  .discover-grid{gap:15px 12px}.discover-grid .card-caption{gap:6px}
  .discover-grid .card-caption>span{font-size:8px;white-space:nowrap}
}
@media(max-width:360px){.discover-types>button,.discover-types>a{font-size:9px;padding-inline:7px;gap:4px}.discover-types svg{width:12px;height:12px}.discover-grid .card-caption{flex-wrap:wrap;gap:2px}.discover-grid .card-caption>span{padding-top:0}}
@media(prefers-reduced-motion:reduce){.content:has(.discover-page){animation:none}}

/* Movies: preset creation or a shared Prompt / Scenario editor. */
.movies-page{max-width:1120px;margin:0 auto}
.movies-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.movies-heading h1{font-size:28px;letter-spacing:-1px;font-weight:700}
.movies-heading>span{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}
.movies-heading>span svg{width:15px;height:15px}
.movies-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);gap:20px;align-items:start}
.movies-layout>*{min-width:0}
.movie-inputs{padding:20px}
.movie-inputs .mode-toggle{width:100%;margin-bottom:18px}
.movie-inputs .mode-toggle button{flex:1}
.movie-inputs .field{margin-top:18px}
.movie-inputs .mode-toggle+.field,.movie-inputs .field-grid>.field,.movie-speech-row>.field{margin-top:0}
.movie-inputs .field-grid{margin-top:18px}
.movie-inputs .field-label{margin-bottom:8px}
.movie-inputs .upload-area{min-height:112px;padding:15px 10px}
.movie-upload>img{height:108px;max-width:100%;object-fit:contain}
.movie-upload+.text-link{margin-top:6px}
.movie-inputs .reference-card,.movie-inputs .reference-add{aspect-ratio:1}
.movie-inputs .textarea{min-height:126px}
.movie-inputs .motion-option{flex-basis:42%;min-width:130px}
.movie-inputs .motion-art{aspect-ratio:1.25}
.movie-inputs .motion-caption strong{font-size:10px}
.movie-inputs .motion-caption>span{font-size:9px}
.movie-inputs #motion-selected{display:none}
.movie-inputs .motion-track{padding-bottom:2px}
.movie-speech-row{display:flex;align-items:stretch;gap:16px;margin-top:18px}
.movie-speech-row>.field{flex:1;min-width:0}
.movie-fixed-duration{display:grid;align-content:start;gap:2px;min-width:94px;font-size:11px}
.movie-fixed-duration>span{font-weight:600;margin-bottom:6px}
.movie-fixed-duration strong{display:flex;align-items:center;gap:6px;font-size:14px;line-height:22px}
.movie-fixed-duration svg{width:14px;height:14px;color:var(--muted)}
.movie-fixed-duration small{font-size:9px;color:var(--muted)}
.movie-writing{scroll-margin-top:90px}
.movie-writing-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.movie-writing-tabs{display:flex;gap:4px}
.movie-writing-tabs button{padding:7px 11px;border-radius:6px;font-size:11px;font-weight:600;color:#a99db2;transition:background .18s,color .18s}
.movie-writing-tabs button:hover{color:#fff;background:#28232c}
.movie-writing-tabs button[aria-selected="true"]{background:#332830;color:#ff8ba5}
.movie-writing-count{font-size:9px;color:#9e90a8;white-space:nowrap}
.movie-writing [role="tabpanel"][hidden]{display:none}
.movie-inputs .movie-writing .textarea{display:block;min-height:220px;height:220px;max-height:600px;resize:vertical;font-size:12px;line-height:1.85;padding:14px 15px;border-radius:8px;background:#17151b;border-color:#37303c}
.movie-inputs .movie-writing #prompt{background:transparent}
.movie-writing .prompt-highlight{padding:14px 15px;font-size:12px;line-height:1.85}
.movie-script-meta{display:flex;align-items:center;gap:9px;font-size:9px;color:#a99eaf;margin-top:8px}
.movie-script-meta>span:first-child{color:#ff6c8e}
.movie-script-meta>span:last-child{margin-left:auto}
.scenario-error{color:#ff90a9;font-size:10px;line-height:1.6;margin-top:9px}
.scenario-error[hidden]{display:none}
.movie-create{margin-top:20px}
.movie-create .generate-btn{min-height:44px}
.movie-create #generation-cost[hidden]{display:none}
.movies-page button:disabled{opacity:.4;cursor:not-allowed}
.movie-demo{margin-top:12px;color:#9a8da4;font-size:10px;line-height:1.7}
.movie-demo summary::-webkit-details-marker{display:none}
.movie-demo summary{display:flex;justify-content:center;align-items:center;gap:5px;list-style:none;cursor:pointer}
.movie-demo summary svg{width:12px;height:12px}
.movie-demo p{max-width:430px;margin:10px auto 0;text-align:center;font-size:10px}
.movie-result{margin-top:0;min-height:500px!important;display:flex;flex-direction:column}
.movie-result .preview-body{min-height:390px;padding:20px;flex:1}
.movie-result .preview-example{width:100%;max-width:400px}
.movie-result .preview-top{height:46px}
.movie-result .preview-placeholder h3{font-size:16px;font-weight:500;color:#afa2b6}
.movie-inputs .select-menu{max-height:240px;overflow-y:auto;overscroll-behavior:contain}
@media(min-width:901px){.movie-preview-column{position:sticky;top:20px}}
@media(max-width:1100px) and (min-width:801px){.movies-layout{grid-template-columns:minmax(280px,1fr) minmax(0,1fr);gap:14px}.movie-inputs{padding:16px}}
@media(max-width:900px){.movies-layout{grid-template-columns:1fr;max-width:620px;margin:auto}.movies-heading{max-width:620px;margin:0 auto 16px}}
@media(max-width:620px){.movies-heading h1{font-size:25px}.movies-heading>span{font-size:9px}.movies-heading>span svg{width:13px}.movies-layout{gap:16px}.movie-inputs{padding:16px}.movie-inputs .motion-option{flex-basis:43%}.movie-inputs .field{margin-top:16px}.movie-inputs .field-grid>.field,.movie-inputs .movie-speech-row>.field,.movie-inputs .mode-toggle+.field{margin-top:0}.movie-inputs .mode-toggle{margin-bottom:16px}.movie-inputs .upload-area{min-height:100px}.movie-inputs .motion-controls [data-action="motion-scroll"]{display:none}.movie-result{min-height:340px!important}.movie-result .preview-body{min-height:260px}.movie-inputs .movie-writing .textarea{height:205px;min-height:205px}}
@media(prefers-reduced-motion:reduce){.movies-page *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
