@font-face{font-family:Manrope;src:url('/assets/manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}*{box-sizing:border-box}html{background:#090d12;color-scheme:dark}body{margin:0;font:14px/1.5 Manrope,Arial,sans-serif;color:#f7f7fb;background:radial-gradient(ellipse at 60% 0,#15132277,transparent 60%),#090d12;min-height:100dvh}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0}button:disabled{opacity:.48;cursor:wait}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #c49afc;outline-offset:3px}main{width:100%;max-width:480px;margin:auto;padding:22px 14px calc(102px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)));overflow-wrap:anywhere}h1,h2,h3,p{margin:0}h1{font-size:31px;letter-spacing:-1.15px;font-weight:800;line-height:1.17}h2{font-size:22px;letter-spacing:-.6px;line-height:1.25}h3{font-size:17px;line-height:1.35}p,.muted{color:#acb0c6}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.gradient{background:linear-gradient(100deg,#b18afa 4%,#ee9be0 56%,#ffb899);-webkit-background-clip:text;background-clip:text;color:transparent}.lead{font-size:13px;margin-top:10px;margin-bottom:15px;letter-spacing:.03px}.home-title{font-size:33px;line-height:1.03;margin:0 3px}.home-title span{display:block;font-size:35px;margin-top:3px}.home .lead{margin:11px 3px 14px}.feature{position:relative;display:block;text-align:left;width:100%;height:138px;border:1px solid #292c40;border-radius:13px;overflow:hidden;padding:12px 14px;margin-bottom:8px;background:#14182a}.feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.feature:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#121729fa 0,#121729aa 32%,#12172900 80%)}.feature>*:not(img){position:relative;z-index:1}.feature .tile-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#b797f5;color:#141427;margin-bottom:6px}.feature h2{font-size:19px;letter-spacing:-.4px}.feature p{font-size:12px;color:#c0c4d7;line-height:1.35;margin-top:3px;width:63%}.feature .arrow{display:grid;place-items:center;background:#ffb39c;color:#14141d;border-radius:50%;width:28px;height:28px;margin-top:8px}.feature .soon{position:absolute;right:12px;top:12px;font-size:10px;background:#151823b8;border:1px solid #595061;border-radius:20px;padding:3px 9px;color:#e2d2ef}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:18px 0 11px;gap:10px}.section-heading h2{font-size:18px}.link{color:#c0b0df;background:none;padding:5px 0;display:inline-flex;align-items:center;gap:6px;font-size:12px}.recent{display:grid;gap:9px}.recent-card{display:flex;align-items:center;gap:12px;background:linear-gradient(110deg,#181c29,#11151f);border:1px solid #222837;border-radius:12px;padding:9px;text-align:left;width:100%}.recent-card img{width:58px;height:58px;object-fit:cover;border-radius:8px}.recent-card h3{font-size:13px}.recent-card p{font-size:11px;margin-top:3px}.recent-card .grow{flex:1;min-width:0}.round{border:1px solid #aea4d3;border-radius:50%;width:32px;height:32px;display:inline-grid;place-items:center;background:none;color:#dbd4f6}nav{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);padding:10px 8px calc(10px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)));border-top:1px solid #2a2f3e;background:linear-gradient(100deg,#151923,#111521);display:flex;justify-content:space-around;border-radius:12px 12px 0 0;box-shadow:0 -8px 22px #080b1166}nav[hidden]{display:none}nav button{position:relative;background:none;color:#a7adc4;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 8px;font-size:11px;min-width:95px;min-height:45px}nav svg{width:22px;height:22px}nav .active{color:#bd97fa}nav .active:after{content:'';height:2px;border-radius:3px;background:#b590f7;position:absolute;bottom:-9px;width:66px}body.keyboard nav{display:none}body.keyboard main{padding-bottom:30px}.banner{height:127px;border:1px solid #33303f;border-radius:13px;position:relative;overflow:hidden;padding:16px;margin-bottom:14px;background:#131623}.banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60%}.banner:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#111522e8 0,#1115228c 40%,transparent 85%)}.banner h1,.banner p{position:relative;z-index:1;width:70%}.banner h1{font-size:29px}.banner p{font-size:12px;margin-top:7px}.steps{display:flex;align-items:center;justify-content:center;gap:9px;margin:16px 0 20px;color:#9ba1bd;white-space:nowrap;font-size:12px}.step{display:flex;align-items:center;gap:7px}.step b{font-size:13px;font-weight:600;display:grid;place-items:center;width:28px;height:28px;border:1px solid #696d84;border-radius:50%;background:linear-gradient(125deg,#242537,#0e121b)}.step.active{color:#eee8fa}.step.active b{background:#bc95f5;border-color:#bc95f5;color:#171020}.steps>svg{width:16px}.step.done svg{color:#c396fc;width:14px}.panel{border:1px solid #34394b;border-radius:14px;background:linear-gradient(120deg,#191d2b,#101620);padding:16px}.field-label{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:700;letter-spacing:-.35px;margin-bottom:6px}.field-label svg{color:#c59aff}.hint{font-size:11px;line-height:1.45;margin-bottom:10px}.form-group{margin-bottom:17px}textarea,input{border:1px solid #454157;border-radius:10px;background:#151a27;color:#f4f1fa;width:100%;padding:11px 12px;outline:none}textarea{min-height:100px;resize:vertical;line-height:1.5;font-size:13px}textarea::placeholder,input::placeholder{color:#888ba4}.style-input{min-height:60px;height:63px}.mode-switch{display:flex;gap:8px;margin-bottom:10px}.chip,.mode-switch button{border:1px solid #3c3d50;border-radius:8px;padding:6px 12px;background:linear-gradient(110deg,#222639,#191e2b);font-size:12px;color:#d2cee3}.chip.selected,.mode-switch .selected{color:#e0c8ff;border-color:#ad80ec;background:#342849}.chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.primary,.secondary{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;border-radius:11px;padding:10px 12px;font-size:15px;font-weight:750}.primary{background:linear-gradient(105deg,#b28afa,#ed9cdf 56%,#ffb999);color:#161024}.secondary{border:1px solid #ac91d8;background:linear-gradient(105deg,#1c2030,#131926);color:#f0eefa}.footnote{font-size:11px;text-align:center;color:#a8a8bf;line-height:1.5;margin:9px 3px}.tips{margin-top:14px;display:flex;gap:10px;align-items:flex-start;font-size:11px;padding:12px 14px}.tips svg{color:#c496fa}.page-head{position:relative;min-height:65px;margin:0 4px 0}.page-head h1{padding-top:5px}.page-head p{font-size:13px;margin-top:6px}.page-head .mic-small{position:absolute;right:-3px;top:-10px;width:125px;height:81px;object-fit:cover;border-radius:15px;mask-image:linear-gradient(90deg,transparent,black 40%)}.page-head h1,.page-head p{position:relative;z-index:1}.meta{display:flex;gap:10px;align-items:center;margin:0 2px 12px;font-size:11px;color:#bdbad2}.meta>span{display:flex;align-items:center;gap:4px}.meta svg{width:15px}.tag{color:#c5a1fa;background:#342944;border-radius:7px;padding:4px 9px;max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lyrics-card{padding:13px 15px}.lyrics-card h2{font-size:20px;letter-spacing:-.5px;margin-bottom:10px}.lyrics-text{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.lyrics-text.collapsed{max-height:244px;overflow:hidden;mask-image:linear-gradient(black 85%,transparent)}.lyrics-card .link{width:100%;justify-content:center;font-size:12px;margin-top:5px}.actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.actions-grid .secondary{font-size:12px;min-height:41px;padding:7px 6px}.actions-grid svg{width:17px}.actions-grid .wide{grid-column:1/-1}.music-button{margin-top:12px}.error-box{border:1px solid #ac6878;background:#2c1b27;color:#ffd6df;padding:12px;border-radius:10px;font-size:12px;margin:12px 0}.error-box button{margin-top:10px}.result-head{text-align:center;margin:0 0 12px}.result-head h1{font-size:28px;letter-spacing:-.9px}.result-head p{font-size:12px;margin-top:4px}.success-check{display:inline-grid;place-items:center;border-radius:50%;background:#40d66f;color:#082916;width:20px;height:20px;vertical-align:middle;margin-left:5px}.success-check svg{width:15px}.cover-main{display:block;width:76%;max-width:290px;aspect-ratio:1.04;margin:auto;object-fit:cover;border:1px solid #514566;border-radius:12px}.song-heading{text-align:center;margin:8px 0 7px}.song-heading h2{font-size:19px}.song-heading p{font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:0 10px}.versions{display:flex;border:1px solid #3a4054;border-radius:30px;padding:2px;margin:8px auto 7px;width:86%;background:#131925}.versions button{flex:1;min-height:26px;font-size:12px;background:none;border-radius:20px;color:#bfc2da}.versions .selected{background:linear-gradient(100deg,#b58cf9,#fda6c5);color:#171020;font-weight:800}.player{padding:11px 16px 9px;margin-bottom:8px}.wave{position:relative;display:flex;gap:2px;align-items:center;height:34px;overflow:hidden;cursor:pointer}.wave i{flex:1;border-radius:3px;background:#525a74;min-width:2px;pointer-events:none}.wave i.played{background:#c495f5}.seek{width:100%;padding:0;height:8px;border:none;accent-color:#c199f7;display:block;margin:2px 0 1px}.times{display:flex;justify-content:space-between;font-size:11px;color:#aeb8d6;font-variant-numeric:tabular-nums}.transport{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:-3px}.transport button{background:none;padding:8px}.transport .play-main{width:41px;height:41px;border-radius:50%;display:grid;place-items:center;padding:0;background:linear-gradient(120deg,#b28af8,#ee9ddd);color:#151024}.transport .play-main svg{width:22px;height:22px;fill:currentColor;stroke-width:1}.result-buttons{display:grid;gap:7px}.result-footer{display:flex;justify-content:space-around;margin:10px 0;font-size:12px}.result-footer button{background:none;color:#beb3db;display:flex;align-items:center;gap:8px;font-size:12px}.result .steps{margin:1px 0 15px}.works-title{margin:2px 4px 16px}.tabs{display:flex;gap:6px;border:1px solid #343746;background:#171b29;padding:4px;border-radius:12px;margin-bottom:13px}.tabs button{flex:1;min-height:35px;display:flex;align-items:center;justify-content:center;gap:6px;background:none;border-radius:8px;color:#adb1c9;font-size:13px}.tabs .selected{background:linear-gradient(100deg,#a580e4,#d997cf);color:#181021;font-weight:800}.tabs svg{width:17px}.search{position:relative;margin-bottom:12px}.search svg{position:absolute;left:12px;top:12px;color:#8f95ae}.search input{padding-left:40px;font-size:12px;height:43px}.work-card{display:grid;grid-template-columns:91px 1fr;gap:11px;padding:11px;margin-bottom:10px}.work-card>img{width:91px;height:97px;object-fit:cover;border-radius:8px}.work-info{min-width:0}.work-info h3{font-size:16px;line-height:1.3;letter-spacing:-.3px}.work-info p{font-size:11px;margin-top:4px;color:#c8a8e4}.work-date{font-size:10px;color:#929bb7;margin:3px 0}.work-info .row{display:flex;gap:6px;align-items:center;margin-top:7px}.work-info .row button{border:1px solid #726082;border-radius:6px;background:#202536;color:#d8c6eb;padding:4px 7px;font-size:10px;display:flex;align-items:center;gap:5px;min-height:29px}.work-info .row svg{width:13px;height:13px}.work-info .row .delete{margin-left:auto;padding:4px 6px}.status{font-size:10px;color:#8cdeb0}.empty{border:1px dashed #46415c;border-radius:14px;text-align:center;padding:30px 20px;color:#afb2cc;margin:15px 0}.empty svg{width:38px;height:38px;color:#b599de;margin-bottom:12px}.empty h2{color:#eee8fc;font-size:19px;margin-bottom:8px}.empty p{font-size:12px;margin-bottom:16px}.loading{padding:80px 16px;text-align:center}.spinner{display:inline-block;border:2px solid #474057;border-top-color:#ce9be9;border-radius:50%;width:30px;height:30px;animation:spin 1s linear infinite;margin-bottom:16px}.loading h2{font-size:21px}.loading p{font-size:13px;margin-top:9px}@keyframes spin{to{transform:rotate(360deg)}}dialog{color:#f5f0ff;background:#161b29;border:1px solid #6e5d87;border-radius:17px;width:calc(100% - 30px);max-width:430px;padding:20px;max-height:85dvh;overflow:auto}dialog::backdrop{background:#04070cc9;backdrop-filter:blur(4px)}dialog h2{font-size:21px;margin-bottom:10px}dialog p{font-size:12px;margin-bottom:12px}dialog textarea{min-height:170px;margin-bottom:12px}dialog input{margin-bottom:9px}dialog .modal-buttons{display:flex;gap:8px;margin-top:12px}dialog .modal-buttons button{font-size:13px}dialog label{display:block;font-size:12px;margin:8px 0}#toast{position:fixed;z-index:40;bottom:100px;left:50%;transform:translateX(-50%);width:calc(100% - 30px);max-width:400px;padding:12px 16px;color:#eee6ff;border:1px solid #746185;background:#222336f5;box-shadow:0 8px 30px #0009;border-radius:12px;font-size:12px}.profile-avatar{margin:20px auto 15px;display:grid;place-items:center;width:82px;height:82px;background:linear-gradient(130deg,#b292f4,#f4b6c1);color:#261d35;border-radius:50%;font-size:30px;font-weight:800}.profile-name{text-align:center}.profile-name p{margin-top:6px}.profile-count{text-align:center;margin-top:24px}.profile-count strong{display:block;font-size:38px;color:#ceabff}.profile-count p{font-size:13px}.profile-notice{text-align:center;font-size:12px;padding:20px 14px}.screen-error{max-width:350px;margin:50px auto;text-align:center}.screen-error h1{font-size:28px}.screen-error p{margin:16px 0}.screen-error a{display:block;text-decoration:none}.save-status{font-size:10px;color:#9ea4be;margin:8px 0}.wait{padding:35px 16px;text-align:center}.wait h2{font-size:23px}.wait p{font-size:12px;margin-top:10px}.wait .secondary{margin-top:20px}.version-history{font-size:11px;color:#a1a5ba;text-align:right;margin:8px 0 0}@media(min-width:414px){main{padding-left:17px;padding-right:17px}.feature{height:146px}.home-title{font-size:35px}.home-title span{font-size:37px}.work-card{grid-template-columns:98px 1fr}.work-card>img{width:98px;height:104px}}@media(max-width:374px){h1{font-size:28px}.home-title{font-size:30px}.home-title span{font-size:33px}.feature h2{font-size:18px}.feature p{font-size:11px}.field-label{font-size:17px}.steps{gap:7px}.step{gap:5px}.work-card{grid-template-columns:78px 1fr;gap:9px;padding:9px}.work-card>img{width:78px;height:94px}.work-info h3{font-size:14px}.work-info .row button{font-size:9px;padding:4px 5px}.result-head h1{font-size:26px}}

/* Refined against the 390px reference screens. */
.home-title span{width:max-content}.feature h2{font-size:18px;line-height:1.2}.feature p{font-size:11px;line-height:1.25}.feature .arrow{position:absolute;left:14px;bottom:11px;margin:0;width:27px;height:27px}.feature .tile-icon{margin-bottom:5px}.feature:nth-of-type(2) img{object-position:75% center}.feature:nth-of-type(3) img{object-position:85% center}.chips{gap:6px}.chip{font-size:10px;padding:6px 9px}.wave{cursor:default}.seek{appearance:none;-webkit-appearance:none;height:3px;background:#4f4563;border-radius:10px;margin:4px 0 5px}.seek::-webkit-slider-thumb{appearance:none;width:9px;height:9px;border-radius:50%;background:#c199f7}.seek::-moz-range-thumb{width:9px;height:9px;border:0;border-radius:50%;background:#c199f7}nav{padding-top:8px;padding-bottom:calc(8px + max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))}nav button{min-height:39px}nav .active:after{bottom:-7px}.tag{display:inline-block!important}.profile-notice{margin:15px 0}.work-card{min-height:120px}

.feature{align-content:start}

.feature{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.feature .tile-icon,.feature h2,.feature p{flex:none}
/* Ready song and library: 390px references, native Telegram header omitted. */
.result .steps{margin:0 22px 12px;justify-content:space-between;gap:6px}.result .step b{width:25px;height:25px}.result .steps>.step>span{font-size:11px}.result .step.done b{background:transparent;border:1px solid #7c829a;color:#b6bfdc}.result .step.done svg{color:#c793ff;width:12px}.result-head{margin:0 0 8px;text-align:center}.result-head h1{font-size:28px;white-space:normal;display:flex;justify-content:center;align-items:center;gap:6px;letter-spacing:-.8px}.result-head p{font-size:12px;margin-top:1px}.success-check{width:19px;height:19px;border-radius:50%;background:#32d857;color:#08250e;display:inline-grid;place-items:center;flex:none;box-shadow:none}.success-check svg{width:14px;height:14px;stroke-width:3}.cover-main{display:block;width:76%;max-width:300px;aspect-ratio:1;object-fit:cover;height:auto;margin:9px auto 5px;border-radius:11px;border:1px solid #40354f}.song-heading{text-align:center;margin:0 0 4px}.song-heading h2{font-size:17px;line-height:1.2;overflow-wrap:anywhere}.song-heading p{font-size:11px;margin-top:1px}.versions{display:flex;gap:0;border:1px solid #353b4e;background:#161c26;border-radius:24px;padding:1px;min-width:0;width:100%;margin:0;overflow:hidden}.versions button{flex:1;min-width:0;background:none;border-radius:24px;color:#b8c2df;font-size:11px;padding:4px 6px;white-space:normal;line-height:1.3;min-height:22px}.versions button.selected{color:#141224;background:linear-gradient(105deg,#b08bff,#ed9be6,#ffb3bc);font-weight:800;box-shadow:none}.result>.versions{width:82%;margin:5px auto}.panel.player{margin:5px 0 8px;padding:9px 16px 5px;border-radius:11px;background:linear-gradient(105deg,#151c26,#171c27);border:1px solid #30384b}.wave{height:32px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:2px;cursor:pointer;touch-action:none;user-select:none;min-width:0;position:relative}.wave i{display:block;flex:1;min-width:1px;max-width:3px;border-radius:5px;background:#4c586e;opacity:.85;transition:background .08s}.wave i.played{background:#bf85f2;opacity:1}.wave-loading{color:#97a0b6;font-size:10px;white-space:normal;text-align:center;width:100%;line-height:1.2}.times{display:flex;justify-content:space-between;font-size:11px;line-height:1.3;color:#b9c8e6;margin:0}.transport{display:flex;justify-content:center;align-items:center;gap:27px;margin:-5px 0 0}.transport>button{width:26px;height:26px;background:none;padding:0;display:grid;place-items:center}.transport .play-main,.card-play{display:grid;place-items:center;background:linear-gradient(120deg,#ad80fa,#ee9ddd,#ffb6bb);border-radius:50%;color:#151326;box-shadow:none}.transport .play-main{width:42px;height:42px}.play-main svg,.card-play svg{fill:currentColor;stroke-width:2;width:21px;height:21px}.play-main svg path[d^="M8"],.card-play svg path[d^="M8"]{fill:none;stroke-width:3}.result-buttons{display:grid;gap:7px}.result-buttons .primary,.result-buttons .secondary{margin:0;min-height:35px;border-radius:10px;padding:7px;font-size:12px;font-weight:800}.result-buttons .secondary{border:1px solid #c6a5f6;background:linear-gradient(110deg,#131a24,#12171f)}.result-buttons svg{width:17px;height:17px}.result-footer{display:flex;justify-content:space-evenly;margin:9px 0 0}.result-footer button{background:none;color:#b9b4e0;font-size:11px;display:flex;align-items:center;gap:8px;padding:2px 10px}.result-footer button+button{border-left:1px solid #4d5264}.result-footer svg{width:17px;height:17px}.single-version{text-align:center;font-size:11px;margin:7px}.library .works-title{font-size:31px;margin:0 4px;line-height:1.15}.library-lead{font-size:13px;margin:0 4px 12px;color:#aab4d5}.library .tabs{display:flex;border:1px solid #30394a;background:#131b25;border-radius:12px;padding:2px;gap:0;margin:0 2px 9px}.library .tabs button{width:33.333%;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 3px;font-size:11px;border:0;background:none;color:#b8c2df;border-radius:10px}.library .tabs button svg{width:15px;height:15px;color:#c69afa}.library .tabs button.selected{background:linear-gradient(110deg,#b18aff,#f09bdf,#ffb3b4);color:#111020;font-weight:800}.library .tabs button.selected svg{color:#111020}.library .search{margin:0 2px 9px;border:1px solid #30394a;background:linear-gradient(110deg,#121a25,#18212a);border-radius:11px;padding:7px 12px;display:flex;align-items:center;gap:10px;height:36px}.library .search svg{width:16px;height:16px}.library .search input{min-width:0;flex:1;font-size:11px;background:none;border:0;color:#d0d6ec;padding:0;height:auto}.date-group{font-size:16px;letter-spacing:-.2px;margin:8px 3px 5px}.library #work-list{display:block}.library .work-card{position:relative;display:grid;grid-template-columns:90px minmax(0,1fr) 39px;gap:0 10px;padding:8px 8px 0;margin:0 0 8px;min-height:0;border:1px solid #2e3749;border-radius:12px;background:linear-gradient(110deg,#141c26,#101821);overflow:hidden}.work-cover{grid-row:1;grid-column:1;padding:0;background:none;border-radius:8px;align-self:start;width:90px;height:90px;overflow:hidden}.work-cover img{display:block;width:100%;height:100%;object-fit:cover}.library .work-info{grid-column:2;grid-row:1;min-width:0;padding-top:0;padding-bottom:6px}.work-title{padding:0;text-align:left;background:none;width:100%;display:block}.library .work-info h3{font-size:15px;line-height:1.2;letter-spacing:-.25px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.library .work-meta{font-size:10px;line-height:1.35;margin:3px 0 5px;color:#99a6c8;max-height:2.7em;overflow:hidden}.library .work-info .versions{width:100%;min-height:22px}.library .work-info .versions button{font-size:9px;padding:4px 3px}.library .card-play{grid-column:3;grid-row:1;align-self:start;width:39px;height:39px;padding:0;margin-top:10px}.card-play .spinner{width:18px;height:18px;margin:0;border-width:2px}.inline-player{grid-column:2/4;padding:0 1px 8px;margin-top:-19px;min-height:42px;align-self:end}.inline-player .wave{height:24px}.inline-player .times{font-size:10px}.card-actions{grid-column:1/4;display:flex;align-items:center;border-top:1px solid #2b3442;gap:0;padding:8px 0;margin-top:5px}.card-actions button{flex:1;min-width:0;display:flex;justify-content:center;align-items:center;gap:10px;background:none;font-size:11px;padding:0;line-height:1.2;min-height:20px}.card-actions button+button{border-left:1px solid #323a4e}.card-actions svg{width:17px;height:17px}.card-actions .delete{color:#f29cba}.library .new-song{margin:9px 1px 0;min-height:39px;padding:8px;font-size:12px;border-radius:10px}.new-song span{font-size:22px;line-height:1}.library .load-more{font-size:12px;margin:10px 0}.library .status{font-size:10px}.work-title:focus-visible,.work-cover:focus-visible{outline-offset:-2px}button:disabled{cursor:default}nav .active:after{display:none}nav{margin-bottom:0}.result .error-box{margin:7px 0;font-size:11px}@media(max-width:374px){.result-head h1{font-size:25px}.library .work-card{grid-template-columns:82px minmax(0,1fr) 35px;gap:0 8px;padding:7px 7px 0}.work-cover{width:82px;height:82px}.library .card-play{width:35px;height:35px}.library .work-info h3{font-size:14px}.library .work-info .versions button{font-size:8px}.inline-player{margin-top:-8px}.result .steps{margin-left:14px;margin-right:14px}}@media(min-width:414px){.library .work-card{grid-template-columns:98px minmax(0,1fr) 42px}.work-cover{width:98px;height:98px}.library .card-play{width:42px;height:42px}.library .work-info h3{font-size:16px}}
.library .search svg{position:static;inset:auto;flex:none;transform:none}.library .new-song svg{width:18px;height:18px}.library .work-info .versions{min-height:22px}.wave-loading{letter-spacing:0}

.cover-note{font-size:13px;line-height:1.5;color:var(--muted,#a6a5b4);text-align:center;margin:12px 0 18px}.cover-pending{opacity:.8}

.player-artwork{display:flex;align-items:center;gap:10px;margin:0 0 14px;min-width:0}.player-artwork img{width:38px;height:38px;border-radius:9px;object-fit:cover;flex-shrink:0}.player-artwork span{font-size:13px;color:#c5c4d0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inline-player .player-artwork{margin-top:8px}
.image-page-head{position:relative;text-align:center;margin-bottom:16px}.image-page-head h1{font-size:28px;line-height:1.2;margin:4px 0 5px}.image-page-head p{font-size:14px;color:#9491aa;margin:0}.image-back{position:absolute;left:0;top:4px;width:26px;height:26px;background:none;padding:0}.image-banner{width:100%;height:auto;aspect-ratio:3.9;object-fit:cover;border-radius:13px;margin-bottom:18px}.image-field label,.image-field-label{font-size:19px;font-weight:650;display:block;margin:0 0 9px}.image-prompt-box{background:linear-gradient(130deg,#191c28,#171a24);border:1px solid #383b50;border-radius:12px;overflow:hidden}.image-prompt-box textarea{background:transparent;border:0;border-radius:0;min-height:108px;height:108px;padding:12px 13px;font-size:15px;line-height:1.55}.image-improve{display:flex;align-items:center;gap:6px;color:#c99beb;background:none;border:0;margin-left:auto;padding:2px 12px 10px;font-size:12px}.image-improve svg{width:16px;height:16px}.image-undo{margin-top:8px;font-size:12px}.image-field-label{margin-top:17px}.image-styles,.image-formats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.image-style{padding:0;position:relative;aspect-ratio:1.4;border:1px solid #414156;border-radius:10px;overflow:hidden;background:#191d26}.image-style img{width:100%;height:100%;object-fit:cover;display:block}.image-style:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#080a1499)}.image-style span{position:absolute;bottom:7px;left:8px;font-size:15px;font-weight:600;z-index:1}.image-style.selected,.image-format.selected{border:2px solid #d494f1;box-shadow:0 0 0 1px #b181d330}.image-style b,.image-format b{display:grid;place-items:center;position:absolute;right:6px;top:6px;border-radius:50%;width:19px;height:19px;background:#c88aef;color:#24172f;z-index:2}.image-style b svg,.image-format b svg{width:13px;height:13px;stroke-width:3}.image-format{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:9px 6px;border:1px solid #393d52;border-radius:10px;background:linear-gradient(120deg,#1c1c29,#10151c);height:67px;font-size:14px}.ratio{display:block;width:19px;height:19px;border:1.5px solid #bab3d5;border-radius:2px}.ratio-9-16{width:14px;height:23px}.ratio-16-9{width:25px;height:14px}.image-reference{border:1px dashed #565a74;border-radius:11px;margin-top:16px;padding:13px;min-height:70px;display:flex;align-items:center;gap:10px}.image-reference>button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;background:none;font-size:15px}.image-reference>button svg{width:29px;height:29px;color:#b9b0d2}.image-reference small{display:block;font-size:11px;color:#8b87a4;margin-top:4px;text-align:left}.image-reference>img{width:55px;height:55px;object-fit:contain;border-radius:6px}.image-reference p{font-size:11px;color:#9690ac;margin:3px 0}.image-reference b{font-size:13px}.image-reference .link{font-size:12px}.image-create-button{margin-top:16px;min-height:46px}.image-footnote{text-align:center;color:#9490ac;font-size:12px;margin:10px 0 0}.image-note{font-size:12px;line-height:1.5;color:#a29ab5;margin:9px 0}.image-library h1{font-size:30px;line-height:1.2;margin:0 0 6px}.image-library .library-lead{margin-top:0}.image-library .tabs{margin-bottom:10px}.image-date{display:flex;align-items:baseline;justify-content:space-between;margin:16px 0 8px}.image-date h2{font-size:20px;margin:0}.image-date>span{font-size:11px;color:#9c97b1}.image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.image-card{min-width:0;border:1px solid #34364a;border-radius:11px;overflow:hidden;background:linear-gradient(120deg,#191c26,#11151c)}.image-card-preview{width:100%;aspect-ratio:1;padding:0;background:#141922;display:block;overflow:hidden}.image-card-preview img{width:100%;height:100%;object-fit:cover;display:block}.image-card-bottom{padding:8px 7px;display:flex;gap:5px;align-items:flex-end;min-width:0}.image-card-text{min-width:0;flex:1}.image-card-text>button{padding:0;background:none;text-align:left;max-width:100%;display:block}.image-card h3{font-size:12px;line-height:1.4;font-weight:650;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.image-card-text p{font-size:10px;color:#a39bb8;margin:4px 0 0}.image-card-actions{display:flex;gap:4px;flex-shrink:0}.image-card-actions button{padding:3px;display:grid;place-items:center;width:24px;height:27px;border:1px solid #34364a;background:#1b1e2b;border-radius:7px}.image-card-actions svg{width:15px;height:15px}.image-card-actions circle{fill:currentColor;stroke:none}.image-card-state{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;height:100%;font-size:12px;color:#aaa3be}.image-card-state svg{width:30px;height:30px}.image-view{display:block;width:100%;padding:0;background:#0c1119;border:1px solid #34394b;border-radius:13px;overflow:auto;max-height:70vh}.image-view img{width:100%;height:auto;object-fit:contain;display:block}.image-view.zoomed img{width:200%;max-width:none}.image-result h2{font-size:21px;overflow-wrap:anywhere;margin:15px 0 8px}.image-result>.secondary,.image-result>.primary{margin-top:12px}.image-result>.link{display:block;margin:15px auto}.image-gallery-loading{text-align:center;padding:35px}.image-library .search input{min-width:0}button:disabled{cursor:default}

.image-view:not(.zoomed) img{max-height:65vh;object-fit:contain}
/* Video studio: live controls over a separate decorative collage. */
.video-create,.video-result{padding-bottom:30px}.video-banner{position:relative;margin:18px 0;border:1px solid #434057;border-radius:16px;overflow:hidden;height:150px;background:#171c27}.video-banner img{width:100%;height:100%;object-fit:cover}.video-banner:has(button) img{object-fit:contain}.video-banner button{position:absolute;bottom:10px;right:10px;width:auto;min-height:34px;padding:7px 12px;background:#181b28e8}.video-source-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:7px}.video-source-buttons .secondary{padding:10px 6px;font-size:12px;white-space:normal;min-height:48px}.video-source-buttons svg{width:21px;flex-shrink:0}.video-create .image-field{margin:24px 0}.video-create .image-prompt-box textarea{min-height:132px}.video-durations .image-format{min-height:60px;padding:14px 4px;font-size:14px}.video-audio{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;margin-top:12px}.video-audio span{display:flex;align-items:center;gap:9px;font-size:15px}.video-audio svg{color:#c4a0e9;width:23px}.video-audio input{appearance:none;flex:none;width:42px;height:24px;border-radius:20px;background:#444555;position:relative;cursor:pointer}.video-audio input:before{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s}.video-audio input:checked{background:#ad78db}.video-audio input:checked:before{transform:translateX(18px)}.video-price{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px dashed #5c546d;border-radius:13px;padding:15px 13px;margin:20px 0}.video-price span{font-size:12px;color:#b5b1cc}.video-price small{display:block;margin-top:8px;font-size:10px;color:#8b86a3}.video-price strong{font-size:22px;flex-shrink:0}.video-footnote{text-align:center}.video-prompt{margin:12px 0;font-size:12px;color:#b4aac8}.video-prompt summary{color:#cd9fea;cursor:pointer}.video-prompt pre{font-family:inherit;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;border:1px solid #3a334d;border-radius:10px;max-height:220px;overflow:auto}.video-stale{margin-top:12px;padding:12px;background:#3c2b1d;border:1px solid #7d5436;border-radius:10px;font-size:12px}.video-stale[hidden]{display:none}.video-stale .link{font-size:12px;padding:0;white-space:normal}.video-source-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:380px;overflow:auto}.video-source-picker button{display:flex;flex-direction:column;white-space:normal;overflow:hidden;padding:8px}.video-source-picker img{width:100%;height:100px;object-fit:cover;border-radius:8px}.video-source-picker span{font-size:12px;overflow-wrap:anywhere}.video-result h1{font-size:24px;overflow-wrap:anywhere;margin-top:18px}.video-player-wrap video{width:100%;max-height:65vh;border-radius:14px;background:#111;object-fit:contain}.video-player-wrap{margin-bottom:18px}.video-play-mark{position:absolute;inset:0;display:grid;place-items:center;background:#0001}.video-play-mark svg{width:38px;height:38px;padding:9px;background:#161727b8;border-radius:50%;color:white}.image-gallery-card small{font-size:10px;color:#918aa7}.video-status{color:#cdb8e4;font-size:13px}.keyboard .video-create{padding-bottom:80px}
.image-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.image-gallery-card{min-width:0;border:1px solid #34364a;border-radius:12px;overflow:hidden;background:linear-gradient(120deg,#191c26,#11151c)}.image-gallery-card .image-thumb{position:relative;display:block;width:100%;aspect-ratio:16/10;padding:0;background:#141922}.image-gallery-card .image-thumb img{display:block;width:100%;height:100%;object-fit:cover}.image-gallery-card h3{margin:9px 9px 3px;font-size:13px;line-height:1.4;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.image-gallery-card p{margin:3px 9px;font-size:10px;color:#a39bb8}.image-gallery-card small{display:block;margin:4px 9px}.image-gallery-card .image-card-actions{justify-content:flex-end;margin:8px}.image-task-state{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#ddc9f1;background:#111a}.search-box{position:relative;margin:16px 0}.search-box svg{position:absolute;left:12px;top:13px;width:20px;color:#9282b0}.search-box input{width:100%;box-sizing:border-box;padding:12px 12px 12px 40px;border:1px solid #34364a;border-radius:12px;background:#161b25;color:#eee}

/* Native images: show every pixel in preview; scroll only when explicitly zoomed. */
.image-card-preview img,.image-gallery-card .image-thumb img{object-fit:contain}
.image-view:not(.zoomed){overflow:hidden;max-height:none;display:flex;justify-content:center;align-items:center}
.image-view:not(.zoomed) img{width:auto;height:auto;max-width:100%;max-height:65vh;max-height:65svh;object-fit:contain}
.image-view.zoomed{max-height:70vh;overflow:auto}

.video-banner.has-source img{object-fit:contain}

.feature .feature-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:0;pointer-events:none}.feature>*:not(img):not(video){position:relative;z-index:1}

/* Device system inset and Telegram content inset are separate safe regions. */
:root{--studio-top:calc(max(var(--safe-top,0px),env(safe-area-inset-top,0px)) + var(--content-safe-top,0px));--studio-bottom:calc(max(var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)) + var(--content-safe-bottom,0px));--studio-left:calc(max(var(--safe-left,0px),env(safe-area-inset-left,0px)) + var(--content-safe-left,0px));--studio-right:calc(max(var(--safe-right,0px),env(safe-area-inset-right,0px)) + var(--content-safe-right,0px))}
main{padding-top:calc(22px + var(--studio-top));padding-bottom:calc(102px + var(--studio-bottom));padding-left:calc(14px + var(--studio-left));padding-right:calc(14px + var(--studio-right))}nav{padding-bottom:calc(8px + var(--studio-bottom));padding-left:calc(8px + var(--studio-left));padding-right:calc(8px + var(--studio-right))}

.feature-wrap{position:relative}.feature-sound{position:absolute;right:10px;bottom:10px;z-index:2;display:grid;place-items:center;width:40px;height:40px;padding:9px;border-radius:50%;background:#0c101acc;border:1px solid #ffffff40;color:#fff;backdrop-filter:blur(6px)}.feature-sound svg{width:20px;height:20px}.feature-sound[aria-pressed="true"]{background:#b797f5;color:#151422;border-color:#b797f5}
