@font-face{font-family:"EB Garamond";src:url("assets/fonts/EBGaramond-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"EB Garamond";src:url("assets/fonts/EBGaramond-SemiBold.ttf") format("truetype");font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:"EB Garamond";src:url("assets/fonts/EBGaramond-Bold.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:"Inter";src:url("assets/fonts/Inter-Light.ttf") format("truetype");font-style:normal;font-weight:300;font-display:swap}
:root{--bg:#090b12;--panel:#111520;--panel2:#171c29;--line:#272d3c;--text:#f6f7fb;--muted:#9199aa;--violet:#7b5cff;--violet2:#aa7cff;--blue:#39a8ff;--pink:#ff58b7;--orange:#ff9b42;--green:#4bd7a1;--radius:18px;font-family:Inter,Segoe UI,Arial,sans-serif;color-scheme:dark}
[hidden]{display:none!important}
#processing-engine,#separator-model{display:block;width:100%;padding:14px 16px;margin:12px 0;background:#0d1621;color:var(--text);border:1px solid #32536b;border-radius:12px;cursor:pointer}
#processing-engine:focus-visible,#separator-model:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 50% -20%,#1d183a 0,transparent 38%),var(--bg);color:var(--text);min-height:100vh;font-size:16px}button,input,textarea,select{font:inherit}.topbar{height:72px;border-bottom:1px solid #202534;background:rgba(9,11,18,.9);backdrop-filter:blur(18px);display:flex;align-items:center;padding:0 32px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:10px;background:none;border:0;color:white;font-size:19px;font-weight:800;cursor:pointer}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#9c7cff,#5a3de8);box-shadow:0 0 24px #765cff55}.brand small{color:#7f8799;font-weight:600;font-size:12px;border-left:1px solid #363c4c;padding-left:10px}.topbar nav{display:flex;gap:8px;margin-left:56px}.nav-link{border:0;background:none;color:#8991a3;padding:10px 14px;border-radius:9px;cursor:pointer;font-weight:650}.nav-link:hover,.nav-link.active{color:white;background:#191e2b}.saved{margin-left:auto;color:#8c94a5;font-size:13px}.saved::first-letter{color:var(--green)}
main{max-width:1500px;margin:auto}.screen{display:none;padding:46px 44px 70px}.screen.active{display:block}.intro{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;max-width:1180px;margin:0 auto 32px}.eyebrow{color:#9f8cff;text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:800;margin:0 0 10px}h1{font-size:38px;line-height:1.12;margin:0 0 12px;letter-spacing:-.035em}.lead{color:#aab1c0;line-height:1.55;margin:0;max-width:700px}.steps{display:flex;align-items:center}.steps span,.steps b{width:32px;height:32px;display:grid;place-items:center;border:1px solid #383e4d;border-radius:50%;font-size:13px;color:#7c8495}.steps b{background:var(--violet);border-color:var(--violet);color:white}.steps i{width:34px;height:1px;background:#333847}
.creation-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:18px;max-width:1180px;margin:auto}.panel{background:linear-gradient(160deg,#141925,#0f131d);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 18px 50px #0003}.options-panel{grid-column:1/-1}.panel-title{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}.panel-title>span{color:#9b85ff;font-size:13px;font-weight:800;background:#27203f;border:1px solid #493d70;padding:6px 8px;border-radius:8px}.panel-title h2,.setting h2{margin:0 0 4px;font-size:18px}.panel-title p,.setting p{margin:0;color:var(--muted);font-size:13px}.dropzone{height:174px;border:1px dashed #4a5267;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;background:#0b0e16;transition:.2s}.dropzone:hover{border-color:#8a72ff;background:#121225}.dropzone>b{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#221c3d;color:#a58fff;font-size:25px}.dropzone strong{font-size:15px}.dropzone small{color:#7f8798}.note{color:#7d8698!important;font-size:12px!important;margin:13px 0 0!important}.note i{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-right:6px}.choices{display:grid;gap:9px}.choice{position:relative;display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #2a3040;border-radius:12px;cursor:pointer;background:#0e121b}.choice.selected{border-color:#7763d8;background:#19152b}.choice input{position:absolute;opacity:0}.choice>i{width:18px;height:18px;border:2px solid #535b6e;border-radius:50%}.choice.selected>i{border:5px solid #8b73ff;background:white}.choice span{display:flex;flex-direction:column;gap:3px}.choice small{color:#81899b;font-size:12px}.choice em{margin-left:auto;color:#b6a8ff;background:#2b2348;padding:5px 7px;border-radius:7px;font-size:11px;font-style:normal}.field-label{display:flex;justify-content:space-between;margin:18px 0 8px;font-size:13px;font-weight:700}.field-label button,.setting-title button{border:0;background:none;color:#9b88ff;cursor:pointer;font-size:12px}textarea{width:100%;height:102px;resize:vertical;border:1px solid #32394a;border-radius:11px;background:#090c13;color:white;padding:12px;line-height:1.5}.toggle-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.toggle-grid label{position:relative;display:grid;grid-template-columns:38px 1fr;column-gap:10px;padding:14px;background:#0c1018;border:1px solid #262c3a;border-radius:12px}.toggle-grid input{position:absolute;opacity:0}.toggle-grid label>span{grid-row:1/3;width:36px;height:21px;border-radius:20px;background:#3a4050;position:relative;margin-top:3px}.toggle-grid label>span:after{content:\"\";position:absolute;width:15px;height:15px;left:3px;top:3px;background:white;border-radius:50%;transition:.2s}.toggle-grid input:checked+span{background:var(--violet)}.toggle-grid input:checked+span:after{left:18px}.toggle-grid b{font-size:14px}.toggle-grid small{grid-column:2;color:#7f8798;font-size:12px;margin-top:3px}.quality{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding-top:14px;border-top:1px solid #252b38}.quality span{display:flex;flex-direction:column;gap:3px}.quality small{color:var(--muted)}.quality>strong{font-size:12px;color:#9ff1d0;background:#17332c;padding:7px 10px;border-radius:8px}.create-footer{max-width:1180px;margin:18px auto 0;display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border:1px solid #30284e;border-radius:15px;background:#171329}.create-footer p{margin:0;font-size:14px}.create-footer span{color:#969dad}.primary{background:linear-gradient(135deg,#8b6cff,#6849ed);box-shadow:0 8px 25px #553cde55;color:white;border:0;border-radius:11px;padding:12px 18px;font-weight:800;cursor:pointer}.primary:hover{filter:brightness(1.1)}.primary span{color:white;margin-left:18px}
.studio-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:20px}.studio-head h1{font-size:25px;margin:7px 0 4px}.studio-head p{margin:0;color:var(--muted);font-size:12px}.back{border:0;background:none;color:#9da5b6;padding:0;cursor:pointer}.head-actions{display:flex;gap:9px}.head-actions>button:not(.primary),.transport button,.full-width{border:1px solid #343a4a;background:#151a25;color:white;border-radius:10px;padding:10px 14px;cursor:pointer}.studio-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(340px,.74fr);gap:18px}.preview-column{min-width:0}.video-frame{aspect-ratio:16/9;border-radius:15px;border:1px solid #30364a;background:radial-gradient(circle at 70% 30%,#543b7a88 0,transparent 24%),radial-gradient(circle at 20% 75%,#144b6d99 0,transparent 30%),linear-gradient(135deg,#0d1320,#231630 60%,#0c1019);position:relative;overflow:hidden;display:flex;align-items:flex-end;justify-content:center;padding:10% 5%;box-shadow:inset 0 -160px 120px #02040ab5}.video-frame:before{content:\"\";position:absolute;inset:0;background:linear-gradient(115deg,transparent 20%,#ffffff08 21%,transparent 22%);opacity:.5}.video-tools{position:absolute;top:14px;right:14px;display:flex;gap:7px;align-items:center}.video-tools span,.video-tools button{border:1px solid #ffffff28;background:#0007;color:white;border-radius:7px;padding:6px 8px;font-size:11px}.karaoke-copy{position:relative;text-align:center;font-size:clamp(20px,2.3vw,38px);font-weight:800;line-height:1.5;text-shadow:0 3px 8px #000,0 0 1px #000}.karaoke-copy p{margin:0}.karaoke-copy .past{color:#ffffff82}.karaoke-copy .fill{color:var(--orange)}.voice-legend{position:absolute;left:15px;bottom:14px;display:flex;gap:7px}.voice-legend span{font-size:10px;padding:5px 7px;border-radius:6px;background:#080b10cc}.male{color:var(--blue)!important}.female{color:var(--pink)!important}.duet{color:var(--orange)!important}.transport{display:flex;align-items:center;gap:10px;background:#111520;border:1px solid var(--line);border-radius:13px;margin-top:10px;padding:10px}.transport .play{background:var(--violet);border:0;width:39px;height:39px;padding:0}.transport span{font-size:12px;color:#a0a8b7;font-variant-numeric:tabular-nums}.transport input{flex:1;accent-color:var(--violet)}
.timeline{height:205px;background:#111520;border:1px solid var(--line);border-radius:14px;margin-top:10px;padding:15px;position:relative;overflow:hidden}.timeline-top,.ruler,.track{display:flex;align-items:center}.timeline-top{justify-content:space-between;font-size:13px}.timeline-top span{color:#7f8796}.ruler{margin:13px 0 7px 78px;justify-content:space-between;color:#626a7b;font-size:10px}.track{height:55px;border-top:1px solid #252b38;gap:12px}.track>b{width:66px;color:#8c94a5;font-size:11px}.clips{display:grid;grid-template-columns:1fr 1.5fr .8fr;gap:3px;height:29px;flex:1}.clips i{border-radius:4px;background:currentColor;opacity:.4}.wave{flex:1;height:31px;background:repeating-linear-gradient(90deg,#7967d8 0 2px,transparent 2px 5px);mask:linear-gradient(0deg,transparent 5%,#000 45%,transparent 95%)}.playhead{position:absolute;width:1px;background:#ff6c78;top:43px;bottom:10px;left:43%}.playhead:before{content:\"\";position:absolute;width:7px;height:7px;border-radius:50%;background:#ff6c78;left:-3px}
.inspector{background:#111520;border:1px solid var(--line);border-radius:15px;overflow:hidden}.tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);padding:8px 8px 0}.tabs button{border:0;border-bottom:2px solid transparent;background:none;color:#858d9e;padding:10px 4px;cursor:pointer;font-size:13px}.tabs button.active{color:white;border-color:var(--violet)}.tab-panel{display:none}.tab-panel.active{display:block}.setting{padding:18px;border-bottom:1px solid var(--line)}.setting-title{display:flex;align-items:center;justify-content:space-between}.background-upload{margin-top:13px;height:114px;border:1px dashed #475065;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;background:#0c1018}.background-upload span{font-size:25px;color:#a590ff}.background-upload b{font-size:13px}.background-upload small{color:#747d8e;font-size:11px}.background-swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}.background-swatches button{height:42px;border:2px solid transparent;border-radius:8px;cursor:pointer}.background-swatches button.active{border-color:white}.bg-aurora{background:linear-gradient(135deg,#123d64,#4a235e)}.bg-night{background:radial-gradient(circle,#264875,#060912)}.bg-stage{background:linear-gradient(120deg,#6e2c2c,#121218,#294e70)}.bg-soft{background:linear-gradient(135deg,#c95c8d,#57409a)}.select-label,.slider-label{display:flex;flex-direction:column;gap:7px;margin-top:15px;color:#9aa2b3;font-size:12px}.select-label select,.two-fields select,.two-fields input{background:#0d111a;color:white;border:1px solid #323949;border-radius:8px;padding:9px;width:100%}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.two-fields label{color:#9aa2b3;font-size:12px}.two-fields input,.two-fields select{display:block;margin-top:7px}.slider-label span{display:flex;justify-content:space-between}.slider-label input{accent-color:var(--violet)}.colors p{display:flex;align-items:center;gap:9px;padding:7px 0!important}.colors p i,.lyric-lines i{width:9px;height:9px;background:currentColor;border-radius:50%}.colors p b{margin-left:auto;color:#7d8596;font-size:11px}.mix-note{line-height:1.45!important;margin:8px 0 14px!important}.presets{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:14px}.presets button{background:#0c1018;border:1px solid #303747;border-radius:8px;color:#9ca4b4;padding:8px;font-size:11px;cursor:pointer}.presets button.active{background:#292140;border-color:#725fd0;color:white}.channel{display:grid;grid-template-columns:1fr 38px;gap:8px;padding:11px 0;border-top:1px solid #252b38}.channel header{display:flex;justify-content:space-between}.channel header b{font-size:13px}.channel header span{color:#929aaa;font-size:11px}.channel input[type=range]{grid-column:1;accent-color:var(--violet);width:100%}.channel button{grid-column:2;grid-row:1/3;border:1px solid #333a49;background:#141925;color:#737c8c;border-radius:8px;cursor:pointer}.channel button.on{color:white;background:#5e49c2}.channel.disabled{opacity:.45}.limiter{display:flex;justify-content:space-between;background:#10221d;border:1px solid #214439;border-radius:9px;padding:10px;margin-top:12px;font-size:11px}.limiter b{color:var(--green)}.lyric-lines{display:grid;gap:6px;margin:14px 0}.lyric-lines button{display:grid;grid-template-columns:10px 1fr auto;gap:9px;align-items:center;text-align:left;background:#0c1018;border:1px solid #272e3d;color:white;border-radius:9px;padding:10px;font-size:11px;cursor:pointer}.lyric-lines button.active{border-color:#745fd1;background:#19152a}.lyric-lines time{color:#737c8e}.full-width{width:100%;font-size:12px}
.processing{position:fixed;inset:0;background:#070910df;backdrop-filter:blur(10px);z-index:50;display:grid;place-items:center}.processing[hidden]{display:none}.processing>div{width:min(390px,90vw);text-align:center;background:#131722;border:1px solid #303747;border-radius:20px;padding:34px}.spinner{display:inline-block;width:48px;height:48px;border:4px solid #373051;border-top-color:#9b84ff;border-radius:50%;animation:spin .8s linear infinite}.processing h2{margin:18px 0 7px}.processing p{color:#929bad}.progress{height:5px;background:#292e3c;border-radius:5px;overflow:hidden;margin-top:20px}.progress i{display:block;height:100%;width:70%;background:linear-gradient(90deg,#765aff,#b184ff);animation:progress 1.7s ease}.toast{position:fixed;right:24px;bottom:24px;background:#202638;border:1px solid #424a60;color:white;padding:12px 16px;border-radius:10px;box-shadow:0 12px 40px #0008;opacity:0;transform:translateY(10px);transition:.25s;pointer-events:none}.toast.show{opacity:1;transform:none}@keyframes spin{to{transform:rotate(360deg)}}@keyframes progress{from{width:5%}}
.job-preview{position:absolute;inset:0;z-index:2;display:grid;place-content:center;justify-items:center;text-align:center;padding:32px;background:radial-gradient(circle at 50% 35%,#173b68 0,transparent 42%),#020814}.job-preview[hidden]{display:none}.job-preview h2{margin:16px 0 6px}.job-preview p,.job-preview small{color:#9fb4d2}.job-preview .progress{width:min(420px,70vw)}.job-preview .progress i{width:0;animation:none;transition:width .35s ease}
.studio-processing-locked .studio-player,.studio-processing-locked .studio-word-timeline{opacity:.58}.studio-processing-locked .studio-player button:disabled,.studio-processing-locked .studio-player input:disabled{cursor:not-allowed}.studio-processing-locked .studio-word-timeline{pointer-events:none}
.karaoke-word{--fill:0%;background:linear-gradient(90deg,var(--word-fill,var(--karaoke-fill,#ff405c)) 0 var(--fill),var(--karaoke-base,#fff) var(--fill) 100%);background-clip:text;-webkit-background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent}.karaoke-copy .past .karaoke-word{background:none;color:color-mix(in srgb,var(--karaoke-base,#fff) 90%,transparent)!important;-webkit-text-fill-color:color-mix(in srgb,var(--karaoke-base,#fff) 90%,transparent)}.karaoke-copy .active-line{min-height:1.5em}.karaoke-copy p:empty{display:none}
.text-color-controls{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:13px 0}.text-color-controls label{display:grid;grid-template-columns:1fr 34px;gap:6px 9px;align-items:center;padding:11px;background:#040e1d;border:1px solid #234164;border-radius:10px}.text-color-controls span{font-size:11px;color:#9aa9c2}.text-color-controls input{grid-row:1/3;grid-column:2;width:34px;height:34px;padding:2px;border:1px solid #42658f;border-radius:8px;background:#071426;cursor:pointer}.text-color-controls b{font-size:11px;color:#fff;font-variant-numeric:tabular-nums}
@media(max-width:980px){.screen{padding:30px 20px}.creation-grid,.studio-grid{grid-template-columns:1fr}.toggle-grid{grid-template-columns:1fr 1fr}.inspector{min-height:520px}.topbar{padding:0 18px}.topbar nav{margin-left:25px}.saved{display:none}}
@media(max-width:640px){.topbar{height:auto;flex-wrap:wrap;padding:12px 14px;gap:8px}.topbar nav{order:3;width:100%;margin:0}.nav-link{flex:1}.intro{align-items:flex-start;flex-direction:column}.intro h1{font-size:30px}.steps{display:none}.creation-grid{display:block}.panel{margin-bottom:12px;padding:18px}.options-panel{display:block}.toggle-grid{grid-template-columns:1fr}.create-footer{align-items:stretch;flex-direction:column;gap:14px}.studio-head{align-items:flex-start;flex-direction:column;gap:15px}.studio-grid{display:block}.inspector{margin-top:12px}.video-frame{border-radius:10px}.timeline{height:180px}.karaoke-copy{font-size:20px}.screen{padding:24px 12px}.brand small{display:none}}

/* Visual direction v2 — derived from the supplied F‑Voice broadcast reference */
:root{--bg:#020817;--panel:#071426;--panel2:#0b1830;--line:#1e3455;--text:#f8f8ff;--muted:#8c9bb7;--violet:#8c4dff;--violet2:#d937f4;--blue:#168cff;--pink:#f52bc4;--orange:#ff914d;--green:#40e5bd;--radius:15px}
body{background:
  radial-gradient(ellipse at 78% -6%,rgba(104,35,255,.28),transparent 35%),
  radial-gradient(ellipse at 8% 52%,rgba(0,112,255,.14),transparent 38%),
  linear-gradient(180deg,#030917 0%,#020611 100%);
  letter-spacing:.005em}
body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.17;background-image:linear-gradient(rgba(68,122,200,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(68,122,200,.06) 1px,transparent 1px);background-size:70px 70px;mask-image:linear-gradient(to bottom,#000,transparent 72%)}
.topbar{height:76px;padding:0 30px;background:rgba(2,8,23,.92);border-bottom:1px solid #152843;box-shadow:0 14px 50px #0007}
.brand{min-width:220px;gap:11px;text-shadow:0 0 18px rgba(200,69,255,.55)}
.brand-mark{width:39px;height:39px;border-radius:12px;background:linear-gradient(160deg,#ff45da,#6c48ff 58%,#159cff);box-shadow:0 0 8px #e735e9,0 0 30px #314cff80;font-size:20px}
.brand>span:nth-child(2){font-size:23px;letter-spacing:-.03em}.brand em{font-style:normal;color:#2da3ff}.brand small{display:block;max-width:92px;text-align:left;line-height:1.15;text-transform:uppercase;letter-spacing:.11em;color:#667895;font-size:8px}
.topbar nav{margin-left:28px}.nav-link{color:#b6c0d3;padding:11px 15px}.nav-link:hover{background:#0b1a31}.nav-link.active{color:#55b1ff;background:linear-gradient(180deg,#152653,#101d43);box-shadow:inset 0 0 0 1px #234479}
.saved{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #1b3454;background:#09152a;border-radius:10px}.saved i{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green)}
.screen{position:relative;padding-top:42px}.intro{align-items:center;margin-bottom:30px;position:relative}.intro:after{content:"F‑VOICE";position:absolute;right:110px;top:-28px;font-size:78px;font-weight:900;letter-spacing:.08em;color:transparent;-webkit-text-stroke:1px rgba(76,132,255,.09);z-index:-1}
.eyebrow{display:flex;align-items:center;gap:9px;color:#56aaff}.eyebrow span{width:28px;height:2px;background:linear-gradient(90deg,var(--pink),var(--blue));box-shadow:0 0 12px var(--blue)}
.intro h1{font-size:46px;line-height:1.04;text-shadow:0 0 26px rgba(124,84,255,.22)}.intro h1 strong{font-weight:850;background:linear-gradient(90deg,#fff 10%,#d9b4ff 46%,#53a8ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.lead{max-width:720px;color:#9aacca}.hero-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:19px}.hero-badges span{padding:7px 10px;border:1px solid #1b3c67;border-radius:8px;background:#06152b;color:#91bfe9;font-size:11px}.hero-badges span:first-child{color:#ec94ef;border-color:#53306b}
.steps b{background:linear-gradient(135deg,#ec34dc,#6457ff);border:0;box-shadow:0 0 18px #bb3df275}.steps i{background:#253b5a}.steps span{border-color:#29405f;background:#08152a}
.panel,.inspector,.timeline,.transport{background:linear-gradient(155deg,rgba(10,27,50,.96),rgba(4,14,29,.98));border-color:#1a3456;box-shadow:0 18px 55px #0007,inset 0 1px 0 rgba(131,179,255,.06)}
.panel{position:relative;overflow:hidden}.panel:before{content:"";position:absolute;left:0;top:0;width:115px;height:1px;background:linear-gradient(90deg,#22a5ff,#cc36ef,transparent);box-shadow:0 0 10px #5d70ff}
.panel-title>span{color:#62b6ff;background:#0b2450;border-color:#1e5795;box-shadow:0 0 14px rgba(22,140,255,.16)}
.panel-title h2,.setting h2{font-weight:780}.panel-title p{color:#7f91af}.dropzone{border-color:#294c77;background:linear-gradient(145deg,rgba(5,18,38,.86),rgba(9,12,29,.92));box-shadow:inset 0 0 40px rgba(25,114,255,.04)}.dropzone:hover{border-color:#2ba6ff;background:#071a34;box-shadow:inset 0 0 40px rgba(25,114,255,.08),0 0 22px rgba(25,114,255,.09)}.dropzone>b{background:linear-gradient(145deg,#172559,#241842);color:#6fbaff;box-shadow:0 0 20px rgba(95,72,255,.28)}
.choice{background:#050e1d;border-color:#1b3454}.choice:hover{border-color:#315481}.choice.selected{border-color:#873ef4;background:linear-gradient(90deg,rgba(99,47,180,.24),rgba(19,19,54,.75));box-shadow:inset 3px 0 0 #d12de5,0 0 20px rgba(145,52,255,.08)}.choice.selected>i{border-color:#bf44ee;box-shadow:0 0 10px #bf44ee}.choice em{color:#ff8ee6;background:#3a123f}
textarea,.select-label select,.two-fields select,.two-fields input{background:#040c1a;border-color:#203958}.toggle-grid label{background:#050e1d;border-color:#1a3250}.toggle-grid label:hover{border-color:#2b4c75}.toggle-grid label>span{background:#23334d}.toggle-grid input:checked+span{background:linear-gradient(90deg,#bd34df,#615cff);box-shadow:0 0 13px rgba(194,49,227,.36)}
.quality{border-color:#1a3452}.quality>strong{background:#0b332e;border:1px solid #15584b;box-shadow:0 0 18px rgba(64,229,189,.1)}
.create-footer{border-color:#4a2c82;background:linear-gradient(100deg,rgba(45,18,82,.88),rgba(5,27,58,.92));box-shadow:0 0 32px rgba(120,47,255,.1),inset 0 1px 0 rgba(244,126,255,.08)}
.primary{background:linear-gradient(105deg,#ed34dc,#9243ff 54%,#188eff);box-shadow:0 0 18px rgba(222,45,232,.34),0 10px 28px rgba(27,79,218,.22);border:1px solid rgba(255,255,255,.16)}.primary:hover{box-shadow:0 0 26px rgba(222,45,232,.45),0 12px 34px rgba(27,79,218,.3)}
.primary:disabled{filter:grayscale(1);opacity:.45;cursor:not-allowed;box-shadow:none}
.download-button{display:inline-flex;align-items:center;text-decoration:none}.download-button[hidden]{display:none}
.studio-head{padding:0 2px}.studio-head h1{background:linear-gradient(90deg,#fff,#caa6ff);-webkit-background-clip:text;background-clip:text;color:transparent}.head-actions>button:not(.primary),.transport button,.full-width{background:#07152a;border-color:#244368}
.video-frame{border-color:#168cff;box-shadow:0 0 0 1px rgba(22,140,255,.22),0 0 23px rgba(22,105,255,.28),inset 0 -180px 140px #01040bd9;background:radial-gradient(circle at 68% 34%,#8b2a9880 0,transparent 24%),radial-gradient(circle at 18% 72%,#005bb785 0,transparent 30%),linear-gradient(135deg,#05152c,#29123d 60%,#050b18)}
.video-frame video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#02040a;z-index:1}.video-frame video[hidden]{display:none}.video-frame video:not([hidden])~.video-tools{z-index:3}.video-frame .custom-background-video{object-fit:cover}.video-frame .custom-background-video~.karaoke-copy,.video-frame .custom-background-video~.voice-legend{z-index:2}.video-frame:after{content:"";position:absolute;inset:0;background:#000;opacity:var(--background-dim,35%);z-index:1;pointer-events:none}.video-frame .karaoke-copy,.video-frame .voice-legend{z-index:2}.video-frame .video-tools{z-index:3}
.video-tools span,.video-tools button{border-color:#3e5f8c;background:#03101edb}.karaoke-copy{text-shadow:0 3px 9px #000,0 0 12px rgba(255,255,255,.12)}.karaoke-copy .fill{text-shadow:0 0 15px rgba(255,145,77,.46)}.voice-legend span{border:1px solid #2a4569;background:#03101ee8}
.transport{border-color:#183656}.transport .play{background:linear-gradient(145deg,#df34db,#6358ff);box-shadow:0 0 16px rgba(201,49,232,.36)}.transport input,.slider-label input,.channel input[type=range]{accent-color:#c23de7}
.timeline{border-color:#193757}.wave{background:repeating-linear-gradient(90deg,#2f9cff 0 2px,transparent 2px 5px)}.playhead,.playhead:before{background:#f431ca;box-shadow:0 0 9px #f431ca}
.inspector{border-color:#1e3b60}.tabs{background:#061225;border-color:#193758}.tabs button.active{color:#5bb2ff;border-image:linear-gradient(90deg,#f333d8,#258fff) 1}.setting{border-color:#172f4d}.background-upload{background:#040e1d;border-color:#2d4c73}.background-upload:hover{border-color:#258fff}.background-upload span{color:#ee40d5}.background-swatches button.active{border-color:#45a9ff;box-shadow:0 0 13px rgba(37,143,255,.42)}
.presets button{background:#061225;border-color:#203c60}.presets button.active{background:linear-gradient(90deg,#40206a,#17285a);border-color:#a341f1;box-shadow:inset 0 0 18px rgba(202,55,234,.12)}.channel{border-color:#173150}.channel button.on{background:linear-gradient(145deg,#bc35dd,#6457ff);border-color:#d75aea;box-shadow:0 0 12px rgba(202,55,234,.22)}.limiter{background:#062a26;border-color:#13564d}.lyric-lines button{background:#050e1d;border-color:#193452}.lyric-lines button.active{background:linear-gradient(90deg,rgba(92,39,153,.26),rgba(10,25,50,.9));border-color:#9b42e8}
.processing{background:#010611ed}.processing>div{background:linear-gradient(145deg,#081a31,#090d20);border-color:#244a78;box-shadow:0 0 60px rgba(68,57,255,.2)}.spinner{border-color:#243757;border-top-color:#f03bd7;box-shadow:0 0 16px rgba(240,59,215,.33)}.progress i{background:linear-gradient(90deg,#ee35d8,#754fff,#168cff)}.toast{background:#07172d;border-color:#2b5590;box-shadow:0 0 25px rgba(32,119,255,.15),0 14px 42px #000a}
@media(max-width:980px){.brand{min-width:auto}.topbar nav{margin-left:16px}.intro h1{font-size:40px}}
@media(max-width:640px){.topbar{background:#020817}.brand>span:nth-child(2){font-size:20px}.intro h1{font-size:34px}.hero-badges{gap:5px}.hero-badges span{font-size:10px}.intro:after{display:none}}

.primary:disabled{cursor:not-allowed!important;filter:grayscale(1);opacity:.5;box-shadow:none!important}

/* Saved-project workspace */
.workspace-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;max-width:1180px;margin:0 auto 25px}.workspace-head h1{margin:8px 0}.workspace-head .lead{font-size:14px}.workspace-head .back{margin-bottom:8px}.project-toolbar{display:flex;gap:10px;max-width:1180px;margin:0 auto 15px}.project-toolbar input{flex:1;border:1px solid #294766;background:#06142a;color:white;border-radius:11px;padding:12px 15px}.project-toolbar button,.section-head button,.editor-actions>button:not(.primary),.project-card-actions button,.project-card-actions a,.export-item a{border:1px solid #2a4a72;background:#0a1b34;color:#d3e9ff;border-radius:9px;padding:10px 13px;cursor:pointer;text-decoration:none}.project-list{display:grid;gap:11px;max-width:1180px;margin:auto}.project-list>p,.export-list>p{color:#91a4c2}.project-card{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 22px;border:1px solid #234267;border-radius:15px;background:linear-gradient(120deg,#0b1c35,#071326);box-shadow:0 10px 32px #0004}.project-card h2{font-size:17px;margin:0 0 7px;overflow-wrap:anywhere}.project-card p{color:#9db0cb;font-size:12px;margin:0 0 5px}.project-card small{color:#58cbb0}.project-card-actions{display:flex;flex-wrap:wrap;gap:7px}.project-card-actions button,.project-card-actions a{font-size:12px}.revision-badge{color:#5ddabc;border:1px solid #1e6a5e;background:#092c2b;border-radius:9px;padding:9px 12px;font-size:12px;white-space:nowrap}
.editor-grid,.export-grid{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);gap:16px;max-width:1180px;margin:auto}.export-grid{grid-template-columns:1fr 1fr}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.section-head h2{font-size:18px;margin:0}.section-head span{color:#8fa6c7;font-size:12px}.line-editor-toolbar{display:flex;gap:8px;margin:-3px 0 10px}.line-editor-toolbar button{flex:1;padding:9px 10px}.line-editor-toolbar .danger{border-color:#77364b;color:#ffacbd}.line-help{margin-bottom:10px}.editor-line-list{max-height:62vh;overflow:auto;display:grid;gap:6px}.editor-line-item{display:grid;grid-template-columns:55px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;border:1px solid #193557;background:#07162b;color:#dbeafa;border-radius:9px;padding:10px;cursor:pointer}.editor-line-item.selected{border-color:#ab4cea;background:#25163e}.editor-line-item time{font-variant-numeric:tabular-nums;color:#64b9ff;font-size:12px}.editor-line-item span{font-size:13px;line-height:1.3}.editor-line-item.editing{grid-template-columns:55px 1fr auto;padding:7px 8px}.editor-line-item input{min-width:0;width:100%;padding:8px;border:1px solid #4a7eaf;border-radius:7px;background:#030c1a;color:#fff}.line-edit-trigger{padding:6px 8px;border:1px solid #315474;border-radius:7px;background:#0a1c2f;color:#91cce9;font-size:11px;cursor:pointer}.line-inline-actions{display:flex;gap:5px}.line-inline-actions button{padding:7px 9px}.line-inline-actions .save{background:#7640d7;color:#fff}.editor-help{color:#92a7c6;font-size:13px;line-height:1.45;margin:0 0 15px}.editor-word-list{max-height:56vh;overflow:auto;display:grid;gap:7px}.editor-word{display:grid;grid-template-columns:minmax(100px,1fr) 100px 100px 135px;gap:9px;align-items:end;padding:10px;border:1px solid #1d395b;border-radius:9px;background:#06162b}.editor-word strong{padding-bottom:8px;overflow-wrap:anywhere}.editor-word label{display:grid;gap:5px;color:#9eb1cc;font-size:11px}.editor-word input,.editor-word select{width:100%;padding:8px;background:#081020;color:#fff;border:1px solid #30517a;border-radius:7px;font-size:12px}.editor-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}.editor-grid #editor-message{color:#68ddbb;font-size:13px;min-height:1.5em}.export-colors{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.export-colors label{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px;border:1px solid #244266;border-radius:9px;background:#06172d}.export-colors input{width:42px;height:32px;border:0;background:transparent;cursor:pointer}.export-item{display:grid;grid-template-columns:1fr auto;gap:7px 12px;padding:14px;border:1px solid #214164;background:#07172d;border-radius:10px;margin-bottom:8px}.export-item strong{font-size:13px}.export-item span{color:#71d6bd;font-size:12px}.export-item a,.export-item small{grid-column:1/-1}.export-item a{justify-self:start;font-size:12px}.export-item small{color:#ff9a9a;overflow-wrap:anywhere}.deferred-export{opacity:.7}
@media(max-width:900px){.editor-grid,.export-grid{grid-template-columns:1fr}.project-card{align-items:flex-start;flex-direction:column}.editor-line-list{max-height:260px}.editor-word-list{max-height:none}}@media(max-width:600px){.workspace-head{align-items:flex-start;flex-direction:column}.editor-word{grid-template-columns:1fr 1fr}.editor-word strong,.editor-word label:last-child{grid-column:1/-1}.export-colors{grid-template-columns:1fr}}
.revision-panel{margin-top:18px;padding-top:17px;border-top:1px solid #1f3b5e}.revision-panel>.section-head{margin-bottom:7px}.revision-panel>p{margin:0 0 11px;color:#8fa5c4;font-size:12px;line-height:1.4}.revision-list{display:grid;gap:6px;max-height:210px;overflow:auto}.revision-item{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;padding:9px 10px;background:#06172c;border:1px solid #1c3a5e;border-radius:8px}.revision-item.current{border-color:#268f78;background:#092824}.revision-item strong{font-size:12px}.revision-item small{display:block;color:#8198b7;font-size:10px;margin-top:3px}.revision-item button{border:1px solid #38577e;background:#0b213e;color:#d7eaff;border-radius:7px;padding:6px 8px;cursor:pointer;font-size:10px}.revision-item.current button{display:none}.lyric-lines>p{color:#8192ac;font-size:12px}.lyric-lines{max-height:310px;overflow:auto}.lyric-lines button.active{position:relative}.lyric-lines button.active:after{content:"сейчас";color:#64dbba;font-size:9px;margin-left:4px}

.performance-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:22px}.performance-choice{position:relative;display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid #2a3040;border-radius:12px;background:#0c1018;cursor:pointer}.performance-choice input{position:absolute;opacity:0}.performance-choice small{color:#7f8798;font-size:12px;line-height:1.35}.performance-choice.selected{border-color:#8b73ff;background:#19152b;box-shadow:inset 0 0 0 1px #8b73ff55}.subsection-title{padding-top:18px;border-top:1px solid #252b38;margin-bottom:14px}.subsection-title h2{font-size:16px;margin:0 0 4px}.subsection-title p{margin:0;color:var(--muted);font-size:13px}@media(max-width:900px){.performance-choices{grid-template-columns:1fr 1fr}}@media(max-width:560px){.performance-choices{grid-template-columns:1fr}}
.processing-profile-panel{grid-column:1/-1}.profile-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.profile-choice{position:relative;display:flex;flex-direction:column;gap:6px;min-height:112px;padding:17px;border:1px solid #2a3446;border-radius:14px;background:#09101c;cursor:pointer}.profile-choice input{position:absolute;opacity:0}.profile-choice small{color:#8392aa;line-height:1.4}.profile-choice em{align-self:flex-start;color:#e6c7ff;background:#3a1746;padding:4px 7px;border-radius:6px;font-size:10px;font-style:normal}.profile-choice.selected{border-color:#bc45eb;background:linear-gradient(145deg,#261437,#0d1730);box-shadow:0 0 22px #b22de32b}.plan-summary{display:grid;grid-template-columns:180px 1fr;gap:20px;margin-top:16px;padding:17px;border-radius:13px;background:#070e1b;border:1px solid #213651}.plan-summary>div{display:flex;flex-direction:column;gap:6px}.plan-summary span{color:#9eacbf}.plan-summary b{color:#70d7ff}.plan-summary ol{display:grid;grid-template-columns:repeat(2,1fr);gap:6px 22px;margin:0;padding-left:22px;color:#c7d4e7;font-size:13px}.pipeline-card{margin-top:15px;padding:18px;border:1px solid #233852;border-radius:15px;background:linear-gradient(145deg,#081425,#090d18)}.pipeline-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.pipeline-head>div:first-child{display:flex;flex-direction:column;gap:4px}.pipeline-head span{color:#7f94b1;font-size:12px}.pipeline-head button{border:1px solid #2c496b;background:#0b203a;color:#d6e9ff;border-radius:8px;padding:7px 10px;cursor:pointer}.pipeline-head button#cancel-job{color:#ffaaa8;border-color:#713b45}.pipeline-stages{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:15px}.pipeline-stage{display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:9px;background:#09101b;color:#96a6bb;font-size:12px}.pipeline-stage i{width:9px;height:9px;border-radius:50%;background:#46556b}.pipeline-stage.completed i,.pipeline-stage.reused i{background:#38d9a0;box-shadow:0 0 9px #38d9a077}.pipeline-stage.running i{background:#44a8ff;box-shadow:0 0 9px #44a8ff;animation:pulse 1s infinite}.pipeline-stage.failed i{background:#ff6868}.pipeline-stage.reused:after{content:"сохранено";margin-left:auto;color:#64cca4;font-size:10px}.optional-results{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.optional-results span{padding:6px 9px;border-radius:7px;background:#151b27;color:#8491a4;font-size:11px}.optional-results span.ready{color:#74dfb2;background:#102820}@keyframes pulse{50%{opacity:.35}}@media(max-width:800px){.profile-choices{grid-template-columns:1fr}.plan-summary{grid-template-columns:1fr}.plan-summary ol,.pipeline-stages{grid-template-columns:1fr}}
.export-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0}.export-options label{display:grid;gap:7px;color:#9eb1cc;font-size:11px}.export-options select{width:100%;padding:10px;background:#08172d;color:#fff;border:1px solid #2a4b72;border-radius:8px}.export-project-summary{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 17px}.export-project-summary span{padding:7px 9px;border-radius:7px;background:#0a213d;border:1px solid #224a72;color:#a9c6e7;font-size:11px}@media(max-width:720px){.export-options{grid-template-columns:1fr}}
.exit-player{position:absolute;left:18px;top:18px;z-index:6;border:1px solid #ffffff35;background:#020817cc;color:#fff;border-radius:9px;padding:9px 12px;cursor:pointer}.portal-player .topbar,.portal-player .studio-head,.portal-player .inspector,.portal-player .timeline,.portal-player .studio-word-timeline,.portal-player .pipeline-card{display:none}.portal-player main{max-width:none}.portal-player #studio-screen{display:block;padding:0}.portal-player .studio-grid{display:block}.portal-player .preview-column{width:100%}.portal-player .video-frame{height:calc(100vh - 68px);aspect-ratio:auto;border:0;border-radius:0;padding:8% 5%}.portal-player .transport{height:68px;margin:0;border-radius:0;border-width:1px 0 0}.portal-player .exit-player{display:block}.portal-player .karaoke-copy{font-size:clamp(28px,3.4vw,64px)}

/* Advanced word timeline and bounded batch queue */
.queue-summary{display:flex;align-items:center;gap:18px;max-width:1180px;margin:0 auto 12px;padding:13px 16px;border:1px solid #24476d;border-radius:12px;background:linear-gradient(90deg,#0b1d38,#10142d);color:#cde4ff}.queue-summary b{color:#fff}.queue-summary span{color:#61d8b4}.queue-summary small{margin-left:auto;color:#8fa6c4}
.sync-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:1180px;margin:0 auto 14px;padding:12px 14px;border:1px solid #29466b;border-radius:12px;background:#07162b}.sync-toolbar>b{margin-right:6px}.sync-toolbar>span{color:#65d8b6;padding:6px 9px;background:#082a29;border-radius:7px}.sync-toolbar button{border:1px solid #315377;background:#0b203b;color:#dcecff;border-radius:8px;padding:8px 10px;cursor:pointer}.sync-toolbar button:disabled{opacity:.38;cursor:not-allowed}.sync-toolbar label{display:flex;align-items:center;gap:8px;margin-left:auto;color:#96abc7;font-size:12px}.sync-toolbar input{accent-color:#bd3fe4}
.editor-detail-panel{overflow:visible}.editor-preview-card{display:grid;gap:7px;align-content:center;min-height:120px;margin:-2px -2px 18px;padding:18px;text-align:center;border:1px solid #203e61;border-radius:12px;background:radial-gradient(circle at 50% 50%,#172a55,#020714 68%)}.editor-preview-card small{color:#6daeea}.editor-preview-card strong{font-size:20px}.editor-preview-card span{color:#899bb7}.editor-help kbd{border:1px solid #435a76;border-radius:5px;background:#111c2c;padding:2px 5px;color:#fff}.editor-word.selected{border-color:#e6ae36;background:#2a2416;box-shadow:inset 3px 0 #ffc34d}.editor-word strong{cursor:pointer}.timeline-workbench{max-width:1180px;margin:16px auto 0;padding:0;overflow:hidden}.timeline-transport{display:flex;align-items:center;gap:12px;padding:12px 15px;border-bottom:1px solid #254365}.timeline-transport button{width:38px;height:34px;border:1px solid #824ee5;border-radius:8px;background:#6133c5;color:#fff;cursor:pointer}.timeline-transport b{font-variant-numeric:tabular-nums;color:#fff}.timeline-transport span{color:#7bd8b8}.timeline-transport small{margin-left:auto;color:#8096b4}.editor-timeline-scroll{overflow-x:auto;overflow-y:hidden;background:#030916}.editor-timeline-canvas{position:relative;height:178px;min-width:100%;cursor:crosshair}.editor-ruler{position:absolute;inset:0 0 auto;height:36px;border-bottom:1px solid #233a59}.editor-ruler-tick{position:absolute;top:0;height:36px;border-left:1px solid #233a59;color:#7087a6;font-style:normal;font-size:10px;padding:8px 0 0 5px}.editor-word-track{position:absolute;left:0;right:0;top:42px;height:112px;background:repeating-linear-gradient(90deg,transparent 0 3px,#5533a978 3px 5px,transparent 5px 9px);border-top:1px solid #32276a;border-bottom:1px solid #32276a}.timeline-word{position:absolute;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;padding:0 8px;border:1px solid #32c989;border-radius:5px;background:#279b65e8;color:#fff;cursor:grab;touch-action:none;user-select:none}.timeline-word:nth-child(even){background:#237c70e8}.timeline-word.selected{z-index:3;border-color:#ffd85c;background:#af7823;box-shadow:0 0 12px #ffbe3f77}.timeline-word.dragging{cursor:grabbing;opacity:.86}.editor-playhead{position:absolute;top:0;bottom:0;width:2px;background:#f034cc;box-shadow:0 0 9px #f034cc;pointer-events:none;z-index:5}
.timeline-word{display:flex;align-items:center}.timeline-word>span{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.timeline-resize-handle{position:absolute;top:0;bottom:0;width:11px;z-index:4;cursor:ew-resize;background:transparent;touch-action:none}.timeline-resize-handle::after{content:"";position:absolute;top:7px;bottom:7px;width:2px;border-radius:2px;background:#ffffffb8;box-shadow:0 0 4px #0009}.timeline-resize-handle.left{left:0}.timeline-resize-handle.left::after{left:3px}.timeline-resize-handle.right{right:0}.timeline-resize-handle.right::after{right:3px}.timeline-word.resizing{z-index:5;overflow:visible;cursor:ew-resize;opacity:.9}
.editor-selection-box{position:absolute;z-index:9;border:1px solid #42c8ff;background:#29aee52e;box-shadow:0 0 12px #29aee544;pointer-events:none}
@media(max-width:760px){.queue-summary{align-items:flex-start;flex-direction:column;gap:5px}.queue-summary small{margin-left:0}.sync-toolbar label{width:100%;margin-left:0}.timeline-transport small{display:none}}

/* Visual designer: backgrounds, lyric motion, templates and singer cues */
.bg-ocean{background:radial-gradient(circle at 25% 20%,#29b6d8aa,transparent 35%),linear-gradient(145deg,#061b38,#075d73)}.bg-sunset{background:radial-gradient(circle at 75% 25%,#ffb25c,transparent 24%),linear-gradient(150deg,#3b1647,#a73551 55%,#151532)}.bg-emerald{background:radial-gradient(circle at 50% 20%,#39d6a488,transparent 30%),linear-gradient(140deg,#041812,#0b4a39,#07111e)}.bg-velvet{background:radial-gradient(circle at 25% 75%,#b4368f77,transparent 32%),linear-gradient(125deg,#160720,#48114a,#08132b)}
.check-setting{display:flex;align-items:center;gap:9px;margin-top:12px;color:#c8d4e8;font-size:12px}.check-setting input{accent-color:#a84ce5}.colors label{display:flex;align-items:center;justify-content:space-between;padding:7px 0}.colors label span{display:flex;align-items:center;gap:9px}.colors label i{display:inline-block;width:9px;height:9px;border-radius:50%;background:currentColor}.colors input[type=color]{width:44px;height:30px;border:1px solid #315175;border-radius:7px;background:#061225}.template-setting>input,.template-actions select{width:100%;box-sizing:border-box;background:#07162b;color:#fff;border:1px solid #2b4b72;border-radius:8px;padding:9px}.template-actions{display:grid;grid-template-columns:1fr auto auto;gap:7px;margin-top:8px}.template-actions button{padding:8px}.instrumental-break{position:absolute;z-index:4;left:15%;right:15%;bottom:15%;display:grid;gap:8px;color:#fff;text-align:center}.instrumental-break>span{font-size:13px;text-shadow:0 2px 8px #000}.instrumental-break>i{height:8px;border:1px solid #ffffff55;border-radius:99px;background:#0008;overflow:hidden}.instrumental-break em{display:block;height:100%;width:var(--break-progress,0%);border-radius:inherit;background:linear-gradient(90deg,#25a7ff,#ed3bd2);box-shadow:0 0 15px #bf3fe9;transition:width .12s linear}
.karaoke-copy.mode-scroll p{transition:transform .25s ease,opacity .25s ease}.karaoke-copy.mode-scroll .past{opacity:.45;transform:scale(.9)}.karaoke-copy.mode-alternate p{min-height:1.5em}.karaoke-copy.mode-single{line-height:1.25}.karaoke-copy.mode-single p{animation:lyricIn .22s ease-out}@keyframes lyricIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.colors label{display:grid!important;grid-template-columns:1fr 48px;align-items:center;width:100%;box-sizing:border-box}.template-actions{grid-template-columns:1fr 1fr}.template-actions select{grid-column:1/-1}
.pipeline-stage.fallback i{background:#38d9a0;box-shadow:0 0 9px #38d9a077}.pipeline-stage.fallback:after{content:"резервный таймлайн";margin-left:auto;color:#e5b95c;font-size:10px}

/* Create screen v2: large, simple decisions; processing internals stay hidden. */
.create-v2{max-width:1240px;margin:0 auto;padding-top:64px;background:radial-gradient(circle at 14% 16%,#1e5da01f,transparent 28%),radial-gradient(circle at 88% 28%,#c62b9a18,transparent 30%)}
.create-hero{max-width:880px;margin:0 auto 42px;text-align:center}.create-hero .eyebrow{display:flex;justify-content:center;align-items:center;gap:8px}.create-hero .eyebrow span{width:7px;height:7px;border-radius:50%;background:var(--blue);box-shadow:0 0 13px #39a8ff}.create-hero h1{font-size:clamp(42px,5.2vw,68px);line-height:1.02;margin-bottom:20px}.create-hero h1 strong{font-weight:850;background:linear-gradient(90deg,#65bbff,#dc62d4 78%);-webkit-background-clip:text;background-clip:text;color:transparent}.create-hero .lead{max-width:760px;margin:0 auto;color:#9fa9bd;font-size:16px;line-height:1.7}
.create-workspace{max-width:1080px;margin:0 auto;padding:12px;border:1px solid #29354b;border-radius:32px;background:linear-gradient(155deg,#111827e8,#090e19f5);box-shadow:0 32px 100px #0008,0 0 80px #214c8c12}
.create-block{position:relative;padding:34px 36px;border-bottom:1px solid #263247}.create-block:last-of-type{border-bottom:0}.create-block-head{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:16px;margin-bottom:24px}.create-block-head>span{display:grid;place-items:center;min-width:44px;height:36px;padding:0 10px;border:1px solid #315b86;border-radius:11px;color:#78c0ff;background:#10253d;font-size:12px;font-weight:850;letter-spacing:.08em}.create-block-head h2{margin:0 0 6px;font-size:24px;letter-spacing:-.025em}.create-block-head p{margin:0;color:#838fa5;font-size:13px;line-height:1.5}.create-block-head>em{padding:7px 10px;border:1px solid #69365f;border-radius:9px;color:#ff89ce;background:#2a1428;font-size:10px;font-style:normal;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.create-dropzone{min-height:188px;padding:28px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;border:1px dashed #3d5675;border-radius:22px;background:radial-gradient(circle at 0 0,#194d7c2c,transparent 34%),#070c15;cursor:pointer;transition:.2s ease}.create-dropzone:hover{border-color:#4aaeff;background-color:#0a1220;box-shadow:inset 0 0 0 1px #3ba8ff22,0 16px 45px #0004}.upload-orb{width:64px;height:64px;display:grid;place-items:center;border:1px solid #3c6c9c;border-radius:19px;color:#7ec5ff;background:linear-gradient(145deg,#173b61,#10182c);box-shadow:0 0 35px #2f9cff1d;font-size:30px}.upload-copy{min-width:0;display:flex;flex-direction:column;gap:8px}.upload-copy strong{font-size:18px}.upload-copy small{color:#7f8ba1;font-size:12px;line-height:1.5}.create-dropzone>b{padding:12px 17px;border:1px solid #315f8e;border-radius:12px;color:#cce8ff;background:#102a45;font-size:12px}.create-note{display:flex;align-items:center;gap:8px;margin:14px 3px 0;color:#78859a;font-size:11px;line-height:1.5}.create-note i{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#48d9b0;box-shadow:0 0 10px #48d9b066}
.create-dropzone.project-source-loaded{cursor:default;border-style:solid;border-color:#34799a;background:radial-gradient(circle at 0 0,#1c72963d,transparent 38%),#09131d;box-shadow:inset 0 0 0 1px #52c7ff14}.create-dropzone.project-source-loaded:hover{transform:none;border-color:#34799a;background:radial-gradient(circle at 0 0,#1c72963d,transparent 38%),#09131d;box-shadow:inset 0 0 0 1px #52c7ff14}.create-dropzone.project-source-loaded .upload-orb{color:#72e7c2;border-color:#3b8d79;background:linear-gradient(145deg,#15453d,#101e25)}.create-dropzone.project-source-loaded>b{color:#9ce8d2;border-color:#326f62;background:#102b28}
.create-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.create-choice{position:relative;min-height:152px;padding:22px;display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:15px;border:1px solid #2b374a;border-radius:20px;background:linear-gradient(160deg,#101722,#0a0f18);cursor:pointer;transition:.2s ease}.create-choice:hover{transform:translateY(-2px);border-color:#40506a}.create-choice input{position:absolute;opacity:0;pointer-events:none}.create-choice>i{width:22px;height:22px;border:2px solid #526078;border-radius:50%;box-shadow:inset 0 0 0 5px #0d141f}.create-choice>span{display:flex;flex-direction:column;gap:9px}.create-choice b{font-size:15px;line-height:1.35}.create-choice small{color:#7f8ba0;font-size:12px;line-height:1.6}.create-choice>em,.create-choice u{width:max-content;padding:6px 9px;border:1px solid #683b68;border-radius:8px;color:#ff8ad0;background:#2c152b;font-size:10px;font-style:normal;font-weight:800;text-decoration:none;text-transform:uppercase;letter-spacing:.05em}.create-choice.selected{border-color:#445ef0;background:radial-gradient(circle at 0 0,#2f76c92c,transparent 43%),linear-gradient(155deg,#151a35,#110f23);box-shadow:0 15px 38px #0004,inset 0 0 0 1px #ff4eb61f}.create-choice.selected>i{border-color:#6ebcff;background:#ff54b6;box-shadow:inset 0 0 0 5px #11182b,0 0 15px #ff58b755}.audio-route-choice{min-height:174px}.audio-route-choice u{margin-top:auto;color:#9fd5ff;border-color:#315a85;background:#102842}
.create-lyrics-field{margin-top:18px;overflow:hidden;border:1px solid #2d3b51;border-radius:21px;background:#070c14}.create-lyrics-field:focus-within{border-color:#4b82bb;box-shadow:0 0 0 4px #379eff0d}.create-field-label{padding:17px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #263247;background:#0d1420}.create-field-label>div{display:flex;flex-direction:column;gap:5px}.create-field-label label{font-size:14px;font-weight:800}.create-field-label small{color:#768398;font-size:11px}.create-field-label button{border:1px solid #35455e;border-radius:9px;color:#9fcdf5;background:#121d2c;padding:8px 11px;cursor:pointer;font-size:11px}.create-lyrics-field textarea{min-height:300px;height:300px;padding:22px;border:0;border-radius:0;outline:0;background:#070c14;font-size:15px;line-height:1.75}.create-lyrics-field>p{margin:0;padding:11px 18px;display:flex;justify-content:flex-end;gap:16px;border-top:1px solid #222d3e;color:#667389;background:#0a101a;font-size:10px}
.lyrics-audio-check{position:relative;margin:18px;border:1px solid #294c70;border-radius:17px;padding:17px;background:radial-gradient(circle at 0 0,#1a5f9827,transparent 40%),linear-gradient(135deg,#0d1c2d,#0a101c);box-shadow:0 15px 34px #0003}.lyrics-player-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.lyrics-player-head>span{min-width:0;display:flex;align-items:center;gap:12px}.lyrics-player-head>span>i{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #36688f;border-radius:12px;color:#71bdff;background:#112c46;font-style:normal}.lyrics-player-head>span>span{min-width:0;display:flex;flex-direction:column;gap:4px}.lyrics-player-head small{color:#69aee8;font-size:9px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.lyrics-player-head b{max-width:620px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.lyrics-player-head time{display:flex;gap:6px;color:#8c9bb0;font-size:11px;font-style:normal;font-variant-numeric:tabular-nums}.lyrics-player-head time b{color:#eaf4ff}.lyrics-player-head time i{color:#4f6074;font-style:normal}.lyrics-player-controls{margin-top:14px;display:grid;grid-template-columns:42px 42px 1fr;align-items:center;gap:8px}.lyrics-player-controls button{height:38px;border:1px solid #35658e;border-radius:11px;color:#d7ecff;background:#122d48;cursor:pointer;font-size:11px;font-weight:850}.lyrics-player-controls button:first-child{color:#fff;background:linear-gradient(135deg,#267bd7,#a341d3);border-color:#6d65db;box-shadow:0 7px 20px #493bca42}.lyrics-player-controls button:disabled{opacity:.35;cursor:not-allowed;box-shadow:none}.lyrics-player-controls input{width:100%;accent-color:#e64bb5}.lyrics-player-controls input:disabled{opacity:.32}.lyrics-audio-empty{margin:12px 0 0;color:#66778e;font-size:10px}.lyrics-audio-check:not(.is-empty) .lyrics-audio-empty{display:none}.lyrics-review-reminder{margin:0 18px 18px;padding:15px 16px;display:flex;align-items:flex-start;gap:12px;border:1px solid #593653;border-radius:15px;background:linear-gradient(110deg,#211326,#101520)}.lyrics-review-reminder>i{width:25px;height:25px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #a34d85;border-radius:50%;color:#ff91d0;background:#37192f;font-size:11px;font-style:normal;font-weight:900}.lyrics-review-reminder p{margin:0;display:flex;flex-direction:column;gap:5px}.lyrics-review-reminder b{font-size:12px}.lyrics-review-reminder span{color:#9a8496;font-size:11px;line-height:1.55}
.advanced-settings,.route-plan{margin-top:16px;border:1px solid #29364a;border-radius:16px;background:#0a1019}.advanced-settings summary,.route-plan summary{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer;list-style:none}.advanced-settings summary::-webkit-details-marker,.route-plan summary::-webkit-details-marker{display:none}.advanced-settings summary span{display:flex;flex-direction:column;gap:4px}.advanced-settings summary b{font-size:13px}.advanced-settings summary small{color:#748197;font-size:11px}.advanced-settings summary i{color:#6caee7;font-style:normal}.advanced-settings[open] summary i{transform:rotate(180deg)}.advanced-content{padding:0 18px 18px;border-top:1px solid #253044}.advanced-content>p,#separator-setting>label{margin:17px 0 11px;color:#8895aa;font-size:12px;font-weight:750}#separator-setting>label{display:block}.compact-performance{margin:0;grid-template-columns:repeat(3,1fr)}.compact-performance .performance-choice{min-height:92px;padding:13px}.route-plan summary span{color:#91cfff;font-size:12px}.route-plan summary b{color:#a6b1c4;font-size:11px}.route-plan ol{margin:0;padding:0 20px 18px 46px;columns:2;color:#758299;font-size:11px;line-height:1.8}
.create-action{margin:12px;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:26px;border:1px solid #3e315d;border-radius:20px;background:radial-gradient(circle at 0 50%,#1856812b,transparent 34%),linear-gradient(100deg,#101b2b,#1b1125)}.create-action>div{display:flex;align-items:center;gap:13px}.create-action>div>i{width:10px;height:10px;flex:0 0 auto;border-radius:50%;background:#ff58b7;box-shadow:0 0 16px #ff58b7}.create-action p{margin:0;display:flex;flex-direction:column;gap:5px}.create-action p b{font-size:14px}.create-action p span{max-width:590px;color:#8995aa;font-size:11px;line-height:1.5}.create-action .primary{min-width:220px;min-height:52px;border-radius:14px;background:linear-gradient(110deg,#297ee7,#b93fd6 72%,#f24f9f);box-shadow:0 13px 34px #643ad751}.create-action .primary:disabled{filter:none;opacity:.45;cursor:not-allowed;box-shadow:none}
@media(max-width:800px){.create-v2{padding:38px 18px 60px}.create-workspace{padding:7px;border-radius:24px}.create-block{padding:26px 20px}.create-choice-grid{grid-template-columns:1fr}.create-dropzone{grid-template-columns:auto 1fr}.create-dropzone>b{grid-column:1/-1;text-align:center}.compact-performance{grid-template-columns:1fr 1fr}.create-action{align-items:stretch;flex-direction:column}.create-action .primary{width:100%}.create-hero h1{font-size:42px}}
@media(max-width:520px){.create-v2{padding:30px 10px 50px}.create-hero{text-align:left}.create-hero .eyebrow{justify-content:flex-start}.create-hero h1{font-size:35px}.create-hero .lead{font-size:14px}.create-workspace{border-radius:20px}.create-block{padding:23px 15px}.create-block-head{grid-template-columns:auto 1fr}.create-block-head>em{display:none}.create-block-head h2{font-size:20px}.create-dropzone{grid-template-columns:1fr;justify-items:start;padding:22px}.create-choice{grid-template-columns:auto 1fr}.create-choice>em{grid-column:2}.create-lyrics-field textarea{min-height:330px}.lyrics-player-head{align-items:flex-start;flex-direction:column}.lyrics-player-controls{grid-template-columns:42px 42px;}.lyrics-player-controls input{grid-column:1/-1}.lyrics-review-reminder{margin:0 12px 12px}.compact-performance{grid-template-columns:1fr}.route-plan ol{columns:1}.create-action{margin:7px;padding:19px}.create-action>div{align-items:flex-start}}

/* Studio v3: large work areas, stable lyrics and a zoomable word timeline. */
#studio-screen{max-width:1460px;margin:0 auto;padding:54px 42px 90px;background:radial-gradient(circle at 8% 8%,#246cb31a,transparent 27%),radial-gradient(circle at 92% 12%,#be39b518,transparent 28%)}
#studio-screen .studio-head{max-width:1360px;margin:0 auto 26px;align-items:center}
#studio-screen .studio-head h1{font-size:32px}.head-actions>button{min-height:48px;padding:0 18px!important;border-radius:13px!important}.head-actions .primary{padding:0 21px}
#studio-screen .studio-grid{max-width:1360px;margin:0 auto;grid-template-columns:minmax(0,1.62fr) minmax(390px,.78fr);gap:22px;align-items:start}
#studio-screen .video-frame{border-radius:25px;border-color:#248ee7;box-shadow:0 28px 80px #0007,0 0 0 1px #207cc838,inset 0 -150px 130px #02040a9c;--lyrics-reveal:1;--break-fade:0}
.video-frame::before{z-index:1}.video-frame::after{z-index:2;opacity:var(--background-dim,.35);transition:opacity .25s ease}.video-frame video{z-index:1}.video-frame .karaoke-copy{z-index:4}.video-frame .voice-legend{z-index:5}.video-frame .video-tools{z-index:6}
.karaoke-copy{width:min(92%,1100px);display:grid;gap:.12em;align-content:end;padding:10px 12px;opacity:var(--lyrics-reveal,1);transform:translateY(calc((1 - var(--lyrics-reveal,1))*12px));transition:opacity .42s ease,transform .42s ease;will-change:opacity,transform}
.karaoke-copy p{min-height:1.42em;margin:0;opacity:1;transform:translateY(0);transition:opacity .34s ease,transform .34s ease,filter .34s ease}.karaoke-copy p.queued-line{opacity:.64;filter:saturate(.72)}.karaoke-copy p.active-line{opacity:1;filter:none}.karaoke-copy p.empty-line{opacity:0}.karaoke-copy p.line-entering{animation:studioLyricIn .42s cubic-bezier(.2,.75,.25,1)}
.karaoke-copy.mode-alternate p:nth-child(even){transform:translateX(1.5%)}.karaoke-copy.mode-scroll{gap:.2em}.karaoke-copy.mode-scroll p.queued-line{opacity:.48;transform:scale(.96)}.karaoke-copy.mode-classic p.line-entering{animation:studioLyricBlockIn .42s ease-out}.karaoke-copy.mode-single p{font-size:1.14em}
@keyframes studioLyricIn{from{opacity:0;transform:translateY(12px);filter:blur(2px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}@keyframes studioLyricBlockIn{from{opacity:.08;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
.instrumental-break{z-index:5;left:50%;right:auto;bottom:40%;width:min(68%,620px);transform:translate(-50%,50%);gap:16px;padding:24px 30px;border:1px solid #5aaeff55;border-radius:22px;background:linear-gradient(145deg,#07162dd9,#17102ad9);box-shadow:0 22px 60px #0009,0 0 38px #367cff20;opacity:var(--break-fade,1);transition:opacity .35s linear,transform .35s ease;backdrop-filter:blur(10px)}.instrumental-break>span{font-size:18px;font-weight:800;letter-spacing:.02em}.instrumental-break>i{height:16px;border:1px solid #8acaff88;background:#020711cc}.instrumental-break em{background:linear-gradient(90deg,#2d9cff,#9b50f0 58%,#ef4caf);box-shadow:0 0 22px #6aa8ff88}.instrumental-break[hidden]{display:none}.video-frame.instrumental-active .voice-legend{opacity:0;transition:opacity .3s ease}
.transport{min-height:68px;margin-top:14px;padding:12px 16px;border-radius:18px;background:linear-gradient(135deg,#0b182a,#111426);box-shadow:0 16px 34px #0003}.transport .play{width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#337ee8,#c13ddd);box-shadow:0 9px 24px #713ed74c}.transport input{height:8px}
.studio-word-timeline{margin-top:14px;padding:20px;border:1px solid #284766;border-radius:22px;background:linear-gradient(150deg,#08172a,#080d18);box-shadow:0 18px 48px #0004;overflow:hidden}.studio-timeline-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.studio-timeline-head>div:first-child{display:flex;flex-direction:column;gap:4px}.studio-timeline-head small{color:#55aef3;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.12em}.studio-timeline-head b{font-size:18px}.studio-timeline-zoom{display:flex;align-items:center;gap:8px}.studio-timeline-zoom button{width:36px;height:34px;border:1px solid #315b83;border-radius:9px;background:#102743;color:#d7edff;cursor:pointer}.studio-timeline-zoom input{width:150px;accent-color:#c346dc}.studio-timeline-zoom output{min-width:48px;color:#8fa8c2;font-size:11px;text-align:right}.studio-timeline-scroll{height:190px;overflow-x:auto;overflow-y:hidden;border:1px solid #1e3854;border-radius:15px;background:#030914;scrollbar-color:#315879 #07101c}.studio-timeline-canvas{position:relative;height:172px;min-width:100%;cursor:pointer}.studio-timeline-ruler{position:absolute;inset:0 0 auto;height:34px;border-bottom:1px solid #203b58}.studio-timeline-ruler i{position:absolute;top:0;height:34px;padding:9px 0 0 5px;border-left:1px solid #284c70;color:#718da9;font-size:9px;font-style:normal}.studio-word-track{position:absolute;left:0;right:0;top:38px;height:96px;border-bottom:1px solid #1d3854;background:linear-gradient(180deg,#10203a77,#06101d)}.studio-word-block{position:absolute;height:36px;overflow:hidden;padding:0 9px;border:1px solid currentColor;border-radius:7px;background:#17324ee8;color:#6bbdff!important;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;transition:filter .18s ease,transform .18s ease,box-shadow .18s ease}.studio-word-block.female{background:#49203ce8}.studio-word-block.duet{background:#49301ce8}.studio-word-block:hover,.studio-word-block.playing{z-index:2;filter:brightness(1.35);transform:translateY(-2px);box-shadow:0 0 17px currentColor}.studio-audio-track{position:absolute;left:0;right:0;top:139px;height:28px;display:flex;align-items:center;gap:10px;color:#66829f;font-size:9px}.studio-audio-track span{position:sticky;left:8px;z-index:2;padding:3px 6px;border-radius:5px;background:#07111e}.studio-audio-track i{position:absolute;inset:3px 0;background:repeating-linear-gradient(90deg,#2e98e8 0 2px,transparent 2px 5px);mask:linear-gradient(0deg,transparent 4%,#000 45%,transparent 96%);opacity:.72}.studio-timeline-playhead{position:absolute;z-index:5;top:0;bottom:0;width:2px;background:#f247cf;box-shadow:0 0 12px #f247cf;pointer-events:none}.studio-timeline-playhead::before{content:"";position:absolute;left:-5px;top:0;width:12px;height:12px;border-radius:50%;background:#f247cf}.studio-word-timeline>p{margin:11px 2px 0;color:#71859c;font-size:10px}
.pipeline-card{padding:0;border-radius:22px;overflow:hidden;transition:border-color .25s ease,box-shadow .25s ease}.pipeline-head{min-height:82px;padding:14px 18px}.pipeline-head>div:last-child{display:flex;align-items:center;gap:8px}.pipeline-toggle{display:flex!important;align-items:center;gap:12px;padding:0!important;border:0!important;background:transparent!important;text-align:left}.pipeline-toggle>span{width:34px;height:34px;display:grid;place-items:center;border:1px solid #31567a;border-radius:10px;background:#0f2740;color:#79c3ff!important;font-size:18px!important;transition:transform .25s ease}.pipeline-toggle>div{display:flex;flex-direction:column;gap:4px}.pipeline-toggle b{font-size:16px}.pipeline-toggle small{color:#71859d;font-size:10px}.pipeline-body{padding:0 18px 18px;max-height:580px;opacity:1;transition:max-height .35s ease,opacity .22s ease,padding .35s ease}.pipeline-card.collapsed .pipeline-body{max-height:0;padding-top:0;padding-bottom:0;opacity:0;overflow:hidden}.pipeline-card.collapsed .pipeline-toggle>span{transform:rotate(-90deg)}.pipeline-card.collapsed{border-color:#2b4965;box-shadow:0 12px 28px #0003}.pipeline-card.collapsed .pipeline-head{min-height:70px}.pipeline-stages{margin-top:4px}
.inspector{border-radius:24px;border-color:#294867;background:linear-gradient(155deg,#0d1a2d,#0c101b);box-shadow:0 25px 70px #0005}.tabs{padding:11px 11px 0}.tabs button{padding:14px 6px}.setting{padding:24px}.setting h2{font-size:19px}.background-upload{height:142px;border-radius:17px}.background-swatches{gap:9px}.background-swatches button{height:50px;border-radius:11px}.select-label select,.two-fields select,.two-fields input{min-height:44px;border-radius:11px}.setting-hint{margin-top:12px!important;padding:12px 13px;border:1px solid #294968;border-radius:11px;background:#091728;color:#8298b1!important;line-height:1.55!important}
@media(max-width:1080px){#studio-screen .studio-grid{grid-template-columns:1fr}.inspector{max-width:none}.studio-word-timeline{padding:16px}}@media(max-width:700px){#studio-screen{padding:32px 14px 65px}.studio-head{align-items:flex-start!important;flex-direction:column}.head-actions{width:100%;overflow-x:auto}.head-actions>button{white-space:nowrap}.studio-timeline-head{align-items:flex-start;flex-direction:column}.studio-timeline-zoom{width:100%}.studio-timeline-zoom input{flex:1}.instrumental-break{width:82%;padding:18px}.pipeline-head{align-items:flex-start;flex-direction:column}.pipeline-head>div:last-child{width:100%;flex-wrap:wrap}.pipeline-toggle small{display:none}}

/* Studio v4: clean break progress, premium player and exact text colours. */
.instrumental-break{left:50%;right:auto;bottom:48%;width:min(64%,680px);padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;transform:translate(-50%,50%);opacity:var(--break-fade,1)}.instrumental-break::before{content:"";position:absolute;inset:-22px -34px;border-radius:999px;background:radial-gradient(ellipse,#4d7cff24,transparent 68%);filter:blur(10px);pointer-events:none}.instrumental-break>i{position:relative;display:block;width:100%;height:22px;padding:4px;border:1px solid #70baff66;border-radius:999px;background:#030713b8;box-shadow:inset 0 2px 10px #000b,0 0 28px #4b83ff44;overflow:hidden}.instrumental-break em{position:relative;height:100%;min-width:13px;border-radius:999px;background:linear-gradient(90deg,#39a8ff 0%,#7366ff 48%,#ef4fc7 100%);box-shadow:0 0 20px #7e74ff,0 0 42px #e449bd66;transition:width .12s linear}.instrumental-break em::after{content:"";position:absolute;inset:1px 8px auto;height:35%;border-radius:999px;background:#ffffff82;filter:blur(1px)}
.karaoke-copy{color:#fff;text-shadow:none}.karaoke-copy p.queued-line,.karaoke-copy p.past{opacity:1;filter:none;color:#fff}.karaoke-copy .past .karaoke-word,.karaoke-copy .queued-line .karaoke-word{background:linear-gradient(90deg,var(--word-fill,var(--karaoke-fill,#ff405c)) 0 var(--fill),var(--karaoke-base,#fff) var(--fill) 100%);background-clip:text;-webkit-background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent!important}.karaoke-word{filter:none;text-shadow:none}
.studio-player{display:grid;grid-template-columns:58px minmax(165px,.58fr) minmax(260px,1.5fr) auto;gap:16px;min-height:92px;padding:15px 17px;border:1px solid #2c5277;border-radius:22px;background:radial-gradient(circle at 8% 50%,#2b70b828,transparent 27%),radial-gradient(circle at 91% 45%,#b43a9e1f,transparent 31%),linear-gradient(135deg,#0a1a2e,#0b101c);box-shadow:0 18px 45px #0005,inset 0 1px #ffffff0a}.studio-player .play{position:relative;width:58px;height:58px;border:1px solid #7faeff88;border-radius:18px;background:linear-gradient(135deg,#268fe8,#7c58ec 58%,#e544bb);box-shadow:0 10px 28px #644cd15c,0 0 22px #319cff2e;color:#fff;font-size:21px;transition:transform .18s ease,filter .18s ease}.studio-player .play:hover{filter:brightness(1.12);transform:translateY(-1px)}.player-now{min-width:0;display:flex;align-items:center;gap:12px}.player-now>i{height:30px;display:flex;align-items:center;gap:3px}.player-now>i span{width:3px;height:8px;border-radius:3px;background:linear-gradient(180deg,#55c4ff,#d74fc9);box-shadow:0 0 8px #5db6ff;animation:playerBar 1s ease-in-out infinite;animation-play-state:paused}.player-now>i span:nth-child(2){height:21px;animation-delay:-.35s}.player-now>i span:nth-child(3){height:14px;animation-delay:-.7s}.player-now>i span:nth-child(4){height:25px;animation-delay:-.2s}.studio-player.is-playing .player-now>i span{animation-play-state:running}.player-now>div{min-width:0;display:flex;flex-direction:column;gap:4px}.player-now small{color:#68baff;font-size:9px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.player-now b{overflow:hidden;color:#f7fbff;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.player-progress{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:9px}.player-progress>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px}.player-progress time{color:#edf6ff;font-size:11px;font-weight:750;font-variant-numeric:tabular-nums}.player-progress span{overflow:hidden;color:#7088a3;font-size:9px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.player-progress input{width:100%;height:7px;margin:0;accent-color:#d84dc5;cursor:pointer}.player-actions{display:flex;align-items:center;gap:7px}.player-actions button{width:42px;height:42px;padding:0;border:1px solid #315779;border-radius:12px;background:#0d2238;color:#a9c9e6;font-size:11px;font-weight:800;cursor:pointer;transition:.18s ease}.player-actions button:hover{border-color:#5faef0;color:#fff;background:#123150}.player-actions #player-volume{font-size:16px}.player-actions #player-volume.muted{border-color:#713c61;color:#ff7ac8;background:#281329}@keyframes playerBar{0%,100%{transform:scaleY(.42);opacity:.6}50%{transform:scaleY(1);opacity:1}}
@media(max-width:800px){.studio-player{grid-template-columns:58px 1fr auto}.player-now{display:none}.player-progress{grid-column:2}.player-actions{grid-column:3;grid-row:1}.player-actions button:not(#player-volume){display:none}}@media(max-width:520px){.studio-player{grid-template-columns:52px 1fr;padding:12px;gap:10px}.studio-player .play{width:52px;height:52px}.player-actions{grid-column:1/-1;grid-row:2;justify-content:flex-end}.player-actions button:not(#player-volume){display:block}.player-progress{grid-column:2}.instrumental-break{width:76%}}

/* Studio v5: text-safe preview, reusable templates and foreground-safe dimming. */
.video-frame{isolation:isolate}.video-frame::before,.video-frame .custom-background-video,.video-frame #generated-video{z-index:1}.video-frame::after{z-index:2;pointer-events:none}.video-frame .karaoke-safe-area{z-index:3}.video-frame .karaoke-copy,.video-frame .instrumental-break,.video-frame .job-preview{z-index:4}.video-frame .voice-legend{z-index:5}.video-frame .video-tools,.video-frame .exit-player{z-index:6}
.karaoke-safe-area{position:absolute;left:5%;right:5%;bottom:8%;height:38%;border:1px dashed #8bc9ff70;border-radius:16px;pointer-events:none;box-shadow:inset 0 0 30px #2678bf0b;transition:opacity .25s ease}.karaoke-safe-area span{position:absolute;right:10px;top:8px;padding:4px 7px;border-radius:6px;background:#06111fc4;color:#79b5e6;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.portal-player .karaoke-safe-area,.video-frame:fullscreen .karaoke-safe-area{display:none}.video-frame:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;border:0;border-radius:0;padding:8% 5%;background-color:#02040a}.video-frame:fullscreen .video-tools{top:22px;right:22px}.video-frame:fullscreen .karaoke-copy{width:90%}
.template-setting{background:linear-gradient(145deg,#0d1d31,#161126)}.template-setting>.setting-hint{margin:12px 0!important}.template-setting>input{min-height:44px;margin-top:4px;border-color:#35587c}.template-actions{grid-template-columns:1fr 1fr;gap:8px}.template-actions select{grid-column:1/-1;min-height:44px}.template-actions button{min-height:40px;border:1px solid #355477;border-radius:10px;background:#10243b;color:#dceeff;cursor:pointer}.template-actions .primary{border:0;background:linear-gradient(110deg,#347ee5,#b945d2)}.template-status{margin:11px 1px 0!important;color:#7794b0!important;font-size:10px!important;line-height:1.45!important}.party-color-controls{margin-top:19px;padding-top:18px;border-top:1px solid #29415d}.party-color-controls h2{margin:0 0 4px;font-size:15px}.party-color-controls>p{margin:0 0 10px!important;color:#748ca5!important;font-size:10px!important;line-height:1.45!important}.party-color-controls label{min-height:42px;padding:7px 0;border-bottom:1px solid #1e3249}.party-color-controls label:last-child{border-bottom:0}
.template-beta{padding:4px 7px;border:1px solid #9c793d;border-radius:6px;background:#2c2415;color:#f4d58b;font-size:9px;letter-spacing:.12em}.template-catalog{margin:13px 0 17px}.catalog-template-card{overflow:hidden;border:1px solid #745f35;border-radius:12px;background:linear-gradient(145deg,#1d1a16,#0a1424);box-shadow:0 10px 28px #0006}.catalog-template-card>img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.catalog-template-card>div{display:grid;gap:3px;padding:11px 12px 8px}.catalog-template-card strong{font-family:"EB Garamond",Georgia,serif;font-size:17px;font-weight:600;color:#f2d18c}.catalog-template-card small{color:#9eacbf;font-size:10px}.catalog-template-card>button{width:calc(100% - 24px);margin:0 12px 12px;padding:9px;border:1px solid #b48a3e;border-radius:8px;background:linear-gradient(180deg,#4b3b20,#241b0f);color:#ffe7ab;cursor:pointer}.catalog-template-card.active{border-color:#f0c468;box-shadow:0 0 0 1px #f0c468,0 0 24px #d9a43b33}.personal-template-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;padding-top:14px;border-top:1px solid #263d5b}.personal-template-head h3{margin:0;font-size:13px}.personal-template-head button{border:0;background:none;color:#83bff4;cursor:pointer;font-size:11px}.style-template-logo{display:none;position:absolute;z-index:3;left:3.2292%;top:3.8889%;width:18.75%;height:11.1111%;object-fit:contain;object-position:left top;pointer-events:none}.video-frame[data-style-template="air-pariashchiy-svet"] .style-template-logo{display:block}.video-frame[data-style-template="air-pariashchiy-svet"] .karaoke-copy{z-index:3;width:76.5625%;height:19.4444%;padding:0;border:0;background:url("assets/templates/air-pariashchiy-svet/lyrics_glass_panel.png") center/100% 100% no-repeat;text-shadow:0 2px 6px #5f3a18,0 0 8px #fff1c133}
.template-catalog-toggle{width:100%;min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:10px 12px;border:1px solid #32658a;border-radius:13px;background:radial-gradient(circle at 8% 50%,#3d9dda24,transparent 34%),linear-gradient(135deg,#0b2237,#17142a);color:#eaf7ff;cursor:pointer;text-align:left;box-shadow:0 12px 28px #0004}.template-catalog-toggle>span{display:grid;grid-template-columns:34px 1fr;column-gap:10px;align-items:center}.template-catalog-toggle i{grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;border:1px solid #3d7fa8;border-radius:10px;background:#0e2b43;color:#66cfff;font-style:normal}.template-catalog-toggle b{font-size:13px;font-weight:600}.template-catalog-toggle small{color:#7f9cb6;font-size:9px}.template-catalog-toggle em{color:#69c9f6;font-size:10px;font-style:normal;white-space:nowrap}.template-catalog-toggle[aria-expanded="true"]{border-color:#50b6e9;box-shadow:0 0 0 1px #50b6e933,0 14px 32px #0005}.template-catalog-panel[hidden]{display:none}.template-catalog-panel{margin:-3px 0 17px;padding:12px;border:1px solid #294b68;border-radius:14px;background:#081522;box-shadow:inset 0 1px #ffffff08}.template-catalog{display:grid;gap:12px;margin:0}.template-color-sample{display:flex;gap:5px;margin-top:4px}.template-color-sample i{width:15px;height:15px;border:1px solid #ffffff70;border-radius:50%;box-shadow:0 0 9px #0008}.admin-template-color-editor{margin-top:13px;padding:13px;border:1px solid #7c6338;border-radius:12px;background:linear-gradient(145deg,#241d12,#101724)}.admin-template-color-editor[hidden]{display:none}.admin-template-color-editor>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.admin-template-color-editor>header div{display:grid;gap:2px}.admin-template-color-editor>header small{color:#d7aa59;font-size:8px;letter-spacing:.12em;text-transform:uppercase}.admin-template-color-editor h3{margin:0;font-size:13px;font-weight:600}.admin-template-color-editor>header>span{padding:4px 6px;border:1px solid #9d7433;border-radius:5px;color:#ffd982;font-size:8px;letter-spacing:.12em}.admin-template-color-editor>label{display:grid;gap:5px;color:#91a5b8;font-size:9px}.admin-template-color-editor select{min-height:38px;border:1px solid #435a6e;border-radius:9px;background:#0a1622;color:#eef7ff}.admin-template-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.admin-template-color-grid label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px;padding:8px;border:1px solid #34495e;border-radius:9px;background:#0a1521}.admin-template-color-grid span{grid-column:1/-1;color:#8198ad;font-size:8px}.admin-template-color-grid input{width:34px;height:30px;padding:2px;border:1px solid #46627a;border-radius:7px;background:#08111b}.admin-template-color-grid b{font-size:9px;font-weight:500}.admin-template-color-actions{display:flex;gap:7px;margin-top:10px}.admin-template-color-actions button{flex:1;min-height:36px;border:1px solid #435a6e;border-radius:9px;background:#111e2b;color:#c8d7e4;cursor:pointer;font-size:9px}.admin-template-color-actions .primary{border-color:#a7772d;background:linear-gradient(135deg,#493717,#7c5222);color:#ffe1a1}.admin-template-color-editor>p{margin:9px 0 0!important;color:#71869a!important;font-size:8px!important;line-height:1.45!important}.video-frame[data-style-template="air-nebesnyy-gorizont"] .style-template-logo{display:block}.video-frame[data-style-template="air-nebesnyy-gorizont"] .karaoke-copy{z-index:3;width:76.5625%;min-height:19.4444%;padding:28px 38px;border:1px solid #ffffffb8;border-radius:48px;background:linear-gradient(145deg,#17213d75,#25243f8a);box-shadow:0 18px 36px #0004;backdrop-filter:blur(18px);text-shadow:none}.video-frame[data-style-template="air-nebesnyy-gorizont"] .karaoke-copy p.queued-line{color:#b8c2db}.video-frame[data-style-template="air-nebesnyy-gorizont"] .karaoke-word{filter:none;text-shadow:none}
/* Administrator review controls are rendered only for an explicit adminReview URL. */
.admin-review-bar{margin:14px auto 0;max-width:1760px;width:calc(100% - 80px);min-height:66px;padding:11px 14px 11px 18px;border:1px solid #31536b;border-radius:14px;background:linear-gradient(100deg,rgba(12,31,44,.98),rgba(24,18,36,.98));display:flex;align-items:center;justify-content:space-between;gap:22px;box-shadow:0 10px 34px rgba(0,0,0,.2)}.admin-review-bar[hidden]{display:none}.admin-review-bar>div:first-child{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:3px 14px}.admin-review-bar small{grid-column:1/-1;color:#55cdf8;text-transform:uppercase;letter-spacing:.14em;font-size:10px}.admin-review-bar b{font-weight:500;color:#e9f6ff}.admin-review-bar span{font-size:12px;color:#8498aa}.admin-review-actions{display:flex;align-items:center;gap:8px}.admin-review-actions button,.admin-review-actions a{border:1px solid #344c60;border-radius:9px;background:#111c29;color:#c8d8e6;padding:9px 12px;font:inherit;font-size:12px;text-decoration:none;white-space:nowrap}.admin-review-actions button.primary{border-color:#2a87ad;color:#65d7ff;background:#102a3a}.admin-review-actions #admin-review-needs-work{border-color:#70414e;color:#ff9dab}@media(max-width:1250px){.admin-review-bar{width:calc(100% - 30px);align-items:flex-start}.admin-review-actions{flex-wrap:wrap;justify-content:flex-end}}

/* The final manual-review action appears only after the first saved timeline edit. */
.timeline-transport{align-items:flex-start;flex-direction:column}.timeline-transport-main,.timeline-edit-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;width:100%}.timeline-transport-main strong{margin-left:auto;color:#79c9ff;font-size:11px}.timeline-edit-controls>button{width:auto;height:34px;padding:0 11px;background:#10233a;border-color:#315579;color:#cfe6fa}.editor-history-controls{display:flex;gap:5px}.editor-history-controls button{width:38px}.timeline-edit-controls .manual-review-accept{margin-left:auto;padding:0 15px;border-color:#32a67c;background:linear-gradient(135deg,#0d4b3d,#126d56);color:#d9fff1;box-shadow:0 0 16px #30bd8430;white-space:nowrap}.timeline-edit-controls .manual-review-accept[hidden]{display:none}.editor-zoom-control{display:flex;align-items:center;gap:7px;margin-left:auto;color:#8fa7c0;font-size:11px}.editor-zoom-control input{width:170px;accent-color:#45aef2}.editor-zoom-control output{min-width:42px;text-align:right}@media(max-width:900px){.timeline-edit-controls .manual-review-accept,.editor-zoom-control{margin-left:0}}

/* Temporary, explicit report for the new reference-TXT preflight. */
@font-face{font-family:"Inter";src:url("assets/fonts/Inter-Variable.ttf") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
.admin-template-typography-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.admin-template-typography-grid label{display:grid;gap:6px;padding:8px;border:1px solid #34495e;border-radius:9px;background:#0a1521}.admin-template-typography-grid span{color:#8198ad;font-size:8px}.admin-template-typography-grid input,.admin-template-typography-grid select{width:100%;min-height:32px;box-sizing:border-box;padding:5px 7px;border:1px solid #46627a;border-radius:7px;background:#08111b;color:#eef7ff}.video-frame[data-style-template="air-nebesnyy-gorizont"] .karaoke-copy{min-height:0;padding:0;border-radius:34px}

.lyrics-preflight-dialog{width:min(900px,calc(100vw - 32px));max-height:88vh;overflow:auto;padding:0;border:1px solid #315a78;border-radius:18px;background:linear-gradient(155deg,#0b1b2d,#11121e);color:#eaf5ff;box-shadow:0 30px 100px #000c}.lyrics-preflight-dialog::backdrop{background:#01050bcc;backdrop-filter:blur(5px)}.lyrics-preflight-dialog>header{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px 18px;border-bottom:1px solid #29455f;background:#0b1828f5}.lyrics-preflight-dialog h2{margin:4px 0 0;font-size:22px}.lyrics-preflight-dialog>header>button{width:38px;height:38px;border:1px solid #38536a;border-radius:10px;background:#111e2c;color:#d8e7f3;font-size:22px;cursor:pointer}.lyrics-preflight-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:20px 24px}.lyrics-preflight-summary>div{display:grid;gap:5px;padding:13px;border:1px solid #27445f;border-radius:11px;background:#091522}.lyrics-preflight-summary strong{color:#58c8ff;font-size:22px;font-weight:500}.lyrics-preflight-summary span{color:#8da3b7;font-size:10px;line-height:1.35}.lyrics-preflight-dialog>section{padding:0 24px 18px}.lyrics-preflight-dialog h3{margin:0 0 9px;font-size:14px;font-weight:500}.lyrics-preflight-list{display:grid;gap:7px}.lyrics-preflight-list .empty{margin:0;padding:12px;border:1px dashed #2b465e;border-radius:9px;color:#7790a5;font-size:12px}.lyrics-preflight-item{padding:11px 13px;border:1px solid #28516a;border-radius:10px;background:#0a1b28}.lyrics-preflight-item.warning{border-color:#765144;background:#281b19}.lyrics-preflight-item.notice{border-color:#685f38;background:#211f15}.lyrics-preflight-item.info{border-color:#365775}.lyrics-preflight-item b{font-size:12px;font-weight:500}.lyrics-preflight-item small{display:block;margin-top:4px;color:#75b8dc;font-size:10px}.lyrics-preflight-item p{margin:6px 0 0;color:#aebdca;font-size:11px;line-height:1.4}.lyrics-preflight-note{margin:0 24px;padding:12px 14px;border-radius:10px;background:#092720;color:#78d6b5;font-size:11px}.lyrics-preflight-dialog>footer{display:flex;justify-content:flex-end;padding:18px 24px 24px}.lyrics-preflight-dialog>footer button{padding:11px 18px}@media(max-width:700px){.lyrics-preflight-summary{grid-template-columns:1fr 1fr}.lyrics-preflight-dialog>header,.lyrics-preflight-summary,.lyrics-preflight-dialog>section{padding-left:15px;padding-right:15px}}

.processing-error-dialog:not([open]){display:none}.processing-error-dialog{width:min(600px,calc(100vw - 32px));padding:28px;border:1px solid #8b4d5f;border-radius:20px;background:radial-gradient(circle at 10% 0,#8f36522b,transparent 42%),linear-gradient(155deg,#0b1928,#14131d);color:#eef7ff;box-shadow:0 30px 100px #000d}.processing-error-dialog::backdrop{background:#01050bd9;backdrop-filter:blur(7px)}.processing-error-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:18px;border:1px solid #ff6f8c80;border-radius:15px;background:#5b1e31;color:#ff9bb0;font-size:25px;font-weight:700}.processing-error-dialog .eyebrow{margin:0 0 7px;color:#ff91a8}.processing-error-dialog h2{margin:0;font-size:25px;line-height:1.2}.processing-error-dialog>p:not(.eyebrow){margin:13px 0 0;color:#afbdca;line-height:1.55}.processing-error-help{display:grid;gap:6px;margin-top:20px;padding:15px 16px;border:1px solid #2c4e68;border-radius:12px;background:#091827}.processing-error-help strong{color:#70d2ff;font-size:13px}.processing-error-help span{color:#aebdca;font-size:13px;line-height:1.5}.processing-error-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.processing-error-actions button{padding:11px 16px}@media(max-width:620px){.processing-error-dialog{padding:21px}.processing-error-dialog h2{font-size:21px}.processing-error-actions{flex-direction:column-reverse}.processing-error-actions button{width:100%}}

/* Compact vertical F-Voice dialog for recoverable processing failures. */
.processing-error-dialog[open]{position:relative;box-sizing:border-box;display:flex;flex-direction:column;width:min(470px,calc(100vw - 32px));min-height:min(590px,calc(100vh - 36px));max-height:calc(100vh - 36px);padding:38px 34px 30px;overflow:auto;border:1px solid #32658a;border-radius:22px;background:radial-gradient(circle at 15% 4%,#27b7ff29 0,transparent 31%),radial-gradient(circle at 92% 95%,#c23cff24 0,transparent 35%),linear-gradient(155deg,#081827 0%,#0b1424 52%,#171126 100%);color:#eef8ff;box-shadow:0 0 0 1px #ffffff0a,inset 0 1px #ffffff14,0 30px 90px #000d;font-family:inherit}.processing-error-dialog[open]::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#32c6ff,#7767ff 52%,#d54adf);box-shadow:0 0 18px #51bfff99}.processing-error-dialog::backdrop{background:#020713e8;backdrop-filter:blur(9px)}.processing-error-dialog .processing-error-icon{display:grid;flex:0 0 auto;place-items:center;width:54px;height:54px;margin:0 0 24px;border:1px solid #55c9ff80;border-radius:16px;background:linear-gradient(145deg,#0c3450,#201845);color:#80ddff;font-size:25px;font-weight:700;box-shadow:inset 0 1px #ffffff1f,0 0 24px #3aa9ef30}.processing-error-dialog .eyebrow{margin:0 0 9px;color:#62ccf7;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.processing-error-dialog h2{margin:0;color:#f3f8ff;font-size:25px;font-weight:650;line-height:1.25;letter-spacing:-.02em}.processing-error-dialog>p:not(.eyebrow){margin:17px 0 0;color:#9eb2c7;font-size:14px;line-height:1.65}.processing-error-dialog .processing-error-help{display:grid;gap:9px;margin-top:27px;padding:17px 18px;border:1px solid #284d6c;border-radius:14px;background:linear-gradient(145deg,#071a2d,#10172a);box-shadow:inset 0 1px #ffffff0a}.processing-error-dialog .processing-error-help strong{color:#67d2ff;font-size:12px;font-weight:750;letter-spacing:.04em}.processing-error-dialog .processing-error-help span{color:#a9b9c9;font-size:13px;line-height:1.6}.processing-error-dialog .processing-error-actions{display:grid;grid-template-columns:112px 1fr;gap:10px;margin-top:auto;padding-top:30px}.processing-error-dialog .processing-error-actions button{min-height:46px;padding:10px 14px;border-radius:11px;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}.processing-error-dialog #processing-error-later{border:1px solid #31516c;background:#0a1a2a;color:#9fb5c8}.processing-error-dialog #processing-error-later:hover{border-color:#4d789a;color:#e8f5ff;background:#0d2338}.processing-error-dialog #processing-error-edit{border:1px solid #68cfff70;background:linear-gradient(105deg,#247fc5,#6755df 56%,#b642ca);color:#fff;box-shadow:0 0 20px #418be34a,0 10px 24px #0005}.processing-error-dialog #processing-error-edit:hover{filter:brightness(1.1);box-shadow:0 0 28px #4aaaf066,0 12px 28px #0006}@media(max-width:540px){.processing-error-dialog[open]{width:calc(100vw - 20px);min-height:0;max-height:calc(100vh - 20px);padding:30px 22px 22px}.processing-error-dialog h2{font-size:22px}.processing-error-dialog .processing-error-actions{grid-template-columns:1fr}.processing-error-dialog #processing-error-later{order:2}}

/* Scrollable AIR template catalog and shared composition for its color variants. */
.video-frame.air-modern-template .style-template-logo{display:block}.video-frame.air-modern-template .karaoke-copy{z-index:3;width:88.75%;min-height:0;padding:0;border:1px solid #ffffffb8;border-radius:34px;background:linear-gradient(145deg,#17213d75,#25243f8a);box-shadow:0 18px 36px #0004;backdrop-filter:blur(18px);text-shadow:none}.video-frame.air-modern-template .karaoke-copy p.queued-line{color:#b8c2db}.video-frame.air-modern-template .karaoke-word{filter:none;text-shadow:none}
.template-catalog-dialog:not([open]){display:none}.template-catalog-dialog{width:min(1180px,calc(100vw - 48px));max-width:none;max-height:calc(100vh - 48px);padding:0;border:1px solid #315b7d;border-radius:20px;background:#07111d;color:#eef8ff;box-shadow:0 30px 90px #000c;overflow:hidden}.template-catalog-dialog::backdrop{background:rgba(2,7,13,.78);backdrop-filter:blur(7px)}.template-catalog-modal{display:flex;flex-direction:column;max-height:calc(100vh - 50px)}.template-catalog-modal-head{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:22px 25px 18px;border-bottom:1px solid #263f58;background:radial-gradient(circle at 8% 20%,#2e8bc42e,transparent 35%),linear-gradient(135deg,#0b1e31,#171326)}.template-catalog-modal-head small{color:#67cfff;font-size:10px;letter-spacing:.16em}.template-catalog-modal-head h2{margin:4px 0 5px;font-size:23px;font-weight:500}.template-catalog-modal-head p{margin:0;color:#8ea5b9;font-size:12px}.template-catalog-modal-head>button{flex:0 0 38px;width:38px;height:38px;border:1px solid #3f607d;border-radius:11px;background:#0b1724;color:#c9d8e5;font-size:25px;line-height:1;cursor:pointer}.template-catalog-modal-scroll{min-height:0;padding:20px 22px 26px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#397ca7 #0a1622}.template-catalog-dialog .template-catalog{grid-template-columns:repeat(auto-fit,minmax(270px,1fr));align-items:stretch}.template-catalog-dialog .catalog-template-card{height:100%;display:flex;flex-direction:column}.template-catalog-dialog .catalog-template-card>button{margin-top:auto}.template-catalog-dialog .admin-template-color-editor{max-width:720px;margin:22px auto 0}@media(max-width:720px){.template-catalog-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.template-catalog-modal{max-height:calc(100vh - 22px)}.template-catalog-modal-head{padding:17px}.template-catalog-modal-scroll{padding:14px}.template-catalog-dialog .template-catalog{grid-template-columns:1fr}}

.processing-error-dialog[open]{position:fixed;inset:0;margin:auto}

/* Template accent: text fill, player progress and both word timelines move together. */
.player-progress input,.transport input,.studio-timeline-zoom input,.editor-zoom-control input{accent-color:var(--project-accent,#ffd17a)}
.studio-timeline-playhead,.editor-playhead,.playhead{background:var(--project-accent-soft,#ffd17a80);box-shadow:none}
.studio-timeline-playhead::before,.playhead::before{background:var(--project-accent-soft,#ffd17a80);box-shadow:none}
.studio-audio-track i,.wave{background:repeating-linear-gradient(90deg,var(--project-accent,#ffd17a) 0 2px,transparent 2px 5px)}
.instrumental-break em{background:linear-gradient(90deg,var(--project-accent,#ffd17a),color-mix(in srgb,var(--project-accent,#ffd17a) 72%,white));box-shadow:0 0 20px color-mix(in srgb,var(--project-accent,#ffd17a) 48%,transparent)}
.admin-template-color-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:620px){.admin-template-color-grid{grid-template-columns:1fr}}
.studio-instrumental-block{position:absolute;top:4px;height:76px;display:flex;align-items:center;padding:0 16px;box-sizing:border-box;overflow:hidden;white-space:nowrap;border:1px dashed #d8b87166;border-radius:8px;background:linear-gradient(90deg,#d8b87116,#d8b87108);color:#d8b871;font-size:12px;pointer-events:none}
.line-layout-dialog{width:min(1100px,94vw);max-height:88vh;overflow:auto;padding:24px;border:1px solid #397ca7;border-radius:18px;background:#101b27;color:#e6eef7}.line-layout-dialog::backdrop{background:#000b}.line-layout-dialog header{display:flex;justify-content:space-between;align-items:center;gap:20px}.line-layout-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.line-layout-columns section{min-width:0}.line-layout-columns pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:15px;line-height:1.8}#logical-lines-setting{display:flex;gap:10px;align-items:center}#logical-lines-setting[hidden]{display:none}@media(max-width:700px){.line-layout-columns{grid-template-columns:1fr}}
.studio-login-dialog .login-recovery {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #87d8ef;
  cursor: pointer;
}
