button:disabled{cursor:not-allowed;opacity:.62;transform:none!important;box-shadow:none!important}.model-controls{padding:16px;border:1px solid #f0d4e2;border-radius:14px;background:#fff7fb;margin:20px 0}.model-controls b{display:block;margin-bottom:12px}select{font:inherit;padding:9px 12px;border:1px solid #e3abc5;border-radius:9px;background:white;color:#763b57}.cost-label{font-size:11px;color:#98657d;display:block;margin-top:12px}#result{display:block;line-height:1.7}#result:empty{display:none}.generated-image{display:block;max-width:100%;max-height:500px;border-radius:12px;margin:12px 0}.result-link{color:#9a3060;display:block;margin:12px 0}.job-card{border-bottom:1px solid #ecdde5;padding:20px 0}.job-card>p{white-space:pre-wrap;font-size:12px;color:#82717c}#account-summary{font-size:11px;color:#8f7183;margin-top:18px;overflow-wrap:anywhere}

#reference-count{float:right;color:#a95b83;font-weight:500}.reference-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.reference-list:empty{display:none}.reference-card{position:relative;min-width:0;border:1px solid #f0d4e2;border-radius:12px;background:#fff8fc;overflow:hidden}.reference-card img{display:block;width:100%;height:110px;object-fit:contain}.reference-card>span{display:block;padding:6px 9px;font-size:11px;color:#98657d}.reference-remove{position:absolute;right:4px;top:4px;width:32px;height:32px;border:1px solid #edc4d8;border-radius:50%;background:#fff;color:#ab386c;font-size:23px;line-height:1}#add-reference{width:100%;min-height:90px;padding:16px}#add-reference:disabled{opacity:.5}@media(max-width:400px){.reference-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

.model-controls>label{display:block;margin:12px 0 7px}.model-controls>select{width:100%}#video-controls>label{display:block;margin:14px 0 7px}#audio-control input{accent-color:#e34286}.generated-image{width:100%}#reference-hint{margin-bottom:0;line-height:1.6}
#video-controls[hidden],#audio-control[hidden]{display:none!important}

.generation-loader{height:8px;overflow:hidden;border-radius:99px;background:#f0d7e5;margin:16px 0 12px}.generation-loader>span{display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#f4b6d3,#e34286,#f4b6d3);animation:generation-slide 1.8s ease-in-out infinite}.generation-stages{display:flex;justify-content:space-between;gap:6px;font-size:10px;color:#a3939f;margin:10px 0}.generation-stages .current{color:#bb3975;font-weight:800}.generation-stages .done{color:#7e5870}.generation-timer,.generation-hint{display:block;color:#927c8a;font-size:11px;line-height:1.6}.generation-hint{margin-top:7px}.generation-timer{font-variant-numeric:tabular-nums}@keyframes generation-slide{0%{transform:translateX(-100%)}100%{transform:translateX(365%)}}@media(prefers-reduced-motion:reduce){.generation-loader>span{animation:none;opacity:.7}}

#duration{display:block;width:100%;height:32px;accent-color:#e34286;cursor:pointer;margin:8px 0}#duration-value{display:inline-block;color:#b63771;font-weight:800;font-size:18px}.duration-range{display:flex;justify-content:space-between;color:#9c8090;font-size:11px}

.plans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:26px}.plan-card{padding:25px 22px;background:linear-gradient(160deg,#fff,#fff7fb);border:1px solid #edc9db;border-radius:24px;box-shadow:0 8px 0 #f5e5ee,0 15px 35px #73315308;display:flex;flex-direction:column}.plan-card:last-child{border-color:#df86b0;background:linear-gradient(150deg,#fff,#ffeaf5)}.plan-tag{color:#ab5c82;font-size:10px;font-weight:700;letter-spacing:.4px}.plan-card h3{font-size:29px;letter-spacing:-1px;margin:14px 0}.plan-price{font-size:30px;font-weight:800;white-space:nowrap}.plan-price small{font-size:11px;font-weight:500;color:#9a8290}.plan-tokens{font-size:18px;color:#b73774;font-weight:800;margin:14px 0}.plan-intro{font-size:11px;line-height:1.6;color:#907984}.plan-examples{padding:0;list-style:none;margin:0}.plan-examples li{display:flex;justify-content:space-between;gap:8px;padding:13px 0;border-bottom:1px solid #f2e1ea;font-size:11px;align-items:center}.plan-examples small{display:block;color:#a38a98;margin-top:5px;font-size:10px}.plan-examples strong{white-space:nowrap;color:#a33669;font-size:13px}.plan-mix{padding:14px;background:#f9edf4;border-radius:13px;margin-top:18px;font-size:11px;line-height:1.7}.plan-mix p{margin:6px 0 0;color:#98778a}.plan-card .primary{margin-top:auto;padding-top:14px;padding-bottom:14px}.plan-mix{margin-bottom:22px}.plans-explanation{max-width:850px;margin:35px 0 0;color:#8f7785;font-size:12px;line-height:1.8}.plans-explanation h3{color:#45333e}@media(max-width:1150px){.plans-grid{grid-template-columns:1fr}.plan-card{max-width:620px}}@media(max-width:650px){nav button{padding:8px 5px;font-size:8px}.plan-card{padding:24px}.plans-grid{gap:22px}}

/* Cyrillic-first typography */
body{font-family:'Golos Text',system-ui,sans-serif;line-height:1.5}button,input,textarea,select{font-family:inherit}h1,h2,h3{font-weight:700;letter-spacing:-.035em}h2{line-height:1.3}.hero h1{font-weight:800;letter-spacing:-.04em}.sub{line-height:1.65}.primary{font-weight:600}.plan-card h3{font-weight:800;letter-spacing:-.035em}.plan-price,.plan-tokens{font-variant-numeric:tabular-nums}.plan-price{letter-spacing:-.03em}.plan-examples li{line-height:1.5}textarea{line-height:1.65}

.history-filters{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 16px}.history-filters button{border:1px solid #eccfdf;border-radius:22px;background:#fff;padding:9px 17px;font-size:12px}.history-filters .selected{background:#e34286;color:#fff;border-color:#e34286}.works-actions{display:flex;align-items:center;gap:12px;padding:0;margin:0 0 12px;min-height:40px;background:transparent;border:0}.works-actions[hidden]{display:none}#works-selected-count{font-size:13px;font-weight:600;color:#f1c4d8;margin-right:0}.works-actions{justify-content:flex-start}.works-select-all-btn{padding:7px 10px;border:0;border-radius:9px;background:transparent;color:#ed9fc0;font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:background .16s ease,color .16s ease}.works-select-all-btn:hover:not(:disabled){background:#e3428622;color:#ffd8e8}.works-select-all-btn:disabled{opacity:.45;cursor:not-allowed}.works-trash[hidden]{display:none}.works-trash{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #80516b;border-radius:11px;background:#352536;color:#ed9fc0;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}.works-trash:hover:not(:disabled){background:#e34286;border-color:#e34286;color:#fff;transform:translateY(-1px)}.works-trash:disabled{opacity:.42;cursor:not-allowed}.works-trash:focus-visible{outline:2px solid #ed9fc0;outline-offset:2px}.work-card{position:relative;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease}.work-card.is-selected{border-color:#e34286;box-shadow:0 0 0 2px #e3428630}.work-card:focus-visible{outline:3px solid #e34286;outline-offset:3px}.work-select{position:absolute;z-index:2;right:10px;top:10px;padding:3px;border:1px solid #86546f;border-radius:7px;background:#302232eF;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .14s ease}.work-card:hover .work-select,.work-card:focus-within .work-select,.work-card.is-selected .work-select{opacity:1;pointer-events:auto}.work-select input{appearance:none;display:grid;place-items:center;width:21px;height:21px;margin:0;border:1px solid #d889aa;border-radius:5px;background:#38283a;cursor:pointer}.work-select input:checked{background:#e34286;border-color:#e34286}.work-select input:checked:after{content:'';width:5px;height:10px;border:solid #fff4fa;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}.work-select input:focus-visible{outline:2px solid #ed9fc0;outline-offset:2px}@media(hover:none){.work-select{opacity:1;pointer-events:auto}}
.works-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}.work-card{border:1px solid #efdfE8;background:white;padding:0 0 14px;overflow:hidden;border-radius:18px;text-align:left;min-width:0}.work-preview{aspect-ratio:1;position:relative;background:linear-gradient(140deg,#fce3ef,#eee4f1);display:grid;place-items:center;color:#d55b97;font-size:45px}.work-thumb{width:100%;height:100%;object-fit:cover;position:absolute}.work-badge{position:absolute;left:10px;top:10px;background:#fffffff0;border-radius:20px;font-size:10px;padding:5px 9px;color:#a23c70}.work-card>strong,.work-card>small{display:block;margin:12px 13px 0}.work-card>strong{font-size:12px}.work-card>small{font-size:10px;color:#9d8291;margin-top:5px}.unavailable:after{content:'Превью недоступно';font-size:12px}#work-dialog{border:1px solid #edc9db;border-radius:24px;padding:0;width:min(1050px,94vw);max-height:90dvh;background:#fff8fc;color:#352b33}#work-dialog::backdrop{background:#2c152bb8;backdrop-filter:blur(5px)}.work-close{position:sticky;top:10px;float:right;right:12px;z-index:3;width:36px;height:36px;border:1px solid #eed7e3;border-radius:50%;background:white;color:#aa396d;font-size:25px}#work-detail{clear:both;display:grid;grid-template-columns:1.4fr 1fr;gap:25px;padding:10px 26px 28px}.work-main{min-width:0;line-height:1.7}.work-main .generated-image{max-height:65dvh;object-fit:contain;background:#f2e8ef}.work-sidebar{min-width:0}.work-sidebar h3{font-size:14px;margin:24px 0 12px}.work-sidebar>p{font-size:12px;color:#967b8b}.work-prompt{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;padding:14px;background:white;border:1px solid #efdee8;border-radius:12px;user-select:text}.work-references{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:12px;color:#987987}.work-references img{width:100%;aspect-ratio:1;object-fit:contain;background:white;border:1px solid #efdee8;border-radius:10px}@media(max-width:650px){.works-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#work-detail{grid-template-columns:1fr;padding:8px 18px 24px;gap:16px}.work-main .generated-image{max-height:55dvh}.history-filters button{padding:8px 12px}} 

.work-delete{display:block;width:100%;margin-top:24px;padding:12px;border:1px solid #e8b4ca;border-radius:12px;background:#fff;color:#b43a68;font-weight:600}

.zoomable{cursor:zoom-in}.reference-open{padding:0;border:0;background:transparent;cursor:zoom-in}#photo-viewer{border:0;border-radius:18px;padding:12px;background:#fff8fc;width:min(1000px,96vw);max-height:94dvh;overflow:auto}#photo-viewer::backdrop{background:#21131fe6}.photo-toolbar{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#fff8fcef;z-index:1;padding:6px}.photo-close{border:0;border-radius:50%;width:36px;height:36px;background:#f8e0ed;color:#a23669;font-size:26px}#photo-full{display:block;width:100%;height:auto;max-height:78dvh;object-fit:contain;touch-action:pinch-zoom}.photo-tip{text-align:center;color:#99778a;font-size:11px}

.generation-price{display:block;text-align:center;margin:16px 0 10px;color:#c82e78;font-weight:700;font-size:16px;font-variant-numeric:tabular-nums}

.mention-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.mention-list[hidden],[hidden]{display:none!important}.mention-card{display:flex;align-items:center;gap:7px;border:1px solid #f1c7df;border-radius:12px;background:#fff4fa;color:#a72a66;padding:5px 9px 5px 5px;font:inherit;font-size:13px}.mention-card img,.mention-card video{width:38px;height:38px;object-fit:cover;border-radius:8px}.mention-warning{color:#b63e60;font-size:13px}.mention-help{font-size:12px}.reference-tag{cursor:pointer;color:#b82569}.reference-tag:focus-visible{outline:2px solid #db5895}#video-reference-preview>video{width:100%;max-height:240px;border-radius:14px;background:#211923}.work-references>video{width:100%;max-height:240px;border-radius:12px}#add-video-reference small{display:block;font-size:12px;margin-top:6px}

/* Standalone website: roomy desktop workspace and touch-friendly mobile layout. */
html{scroll-padding-top:24px}main{max-width:1560px;min-width:0;padding:32px clamp(24px,3.5vw,64px) 70px}.account-button{border:1px solid #e9abc8;border-radius:24px;padding:10px 18px;background:#fff0f7;color:#a62965;font-weight:700;min-height:44px}.account{gap:10px}header{gap:16px}.editor-layout{max-width:none;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:32px;padding:30px}.editor-inputs,.editor-settings{min-width:0}.editor-settings{border-left:1px solid #f0dfe8;padding-left:28px;align-self:start}.editor-step{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:#b5658b;margin:0 0 22px}.editor-inputs textarea{min-height:200px}#result.editor-result{grid-column:1/-1;margin-top:0}.editor-result .generated-image{max-height:70vh;object-fit:contain;background:#f6ecf2}#editor .model-controls{margin:16px 0}.field-label{font-size:13px}input,select,textarea{font-size:16px}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #cb5894;outline-offset:3px}.back{min-height:44px}.format,.chip,.history-filters button{min-height:44px}.primary{min-height:48px}.upload{width:100%}#generate-button{margin-top:8px}.generation-price{margin-top:20px}.hero{min-height:280px}.hero h1{font-size:clamp(32px,3.3vw,48px);max-width:580px}.hero p{font-size:15px;max-width:460px}.trends .art{height:clamp(180px,21vw,310px)}.plan-card{min-width:0}.plan-examples li{flex-wrap:wrap}.toast{z-index:30}
#account-dialog{width:min(480px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #efc8dd;border-radius:24px;background:#fff8fc;padding:30px;color:#392b35}#account-dialog::backdrop{background:#32192b99;backdrop-filter:blur(5px)}.account-close{float:right;border:0;background:#f8dfec;border-radius:50%;width:40px;height:40px;font-size:25px;color:#ab396d}.account-heart{display:block;font-size:32px;color:#e34286;margin-bottom:12px}#account-dialog p{line-height:1.7}#login-status{font-size:13px;color:#a3346b;overflow-wrap:anywhere}#logout-button{margin-top:20px;min-height:44px}#account-identity{overflow-wrap:anywhere}.crumb{min-width:0}
@media(min-width:1500px){main{margin-left:230px;margin-right:auto}}@media(min-width:801px) and (max-width:1150px){.editor-layout{grid-template-columns:1fr}.editor-settings{border-left:0;border-top:1px solid #f0dfe8;padding:24px 0 0}.plans-grid{grid-template-columns:1fr 1fr}.plan-card{max-width:none}.plan-card:last-child{grid-column:1/-1}}
@media(max-width:800px){aside{z-index:5;inset:auto 0 0;width:100%;padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid #eee7ec;background:#fff}.logo-side,.tag,.aside-bottom{display:none}nav{display:flex;justify-content:space-around;gap:0}nav button{min-height:52px;padding:6px 3px;font-size:10px;text-align:center;border-radius:10px}nav button i{display:block;width:auto;font-size:21px;margin-bottom:3px}main{margin:0;padding:18px 16px calc(104px + env(safe-area-inset-bottom));width:100%}header{margin-bottom:24px;gap:8px}.crumb .desktop{display:none}.crumb .mobile-logo{display:inline;font-size:22px;font-weight:800;letter-spacing:-1px;color:var(--ink)}.account{gap:6px}.account-button{padding:9px 13px;font-size:12px}.balance{padding:8px 10px}.demo{display:none}.editor-layout{grid-template-columns:1fr;padding:20px;gap:24px}.editor-settings{border-left:0;border-top:1px solid #f0dfe8;padding:22px 0 0}.editor-inputs textarea{min-height:160px}.editor-step{margin-bottom:16px}.hero{min-height:240px;padding:26px 24px}.hero h1{font-size:32px;max-width:320px}.hero p{font-size:13px;max-width:260px}.hero:after{right:-90px;opacity:.35}.plans-grid{grid-template-columns:1fr}.plan-card{max-width:none}.trends .art{height:210px}.toast{bottom:100px}.work-prompt{font-size:14px}.history-filters{gap:6px}#work-detail{grid-template-columns:1fr}.works-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){main{padding-left:12px;padding-right:12px}.crumb .mobile-logo{font-size:20px}.account .balance{display:none}.editor-layout{padding:16px}.create-card{padding:14px 10px}.trends .art{height:180px}nav button{font-size:9px}#account-dialog{padding:22px}.formats{gap:6px}.format{padding:10px 15px}}

#email-form,#email-code-form{display:grid;gap:14px}#email-form[hidden],#email-code-form[hidden]{display:none}#login-email,#email-code{width:100%;box-sizing:border-box;padding:14px;border:1px solid #edcddd;border-radius:16px;background:#fff9fc;color:#392232;font:inherit;font-size:16px}#email-code{letter-spacing:.3em}#account-identity{overflow-wrap:anywhere}

/* Fill the desktop workspace after the fixed navigation rail. */
@media(min-width:801px){
 main{max-width:none;width:calc(100% - 230px);margin-left:230px;margin-right:0;padding-inline:clamp(24px,3vw,64px)}
 .view,header{width:100%;min-width:0}
 .trends{grid-template-columns:repeat(3,minmax(0,1fr))}
 .trend,.create-card{min-width:0}
}
@media(min-width:801px) and (max-width:1000px){main{width:calc(100% - 190px);margin-left:190px}}

/* Shared type scale across the studio. */
body{font-size:15px;line-height:1.55}button,input,textarea,select{font-family:'Golos Text',system-ui,sans-serif}h2{font-size:24px;line-height:1.25;font-weight:700;letter-spacing:-.5px}h3{font-size:20px;line-height:1.35;font-weight:700}.sub,.hero p,.profile-card p{font-size:15px;line-height:1.65}.field-label,.editor-step{font-size:14px}.primary,.account-button,.create-card b{font-size:16px;line-height:1.4}.text-btn,.balance,.chip,.format,.history-filters button,nav button{font-size:14px;line-height:1.4}.create-card small,.trend small,.note,.crumb,.cost-label,.generation-timer,.generation-hint,.plan-intro,.plan-examples li,.plan-mix,.plans-explanation,.work-sidebar>p,.work-prompt{font-size:13px;line-height:1.65}.trend b,.work-card>strong{font-size:16px}.plan-tag,.plan-examples small,.plan-price small,.work-card>small,.work-badge,.badge,.profile-kicker{font-size:12px;line-height:1.5}.plan-card h3{font-size:26px}.plan-price{font-size:32px}.plan-tokens{font-size:20px}#account-summary{font-size:13px}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:28px}.profile-card{min-width:0;padding:30px;border:1px solid #edd6e3;border-radius:24px;background:linear-gradient(145deg,#fff,#fff7fb);box-shadow:0 5px 0 #f3e4ed;display:flex;flex-direction:column;align-items:flex-start}.profile-card h3{margin:12px 0}.profile-card p{color:#856d7c;margin:0 0 20px}.profile-heart{display:grid;place-items:center;width:64px;height:64px;border-radius:21px;background:linear-gradient(#ffe8f3,#f5b7d5);color:#cc397c;font-size:32px;box-shadow:0 4px 0 #e7a1c3,inset 0 2px 0 #fff}.profile-kicker{color:#a4567f;letter-spacing:1px;font-weight:700}.profile-card dl{width:100%;margin:22px 0}.profile-card dt{font-size:13px;color:#856d7c;margin-bottom:6px}.profile-card dd{font-size:16px;margin:0 0 20px;overflow-wrap:anywhere}.profile-status{display:inline-block;font-size:13px;border-radius:20px;padding:7px 13px;background:#fce5ef;color:#a62f69}.profile-action{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;margin-top:auto;padding:15px 18px;border:1px solid #edc3d9;border-radius:16px;background:#fff0f7;color:#a62f69;text-decoration:none;font-size:15px;font-weight:600;overflow-wrap:anywhere}.profile-action span{flex-shrink:0}#profile-guest{max-width:640px;margin:28px auto}#profile-content[hidden],#profile-guest[hidden]{display:none}#profile-error:empty{display:none}
@media(max-width:800px){.profile-grid{grid-template-columns:1fr;gap:20px}.profile-card{padding:24px}nav .profile-nav{display:none}nav button{font-size:10px}.account-button,.balance{font-size:12px}h2{font-size:22px}.hero h1{font-size:32px}.hero p{font-size:15px}.work-prompt{font-size:14px}}

.avatar-editor{display:flex;align-items:center;gap:18px;margin:20px 0}.profile-avatar{width:88px;height:88px;flex-shrink:0;border-radius:50%;overflow:hidden;background:#fbe0ee;color:#e34286;display:grid;place-items:center;font-size:36px;border:3px solid #fff;box-shadow:0 0 0 1px #efc8dd}.profile-avatar img{width:100%;height:100%;object-fit:cover}.avatar-label{display:inline-block;cursor:pointer}#profile-name{width:100%;padding:12px 14px;border:1px solid #e5acc8;border-radius:12px;background:#fff;font:inherit;color:inherit}#profile-save-status{min-height:22px;color:#a3346b}#profile-form{margin-bottom:24px}

.trends-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;text-align:left;margin:30px 0;padding:24px 28px;border:1px solid #edc3d9;border-radius:22px;background:linear-gradient(120deg,#fff4fa,#fbd8e9);color:#a62f69}.trends-entry b{display:block;font-size:22px;margin-bottom:8px}.trends-entry small{font-size:14px;color:#856d7c}.trends-entry>span:last-child{font-size:28px}#trends .trends{margin-top:24px}#trends .chips{margin-top:22px}#trends .art{aspect-ratio:4/3}#trends-empty[hidden]{display:none}@media(max-width:800px){nav button[data-page="balance"]{display:none}.trends-entry{padding:22px}#trends .trends{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){#trends .trends{grid-template-columns:1fr}}

#home-cards{margin-top:20px;margin-bottom:30px}#home-cards .trend{display:block}#trends .trend[style*="display: none"]{display:none!important}

.prompt-editor{position:relative;background:#fff;border-radius:12px}.prompt-editor #prompt{position:relative;display:block;z-index:1;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:#392b35;line-height:1.6;white-space:pre-wrap;overflow-wrap:break-word}.prompt-editor #prompt::placeholder{color:#9b8b96;-webkit-text-fill-color:#9b8b96}.prompt-editor #prompt::selection{background:#e9b5d480}#prompt-highlight{position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;box-sizing:border-box;border-style:solid;border-color:transparent;color:#392b35;border-radius:12px}.prompt-mention{color:var(--mention-color);background:color-mix(in srgb,var(--mention-color) 12%,transparent);border-radius:4px;text-shadow:0 0 8px color-mix(in srgb,var(--mention-color) 20%,transparent)}.mention-card{color:var(--mention-color)!important;border-color:color-mix(in srgb,var(--mention-color) 35%,white)!important;background:color-mix(in srgb,var(--mention-color) 7%,white)!important}.mention-card span{color:var(--mention-color)}@media(forced-colors:active){.prompt-editor #prompt{color:CanvasText;-webkit-text-fill-color:CanvasText}#prompt-highlight{display:none}}

.formats{display:flex;flex-wrap:wrap;gap:10px}.format:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}#format-note{margin-top:10px;line-height:1.5}

/* Keep image tops aligned when card captions wrap to different heights. */
.trends{align-items:start}.trends .trend{align-self:start;vertical-align:top}.trends .art{display:block;width:100%}

.shadow-panel{max-width:100%}.shadow-panel select{max-width:100%;padding:12px;border:1px solid #edd6e3;border-radius:12px;background:white}.shadow-panel video{display:block;width:100%;max-height:400px;margin-top:20px;background:#211b23;border-radius:16px}.shadow-panel video[hidden]{display:none}#shadow-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.shadow-person{padding:16px;border:1px solid #edd6e3;border-radius:18px;background:#fff8fc;min-width:0}.shadow-person img{width:100%;height:170px;object-fit:contain;border-radius:12px;background:#f5edf2}.shadow-person input{max-width:100%;font-size:13px}.shadow-person label{display:block;margin:10px 0}.shadow-panel textarea{width:100%}#shadow-result{margin-top:24px}#shadow-status,#shadow-price{white-space:pre-line}
/* Readable navigation and secondary copy. */
aside nav button{font-size:17px;line-height:1.45;padding:14px 10px}
aside nav button i{display:none}
.sub,.crumb,.trend small,.note,.field-label,.work-card>small,.profile-card dt,.profile-status,#account-summary,.shadow-person input,.trends-entry small{font-size:15px;line-height:1.6}
.badge,.work-badge,.profile-kicker,.plan-tag,.plan-examples small{font-size:13px;line-height:1.5}
@media(max-width:760px){aside nav button{font-size:12px;line-height:1.35;padding:10px 5px;white-space:normal}aside nav button i{display:none}.sub,.trend small,.note,.field-label{font-size:15px}}

/* Compact square covers in the trend catalog. */
#trends #trend-catalog{grid-template-columns:repeat(auto-fill,minmax(180px,220px));gap:24px;justify-content:start}
#trend-catalog .trend{width:100%;min-width:0;text-align:left}
#trend-catalog .trend-cover{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:18px;background:#f3dce9}
#trend-catalog .trend b,#trend-catalog .trend small{display:block;overflow-wrap:anywhere}
@media(max-width:480px){#trends #trend-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}#trend-catalog .trend-cover{border-radius:15px}}

#trend-catalog video.trend-cover{pointer-events:none}
#trend-catalog video.trend-cover::-webkit-media-controls{display:none!important}

/* A focused photo-only workflow for curated trends. */
#editor.trend-mode{max-width:1100px;margin-inline:auto}
.trend-mode .editor-layout{grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);padding:30px;gap:30px;background:#fff;border:1px solid #efdae6;box-shadow:0 12px 40px #9b427008}
.trend-mode #video-reference-section,.trend-mode #prompt-label,.trend-mode .prompt-editor,.trend-mode #prompt-references,.trend-mode #mention-suggestions,.trend-mode .mention-help,.trend-mode .editor-settings>.field-label,.trend-mode .formats,.trend-mode #format-note,.trend-mode #model-controls{display:none!important}
.trend-mode #add-reference{min-height:180px;background:linear-gradient(145deg,#fff9fc,#fff0f7);border:2px dashed #edbed5;border-radius:20px;font-size:18px;font-weight:600}
.trend-mode #add-reference small{font-weight:400;font-size:13px;line-height:1.6;margin-top:14px}
#trend-overview{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}
#trend-overview>video,#trend-overview>img{width:160px;aspect-ratio:1;object-fit:cover;border-radius:20px;pointer-events:none}
#trend-overview strong{font-size:18px}#trend-overview p{margin:8px 0;color:#927b8a;font-size:15px;line-height:1.65}
.trend-mode .generation-price{text-align:left;font-size:18px}
@media(max-width:800px){.trend-mode .editor-layout{grid-template-columns:1fr;padding:22px;gap:24px}#trend-overview{flex-direction:row;align-items:start}#trend-overview>video,#trend-overview>img{width:110px;flex-shrink:0}.trend-mode #add-reference{min-height:150px}}

#trend-photo-guide{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:10px}#trend-photo-guide li{padding:14px 16px;border:1px solid #efc9dd;border-radius:14px;background:#fff4fa;font-size:15px}#trend-photo-guide li.uploaded:before{content:'✓ ';color:#45905c}.trend-mode .reference-tag{overflow-wrap:anywhere;font-size:13px}

#save-video-dialog{width:min(440px,92vw);padding:26px;border:1px solid #edc9db;border-radius:22px;background:#fff7fb;color:#392b35}#save-video-dialog::backdrop{background:#32192b99}#save-video-dialog button{display:block;width:100%;margin-top:16px}#save-video-dialog p{line-height:1.65}

/* Comfortable reading on phones, especially the result dialog. */
@media(max-width:800px){
 body{font-size:16px}
 .sub,.field-label,.note,.trend small,.profile-card p,.profile-card dt,.profile-status,#account-summary,#reference-hint,.mention-help,.generation-timer,.generation-hint,.plan-intro,.plan-examples li,.plan-mix,.plans-explanation{font-size:16px;line-height:1.65}
 .sub,.trend small,.work-card>small,.work-sidebar>p,.profile-card dt{color:#796575}
 .work-card>small{font-size:14px;line-height:1.6}
 #work-detail{font-size:17px;line-height:1.65;padding:8px 18px 26px}
 #work-detail .work-main>strong{font-size:20px}
 #work-detail .work-main>p{font-size:17px}
 #work-detail .work-main>small{display:block;font-size:16px;line-height:1.65;margin-top:16px;color:#655360}
 #work-detail .result-link{font-size:18px;min-height:48px;padding:12px 6px;font-weight:700}
 #work-detail .work-sidebar>p{font-size:16px;line-height:1.65}
 #work-detail .work-sidebar h3{font-size:18px}
 #work-detail .work-prompt{font-size:16px;line-height:1.7}
 #work-detail .text-btn,#work-detail .work-delete{font-size:16px;min-height:44px}
 #work-detail .result-link{font-size:18px}
 #work-dialog .work-close{width:44px;height:44px;font-size:28px}
 #result>small{font-size:16px;line-height:1.65;display:block;margin-top:14px}
 #result .result-link{font-size:18px;min-height:48px}
 #generation-note,#trend-overview p{font-size:16px;line-height:1.65}
}

#shadow-submit-status:not(:empty){padding:16px 18px;background:#fff0f7;border:1px solid #eab7d0;border-radius:14px;color:#95345f;font-size:16px;line-height:1.6;margin:16px 0}

.terms-consent{display:flex;align-items:flex-start;gap:12px;margin:18px 0;font-size:16px;line-height:1.55}.terms-consent input[type=checkbox]{width:22px!important;height:22px!important;min-width:22px;margin:2px 0 0;padding:0;accent-color:#d93686}.terms-consent a,.legal-footer a{color:var(--pink,#c22672);text-decoration:underline;text-underline-offset:3px}.legal-footer{padding:28px 0;font-size:16px;line-height:1.6}

.privacy-notice{font-size:16px;line-height:1.55;color:var(--muted);margin:12px 0 20px}.privacy-notice a{color:var(--pink,#c22672);text-decoration:underline;text-underline-offset:3px}

.delete-account-open{display:block;margin-top:22px;color:#bd2863}#delete-account-dialog{box-sizing:border-box;width:min(560px,calc(100% - 28px));max-height:90svh;overflow:auto;border:1px solid #e9c6dc;border-radius:24px;padding:28px;background:var(--bg,#fff8fc);color:var(--ink,#302730);font-size:16px;line-height:1.6}#delete-account-dialog::backdrop{background:#24142499}#delete-account-dialog h2{font-size:25px;line-height:1.3}#delete-account-dialog a{color:var(--pink,#c22672)}#delete-account-email{box-sizing:border-box;width:100%;margin-top:8px;padding:12px;border-radius:12px;border:1px solid #dba7c7;font-size:16px}.delete-account-actions{display:flex;justify-content:flex-end;gap:14px;margin-top:20px;flex-wrap:wrap}#delete-account-status{color:var(--pink,#bd2863)}

body.trend-preview-open{overflow:hidden}
#trend-preview-dialog{box-sizing:border-box;width:min(480px,calc(100% - 28px));max-height:92dvh;overflow:auto;padding:24px;border:1px solid #e9c6dc;border-radius:24px;background:var(--bg,#fff8fc);color:var(--ink,#302730)}
#trend-preview-dialog::backdrop{background:#201323b8;backdrop-filter:blur(5px)}
#trend-preview-title{margin:0 44px 18px 0;font-size:24px;line-height:1.3}
.trend-preview-close{position:absolute;right:14px;top:12px;width:44px;height:44px;border-radius:50%;border:1px solid #b580a0;background:transparent;color:inherit;font-size:28px;cursor:pointer}
.trend-preview-media{display:block;width:100%;max-height:56dvh;object-fit:contain;background:#17131b;border-radius:16px}
#trend-preview-dialog p{font-size:16px;line-height:1.5;color:var(--muted);margin:16px 0}
.trend-preview-create{width:100%;min-height:50px;font-size:16px;cursor:pointer}.trend-preview-create:disabled{opacity:.65;cursor:wait}

#trend-overview .trend-quality{display:flex;flex-direction:column;gap:10px;width:100%;margin-top:18px;font-size:16px;font-weight:600}#trend-quality{box-sizing:border-box;width:100%;min-height:48px;padding:10px 14px;font:inherit;color:inherit;background:var(--bg,#fff8fc);border:1px solid #b580a0;border-radius:12px}#trend-quality:disabled{opacity:.6}@media(max-width:800px){#trend-overview{flex-wrap:wrap}#trend-overview .trend-quality{flex-basis:100%}}

.trend-sound{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:16px;margin:16px 0}.trend-sound input{width:22px;height:22px;accent-color:#d93686}.trend-sound small{flex-basis:100%;font-size:14px}.trend-note{white-space:pre-wrap;padding:14px;border:1px solid #b580a0;border-radius:12px;font-size:16px;line-height:1.6}#trend-overview .trend-sound{width:100%}

.reference-help{display:flex;align-items:flex-start;gap:16px;margin:16px 0 20px;padding:18px;border:1px solid #b580a070;border-radius:16px;background:var(--bg,#fff8fc)}.reference-help>div{flex:1;min-width:0}.reference-help strong{font-size:16px}.reference-help ul{padding-left:20px;margin:10px 0 0;font-size:14px;line-height:1.6}.reference-help li+li{margin-top:7px}.reference-example{flex:0 0 140px;width:140px;padding:0;border:0;background:transparent;color:inherit;cursor:zoom-in}.reference-example img{display:block;width:140px;height:90px;object-fit:contain;background:#fff;border-radius:10px}.reference-example span{display:block;font-size:12px;margin-top:7px}@media(max-width:600px){.reference-help{flex-direction:column}.reference-example{flex-basis:auto;align-self:flex-start}.reference-help ul{font-size:15px}}

#trend-help-dialog{box-sizing:border-box;width:min(430px,calc(100% - 28px));max-height:80dvh;overflow:auto;padding:16px;border:1px solid #b580a080;border-radius:20px;background:var(--bg,#fff8fc);color:var(--ink,#302730)}#trend-help-dialog::backdrop{background:#17101e88}#trend-help-dialog .reference-help{display:block;position:static;width:auto;height:auto;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:visible}#trend-help-dialog .reference-help strong{display:block;padding-right:44px;font-size:18px;line-height:1.3}#trend-help-dialog .reference-help ul{font-size:15px;line-height:1.45;margin:12px 0;padding-left:19px}#trend-help-dialog .reference-help li+li{margin-top:7px}#trend-help-dialog .reference-example{display:block;width:120px;margin-top:12px}#trend-help-dialog .reference-example img{width:120px;height:76px}#trend-help-dialog .reference-example span{font-size:12px}.trend-help-close{position:sticky;top:0;float:right;z-index:1;width:40px;height:40px;margin:-6px -6px 0 0;border:1px solid #b580a080;border-radius:50%;background:var(--bg,#fff8fc);color:inherit;font-size:26px;cursor:pointer}.trend-help-done{display:block;width:100%;min-height:44px;margin-top:16px;font-size:16px}.trend-help-reopen{margin:12px 0;min-height:44px;font-size:15px}

.dismissible-result{position:relative}.dismissible-result>strong{display:block;padding-right:48px}.result-dismiss{position:absolute;right:10px;top:10px;width:44px;height:44px;display:grid;place-items:center;border:1px solid #b580a080;border-radius:50%;background:var(--bg,#fff8fc);color:var(--pink,#c22672);font-size:27px;line-height:1;cursor:pointer}.result-dismiss:focus-visible{outline:2px solid currentColor;outline-offset:3px}

.sidebar-contact{font-size:14px;line-height:1.5;padding:20px 0 0}.sidebar-contact span,.sidebar-contact a{display:block}.sidebar-contact a{margin-top:6px;font-size:13px;overflow-wrap:anywhere;text-underline-offset:3px}

#home .operator-details{font-size:12px;line-height:1.6;color:#777;margin:14px 0 0;font-weight:400}html[data-theme=dark] #home .operator-details{color:#aaa}

#topup-count{width:100%;padding:14px;border:1px solid #b28a9c;border-radius:12px;background:var(--bg);color:var(--ink);font:inherit}.topup-presets{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}#topup-buy{width:100%}@media(max-width:800px){body>aside nav{overflow-x:auto;justify-content:flex-start}body>aside nav button{flex:0 0 auto;min-width:65px}}

#topup-slider{width:100%;margin:22px 0 6px;accent-color:var(--pink);cursor:pointer;min-height:30px}.topup-range-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:14px}

#balance #topup{max-width:640px;margin:36px auto 0;text-align:center}#balance #custom-topup{margin:24px auto 0;text-align:left}#balance .plans-explanation{margin-top:40px}
#purchase-promo{display:block;width:100%;box-sizing:border-box;margin:10px 0 12px;padding:13px 15px;border:1px solid var(--border,#66435c);border-radius:12px;background:var(--bg,#1b1620);color:inherit;font:inherit;text-transform:uppercase}#promo-status{font-size:14px;line-height:1.5}.promo-price{color:var(--pink,#ff83bc);font-weight:700}

#shadow .shadow-panel{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:20px;align-items:start}
.shadow-media{display:grid;gap:20px;min-width:0}
#shadow .shadow-card{margin:0;padding:clamp(18px,2.5vw,30px);min-width:0}
.shadow-card h3{margin:0 0 14px}
.shadow-upload{display:grid;justify-items:center;gap:8px;padding:24px 12px;border:2px dashed #a45c83;border-radius:16px;background:#bd548314;color:inherit;text-align:center;cursor:pointer}
.shadow-upload span{font-weight:750;color:#ff91c2}
.shadow-upload small{color:var(--muted)}
.shadow-upload{position:relative}
.shadow-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.shadow-upload:focus-within{outline:2px solid #ff91c2;outline-offset:3px}
#shadow-video{width:100%;max-height:380px;margin-top:12px;border-radius:14px;background:#140f17}
.shadow-settings select,.shadow-settings textarea{width:100%;box-sizing:border-box}
.shadow-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shadow-options>div{display:flex;flex-direction:column;min-width:0}
.shadow-options .field-label{flex:1}
.shadow-options select{min-width:0;min-height:46px;flex-shrink:0}
#shadow-price{font-weight:750;color:#ff91c2}
#shadow-result{grid-column:1/-1;min-width:0}
#shadow-result:empty,#shadow-status:empty,#shadow-submit-status:empty{display:none}
@media(max-width:780px){#shadow .shadow-panel{grid-template-columns:minmax(0,1fr);gap:14px}.shadow-media{gap:14px}}

#trends .trend-search{display:grid;gap:8px;max-width:460px;margin-top:20px;font-weight:600}
#trend-search{width:100%;min-height:44px;border:1px solid #b8799980;border-radius:12px;padding:10px 14px;background:var(--bg);color:var(--ink)}
#trend-catalog .trend-group-heading{grid-column:1/-1;margin:8px 0 0;font-size:20px}
#trend-catalog [hidden]{display:none!important}

.trend-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;padding:8px;border:1px solid #b8799950;border-radius:16px;background:#b8799912}
.trend-tabs button{min-height:44px;padding:8px 18px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--ink);font-weight:600}
.trend-tabs button[aria-pressed=true]{border-color:#c56a98;background:#f7d7e8;color:#862651;box-shadow:0 2px 9px #ad487c26}
html[data-theme=dark] .trend-tabs button[aria-pressed=true]{background:#633450;color:#ffeaf5}

#shadow [hidden]{display:none!important}
#shadow-background-file{max-width:100%}

.shadow-background-preview{margin:12px 0 0;padding:10px;border:1px solid #b8799950;border-radius:14px;background:#b8799912}
.shadow-background-preview img{display:block;width:100%;max-height:230px;object-fit:contain;border-radius:9px}
.shadow-background-preview figcaption{margin-top:8px;font-size:14px;font-weight:600;overflow-wrap:anywhere}

#trend-background-field[hidden]{display:none!important}
#trend-background-field textarea{width:100%;min-height:90px}

.work-video-hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;font-size:14px;text-align:center;color:inherit;pointer-events:none}.work-video-hint[hidden]{display:none}

.format{text-transform:capitalize}

.profile-wallet { width: 100%; margin-bottom: 20px; }
.profile-wallet h4 { margin: 0 0 10px; }
.profile-wallet-order { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.profile-mfa {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #edc3d9;
  border-radius: 16px;
  background: #fff7fb;
}
html[data-theme=dark] .profile-mfa {
  border-color: #493747;
  background: #2a2330;
}
.profile-card .profile-mfa h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.profile-card .profile-mfa p { margin: 0; }
.profile-mfa .profile-action {
  width: auto;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 10px;
}
#profile-mfa-form:not([hidden]) {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  align-items: start;
}
#profile-mfa-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0 0 4px;
}
#profile-mfa-form .primary { justify-self: start; }
#profile-mfa-recovery { margin-top: 14px; }
#profile-mfa-codes {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-mfa [hidden] { display: none; }


#balance .promo-card{max-width:620px;margin:14px auto 18px;padding:16px 18px;border-radius:16px}#balance .promo-card>label{display:block;margin:0 0 8px;font-size:13px;font-weight:700}#balance .promo-row{display:flex;align-items:center;gap:8px}#balance #purchase-promo{flex:1;min-width:0;width:auto;margin:0;padding:10px 12px}#balance .promo-row .chip{flex:none;margin:0;min-height:42px;padding:8px 14px}#balance #promo-status{margin:8px 0 0;font-size:12px;line-height:1.35}#balance .promo-card+.plans-grid{margin-top:12px}@media(max-width:460px){#balance .promo-card{padding:14px}#balance .promo-row{flex-wrap:wrap}#balance #purchase-promo{flex-basis:100%}}

#balance .balance-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,520px);gap:24px;align-items:center;margin-bottom:20px}#balance .balance-heading-copy .sub{margin-bottom:0}#balance .balance-heading .promo-card{width:100%;max-width:none;margin:0;padding:12px 16px}#balance .balance-heading .promo-card>label{margin-bottom:6px}#balance .balance-heading #promo-status{margin-top:6px}#balance .balance-heading+.plans-grid{margin-top:0}@media(max-width:900px){#balance .balance-heading{grid-template-columns:1fr;gap:12px;align-items:start}#balance .balance-heading .promo-card{max-width:620px}}

/* Profile cards follow their content instead of stretching to the tallest card. */
#profile .profile-grid{align-items:start;gap:16px;margin-top:18px}#profile .profile-card{align-self:start;padding:20px 22px;box-shadow:none}#profile .profile-card h3{margin:6px 0 12px}#profile .profile-card p{margin-bottom:12px}#profile .avatar-editor{margin:12px 0;gap:12px}#profile .profile-avatar{width:68px;height:68px}#profile #profile-form{margin-bottom:8px}#profile #profile-form .primary{margin-top:14px}#profile .profile-card dl{margin:12px 0}#profile .profile-mfa{padding:14px}#profile .profile-card .profile-action{margin-top:10px}#profile .profile-card .profile-wallet:empty{display:none}@media(max-width:800px){#profile .profile-grid{grid-template-columns:1fr;gap:12px}#profile .profile-card{width:100%;padding:18px}}

#profile .profile-grid{grid-template-columns:minmax(280px,.78fr) minmax(0,1.22fr);align-items:start;gap:16px}#profile .profile-side{display:grid;gap:16px;align-content:start;min-width:0}#profile .profile-identity{max-width:none}#profile .profile-identity .profile-heart{width:52px;height:52px}#profile .profile-identity #profile-form{margin-bottom:0}#profile .profile-identity #profile-save-status:empty{display:none}#profile .profile-identity dl{margin:8px 0}#profile .profile-identity .profile-mfa{margin-top:8px}@media(max-width:800px){#profile .profile-grid{grid-template-columns:1fr}#profile .profile-side{gap:12px}}

#profile .profile-identity{padding:16px 18px;gap:0}#profile .profile-identity-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-bottom:10px}#profile .profile-identity-head h3{margin:0;font-size:18px;line-height:1.25}#profile .profile-identity .profile-heart{width:38px;height:38px;flex:none;border-radius:12px;font-size:21px;box-shadow:0 2px 0 #e7a1c3,inset 0 1px 0 #fff}#profile .profile-identity .profile-action{min-height:40px;padding:9px 12px;border-radius:11px;font-size:13px;margin:0 0 10px}#profile .profile-identity .avatar-editor{margin:4px 0 10px;gap:10px}#profile .profile-identity .profile-avatar{width:56px;height:56px}#profile .profile-identity .avatar-editor .text-btn{font-size:12px;padding:4px}#profile .profile-identity .field-label{margin:8px 0 5px;font-size:13px}#profile .profile-identity #profile-name{padding:9px 11px;font-size:14px}#profile .profile-identity #profile-form .sub{font-size:12px;line-height:1.4;margin:5px 0 0}#profile .profile-identity #save-profile{margin-top:12px;padding:11px 14px;font-size:14px}#profile .profile-identity dl{margin:12px 0;font-size:13px}#profile .profile-identity dt,#profile .profile-identity dd{font-size:13px}#profile .profile-identity .profile-mfa{padding:12px;margin:6px 0 10px}#profile .profile-identity .profile-mfa h3{font-size:14px}#profile .profile-identity .profile-mfa p{font-size:12px;line-height:1.45}#profile .profile-identity>p{font-size:12px;line-height:1.4;margin:4px 0 8px}#profile .profile-identity>.text-btn{font-size:12px;padding:6px 0}@media(max-width:480px){#profile .profile-identity{padding:14px}#profile .profile-identity .avatar-editor{flex-wrap:wrap}#profile .profile-identity .profile-action{overflow-wrap:anywhere}#profile .profile-identity-head h3{font-size:17px}}

#profile .profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}#profile .profile-side{gap:18px}#profile .profile-identity-head{justify-content:flex-start;gap:9px}#profile .profile-identity-head h3{flex:none}#profile .profile-identity .profile-heart{width:31px;height:31px;border-radius:9px;font-size:17px}@media(max-width:800px){#profile .profile-grid{grid-template-columns:1fr;gap:12px}#profile .profile-side{gap:12px}}

@keyframes work-card-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}#history .work-card.work-enter{animation:work-card-enter .46s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--work-enter-delay,0ms)}@media(prefers-reduced-motion:reduce){#history .work-card.work-enter{animation:none}}

#history .work-preview .work-thumb{opacity:0;transition:opacity .55s ease-out}#history .work-preview .work-thumb.is-ready{opacity:1}@media(prefers-reduced-motion:reduce){#history .work-preview .work-thumb{transition:none}}

#home .trends-entry{min-height:210px;margin-top:30px;padding:28px 34px;border:1px solid #b96c8e;border-radius:22px;background:linear-gradient(90deg,#54253fdc 0%,#682d4caf 38%,#682d4c16 74%),url('/shadow-pick-cover.webp') center 40%/cover no-repeat;color:#fff;box-shadow:0 18px 40px #40112526;overflow:hidden;text-shadow:0 1px 8px #41122899}#home .trends-entry b{font-size:28px;color:#fff}#home .trends-entry small{font-size:16px;color:#ffe4f2}#home .trends-entry>span:last-child{color:#fff}html[data-theme=dark] #home .trends-entry{background:linear-gradient(90deg,#321728e8 0%,#51233caa 38%,#51233c13 74%),url('/shadow-pick-cover.webp') center 40%/cover no-repeat;color:#fff;border-color:#8b4e6d}html[data-theme=dark] #home .trends-entry small{color:#ffe4f2}@media(max-width:650px){#home .trends-entry{min-height:180px;padding:22px;background-position:61% 40%;background-image:linear-gradient(90deg,#4c203bdf 0%,#57233f9e 58%,#57233f22 100%),url('/shadow-pick-cover.webp')}#home .trends-entry b{font-size:23px}#home .trends-entry small{font-size:13px;line-height:1.35;max-width:190px}html[data-theme=dark] #home .trends-entry{background-position:61% 40%;background-image:linear-gradient(90deg,#321728ed 0%,#482038b0 58%,#48203828 100%),url('/shadow-pick-cover.webp')}}

/* Keep the Shadow Pick artwork at its original aspect ratio inside the wide banner. */
#home .trends-entry{min-height:230px;background-color:#54253f;background-image:linear-gradient(90deg,#54253f 0%,#54253ff0 43%,#54253f80 64%,#54253f10 100%),url('/shadow-pick-cover.webp');background-size:100% 100%,auto 100%;background-position:center,right center;background-repeat:no-repeat}html[data-theme=dark] #home .trends-entry{background-color:#321728;background-image:linear-gradient(90deg,#321728 0%,#321728ee 43%,#32172880 64%,#32172810 100%),url('/shadow-pick-cover.webp');background-size:100% 100%,auto 100%;background-position:center,right center;background-repeat:no-repeat}@media(max-width:650px){#home .trends-entry,html[data-theme=dark] #home .trends-entry{min-height:185px;background-size:100% 100%,auto 78%;background-position:center,right center}}

/* Banner composition generated for this shallow format. */
#home .trends-entry{min-height:220px;background-color:#4b142b;background-image:linear-gradient(90deg,#45172fce 0%,#45172f9c 34%,#45172f18 65%,transparent 100%),url('/shadow-pick-cover-v2.webp');background-size:100% 100%,cover;background-position:center,center center;background-repeat:no-repeat}html[data-theme=dark] #home .trends-entry{background-color:#351426;background-image:linear-gradient(90deg,#301525d9 0%,#301525a8 34%,#3015251e 65%,transparent 100%),url('/shadow-pick-cover-v2.webp');background-size:100% 100%,cover;background-position:center,center center;background-repeat:no-repeat}@media(max-width:650px){#home .trends-entry,html[data-theme=dark] #home .trends-entry{min-height:185px;background-size:100% 100%,cover;background-position:center,60% center}}

#profile>.section-head{margin:0 0 4px}#profile>.section-head h2{font-size:23px}#profile>.sub{margin:0 0 12px;line-height:1.4}#profile-content #tour-replay{margin:0 0 4px;padding:9px 14px;font-size:13px}#profile #profile-content .profile-grid{margin-top:8px}@media(max-width:650px){#profile>.section-head h2{font-size:21px}#profile>.sub{margin-bottom:10px}#profile-content #tour-replay{margin-bottom:4px}#profile #profile-content .profile-grid{margin-top:8px}}

#profile .profile-intro{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0 0 2px}#profile .profile-intro .sub{margin:0;line-height:1.35}#profile #profile-tour-slot{display:inline-flex;align-items:center}#profile #profile-tour-slot #tour-replay{margin:0;padding:7px 12px;font-size:12px;line-height:1.3}#profile #profile-content .profile-grid{margin-top:8px}@media(max-width:600px){#profile .profile-intro{align-items:flex-start;gap:7px 10px}#profile .profile-intro .sub{font-size:13px}}


/* Wide desktop profile layout v1 */
@media (min-width: 1700px) {
  main:has(#profile.active) {max-width: 1900px; width: calc(100% - 230px); padding: 38px 56px 70px;}
  #profile>.section-head h2 {font-size: 30px;}
  #profile .profile-intro {gap: 10px 18px; margin-bottom: 12px;}
  #profile .profile-intro .sub {font-size: 17px;}
  #profile #profile-tour-slot #tour-replay {font-size: 15px; padding: 10px 16px;}
  #profile #profile-content .profile-grid {grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 26px; margin-top: 16px;}
  #profile .profile-side {gap: 26px;}
  #profile .profile-card {padding: 26px 30px; border-radius: 25px;}
  #profile .profile-identity {padding: 24px 28px;}
  #profile .profile-card h3, #profile .profile-identity-head h3 {font-size: 22px; line-height: 1.3;}
  #profile .profile-identity-head {gap: 12px; margin-bottom: 16px;}
  #profile .profile-identity .profile-heart {width: 38px; height: 38px; font-size: 20px;}
  #profile .profile-card p, #profile .profile-identity>p {font-size: 16px; line-height: 1.55;}
  #profile .profile-kicker, #profile .profile-card dt, #profile .profile-card dd {font-size: 15px;}
  #profile .profile-identity .profile-action, #profile .profile-card .profile-action {min-height: 48px; padding: 11px 16px; font-size: 16px;}
  #profile .profile-identity .profile-avatar {width: 66px; height: 66px;}
  #profile .profile-identity .avatar-editor .text-btn, #profile .profile-identity .field-label {font-size: 15px;}
  #profile .profile-identity #profile-name {font-size: 16px; padding: 12px 14px;}
  #profile .profile-identity #profile-form .sub {font-size: 14px;}
  #profile .profile-identity #save-profile {font-size: 16px; padding: 13px 18px;}
  #profile .profile-identity .profile-mfa {padding: 18px;}
  #profile .profile-identity .profile-mfa h3 {font-size: 17px;}
  #profile .profile-identity .profile-mfa p, #profile .profile-identity>.text-btn {font-size: 15px;}
  #profile #profile-wallet-card, #profile #profile-wallet-card button {font-size: 16px;}
}

.trend-prompt-fields {min-width:0;margin:0 0 16px;padding:12px 14px;border:1px solid #73566b65;border-radius:12px}
.trend-prompt-fields legend {padding:0 5px;font-weight:600}
.trend-prompt-fields label {display:block;margin:6px 0}
.trend-prompt-fields input {display:block;width:100%;margin-top:4px}

.model-controls #model {
  appearance: none;
  padding-inline-end: 40px;
  background-image: linear-gradient(45deg, transparent 50%, #bc7197 50%), linear-gradient(135deg, #bc7197 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
html[data-theme=dark] .model-controls #model { color-scheme: dark; }
.model-controls #model optgroup { font-weight: 700; }
.model-controls #model option { font-weight: 500; }
.model-controls .model-hint { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }

/* Bonus in the account card */
.telegram-bonus{display:grid;gap:12px;margin:16px 0 20px;padding:16px;border:1px solid #ed76ab66;border-radius:16px;background:linear-gradient(135deg,#d6478e24,#9d52d21a)}
.telegram-bonus[hidden],.telegram-bonus-button[hidden],.telegram-bonus-status:empty{display:none}
.telegram-bonus-copy strong{display:block;font-size:15px}
.telegram-bonus-copy p,.telegram-bonus-status{margin:5px 0 0;font-size:13px;line-height:1.45}
.telegram-bonus-button{width:100%;padding:12px 16px;border:0;border-radius:12px;background:linear-gradient(110deg,#ff9ec8,#f48ab8);color:#321328;font:inherit;font-weight:800;cursor:pointer}
.telegram-bonus-button span{margin-left:4px}
.telegram-bonus-button:hover:not(:disabled){filter:brightness(1.09)}
.telegram-bonus-button:focus-visible{outline:2px solid #ffbadd;outline-offset:3px}
.telegram-bonus-button:disabled{opacity:.7;cursor:wait}
