/* Graphite Spectrum — unified production UI. */
:root{--bg:#090b10;--panel:#12161d;--panel2:#171c25;--line:#2a3441;--text:#f7f8fc;--muted:#9299a8;--violet:#8b6cff;--violet2:#f05bcb;--blue:#42c7ff;--pink:#f05bcb;--orange:#ffb454;--green:#42c7ff;--radius:20px}
body{min-width:1080px;background:radial-gradient(circle at 48% -10%,rgba(47,105,160,.16),transparent 38%),radial-gradient(circle at 96% 30%,rgba(240,91,203,.05),transparent 30%),linear-gradient(180deg,#0b0e14,#05070a 72%);color:var(--text);letter-spacing:0}
body::before{opacity:.09;background-image:linear-gradient(rgba(115,165,205,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(115,165,205,.055) 1px,transparent 1px);background-size:64px 64px;mask-image:linear-gradient(#000,transparent 76%)}
button{transition:border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
.topbar{height:84px;padding:0 max(34px,calc((100vw - 1480px)/2));border-color:#222b36;background:rgba(7,10,15,.88);box-shadow:0 14px 46px #0004;backdrop-filter:blur(24px) saturate(135%)}
.brand{min-width:290px;gap:13px;text-shadow:none}.brand-mark{width:46px;height:46px;border:1px solid #42c7ff45;border-radius:15px;background:radial-gradient(circle at 25% 10%,#42c7ff2c,transparent 56%),linear-gradient(145deg,#122431,#17131f);box-shadow:0 0 28px #42c7ff14;color:#73d7ff;font-size:20px}.brand>span:nth-child(2){font-size:21px;letter-spacing:-.025em}.brand em{color:#72d6ff}.brand small{max-width:100px;border-color:#313945;color:#777f8c;font-size:8px;line-height:1.2}
.topbar nav{gap:8px;margin-left:24px}.nav-link{min-height:47px;padding:0 21px;border:1px solid transparent;border-radius:14px;color:#aeb5c1;font-size:14px}.nav-link:hover{border-color:#303b49;background:#171c24;color:#fff}.nav-link.active{border-color:#42c7ff42;background:radial-gradient(circle at 15% 0,#42c7ff16,transparent 60%),linear-gradient(180deg,#17242d,#131920);box-shadow:0 8px 24px #0003;color:#70d5ff}
.saved{padding:10px 14px;border:1px solid #2a3644;border-radius:22px;background:#111720;color:#9299a8}.saved i{background:#42c7ff;box-shadow:0 0 12px #42c7ffaa}
main{max-width:none}.screen{width:min(1480px,calc(100% - 64px));margin:0 auto;padding:52px 0 82px}.screen h1{color:#f8f9fc}
.primary,.create-action .primary,.template-actions .primary{border:1px solid #42c7ff62!important;color:#e8f8ff!important;background:radial-gradient(circle at 5% 0,#42c7ff24,transparent 45%),radial-gradient(circle at 100% 100%,#f05bcb13,transparent 42%),linear-gradient(180deg,#4385af13,#1e3b4e06),#131920!important;box-shadow:0 12px 34px #0004,0 0 24px #42c7ff0f,inset 0 1px #ffffff0f!important;text-shadow:none}.primary:hover,.create-action .primary:hover,.template-actions .primary:hover{border-color:#63d6ff9e!important;background:radial-gradient(circle at 5% 0,#42c7ff30,transparent 47%),radial-gradient(circle at 100% 100%,#f05bcb1b,transparent 44%),#151c24!important;box-shadow:0 15px 40px #0005,0 0 28px #42c7ff1c!important;transform:translateY(-1px)}
.back{color:#9ba3af}.back:hover{color:#72d6ff}.head-actions>button:not(.primary),.secondary,.full-width,.project-toolbar button,.section-head button,.editor-actions button:not(.primary),.line-editor-toolbar button,.sync-toolbar button,.timeline-transport button,.pipeline-head button,.template-actions button{border:1px solid #354252!important;background:linear-gradient(180deg,#1b222c,#141920)!important;color:#dce3ec!important;box-shadow:inset 0 1px #ffffff08}.head-actions>button:not(.primary):hover,.full-width:hover,.project-toolbar button:hover,.section-head button:hover,.editor-actions button:hover,.line-editor-toolbar button:hover,.sync-toolbar button:hover,.pipeline-head button:hover,.template-actions button:hover{border-color:#42c7ff6b!important;color:#78d8ff!important;background:#182630!important}

/* Create */
.create-v2{max-width:none;padding-top:62px;background:none}.create-hero{margin-bottom:46px}.create-hero .eyebrow{color:#a7aeba;letter-spacing:.18em}.create-hero .eyebrow span{background:#42c7ff;box-shadow:0 0 13px #42c7ffaa}.create-hero h1{font-size:clamp(48px,5.4vw,74px);letter-spacing:-.055em}.create-hero h1 strong{background:linear-gradient(90deg,#f7f8fc 2%,#8adfff 43%,#9f80ff 72%,#ef80d3);background-clip:text;-webkit-background-clip:text;color:transparent}.create-hero .lead{color:#9299a8;font-size:17px}
.create-workspace{max-width:1100px;padding:12px;border-color:#2b3643;border-radius:32px;background:linear-gradient(160deg,rgba(20,25,34,.93),rgba(9,12,17,.97));box-shadow:0 32px 100px #0008,inset 0 1px #ffffff09}.create-block{padding:36px 38px;border-color:#29323e}.create-block-head>span{min-width:48px;height:40px;border-color:#42c7ff52;background:linear-gradient(145deg,#42c7ff15,#8b6cff09);color:#73d7ff}.create-block-head h2{font-size:25px}.create-block-head p{color:#858d9b}.create-block-head>em{border-color:#f05bcb45;background:#f05bcb0d;color:#f28bd7}
.create-dropzone{min-height:190px;border-color:#42c7ff58;border-radius:22px;background:radial-gradient(circle at 0 0,#42c7ff13,transparent 38%),radial-gradient(circle at 100% 100%,#f05bcb08,transparent 34%),#0a0e14}.create-dropzone:hover{border-color:#42c7ff;background:#0c121a;box-shadow:inset 0 0 32px #42c7ff0b,0 16px 45px #0005}.upload-orb{width:66px;height:66px;border-color:#42c7ff65;border-radius:20px;background:linear-gradient(145deg,#42c7ff1e,#8b6cff0c),#111820;color:#7cdbff;box-shadow:0 0 28px #42c7ff16}.create-dropzone>b{padding:14px 19px;border-color:#42c7ff4d;background:linear-gradient(180deg,#42c7ff10,#42c7ff04),#131a22;color:#dff6ff}.create-note i{background:#42c7ff;box-shadow:0 0 10px #42c7ffaa}
.create-choice-grid{gap:14px}.create-choice{min-height:116px;padding:20px;border-color:#303a47;border-radius:18px;background:#11151c}.create-choice:hover{border-color:#42c7ff4f}.create-choice.selected{border-color:#42c7ff78;background:radial-gradient(circle at 0 0,#42c7ff16,transparent 46%),linear-gradient(145deg,#42c7ff08,#f05bcb04),#121820;box-shadow:inset 0 0 0 1px #42c7ff09,0 12px 34px #0002}.create-choice.selected>i{border-color:#42c7ff;background:#f7fbff}.create-choice>em{border-color:#42c7ff42;background:#42c7ff0e;color:#72d6ff}.create-choice u{color:#76d8ff}.create-choice:nth-child(2) u{color:#f18bd7}
.create-lyrics-field{border-color:#303b48;background:#0b0f15}.lyrics-audio-check{border-color:#2f3b49;background:linear-gradient(145deg,#101720,#0b0f15)}.lyrics-player-head>span>i,.lyrics-player-controls button{border-color:#42c7ff4a!important;background:#42c7ff0b!important;color:#78d9ff!important}.lyrics-player-controls input{accent-color:#42c7ff}.lyrics-review-reminder{border-color:#f05bcb36;background:linear-gradient(100deg,#f05bcb0d,#8b6cff08)}.lyrics-review-reminder>i{background:#f05bcb;color:#fff}.create-lyrics-field textarea{border-color:#2f3a47;background:#080b10;min-height:300px}.create-lyrics-field textarea:focus{border-color:#42c7ff85;box-shadow:0 0 0 3px #42c7ff0d}
.advanced-settings,.route-plan{border-color:#2d3744;background:#0d1117}.advanced-content{border-color:#29333f}.performance-choice{border-color:#303a46;background:#10141b}.performance-choice.selected{border-color:#42c7ff70;background:linear-gradient(145deg,#42c7ff0f,#f05bcb05),#121820;box-shadow:inset 0 0 0 1px #42c7ff0a}.create-action{border-color:#354252;background:radial-gradient(circle at 0 50%,#42c7ff12,transparent 35%),radial-gradient(circle at 100% 50%,#f05bcb0a,transparent 32%),linear-gradient(100deg,#10161e,#14131c)}.create-action>div>i{background:#f05bcb;box-shadow:0 0 16px #f05bcbaa}

/* Studio */
#studio-screen{width:min(1480px,calc(100% - 64px));max-width:none;padding:42px 0 86px;background:none}.studio-head{max-width:none!important;margin-bottom:24px!important;align-items:end!important}.studio-head h1{font-size:29px!important}.head-actions{gap:10px}.head-actions>button,.head-actions>a{min-height:50px!important;padding:0 20px!important;border-radius:14px!important;display:inline-flex;align-items:center;text-decoration:none}
#studio-screen .studio-grid{display:block;max-width:none;margin:0}.preview-column{width:100%}.video-frame{width:100%;aspect-ratio:16/7.4;border-color:#344252!important;border-radius:24px!important;background:radial-gradient(circle at 16% 28%,#42c7ff1f,transparent 30%),radial-gradient(circle at 84% 30%,#f05bcb17,transparent 28%),linear-gradient(145deg,#111720,#07090d 68%);box-shadow:0 30px 90px #0008,0 0 0 1px #42c7ff0c,inset 0 -150px 130px #02040a9c!important}.karaoke-safe-area{border-color:#42c7ff65}.karaoke-safe-area span{background:#081018d9;color:#72cbed}.karaoke-copy{font-size:clamp(34px,3.5vw,66px)}.instrumental-break em{background:linear-gradient(90deg,#268cff,#42c7ff 43%,#8b6cff 70%,#f05bcb);box-shadow:0 0 22px #42c7ff77,0 0 42px #f05bcb35}
.studio-player{min-height:100px;margin-top:14px;padding:17px 20px;grid-template-columns:64px minmax(190px,.58fr) minmax(300px,1.6fr) auto;border-color:#354454;border-radius:20px;background:radial-gradient(circle at 5% 50%,#42c7ff12,transparent 28%),radial-gradient(circle at 96% 50%,#f05bcb0b,transparent 30%),linear-gradient(145deg,#171d25,#10141a);box-shadow:0 18px 45px #0005,inset 0 1px #ffffff09}.studio-player .play{width:64px;height:64px;border:1px solid #42c7ff6b;border-radius:19px;background:radial-gradient(circle at 25% 10%,#42c7ff2b,transparent 55%),radial-gradient(circle at 100% 100%,#f05bcb10,transparent 48%),#131920;box-shadow:0 9px 28px #0004,0 0 22px #42c7ff14;color:#75d9ff}.player-now small{color:#66d0fb}.player-now>i span{background:linear-gradient(180deg,#42c7ff,#8b6cff 62%,#f05bcb)}.player-progress input{accent-color:#42c7ff}.player-actions button{width:48px;height:48px;border-color:#354554;border-radius:14px;background:linear-gradient(180deg,#1b232d,#141a21);color:#bac7d2}.player-actions button:hover{border-color:#42c7ff76;background:#172630;color:#79d9ff}
.inspector{margin-top:16px;border-color:#303b48;border-radius:22px;background:linear-gradient(155deg,#141921,#0d1117);box-shadow:0 25px 70px #0005}.tabs{height:96px;padding:0 18px;grid-template-columns:repeat(5,1fr);border-color:#2b3541;background:linear-gradient(180deg,#11161d,#0c1015)}.tabs button{position:relative;display:flex;align-items:center;justify-content:center;gap:13px;padding:0 14px;border-bottom:4px solid transparent;color:#9ca4b0}.tabs button+button::before{content:"";position:absolute;left:0;width:1px;height:38px;background:#ffffff0b}.tabs button>i{width:44px;height:44px;display:grid;place-items:center;border:1px solid #374352;border-radius:13px;background:#171d25;color:#aeb9c5;font-size:14px;font-style:normal;font-weight:850}.tabs button>span{display:flex;flex-direction:column;align-items:flex-start;gap:5px;font-size:14px;font-weight:780}.tabs button small{color:#727b88;font-size:10px;font-weight:500}.tabs button:hover{color:#fff;background:#ffffff05}.tabs button.active{border-color:#42c7ff;color:#fff;background:linear-gradient(to top,#42c7ff12,transparent 76%)}.tabs button.active>i{border-color:#42c7ff75;background:radial-gradient(circle at 15% 0,#42c7ff28,transparent 62%),radial-gradient(circle at 100% 100%,#f05bcb0e,transparent 52%),#141c24;color:#77d9ff;box-shadow:0 7px 22px #0003,0 0 20px #42c7ff10}
.tab-panel{padding:26px}.tab-panel>.setting{border:1px solid #2e3945;border-radius:16px;background:#131820}.tab-panel[data-panel=visual].active{display:grid;grid-template-columns:1.45fr 1fr;gap:14px}.tab-panel[data-panel=visual]>.setting{padding:21px;border:1px solid #2e3945;border-radius:16px}.tab-panel[data-panel=visual]>.setting:first-child{grid-row:span 2}.tab-panel[data-panel=visual]>.setting:last-child{grid-column:1/-1}.setting{padding:22px;border-color:#2b3541}.setting-title button{color:#72d6ff}.background-upload{height:138px;border-color:#42c7ff47;background:radial-gradient(circle at 50% 0,#42c7ff0d,transparent 65%),#0d1117}.background-upload span{color:#72d6ff}.background-swatches button.active{border-color:#42c7ff;box-shadow:0 0 18px #42c7ff1a}.template-setting{background:radial-gradient(circle at 100% 0,#f05bcb0a,transparent 48%),linear-gradient(145deg,#151a22,#11151c)}.template-setting>input,.template-actions select,.select-label select,.two-fields select,.two-fields input{min-height:46px;border-color:#35414e;background:#0d1117}.setting-hint{border-color:#303b47;background:#0d1218;color:#8e98a5!important}.slider-label input,.channel input[type=range],.studio-timeline-zoom input{accent-color:#42c7ff}
.tab-panel[data-panel=audio].active,.tab-panel[data-panel=lyrics].active,.tab-panel[data-panel=timeline].active,.tab-panel[data-panel=processing].active{display:block}.presets{grid-template-columns:repeat(4,1fr)}.presets button{min-height:44px;border-color:#34404d;background:#10151c;color:#9fa9b5}.presets button.active{border-color:#42c7ff62;background:#42c7ff0c;color:#72d6ff}.channel button.on{border-color:#42c7ff5c;background:#42c7ff11;color:#75d9ff}.limiter{border-color:#42c7ff32;background:#42c7ff0a}.limiter b{color:#67d2ff}.text-color-controls label{min-height:64px;border-color:#344150;background:#0d1218}.lyric-lines button{min-height:48px;border-color:#303b48;background:#0e1319}.lyric-lines button.active{border-color:#42c7ff68;background:linear-gradient(90deg,#42c7ff0e,#f05bcb07),#111820}.full-width{min-height:52px;border-radius:14px!important}
.studio-timeline-workspace{padding:0!important;border:0!important;background:transparent!important}.timeline-workspace-title{padding:0 0 20px}.timeline-workspace-title>div{max-width:760px}.section-kicker{margin:0 0 6px!important;color:#62d1ff!important;font-size:9px!important;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.timeline-workspace-title h2{margin:0 0 7px;font-size:22px}.timeline-workspace-title span{color:#8d97a4;font-size:11px}.timeline-workspace-title .primary{min-height:48px;padding:0 20px;border-radius:14px}.studio-word-timeline{margin:0;padding:21px;border-color:#303e4c;border-radius:17px;background:linear-gradient(150deg,#111820,#0a0e14);box-shadow:none}.studio-timeline-head small{color:#62d1ff}.studio-timeline-scroll{height:220px;border-color:#2f3b48;background:#080b10}.studio-timeline-canvas{height:200px}.studio-word-track{background:linear-gradient(180deg,#17202a88,#0d1218);border-color:#2a3743}.studio-word-block{height:42px;background:#173148e8;color:#65cfff!important}.studio-word-block.female{background:#402137e8;color:#f47bd5!important}.studio-word-block.duet{background:#44321ee8;color:#ffb454!important}.studio-audio-track{top:158px}.studio-audio-track i{background:repeating-linear-gradient(90deg,#42c7ff 0 2px,transparent 2px 5px)}.studio-timeline-playhead,.studio-timeline-playhead::before{background:#f05bcb;box-shadow:0 0 12px #f05bcb}.pipeline-card{margin:0;border-color:#303b48;background:linear-gradient(145deg,#121820,#0d1117)}.pipeline-toggle>span{border-color:#42c7ff52;background:#42c7ff0d;color:#75d9ff!important}.pipeline-stage{min-height:45px;background:#0d1218}.pipeline-stage.completed i,.pipeline-stage.reused i,.pipeline-stage.fallback i{background:#42c7ff;box-shadow:0 0 9px #42c7ff77}.pipeline-stage.running i{background:#f05bcb;box-shadow:0 0 9px #f05bcb}

/* Projects, editor and export */
.workspace-head{max-width:none;margin:0 0 26px;align-items:center}.workspace-head h1{font-size:48px}.workspace-head .eyebrow{color:#62d1ff}.queue-summary{max-width:none;margin:0 0 15px;padding:16px 18px;border-color:#344454;border-radius:15px;background:linear-gradient(90deg,#111a23,#17131d)}.queue-summary span{color:#69d4ff}.project-toolbar{max-width:none;margin:0 0 16px}.project-toolbar input{height:50px;border-color:#35414e;border-radius:14px;background:#0e1319}.project-list{max-width:none;display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.project-card{margin:0!important;min-height:170px;padding:22px!important;border-color:#303b48!important;border-radius:18px!important;background:radial-gradient(circle at 100% 0,#f05bcb09,transparent 42%),linear-gradient(145deg,#151b23,#0e1218)!important;box-shadow:0 18px 48px #0003!important}.project-card:hover{border-color:#42c7ff55!important;transform:translateY(-2px)}
.revision-badge{border-color:#42c7ff45!important;background:#42c7ff0b!important;color:#75d9ff!important}.sync-toolbar{max-width:none;margin:0 0 15px;padding:14px 16px;border-color:#344251;border-radius:15px;background:linear-gradient(145deg,#151b23,#0e1319)}.sync-toolbar>span{color:#75d9ff;background:#42c7ff0b}.sync-toolbar input{accent-color:#42c7ff}.editor-grid,.export-grid{max-width:none;grid-template-columns:minmax(330px,.86fr) minmax(0,1.4fr);gap:16px}.panel{border-color:#303b48;border-radius:18px;background:linear-gradient(155deg,#151b23,#0e1218);box-shadow:0 20px 55px #0004}.panel::before{background:linear-gradient(90deg,#42c7ff,#8b6cff 60%,#f05bcb)}.line-editor-toolbar .danger{border-color:#ff6f9155!important;color:#ff9caf!important;background:#ff6f910b!important}.editor-line-item{min-height:53px;border-color:#303b48;background:#0e1319}.editor-line-item.selected{border-color:#42c7ff68;background:linear-gradient(90deg,#42c7ff0e,#f05bcb06),#111820}.editor-line-item time{color:#6cd4ff}.editor-preview-card{min-height:150px;border-color:#354657;background:radial-gradient(circle at 22% 24%,#42c7ff16,transparent 38%),radial-gradient(circle at 80% 72%,#f05bcb0c,transparent 36%),#090d13}.editor-word{min-height:72px;border-color:#303b48;background:#0e1319}.editor-word.selected{border-color:#ffb454;background:#ffb4540d;box-shadow:inset 3px 0 #ffb454}.editor-word input,.editor-word select{min-height:40px;border-color:#394756;background:#090d13}.timeline-workbench{max-width:none;margin-top:16px;border-radius:18px}.timeline-transport{min-height:66px;border-color:#303b48;background:#121820}.timeline-transport button{width:45px;height:43px;border-color:#42c7ff66!important;background:#42c7ff0d!important;color:#75d9ff!important}.timeline-transport span{color:#74d7ff}.editor-timeline-scroll{background:#080b10}.editor-ruler,.editor-ruler-tick{border-color:#2d3946}.editor-word-track{border-color:#344152;background:repeating-linear-gradient(90deg,transparent 0 3px,#42c7ff26 3px 5px,transparent 5px 9px)}.timeline-word{border-color:#42c7ff;background:#1a6d91e8}.timeline-word:nth-child(even){background:#315b91e8}.timeline-word.selected{border-color:#ffb454;background:#9b6523}.editor-playhead{background:#f05bcb;box-shadow:0 0 9px #f05bcb}.revision-item{border-color:#303b48;background:#0d1218}.revision-item.current{border-color:#42c7ff55;background:#42c7ff0a}
.export-grid{grid-template-columns:1fr 1fr}.export-options select{min-height:48px;border-color:#354352;border-radius:12px;background:#0c1117}.export-colors label{min-height:60px;border-color:#354352;border-radius:12px;background:#0d1218}.export-project-summary span{border-color:#42c7ff32;background:#42c7ff09;color:#bfeeff}#start-export{width:100%;min-height:56px;border-radius:15px}

/* Import/processing */
.processing{background:rgba(5,7,10,.9);backdrop-filter:blur(18px)}.processing>div{width:min(560px,90vw);padding:40px;border-color:#354352;border-radius:24px;background:radial-gradient(circle at 50% 0,#42c7ff10,transparent 42%),radial-gradient(circle at 100% 100%,#f05bcb0a,transparent 38%),linear-gradient(145deg,#171d25,#0d1117);box-shadow:0 30px 100px #0009}.processing-label{display:block;margin-bottom:22px;color:#6fd5ff;font-size:9px;font-weight:850;letter-spacing:.17em;text-transform:uppercase}.processing>div>small{display:block;margin-top:16px;color:#7f8996;font-size:10px;line-height:1.55}.spinner{border-color:#2d3947;border-top-color:#42c7ff;box-shadow:0 0 18px #42c7ff24}.processing .progress i,.job-preview .progress i{background:linear-gradient(90deg,#268cff,#42c7ff 45%,#8b6cff 72%,#f05bcb)}.job-preview{background:radial-gradient(circle at 30% 20%,#42c7ff15,transparent 40%),radial-gradient(circle at 75% 70%,#f05bcb0c,transparent 35%),rgba(5,8,12,.94)}.toast{border-color:#354352;background:#171e27}

@media(max-width:1220px){.tabs button{gap:8px;padding-inline:8px}.tabs button>span{font-size:12px}.tabs button small{display:none}.project-list{grid-template-columns:1fr}}
@media(max-width:1080px){body{min-width:0}.screen,#studio-screen{width:calc(100% - 32px)}.topbar{padding-inline:20px}.tab-panel[data-panel=visual].active{grid-template-columns:1fr}.tab-panel[data-panel=visual]>.setting:first-child{grid-row:auto}.tab-panel[data-panel=visual]>.setting:last-child{grid-column:auto}.editor-grid,.export-grid{grid-template-columns:1fr}.video-frame{aspect-ratio:16/9}}

/* Unified Studio shell v1.32 — project library actions and guarded deletion. */
#projects-screen .project-card{align-items:stretch;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
#projects-screen .project-card>div:first-child{min-width:0;display:flex;flex-direction:column;justify-content:center}
#projects-screen .project-card h2{font-size:20px;margin-bottom:9px;color:#f4f7fb}
#projects-screen .project-card p{font-size:13px;line-height:1.45;color:#9aa5b2}
#projects-screen .project-card small{font-size:12px;color:#72d6ff}
#projects-screen .project-card-actions{min-width:310px;display:grid;grid-template-columns:repeat(2,minmax(142px,1fr));align-content:center;gap:9px}
#projects-screen .project-card-actions .project-action{box-sizing:border-box;min-height:46px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #354252!important;border-radius:13px;background:radial-gradient(circle at 10% 0,#42c7ff0d,transparent 48%),linear-gradient(180deg,#1b222c,#141920)!important;color:#dce3ec!important;box-shadow:inset 0 1px #ffffff08;text-align:center;font-size:12px;font-weight:750;line-height:1.2;white-space:nowrap;transition:.18s ease}
#projects-screen .project-card-actions .project-action:hover{border-color:#42c7ff7a!important;background:radial-gradient(circle at 10% 0,#42c7ff1b,transparent 52%),#182630!important;color:#78d8ff!important;box-shadow:0 8px 24px #0004,0 0 18px #42c7ff10;transform:translateY(-1px)}
#projects-screen .project-card-actions .project-action-primary{border-color:#42c7ff62!important;background:radial-gradient(circle at 8% 0,#42c7ff22,transparent 48%),radial-gradient(circle at 100% 100%,#f05bcb10,transparent 45%),#151c24!important;color:#e8f8ff!important}
#projects-screen .project-card-actions .project-action-danger{border-color:#ff6f9142!important;background:radial-gradient(circle at 8% 0,#ff6f9113,transparent 50%),#1a151a!important;color:#ff9caf!important}
#projects-screen .project-card-actions .project-action-danger:hover{border-color:#ff6f9185!important;background:#26171e!important;color:#ffc0cd!important;box-shadow:0 8px 24px #0004,0 0 18px #ff6f9116}
.project-delete-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));padding:34px;border:1px solid #3a4655;border-radius:24px;background:radial-gradient(circle at 100% 0,#ff6f9112,transparent 38%),radial-gradient(circle at 0 0,#42c7ff0d,transparent 38%),linear-gradient(145deg,#181e26,#0e1218);color:#f7f8fc;box-shadow:0 32px 110px #000c,0 0 0 1px #ffffff08}
.project-delete-dialog::backdrop{background:#030507c7;backdrop-filter:blur(9px)}
.project-delete-dialog .project-delete-icon{width:50px;height:50px;margin-bottom:20px;display:grid;place-items:center;border:1px solid #ff6f9166;border-radius:16px;background:#ff6f9112;color:#ff9caf;font-size:22px;font-weight:900;box-shadow:0 0 24px #ff6f9110}
.project-delete-dialog .eyebrow{margin:0 0 9px;color:#ff9caf;font-size:10px;letter-spacing:.16em}
.project-delete-dialog h2{margin:0 0 13px;font-size:27px;letter-spacing:-.025em}
.project-delete-dialog>p:not(.eyebrow){margin:0;color:#9da7b4;font-size:14px;line-height:1.65}
.project-delete-dialog strong{color:#f4f7fb}
.project-delete-actions{margin-top:28px;display:grid;grid-template-columns:1fr 1.35fr;gap:10px}
.project-delete-actions button{min-height:50px;border:1px solid #3a4654;border-radius:14px;background:linear-gradient(180deg,#1c232c,#141920);color:#dce3ec;font-weight:780;cursor:pointer}
.project-delete-actions .danger{border-color:#ff6f9166;background:linear-gradient(180deg,#361d27,#26151c);color:#ffb1c1}
.project-delete-actions .danger:hover{border-color:#ff8ba5;background:#42202c;color:#fff}
.project-delete-actions button:disabled{cursor:wait;opacity:.55}
@media(max-width:720px){#projects-screen .project-card-actions{width:100%;min-width:0;grid-template-columns:1fr}.project-delete-actions{grid-template-columns:1fr}}

/* Unified Studio shell v1 — fixed workspace, contextual sidebar, permanent preview and timeline. */
body:has(#studio-screen.active){overflow:hidden}
#studio-screen.active{box-sizing:border-box;width:100%;max-width:none;height:calc(100vh - 84px);padding:8px max(10px,calc((100vw - 1760px)/2)) 10px;display:grid;grid-template-rows:58px minmax(0,1fr);overflow:hidden}
#studio-screen .studio-workspace-head{min-width:0;min-height:0;height:58px;margin:0!important;padding:0 4px;display:grid;grid-template-columns:minmax(260px,1fr) auto auto;align-items:center;gap:18px}
#studio-screen .studio-project-identity{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:10px;align-items:center}
#studio-screen .studio-project-identity .back{grid-column:1;grid-row:1/4;width:34px;height:34px;border:1px solid #344453;border-radius:10px;background:#151b22;color:#7bd9ff;font-size:15px}
#studio-screen .studio-step-label{grid-column:2;color:#62d4ff;font-size:7px;font-weight:900;letter-spacing:.16em}
#studio-screen .studio-project-identity h1{grid-column:2;overflow:hidden;margin:1px 0!important;color:#f4f7fa;font-size:16px!important;text-overflow:ellipsis;white-space:nowrap}
#studio-screen .studio-project-identity p{grid-column:2;overflow:hidden;margin:0;color:#7f8b98;font-size:8px!important;text-overflow:ellipsis;white-space:nowrap}
.studio-save-state{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #2b3945;border-radius:10px;background:#11171e;color:#7f8c99;font-size:8px;white-space:nowrap}.studio-save-state i{width:6px;height:6px;border-radius:50%;background:#42c7ff;box-shadow:0 0 10px #42c7ff}
#studio-screen .studio-workspace-head .head-actions{gap:6px}
#studio-screen .studio-workspace-head .head-actions>button,#studio-screen .studio-workspace-head .head-actions>a{min-height:34px!important;height:34px;padding:0 11px!important;border-radius:9px!important;font-size:8px}

.studio-workspace-shell{min-width:0;min-height:0;display:grid;grid-template-columns:78px 336px minmax(0,1fr);gap:8px}
.studio-tool-rail{min-height:0;padding:8px 6px;display:flex;flex-direction:column;gap:5px;border:1px solid #2c3945;border-radius:14px;background:linear-gradient(180deg,#161c23,#0d1116);box-shadow:0 20px 55px #0005}
.studio-tool-rail button{min-height:62px;padding:6px 3px;border:1px solid transparent;border-radius:11px;background:transparent;color:#778390;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;transition:.18s ease}
.studio-tool-rail button:hover{border-color:#354754;background:#18212a;color:#b7c6d2}.studio-tool-rail button.active{border-color:#42c7ff55;background:radial-gradient(circle at 50% 0,#42c7ff21,transparent 65%),#17212a;color:#7bdcff;box-shadow:inset 3px 0 #42c7ff,0 0 18px #42c7ff0c}
.studio-tool-rail button i{width:29px;height:26px;display:grid;place-items:center;border:1px solid #344451;border-radius:8px;background:#11171e;color:inherit;font-style:normal;font-size:12px;font-weight:850}.studio-tool-rail button.active i{border-color:#42c7ff66;box-shadow:0 0 13px #42c7ff16}.studio-tool-rail button span{font-size:7px;font-weight:800;letter-spacing:.02em}

.studio-context-sidebar{min-width:0;min-height:0;display:grid;grid-template-rows:73px minmax(0,1fr);overflow:hidden;border:1px solid #2c3945;border-radius:14px;background:linear-gradient(165deg,#151b22,#0d1116);box-shadow:0 20px 55px #0005}
.studio-context-head{padding:13px 15px 10px;border-bottom:1px solid #28343f;background:linear-gradient(90deg,#42c7ff09,transparent 52%,#f05bcb07)}.studio-context-head small{display:block;color:#61d2ff;font-size:7px;font-weight:900;letter-spacing:.16em}.studio-context-head h2{margin:3px 0 2px;color:#f1f5f8;font-size:16px}.studio-context-head p{overflow:hidden;margin:0;color:#7f8b98;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.studio-tool-panel{display:none;min-height:0;height:100%;padding:10px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#334554 transparent}.studio-tool-panel.active{display:block}.studio-tool-panel>.setting,.studio-tool-panel>.pipeline-card,.studio-tool-panel>.studio-sidebar-lines,.studio-tool-panel>.studio-sidebar-history{margin:0 0 8px;padding:12px;border:1px solid #2c3945;border-radius:11px;background:#11171e;box-shadow:none}.studio-tool-panel .setting h2{font-size:13px}.studio-tool-panel .setting p,.studio-tool-panel .setting-hint{font-size:8px}.studio-tool-panel .full-width{min-height:40px!important;margin-top:8px;border-radius:10px!important;font-size:9px}
.studio-tool-panel .text-color-controls{grid-template-columns:1fr;gap:6px}.studio-tool-panel .text-color-controls label{min-height:48px;padding:8px 10px}.studio-tool-panel .party-color-controls{margin-top:10px;padding-top:10px}.studio-tool-panel .party-color-controls label{min-height:33px}.studio-tool-panel .party-color-controls h2{font-size:11px}.studio-tool-panel .party-color-controls p{margin-bottom:6px}
.studio-sidebar-lines .studio-lines-workspace{display:block}.studio-sidebar-lines .studio-lines-workspace>div:first-child{margin-bottom:8px}.studio-sidebar-lines .studio-lines-workspace h2{margin:2px 0;font-size:13px}.studio-sidebar-lines .studio-lines-workspace p{margin:0;color:#7f8a96;font-size:8px}.studio-sidebar-lines .studio-lines-workspace .primary{min-height:36px;margin-top:8px;padding:0 10px;border-radius:9px;font-size:8px}.studio-sidebar-lines .lyric-lines{max-height:206px;overflow:auto}.studio-sidebar-lines .lyric-lines button{min-height:36px!important;padding:7px 9px;font-size:8px}
.studio-sidebar-history .studio-history-summary{display:block}.studio-sidebar-history h2{margin:3px 0;font-size:13px}.studio-sidebar-history p{font-size:8px}.studio-sidebar-history .primary{width:100%;min-height:38px;margin-top:8px;border-radius:9px;font-size:8px}
.studio-tool-panel .inspector-subtabs{margin:0 0 8px;padding:3px;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;border:1px solid #2d3945;border-radius:10px;background:#0b0f14}.studio-tool-panel .inspector-subtabs button{min-height:31px;padding:3px;border:0;border-radius:7px;background:transparent;color:#788592;font-size:7px;font-weight:800}.studio-tool-panel .inspector-subtabs button.active{background:#1a2a35;color:#76d9ff;box-shadow:inset 0 0 0 1px #42c7ff45}
#studio-screen [data-inspector-subpanel]{display:none}#studio-screen [data-inspector-subpanel].active{display:block}.studio-tool-panel .background-upload{height:82px}.studio-tool-panel .background-swatches{gap:5px}.studio-tool-panel .background-swatches button{height:30px}.studio-tool-panel .template-actions{grid-template-columns:1fr 1fr}.studio-tool-panel .template-actions select{grid-column:1/-1}.studio-tool-panel .select-label select,.studio-tool-panel .select-label input,.studio-tool-panel .two-fields select,.studio-tool-panel .two-fields input{min-height:38px}.studio-tool-panel .mixer .presets{grid-template-columns:1fr 1fr}.studio-tool-panel .mixer .presets button{min-height:36px;font-size:8px}.studio-tool-panel .channel{padding:8px}.studio-tool-panel .pipeline-card{padding:10px}.studio-tool-panel .pipeline-head{display:block}.studio-tool-panel .pipeline-head>div:last-child{margin-top:8px;display:flex;flex-wrap:wrap}.studio-tool-panel .pipeline-toggle{width:100%}.studio-tool-panel .pipeline-stages{grid-template-columns:1fr}.studio-tool-panel .pipeline-stage{min-height:36px;padding:7px;font-size:8px}.studio-tool-panel .pipeline-card.collapsed .pipeline-body{display:none}
.studio-export-summary{margin:12px 0;padding:10px;display:grid;grid-template-columns:auto 1fr;gap:8px;border:1px solid #2c3945;border-radius:9px;background:#0b1015}.studio-export-summary span{color:#74808c;font-size:8px}.studio-export-summary b{color:#d8e1e8;font-size:8px;text-align:right}

.studio-main-stage{min-width:0;min-height:0;display:grid;grid-template-rows:24px minmax(0,1fr) 66px 176px;gap:7px}.studio-main-label{min-width:0;display:flex;align-items:center;justify-content:space-between;padding:0 3px}.studio-main-label>div{display:flex;align-items:baseline;gap:8px}.studio-main-label small{color:#62d3ff;font-size:7px;font-weight:900;letter-spacing:.15em}.studio-main-label b{color:#dfe6eb;font-size:10px}.studio-main-label>span{color:#697581;font-size:7px}
#studio-screen .studio-main-stage>.video-frame{box-sizing:border-box;width:100%;height:100%;min-height:0;aspect-ratio:auto;margin:0;padding:6% 5%;border:1px solid #344552!important;border-radius:14px!important;background:radial-gradient(circle at 16% 28%,#42c7ff1b,transparent 31%),radial-gradient(circle at 84% 30%,#f05bcb13,transparent 28%),linear-gradient(145deg,#111720,#07090d 68%);box-shadow:0 24px 65px #0007,inset 0 -120px 100px #02040a9c!important}
#studio-screen .studio-main-stage>.video-frame .karaoke-copy{font-size:clamp(23px,2.6vw,52px)}
#studio-screen .studio-main-stage>.studio-player{box-sizing:border-box;width:100%;height:66px;min-height:0;margin:0;padding:7px 10px;grid-template-columns:48px minmax(120px,.5fr) minmax(220px,1.5fr) auto;border-radius:12px}.studio-main-stage>.studio-player .play{width:46px;height:46px;border-radius:12px;font-size:15px}.studio-main-stage>.studio-player .player-actions button{width:33px;height:33px;border-radius:8px;font-size:8px}.studio-main-stage>.studio-player .player-now small{font-size:7px}.studio-main-stage>.studio-player .player-now b{font-size:9px}.studio-main-stage>.studio-player .player-progress{gap:4px}.studio-main-stage>.studio-player .player-progress time{font-size:8px}.studio-main-stage>.studio-player .player-progress span{font-size:7px}
#studio-screen .studio-main-stage>.studio-word-timeline{box-sizing:border-box;height:176px;margin:0;padding:9px 11px;border:1px solid #303e4c;border-radius:12px;background:linear-gradient(150deg,#111820,#090d12);overflow:hidden}.studio-main-stage>.studio-word-timeline .studio-timeline-head{height:28px;margin-bottom:4px}.studio-main-stage>.studio-word-timeline .studio-timeline-head small{font-size:6px}.studio-main-stage>.studio-word-timeline .studio-timeline-head b{font-size:10px}.studio-main-stage .studio-timeline-zoom button{width:25px;height:25px}.studio-main-stage .studio-timeline-zoom output{font-size:7px}.studio-main-stage .studio-timeline-scroll{height:124px}.studio-main-stage .studio-timeline-canvas{height:110px}.studio-main-stage .studio-word-track{top:29px;height:42px}.studio-main-stage .studio-word-block{height:32px;font-size:7px}.studio-main-stage .studio-audio-track{top:78px;height:25px}.studio-main-stage .studio-timeline-playhead{top:18px;bottom:4px}.studio-timeline-edit{min-height:27px;padding:0 9px;border:1px solid #42c7ff45;border-radius:8px;background:#42c7ff0b;color:#72d8ff;font-size:7px;font-weight:800;cursor:pointer}.studio-timeline-edit:hover{border-color:#42c7ff88;background:#42c7ff15;color:#fff}

.portal-player #studio-screen{display:block!important;width:100%!important;height:100vh!important;padding:0!important;overflow:hidden!important}.portal-player #studio-screen .studio-workspace-head,.portal-player #studio-screen .studio-tool-rail,.portal-player #studio-screen .studio-context-sidebar,.portal-player #studio-screen .studio-main-label,.portal-player #studio-screen .studio-word-timeline{display:none!important}.portal-player #studio-screen .studio-workspace-shell{display:block;height:100%}.portal-player #studio-screen .studio-main-stage{height:100%;display:grid;grid-template-rows:minmax(0,1fr) 68px;gap:0}.portal-player #studio-screen .studio-main-stage>.video-frame{grid-row:1;height:100%;border:0!important;border-radius:0!important}.portal-player #studio-screen .studio-main-stage>.studio-player{grid-row:2;height:68px;border-radius:0}
@media(max-width:1380px){.studio-workspace-shell{grid-template-columns:70px 300px minmax(0,1fr)}.studio-save-state{display:none}.studio-tool-rail button{min-height:57px}.studio-context-head{padding-inline:12px}.studio-tool-panel{padding:8px}.studio-main-stage{grid-template-rows:20px minmax(0,1fr) 60px 158px}#studio-screen .studio-main-stage>.studio-player{height:60px}#studio-screen .studio-main-stage>.studio-word-timeline{height:158px}.studio-main-stage .studio-timeline-scroll{height:107px}.studio-main-stage .studio-timeline-canvas{height:96px}.studio-main-stage .studio-audio-track{top:69px}}
@media(max-width:1080px){#studio-screen.active{width:100%;padding-inline:7px}.studio-workspace-shell{grid-template-columns:62px 270px minmax(0,1fr)}.studio-tool-rail button span{font-size:6px}#studio-screen .studio-workspace-head{grid-template-columns:minmax(220px,1fr) auto}#studio-screen .studio-workspace-head .head-actions button:not(.primary),#studio-screen .studio-workspace-head .head-actions a{display:none}.studio-main-stage>.studio-player .player-now{display:none}.studio-main-stage>.studio-player{grid-template-columns:48px minmax(180px,1fr) auto}.studio-main-stage>.studio-player .player-progress{grid-column:2}.studio-main-stage>.studio-player .player-actions{grid-column:3;grid-row:1}}

/* Studio Control Room v1 — one viewport, no document scrolling. */
body:has(#studio-screen.active){overflow:hidden}
#studio-screen.active{height:calc(100vh - 84px);width:100%;max-width:none;padding:10px max(14px,calc((100vw - 1560px)/2)) 12px;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
#studio-screen .studio-head{min-height:54px;margin:0 0 8px!important;align-items:center!important}
#studio-screen .studio-head h1{margin:4px 0 2px;font-size:22px!important}
#studio-screen .studio-head p{font-size:10px}
#studio-screen .studio-head .back{font-size:10px}
#studio-screen .head-actions>button,#studio-screen .head-actions>a{min-height:38px!important;padding:0 13px!important;border-radius:10px!important;font-size:10px}
#studio-screen .studio-grid{min-height:0;height:100%;display:grid;grid-template-columns:minmax(0,1fr) 370px;grid-template-rows:minmax(0,1fr) 78px 224px;gap:8px;transition:grid-template-rows .24s ease}
#studio-screen .preview-column{display:contents}
#studio-screen .video-frame{grid-column:1;grid-row:1;width:100%;height:100%;min-height:0;aspect-ratio:auto;border-radius:14px!important}
#studio-screen .studio-player{grid-column:1;grid-row:2;min-height:0;height:78px;margin:0;padding:8px 11px;grid-template-columns:48px minmax(130px,.52fr) minmax(220px,1.5fr) auto;border-radius:13px}
#studio-screen .studio-player .play{width:46px;height:46px;border-radius:13px;font-size:16px}
#studio-screen .player-now>i{height:24px}.player-now small{font-size:8px}.player-now b{font-size:10px}.player-progress{gap:5px}.player-progress>div{gap:8px}.player-progress input{height:5px}.player-actions button{width:34px;height:34px;border-radius:9px;font-size:9px}
#studio-screen .inspector{grid-column:2;grid-row:1/3;min-height:0;height:auto;margin:0;border-radius:14px;display:grid;grid-template-rows:58px minmax(0,1fr);overflow:hidden}
#studio-screen .tabs{height:58px;padding:0 6px;grid-template-columns:repeat(3,1fr)}
#studio-screen .tabs button{gap:6px;padding:0 5px;border-bottom-width:3px}
#studio-screen .tabs button+button::before{height:26px}
#studio-screen .tabs button>i{width:30px;height:30px;border-radius:9px;font-size:11px}
#studio-screen .tabs button>span{gap:2px;font-size:10px}
#studio-screen .tabs button small{display:none}
#studio-screen .tab-panel{min-height:0;height:100%;padding:10px;overflow:hidden}
#studio-screen .tab-panel[data-panel=visual].active{display:block}
#studio-screen .tab-panel>.setting,#studio-screen .tab-panel[data-panel=visual]>.setting{height:auto;padding:12px;border-radius:11px}
.inspector-subtabs{height:38px;margin-bottom:8px;padding:3px;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;border-radius:9px;background:#0b0f14}
.inspector-subtabs button{border:1px solid transparent;border-radius:7px;background:transparent;color:#7f8996;font-size:9px}
.inspector-subtabs button.active{border-color:#42c7ff4f;background:#42c7ff0c;color:#75d9ff}
#studio-screen [data-inspector-subpanel]{display:none}
#studio-screen [data-inspector-subpanel].active{display:block}
#studio-screen .setting h2{font-size:14px}
#studio-screen .setting p{font-size:10px}
#studio-screen .background-upload{height:94px;margin-top:8px;border-radius:11px}.background-upload span{font-size:20px}.background-upload b{font-size:10px}.background-upload small{font-size:9px}
#studio-screen .background-swatches{grid-template-columns:repeat(4,1fr);gap:6px;margin-top:7px}.background-swatches button{height:34px;border-radius:7px}
#studio-screen .template-setting>input,#studio-screen .template-actions select,#studio-screen .select-label select,#studio-screen .two-fields select,#studio-screen .two-fields input{min-height:35px;padding:7px;font-size:10px}
#studio-screen .template-actions button{min-height:34px;font-size:10px}.template-setting>.setting-hint{margin:7px 0!important;padding:8px!important}.template-status{margin-top:7px!important}
#studio-screen .select-label,#studio-screen .slider-label{margin-top:9px;gap:4px;font-size:10px}.two-fields{margin-top:8px;gap:7px}.two-fields label{font-size:10px}.check-setting{font-size:10px}
#studio-screen .tab-panel[data-panel=audio]>.setting,#studio-screen .tab-panel[data-panel=lyrics]>.setting{height:100%;overflow:hidden}
#studio-screen .mix-note{margin:5px 0 8px!important;font-size:9px!important}.presets{gap:4px;margin-bottom:7px}.presets button{min-height:32px;padding:5px;font-size:8px}.channel{padding:7px 0}.channel header b{font-size:10px}.channel header span{font-size:9px}.limiter{padding:7px;margin-top:7px}
#studio-screen .text-color-controls{margin:7px 0;gap:6px}.text-color-controls label{min-height:48px;padding:7px}.party-color-controls{margin-top:9px;padding-top:8px}.party-color-controls label{min-height:34px;padding:4px 0}.party-color-controls h2{font-size:12px}
#studio-screen .full-width{min-height:38px;margin-top:8px;font-size:10px}

.studio-dock{grid-column:1/3;grid-row:3;min-height:0;display:grid;grid-template-rows:42px minmax(0,1fr);overflow:hidden;border:1px solid #303b48;border-radius:13px;background:#0c1016}
.studio-dock-head{display:flex;align-items:center;border-bottom:1px solid #2b3541;background:linear-gradient(180deg,#131920,#0d1117)}
.studio-dock-tabs{align-self:stretch;display:flex}
.studio-dock-tabs button{min-width:112px;padding:0 15px;border:0;border-bottom:3px solid transparent;background:transparent;color:#8f99a6;font-size:10px}
.studio-dock-tabs button:hover{color:#fff;background:#ffffff05}.studio-dock-tabs button.active{border-color:#42c7ff;background:linear-gradient(to top,#42c7ff0f,transparent);color:#fff}
.studio-layout-modes{margin-left:auto;padding-right:7px;display:flex;gap:4px}
.studio-layout-modes button{min-height:28px;padding:0 9px;border:1px solid #303b48;border-radius:7px;background:#131920;color:#828c99;font-size:9px}
.studio-layout-modes button.active{border-color:#42c7ff59;background:#42c7ff0b;color:#72d6ff}
.studio-dock-body{min-height:0;padding:7px 9px}.studio-dock-panel{display:none;height:100%;min-height:0}.studio-dock-panel.active{display:block}
.studio-dock .studio-word-timeline{height:100%;margin:0;padding:7px 10px;border:0;border-radius:8px;background:#090d12}
.studio-dock .studio-timeline-head{height:28px;margin:0 0 4px}.studio-dock .studio-timeline-head b{font-size:12px}.studio-dock .studio-timeline-head small{font-size:8px}
.studio-dock .studio-timeline-zoom{gap:5px}.studio-dock .studio-timeline-zoom button{width:27px;height:26px;border-radius:7px}.studio-dock .studio-timeline-zoom input{width:110px}.studio-dock .studio-timeline-zoom output{font-size:9px}
.studio-dock .studio-timeline-scroll{height:calc(100% - 32px);border-radius:8px}.studio-dock .studio-timeline-canvas{height:100%}.studio-dock .studio-word-track{top:27px;height:56px}.studio-dock .studio-word-block{height:31px;padding:0 7px;font-size:9px}.studio-dock .studio-timeline-ruler{height:26px}.studio-dock .studio-timeline-ruler i{height:26px;padding-top:6px}.studio-dock .studio-audio-track{top:auto;bottom:2px;height:25px}.studio-dock .studio-timeline-playhead::before{width:8px;height:8px;left:-3px}.studio-dock .studio-word-timeline>p{display:none}
.studio-lines-workspace{height:100%;display:grid;grid-template-columns:260px 1fr;gap:9px}.studio-lines-workspace>div:first-child{padding:10px 12px;border:1px solid #2e3945;border-radius:9px;background:#111720}.studio-lines-workspace h2,.studio-history-summary h2{margin:2px 0 5px;font-size:14px}.studio-lines-workspace p,.studio-history-summary p{margin:0;color:#8993a0;font-size:9px;line-height:1.4}.studio-lines-workspace .primary{min-height:32px;margin-top:8px;padding:0 10px;border-radius:8px;font-size:9px}.studio-lines-workspace .lyric-lines{height:100%;max-height:none;margin:0;display:grid;grid-template-columns:repeat(3,1fr);align-content:start;gap:5px;overflow:auto}.studio-lines-workspace .lyric-lines button{min-height:38px;padding:7px;font-size:9px}
.studio-dock .pipeline-card{height:100%;overflow:auto}.studio-dock .pipeline-head{min-height:48px;padding:6px 10px}.studio-dock .pipeline-toggle>span{width:28px;height:28px}.studio-dock .pipeline-toggle b{font-size:11px}.studio-dock .pipeline-toggle small{font-size:8px}.studio-dock .pipeline-head button{padding:5px 7px;font-size:8px}.studio-dock .pipeline-body{padding:0 10px 8px}.studio-dock .pipeline-stages{grid-template-columns:repeat(4,1fr);gap:5px}.studio-dock .pipeline-stage{min-height:34px;padding:6px 8px;font-size:9px}
.studio-history-summary{height:100%;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #2e3945;border-radius:9px;background:radial-gradient(circle at 100% 0,#f05bcb09,transparent 45%),#111720}.studio-history-summary>div{max-width:700px}.studio-history-summary .primary{min-height:36px;border-radius:9px;font-size:9px}
#studio-screen .studio-grid.timeline-focus{grid-template-rows:minmax(0,.55fr) 68px 340px}
#studio-screen .studio-grid.timeline-focus .studio-player{height:68px}
.portal-player #studio-screen{display:block;height:auto;padding:0;overflow:visible}.portal-player .studio-dock{display:none}.portal-player #studio-screen .video-frame{height:calc(100vh - 68px)}
@media(max-height:820px){#studio-screen .studio-grid{grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:minmax(0,1fr) 68px 190px}#studio-screen .studio-head{min-height:46px}.studio-dock{grid-template-rows:36px minmax(0,1fr)}.studio-dock-tabs button{min-width:96px}.studio-player .player-now{display:none}#studio-screen .studio-player{grid-template-columns:48px minmax(220px,1fr) auto}.studio-lines-workspace{grid-template-columns:220px 1fr}}

/* Final precedence for the unified runtime shell. */
#studio-screen.active{width:100%!important;height:calc(100vh - 84px)!important;padding:8px max(10px,calc((100vw - 1760px)/2)) 10px!important;grid-template-rows:58px minmax(0,1fr)!important;overflow:hidden!important}
.portal-player #studio-screen{display:block!important;width:100%!important;height:100vh!important;padding:0!important;overflow:hidden!important}.portal-player #studio-screen .studio-workspace-head,.portal-player #studio-screen .studio-tool-rail,.portal-player #studio-screen .studio-context-sidebar,.portal-player #studio-screen .studio-main-label,.portal-player #studio-screen .studio-word-timeline{display:none!important}.portal-player #studio-screen .studio-workspace-shell{display:block!important;height:100%!important}.portal-player #studio-screen .studio-main-stage{height:100%!important;display:grid!important;grid-template-rows:minmax(0,1fr) 68px!important;gap:0!important}.portal-player #studio-screen .studio-main-stage>.video-frame{grid-row:1!important;height:100%!important;border:0!important;border-radius:0!important}.portal-player #studio-screen .studio-main-stage>.studio-player{display:grid!important;grid-row:2!important;height:68px!important;margin:0!important;border-radius:0!important}

/* Unified Studio shell v1.1 — explicit right-workspace rows. */
#studio-screen .studio-main-stage{height:100%!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:26px minmax(280px,1fr) 78px 188px!important;align-content:stretch!important;gap:8px!important;overflow:hidden!important}
#studio-screen .studio-main-stage>.studio-main-label{grid-column:1!important;grid-row:1!important}
#studio-screen .studio-main-stage>.video-frame{grid-column:1!important;grid-row:2!important;width:100%!important;height:100%!important;min-height:280px!important;margin:0!important;padding:5% 5%!important}
#studio-screen .studio-main-stage>.studio-player{grid-column:1!important;grid-row:3!important;display:grid!important;width:100%!important;height:78px!important;min-height:78px!important;margin:0!important;padding:9px 12px!important;grid-template-columns:auto minmax(135px,.55fr) minmax(170px,1.7fr) auto!important;align-items:center!important;gap:13px!important;overflow:hidden!important}
#studio-screen .studio-main-stage>.studio-player .play{width:52px!important;height:52px!important;border-radius:14px!important}
#studio-screen .studio-main-stage>.studio-player .player-now{display:flex!important;min-width:0!important}
#studio-screen .studio-main-stage>.studio-player .player-progress{display:flex!important;min-width:0!important}
#studio-screen .studio-main-stage>.studio-player .player-actions{display:flex!important;grid-column:auto!important;grid-row:auto!important;white-space:nowrap!important}
#studio-screen .studio-main-stage>.studio-word-timeline{grid-column:1!important;grid-row:4!important;display:block!important;width:100%!important;height:188px!important;min-height:188px!important;margin:0!important;padding:10px 12px!important;overflow:hidden!important}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-timeline-scroll{height:134px!important}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-timeline-canvas{height:120px!important}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-word-track{top:30px!important;height:45px!important}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-audio-track{top:86px!important;bottom:auto!important;height:25px!important}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-timeline-playhead{top:18px!important;bottom:4px!important}
#studio-screen .studio-main-stage .voice-legend{display:none!important}

@media(max-height:860px){#studio-screen .studio-main-stage{grid-template-rows:22px minmax(230px,1fr) 68px 166px!important;gap:6px!important}#studio-screen .studio-main-stage>.video-frame{min-height:230px!important}#studio-screen .studio-main-stage>.studio-player{height:68px!important;min-height:68px!important;padding:7px 10px!important;grid-template-columns:auto minmax(120px,.45fr) minmax(160px,1.6fr) auto!important}#studio-screen .studio-main-stage>.studio-player .play{width:46px!important;height:46px!important}#studio-screen .studio-main-stage>.studio-word-timeline{height:166px!important;min-height:166px!important}#studio-screen .studio-main-stage>.studio-word-timeline .studio-timeline-scroll{height:113px!important}#studio-screen .studio-main-stage>.studio-word-timeline .studio-timeline-canvas{height:100px!important}#studio-screen .studio-main-stage>.studio-word-timeline .studio-audio-track{top:72px!important}}
@media(max-width:1180px){#studio-screen .studio-main-stage>.studio-player{grid-template-columns:auto minmax(0,1fr) auto!important}#studio-screen .studio-main-stage>.studio-player .player-now{display:none!important}#studio-screen .studio-main-stage>.studio-player .player-progress{grid-column:2!important}#studio-screen .studio-main-stage>.studio-player .player-actions{grid-column:3!important}}

.portal-player #studio-screen .studio-main-stage{grid-template-rows:minmax(0,1fr) 78px!important;gap:0!important}.portal-player #studio-screen .studio-main-stage>.video-frame{grid-row:1!important;min-height:0!important}.portal-player #studio-screen .studio-main-stage>.studio-player{grid-row:2!important;height:78px!important;min-height:78px!important}

/* The administrative review bar occupies real viewport height above Player.
   Reserve that space so the 78px transport row stays visible instead of
   being pushed below the clipped one-viewport Studio shell. */
body.portal-player:has(#admin-review-bar:not([hidden])) #studio-screen{height:calc(100vh - 80px)!important}
body.portal-player:has(#admin-review-bar:not([hidden])) #studio-screen .studio-workspace-shell,
body.portal-player:has(#admin-review-bar:not([hidden])) #studio-screen .studio-main-stage{height:100%!important;min-height:0!important}

/* Unified Studio shell v1.2 — project actions live in the global header. */
.topbar .studio-global-actions{display:none;margin-left:auto;align-items:center;gap:8px}
body:has(#studio-screen.active) .topbar .studio-global-actions{display:flex}
.topbar .studio-global-actions>button,.topbar .studio-global-actions>a{box-sizing:border-box;min-height:46px;height:46px;padding:0 16px;border:1px solid #344453;border-radius:13px;background:linear-gradient(180deg,#1a222b,#121820);color:#dce5ec;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:inset 0 1px #ffffff09;transition:border-color .18s ease,color .18s ease,background .18s ease}
.topbar .studio-global-actions>button:hover,.topbar .studio-global-actions>a:hover{border-color:#42c7ff88;background:#172630;color:#7bdcff}
.topbar .studio-global-actions>.primary{border-color:#42c7ff75;background:radial-gradient(circle at 15% 0,#42c7ff20,transparent 60%),linear-gradient(135deg,#162431,#17202b);color:#86dfff;box-shadow:0 0 22px #42c7ff12,inset 0 1px #ffffff0b}
.topbar .studio-global-actions>.download-button{border-color:#8b6cff66;color:#c6baff;background:radial-gradient(circle at 20% 0,#8b6cff22,transparent 62%),#171a25}
#studio-screen.active{grid-template-rows:44px minmax(0,1fr)!important}
#studio-screen .studio-workspace-head{height:44px!important;min-height:44px!important;margin:0!important;padding:0 4px!important;grid-template-columns:minmax(0,1fr)!important}
#studio-screen .studio-workspace-head .head-actions,#studio-screen .studio-workspace-head .studio-save-state{display:none!important}
#studio-screen .studio-project-identity{max-width:720px}
#studio-screen .studio-project-identity .back{width:32px;height:32px}

@media(max-width:1450px){.topbar .studio-global-actions{gap:5px}.topbar .studio-global-actions>button,.topbar .studio-global-actions>a{height:40px;min-height:40px;padding:0 10px;border-radius:10px;font-size:9px}}

/* Unified Studio shell v1.3 — aligned preview and readable timeline. */
body:not(.portal-player) #studio-screen .studio-main-stage{grid-template-rows:minmax(280px,1fr) 78px 188px!important;gap:8px!important}
body:not(.portal-player) #studio-screen .studio-main-stage>.studio-main-label{display:none!important}
body:not(.portal-player) #studio-screen .studio-main-stage>.video-frame{grid-row:1!important}
body:not(.portal-player) #studio-screen .studio-main-stage>.studio-player{grid-row:2!important}
body:not(.portal-player) #studio-screen .studio-main-stage>.studio-word-timeline{grid-row:3!important}
#studio-screen .studio-main-stage .studio-timeline-head small{font-size:8px!important;letter-spacing:.12em!important}
#studio-screen .studio-main-stage .studio-timeline-head b{font-size:13px!important}
#studio-screen .studio-main-stage .studio-timeline-zoom output{min-width:34px;font-size:9px!important}
#studio-screen .studio-main-stage .studio-timeline-ruler i{padding-top:7px!important;color:#8ea0b0!important;font-size:9px!important;font-weight:700!important}
#studio-screen .studio-main-stage .studio-word-block{height:38px!important;padding:0 9px!important;border-radius:7px!important;color:#dff5ff!important;font-size:13px!important;font-weight:500!important;line-height:38px!important;letter-spacing:.01em!important;text-shadow:0 1px 2px #000!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important}
#studio-screen .studio-main-stage .studio-word-block.female{color:#ffd8f1!important}
#studio-screen .studio-main-stage .studio-word-block.duet{color:#ffe1bd!important}
#studio-screen .studio-main-stage .studio-audio-track span{color:#9fb0be!important;font-size:9px!important;font-weight:800!important}
#studio-screen .studio-main-stage .studio-audio-track i{opacity:.9!important}
#studio-screen .studio-main-stage .studio-timeline-edit{min-height:30px;padding:0 11px;font-size:9px!important}
@media(max-height:860px){body:not(.portal-player) #studio-screen .studio-main-stage{grid-template-rows:minmax(230px,1fr) 68px 166px!important;gap:6px!important}body:not(.portal-player) #studio-screen .studio-main-stage>.video-frame{grid-row:1!important}body:not(.portal-player) #studio-screen .studio-main-stage>.studio-player{grid-row:2!important}body:not(.portal-player) #studio-screen .studio-main-stage>.studio-word-timeline{grid-row:3!important}#studio-screen .studio-main-stage .studio-word-block{height:34px!important;font-size:12px!important;font-weight:500!important;line-height:34px!important}}

/* Administrative review adds a real row above Studio. Keep the control room
   inside the remaining viewport and reserve both word lanes in the compact
   timeline instead of clipping the second lane below the screen. */
body:not(.portal-player):has(#admin-review-bar:not([hidden])) #studio-screen.active{height:calc(100vh - 164px)!important}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-word-track{height:84px!important}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-audio-track{display:none!important}

/* Unified Studio shell v1.5 — expanded, vertically stacked Appearance tools. */
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"]{padding:12px!important;overflow-y:auto!important;scrollbar-gutter:stable}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"]>.inspector-subtabs{display:none!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"]>[data-inspector-subpanel]{display:block!important;height:auto!important;margin:0 0 14px!important;padding:16px!important;border:1px solid #34424f!important;border-radius:14px!important;background:linear-gradient(155deg,#151c24,#10151b)!important;box-shadow:0 12px 28px #0002!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"]>[data-inspector-subpanel]:last-child{margin-bottom:2px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .setting-title{min-height:30px;margin-bottom:9px}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] h2{margin:0 0 10px!important;color:#f0f5f8!important;font-size:16px!important;line-height:1.25!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .setting-title h2{margin:0!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] p,#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .setting-hint,#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .template-status{font-size:11px!important;line-height:1.5!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] label{font-size:12px!important;line-height:1.35!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .setting-title button{min-height:34px;padding:0 10px;border:1px solid #3b4a58;border-radius:9px;background:#141b22;color:#77d8ff;font-size:10px;cursor:pointer}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .background-upload{height:112px!important;margin-top:10px!important;border-radius:12px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .background-upload span{font-size:27px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .background-upload b{font-size:12px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .background-upload small{font-size:10px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .background-swatches{gap:7px!important;margin-top:10px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .background-swatches button{height:42px!important;border-radius:9px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .template-setting>input,#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .template-actions select,#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .select-label select,#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .select-label input,#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .two-fields select,#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .two-fields input{min-height:45px!important;padding:9px 10px!important;border-radius:9px!important;font-size:11px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .template-actions{gap:7px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .template-actions button{min-height:41px!important;padding:0 11px!important;border-radius:9px!important;font-size:11px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .select-label,#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .slider-label{margin-top:13px!important;gap:7px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .two-fields{margin-top:12px!important;gap:9px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .slider-label input[type="range"]{height:20px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .check-setting{min-height:40px;margin-top:12px;display:flex;align-items:center;gap:8px;font-size:11px!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .check-setting input{width:18px;height:18px}

/* Unified Studio shell v1.6 — safe templates, isolated dimming and screen cue. */
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"]>[data-inspector-subpanel="cue"]{display:none!important}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .new-template-button{width:100%;min-height:43px;margin:0 0 9px;padding:0 12px;border:1px solid #42c7ff55;border-radius:10px;background:#42c7ff0b;color:#78daff;font-size:11px;font-weight:750;cursor:pointer}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .new-template-button:hover,#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] .new-template-button.active{border-color:#42c7ffaa;background:#42c7ff16;color:#fff;box-shadow:0 0 18px #42c7ff10}
#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] input:disabled,#studio-screen .studio-tool-panel[data-studio-tool-panel="appearance"] button:disabled{border-color:#2b333c!important;background:#0d1116!important;color:#56616c!important;box-shadow:none!important;cursor:not-allowed!important;opacity:.72}
#video-frame{isolation:isolate!important}
#video-frame::before,#video-frame .custom-background-video,#video-frame #generated-video{z-index:1!important}
#video-frame::after{z-index:2!important;mix-blend-mode:normal!important;pointer-events:none!important}
#video-frame .karaoke-safe-area{z-index:3!important}
#video-frame .karaoke-copy,#video-frame .instrumental-break,#video-frame .job-preview{z-index:5!important;mix-blend-mode:normal!important}
#video-frame .karaoke-copy{filter:none!important}
#video-frame .video-tools,#video-frame .exit-player{z-index:7!important}
#video-frame .instrumental-break{left:50%!important;right:auto!important;bottom:48%!important;width:min(92%,1360px)!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;backdrop-filter:none!important;transform:translate(-50%,50%)!important}
#video-frame .instrumental-break::before{inset:-18px -22px!important;background:radial-gradient(ellipse,#4d7cff1c,transparent 72%)!important}
#video-frame .instrumental-break>i{width:100%!important;height:36px!important;padding:5px!important;border:1px solid #70baff88!important;border-radius:999px!important;background:transparent!important;box-shadow:0 0 28px #4b83ff34!important}
#video-frame .instrumental-break em{min-width:18px!important;background:linear-gradient(90deg,#39a8ff 0%,#7366ff 48%,#ef4fc7 100%)!important;box-shadow:0 0 22px #7e74ff,0 0 48px #e449bd66!important}
@media(max-width:900px){#video-frame .instrumental-break{width:90%!important}#video-frame .instrumental-break>i{height:30px!important}}

/* Unified Studio shell v1.7 — button-shaped instrumental timeline. */
#video-frame .instrumental-break{width:min(96%,1630px)!important}
#video-frame .instrumental-break::before{display:none!important}
#video-frame .instrumental-break>i{height:38px!important;padding:5px!important;border:0!important;border-radius:13px!important;background:linear-gradient(180deg,#1a222b,#121820)!important;box-shadow:0 10px 26px #0004!important}
#video-frame .instrumental-break em{border-radius:9px!important;box-shadow:0 0 18px #7e74ff88,0 0 34px #e449bd44!important}
#video-frame .instrumental-break em::after{border-radius:7px!important}
@media(max-width:900px){#video-frame .instrumental-break{width:94%!important}#video-frame .instrumental-break>i{height:32px!important;border-radius:11px!important}#video-frame .instrumental-break em{border-radius:7px!important}}

/* Unified Studio shell v1.8 — translucent instrumental timeline, no dark backing. */
#video-frame .instrumental-break{width:min(82%,1385px)!important}
#video-frame .instrumental-break>i{border:0!important;background:rgba(86,166,224,.12)!important;box-shadow:none!important;opacity:.78!important}
#video-frame .instrumental-break em{opacity:.78!important;box-shadow:0 0 14px #7e74ff55,0 0 24px #e449bd2e!important}
@media(max-width:900px){#video-frame .instrumental-break{width:80%!important}}

/* Unified Studio shell v1.9 — shared readable interface typography. */
:root{--fvoice-ui-text:13px;--fvoice-ui-secondary:var(--fvoice-ui-text)}
#style-template-name:disabled{display:none!important}
#video-frame .karaoke-safe-area{display:none!important}
.screen button,.screen input:not([type="range"]):not([type="color"]),.screen textarea,.screen select,.screen label,.screen time,.screen output{font-size:var(--fvoice-ui-text)!important}
.screen p:not(.lead),.screen small{font-size:var(--fvoice-ui-secondary)!important}
.topbar .nav-link,.topbar .studio-global-actions>button,.topbar .studio-global-actions>a{font-size:var(--fvoice-ui-text)!important}
#studio-screen .studio-step-label,#studio-screen .studio-context-head small,#studio-screen .section-kicker,#studio-screen .studio-timeline-head small{font-size:11px!important}
#studio-screen .studio-context-head p,#studio-screen .studio-project-identity p,#studio-screen .setting p,#studio-screen .setting-hint,#studio-screen .template-status,#studio-screen .mix-note{font-size:var(--fvoice-ui-secondary)!important;line-height:1.45!important}
#studio-screen .studio-tool-rail button span{font-size:11px!important;line-height:1.1!important}
#studio-screen .studio-tool-panel button,#studio-screen .studio-tool-panel input:not([type="range"]):not([type="color"]),#studio-screen .studio-tool-panel select,#studio-screen .studio-tool-panel label{font-size:var(--fvoice-ui-text)!important}
#studio-screen .studio-main-stage>.studio-player .player-now small,#studio-screen .studio-main-stage>.studio-player .player-now b,#studio-screen .studio-main-stage>.studio-player .player-progress time,#studio-screen .studio-main-stage>.studio-player .player-progress span,#studio-screen .studio-main-stage>.studio-player .player-actions button{font-size:var(--fvoice-ui-text)!important}

/* Output-only pitch control.  Gold is reserved for karaoke artwork; studio
   transport controls stay in the established cyan/blue visual language. */
.pitch-control{display:flex;align-items:center;gap:4px;height:34px;padding:0 5px;border:1px solid #2f4558;border-radius:10px;background:#0d141b;white-space:nowrap}
.pitch-control>span{padding:0 3px;color:#8da0af;font-size:9px;letter-spacing:.05em}
#studio-screen .pitch-control button{display:inline-flex!important;align-items:center;justify-content:center;width:26px!important;height:26px!important;border-radius:8px!important;padding:0!important}
#studio-screen .pitch-control #transpose-reset{min-width:36px!important;width:auto!important;padding:0 7px!important;color:#d9e3ea}
#studio-screen .pitch-control #transpose-reset.active{border-color:#42c7ff!important;color:#8de4ff!important;background:radial-gradient(circle,#42c7ff24,transparent 70%),#14232d!important;box-shadow:0 0 9px #42c7ff20}
#transpose-value{font:inherit;font-variant-numeric:tabular-nums}
.pitch-control button:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:1180px){.pitch-control>span{display:none}.pitch-control{padding-inline:3px}}
#studio-screen .studio-main-stage .studio-timeline-head b,#studio-screen .studio-main-stage .studio-word-block{font-size:var(--fvoice-ui-text)!important}
#studio-screen .studio-main-stage .studio-timeline-ruler i,#studio-screen .studio-main-stage .studio-audio-track span,#studio-screen .studio-main-stage .studio-timeline-zoom output,#studio-screen .studio-main-stage .studio-timeline-edit{font-size:11px!important}
#projects-screen p:not(.lead),#editor-screen p:not(.lead),#export-screen p:not(.lead),#projects-screen small,#editor-screen small,#export-screen small{font-size:var(--fvoice-ui-text)!important}

/* Unified Studio shell v1.10 — focused Text workspace. */
#studio-screen #reset-text-colors{display:none!important}
#studio-screen .party-color-disclosure{margin:12px 0 0;border:1px solid #34424f;border-radius:11px;background:#0d1319;overflow:hidden}
#studio-screen .party-color-disclosure summary{min-height:46px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;color:#dce7ee;font-size:13px;font-weight:650;cursor:pointer;list-style:none;user-select:none}
#studio-screen .party-color-disclosure summary::-webkit-details-marker{display:none}
#studio-screen .party-color-disclosure summary::after{content:"＋";width:25px;height:25px;display:grid;place-items:center;border:1px solid #3a4a58;border-radius:7px;background:#151d24;color:#72d8ff;font-size:15px;font-weight:500;transition:transform .18s ease}
#studio-screen .party-color-disclosure[open] summary{border-bottom:1px solid #2d3945;background:#141c23;color:#fff}
#studio-screen .party-color-disclosure[open] summary::after{content:"−"}
#studio-screen .party-color-disclosure .party-color-controls{margin:0;padding:10px 13px 12px;border:0}
#studio-screen .party-color-disclosure .party-color-controls p{margin:0 0 6px!important}
#studio-screen .party-color-disclosure .party-color-controls label{min-height:39px!important}
#studio-screen .studio-sidebar-lines .studio-lines-workspace{display:block!important}
#studio-screen .studio-sidebar-lines .lyric-lines{width:100%;max-height:310px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:7px!important;overflow-y:auto!important}
#studio-screen .studio-sidebar-lines .lyric-lines button{width:100%!important;min-height:45px!important;padding:9px 10px!important;font-size:13px!important}

/* Unified Studio shell v1.11 — karaoke lyrics are not interface copy. */
#studio-screen #video-frame .karaoke-copy p{font-size:inherit!important;line-height:inherit!important}
#studio-screen #video-frame .karaoke-copy span{font-size:inherit!important}

/* Unified Studio shell v1.12 — clear sync gateway and extended editor zoom. */
#studio-screen [data-studio-tool-panel="timeline"]>.setting h2,#studio-screen .studio-sidebar-history h2{margin:0 0 8px!important;font-size:16px!important}
#studio-screen [data-studio-tool-panel="timeline"]>.setting .setting-hint,#studio-screen .studio-sidebar-history p{font-size:12px!important;line-height:1.5!important}
#studio-screen [data-studio-tool-panel="timeline"] #open-sync-editor,#studio-screen .studio-sidebar-history .primary{min-height:44px!important;font-size:13px!important}
.sync-toolbar .editor-zoom-control{min-height:48px;margin-left:auto;padding:5px 7px;display:flex;align-items:center;gap:8px;border:1px solid #344552;border-radius:11px;background:#0c1218;color:#a9b8c5}
.sync-toolbar .editor-zoom-control>span{padding:0 4px;color:#dce7ee;font-size:13px;font-weight:700}
.sync-toolbar .editor-zoom-control button{width:37px;height:36px;padding:0;border-radius:8px!important;color:#78d9ff!important;font-size:18px!important}
.sync-toolbar .editor-zoom-control input{width:210px;accent-color:#42c7ff}
.sync-toolbar .editor-zoom-control output{min-width:46px;color:#8edfff;font-size:13px!important;font-weight:750;text-align:right;font-variant-numeric:tabular-nums}
.timeline-workbench .timeline-word{min-width:30px;font-size:13px;font-weight:500}
@media(max-width:1050px){.sync-toolbar .editor-zoom-control{width:100%;margin-left:0}.sync-toolbar .editor-zoom-control input{flex:1;width:auto}}

/* Unified Studio shell v1.13 — timeline tools live with the word track. */
#editor-screen .timeline-transport{min-height:0!important;padding:12px 14px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;background:linear-gradient(145deg,#151b23,#0e1319)!important}
#editor-screen .timeline-transport-main{min-width:0;display:flex;align-items:center;gap:12px}
#editor-screen .timeline-transport-main #editor-play{flex:0 0 45px;width:45px!important;height:43px!important}
#editor-screen .timeline-transport-main #editor-play-time{font-size:13px}
#editor-screen .timeline-transport-main>span{color:#74d7ff;font-size:13px;font-weight:700}
#editor-screen #editor-selection-count{margin-left:auto;padding:8px 10px;border:1px solid #42c7ff35;border-radius:8px;background:#42c7ff09;color:#75d9ff;font-size:12px;font-weight:650;white-space:nowrap}
#editor-screen .timeline-edit-controls{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:7px}
#editor-screen .timeline-edit-controls>button{width:auto!important;min-width:0;height:38px!important;padding:0 11px!important;border-radius:8px!important;font-size:12px!important;white-space:nowrap}
#editor-screen .editor-history-controls{display:flex;align-items:center;gap:5px;padding-right:7px;margin-right:1px;border-right:1px solid #344552}
#editor-screen .editor-history-controls button{width:40px!important;height:38px!important;padding:0!important;border:1px solid #42c7ff66!important;border-radius:8px!important;background:#42c7ff0d!important;color:#8de2ff!important;font-size:23px!important;line-height:1!important;cursor:pointer}
#editor-screen .editor-history-controls button:hover:not(:disabled){border-color:#72dcff!important;background:#42c7ff1c!important;color:#fff!important}
#editor-screen .editor-history-controls button:disabled{opacity:.3;cursor:not-allowed}
#editor-screen #editor-video-preview-open{border-color:#f05bcb66!important;background:linear-gradient(135deg,#42c7ff10,#f05bcb13)!important;color:#f0c7e8!important}
.editor-video-preview{position:fixed;z-index:80;top:105px;right:24px;width:min(620px,46vw);height:390px;min-width:380px;min-height:260px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);display:grid;grid-template-rows:46px minmax(0,1fr);overflow:hidden;resize:both;border:1px solid #42c7ff66;border-radius:15px;background:#080c11;box-shadow:0 26px 90px #000c,0 0 28px #42c7ff15}
.editor-video-preview[hidden]{display:none!important}
.editor-video-preview>header{display:flex;align-items:center;justify-content:space-between;padding:0 9px 0 14px;border-bottom:1px solid #30404d;background:linear-gradient(90deg,#14202a,#17141e);cursor:move;touch-action:none;user-select:none}
.editor-video-preview>header>div{display:flex;align-items:baseline;gap:10px}.editor-video-preview>header b{font-size:13px}.editor-video-preview>header span{color:#6ed7ff;font-size:11px;font-variant-numeric:tabular-nums}
.editor-video-preview>header button{width:32px;height:32px;padding:0;border:1px solid #3c4b58;border-radius:8px;background:#111820;color:#cdd8df;font-size:21px;cursor:pointer}.editor-video-preview>header button:hover{border-color:#f05bcb88;color:#fff}
.editor-video-preview .video-frame{container-type:size;width:100%;height:100%;min-height:0;aspect-ratio:auto;padding:7% 5%;border:0!important;border-radius:0!important;box-shadow:inset 0 -110px 90px #02040a9c!important}
.editor-video-preview .karaoke-copy{font-weight:800;opacity:1!important;transition:none!important}
.editor-video-preview .karaoke-copy p,.editor-video-preview .karaoke-copy p.line-entering{opacity:1!important;transform:none!important;filter:none!important;animation:none!important;transition:none!important}
.editor-video-preview .karaoke-copy p,.editor-video-preview .karaoke-copy span{font-size:inherit!important;line-height:inherit!important}
/* One canonical 1920x1080 lyric canvas is shared by Studio, Player, fullscreen and floating preview. */
#video-frame .karaoke-copy p,.editor-video-preview .karaoke-copy p{overflow:visible!important;white-space:nowrap!important}
body.portal-player #studio-screen .studio-main-stage>.studio-word-timeline{display:none!important}
body.portal-player #studio-screen .studio-main-stage{background:#02050a!important}
body.portal-player #studio-screen .studio-main-stage>.video-frame{width:auto!important;max-width:100vw!important;height:calc(100vh - 78px)!important;align-self:center!important;justify-self:center!important;aspect-ratio:16/9!important}
@media(max-aspect-ratio:4/3){body.portal-player #studio-screen .studio-main-stage>.video-frame{width:100vw!important;height:auto!important}}
@font-face{font-family:"Alumni Sans FVoice";src:url("assets/fonts/AlumniSans-SemiBold.ttf") format("truetype");font-style:normal;font-weight:600;font-display:swap}
.video-frame .intro-card{position:absolute;z-index:4;pointer-events:none;overflow:hidden;text-align:center;opacity:1;background:radial-gradient(ellipse at center,#0a0a0a 0%,#050505 48%,#000 100%);transition:opacity .06s linear;--intro-content-opacity:1;--intro-content-scale:1}
.video-frame .intro-card[hidden]{display:none!important}
.video-frame .intro-card strong,.video-frame .intro-card span,.video-frame .intro-card em{position:absolute;display:block;overflow:visible;transform:translateY(-50%) scale(var(--intro-content-scale));white-space:nowrap;text-align:center;font-style:normal;line-height:1;opacity:var(--intro-content-opacity)}
.video-frame .intro-card strong{font-family:"Alumni Sans FVoice","Alumni Sans","Oswald","Roboto Condensed",sans-serif;font-weight:600;letter-spacing:.015em;background:linear-gradient(180deg,#fff1be 0%,#e2b75e 28%,#a97828 58%,#e9c56f 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-stroke:1px rgba(255,235,175,.45);text-shadow:0 0 10px rgba(230,180,70,.22),0 0 24px rgba(190,130,35,.10)}
.video-frame .intro-card span{font-family:"Montserrat","Segoe UI",Arial,sans-serif;font-weight:300;letter-spacing:.12em;color:#f3f1ec}
.video-frame .intro-card em{font-family:"Montserrat","Segoe UI",Arial,sans-serif;font-weight:400;letter-spacing:.18em;color:#818181}
.video-frame.intro-active>.karaoke-copy{visibility:hidden!important}
.video-frame.intro-active>.instrumental-break,.video-frame.intro-active>.voice-legend{display:none!important}
.studio-intro-settings .setting-title{align-items:center}.studio-intro-settings .intro-enabled{display:flex;align-items:center;gap:7px;color:#9fe7ff;font-size:11px}.studio-intro-settings .intro-enabled input{accent-color:#42c7ff}
.studio-intro-settings .select-label{margin-top:12px}.studio-intro-settings .select-label input{width:100%;min-height:43px;padding:9px 10px;border:1px solid #354654;border-radius:10px;background:#0b1117;color:#f1f6f9;font-size:13px}.studio-intro-settings .select-label input:focus{border-color:#42c7ff;outline:0;box-shadow:0 0 0 3px #42c7ff12}
@media(max-width:850px){.editor-video-preview{right:12px;width:calc(100vw - 24px);min-width:0}}
#editor-screen .timeline-edit-controls #editor-shift-minus,#editor-screen .timeline-edit-controls #editor-shift-plus{border-color:#8b6cff66!important;color:#d2c8ff!important}
#editor-screen .timeline-edit-controls .editor-zoom-control{min-height:44px;margin-left:auto;padding:4px 6px;display:flex;align-items:center;gap:7px;border:1px solid #344552;border-radius:10px;background:#0b1117;color:#a9b8c5}
#editor-screen .timeline-edit-controls .editor-zoom-control>span{padding:0 3px;color:#dce7ee;font-size:12px;font-weight:700}
#editor-screen .timeline-edit-controls .editor-zoom-control button{width:34px!important;height:34px!important;padding:0!important;border-radius:8px!important;color:#78d9ff!important;font-size:17px!important}
#editor-screen .timeline-edit-controls .editor-zoom-control input{width:190px;accent-color:#42c7ff}
#editor-screen .timeline-edit-controls .editor-zoom-control output{min-width:45px;color:#8edfff;font-size:12px!important;font-weight:750;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:1180px){#editor-screen .timeline-edit-controls .editor-zoom-control{width:100%;margin-left:0}#editor-screen .timeline-edit-controls .editor-zoom-control input{flex:1;width:auto}}

/* Unified Studio shell v1.14 — compact word editor with adjacent revisions. */
#editor-screen .editor-detail-panel{display:flex;flex-direction:column;overflow:hidden!important}
#editor-screen .editor-detail-panel .editor-preview-card{min-height:92px!important;margin-bottom:12px!important;padding:12px!important}
#editor-screen .editor-detail-panel .section-head{margin-bottom:9px}
#editor-screen .editor-detail-panel>.editor-help{margin-bottom:9px!important}
#editor-screen .editor-detail-panel #editor-word-list{min-height:120px;max-height:27vh!important;overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#35495a transparent}
#editor-screen .editor-detail-panel .editor-word{min-height:60px!important;padding:8px!important}
#editor-screen .editor-detail-panel .editor-actions{margin-top:10px!important}
#editor-screen .revision-panel-moved{min-height:0;margin-top:13px!important;padding-top:13px!important;border-top:1px solid #30404d!important;display:flex;flex-direction:column}
#editor-screen .revision-panel-moved>.section-head{flex:0 0 auto;margin-bottom:6px!important}
#editor-screen .revision-panel-moved>p{flex:0 0 auto;margin:0 0 8px!important}
#editor-screen .revision-panel-moved .revision-list{height:190px;max-height:190px!important;padding-right:4px;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3b5365 #0b1015}
#editor-screen .revision-panel-moved .revision-item{min-height:50px}
@media(max-height:820px){#editor-screen .editor-detail-panel #editor-word-list{max-height:22vh!important}#editor-screen .revision-panel-moved .revision-list{height:150px;max-height:150px!important}}

/* Unified Studio shell v1.15 — orderly compact word table and full-height lines. */
#editor-screen .editor-grid{align-items:stretch}
#editor-screen .editor-grid>.panel:first-child{min-height:0;display:flex;flex-direction:column}
#editor-screen .editor-grid>.panel:first-child .editor-line-list{flex:1 1 0;contain:size;min-height:280px;max-height:none;align-content:start;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3b5365 #0b1015}
#editor-screen .editor-detail-panel #editor-word-list{height:246px!important;min-height:246px!important;max-height:246px!important;padding:0 4px 4px 0;display:block!important;overflow-y:auto!important}
#editor-screen .editor-word-table-head{position:sticky;z-index:6;top:0;display:grid;grid-template-columns:minmax(150px,1fr) 100px 100px 145px;gap:9px;min-height:37px;padding:0 9px;align-items:center;border:1px solid #354452;border-radius:9px;background:#151d25;box-shadow:0 5px 14px #0006;color:#91a3b2}
#editor-screen .editor-word-table-head span{font-size:11px!important;font-weight:750;text-transform:uppercase;letter-spacing:.05em}
#editor-screen .editor-word{min-height:50px!important;height:50px;margin-top:6px;padding:6px 8px!important;grid-template-columns:minmax(150px,1fr) 100px 100px 145px!important;gap:9px!important;align-items:center!important}
#editor-screen .editor-word strong{padding:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}
#editor-screen .editor-word .editor-word-field{display:block!important;margin:0!important}
#editor-screen .editor-word .editor-word-field input,#editor-screen .editor-word .editor-word-field select{height:36px!important;min-height:36px!important;margin:0!important;padding:6px 8px!important;font-size:12px!important}
@media(max-width:1200px){#editor-screen .editor-word-table-head,#editor-screen .editor-word{grid-template-columns:minmax(120px,1fr) 90px 90px 125px!important}}
@media(max-width:900px){#editor-screen .editor-grid>.panel:first-child .editor-line-list{flex:none;height:clamp(280px,58dvh,620px)}}
@media(max-height:820px){#editor-screen .editor-detail-panel #editor-word-list{height:205px!important;min-height:205px!important;max-height:205px!important}}

/* Unified Studio shell v1.17 — wider navigation, clearer icons, cleaner timeline. */
#studio-screen .studio-workspace-shell{width:100%;max-width:none;grid-template-columns:116px 400px minmax(0,1fr)!important;gap:9px!important}
#studio-screen .studio-main-stage{width:100%;max-width:none;margin:0;min-inline-size:0;justify-self:stretch;align-self:stretch}
#studio-screen .studio-tool-rail{padding:9px 8px!important;gap:6px!important}
#studio-screen .studio-tool-rail button{width:100%;min-height:66px!important;padding:7px 5px!important;gap:6px!important}
#studio-screen .studio-tool-rail button i{width:36px!important;height:34px!important;border-radius:9px!important}
#studio-screen .studio-tool-rail button i svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
#studio-screen .studio-tool-rail button span{width:100%;overflow:visible;font-size:12px!important;line-height:1.15!important;text-align:center;white-space:normal!important;word-break:normal!important}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-audio-track{display:none!important}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-timeline-canvas{height:100px!important}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-word-track{top:36px!important;height:48px!important}
@media(max-width:1500px){#studio-screen .studio-workspace-shell{grid-template-columns:106px 360px minmax(0,1fr)!important}#studio-screen .studio-tool-rail button span{font-size:11px!important}}
@media(max-width:1180px){#studio-screen .studio-workspace-shell{grid-template-columns:94px 320px minmax(0,1fr)!important}#studio-screen .studio-tool-rail button i{width:32px!important;height:30px!important}#studio-screen .studio-tool-rail button span{font-size:10px!important}}

/* Unified Studio shell v1.18 — reordered tools and refined workspace details. */
#studio-screen .studio-project-identity{grid-template-rows:auto auto!important}
#studio-screen .studio-project-line{grid-column:2;grid-row:2;min-width:0;display:flex;align-items:baseline;gap:8px;overflow:hidden;white-space:nowrap}
#studio-screen .studio-project-line h1{grid-column:auto!important;max-width:min(58vw,620px);margin:0!important;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#studio-screen .studio-project-line #project-meta{grid-column:auto!important;margin:0!important;flex:0 1 auto;overflow:hidden;color:#81909d;font-size:11px!important;text-overflow:ellipsis;white-space:nowrap}
#studio-screen .studio-project-line #project-meta::before{content:"· ";color:#4fcfff}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-timeline-scroll{height:142px!important;padding-bottom:16px;scrollbar-gutter:stable;box-sizing:border-box}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-timeline-canvas{height:122px!important}
#studio-screen .studio-main-stage>.studio-word-timeline .studio-word-track{top:31px!important;height:88px!important;overflow:visible!important}

/* Lyric layouts v2 — modes rebuilt from the reviewed karaoke reference. */
.karaoke-copy.mode-block p{opacity:.72;filter:none;transition:opacity .2s ease}
.karaoke-copy.mode-block p.active-line{opacity:1}
.karaoke-copy.mode-karaoke p{opacity:.62;filter:none;transition:opacity .34s ease,filter .34s ease}
.karaoke-copy.mode-karaoke p.active-line{opacity:1;filter:none}
.karaoke-copy.mode-karaoke p.past{opacity:.34;filter:saturate(.72)}
.karaoke-copy.mode-scrolling{overflow:hidden!important;mask-image:linear-gradient(to bottom,transparent 20%,#000 39%,#000 72%,transparent 90%);-webkit-mask-image:linear-gradient(to bottom,transparent 20%,#000 39%,#000 72%,transparent 90%)}
.karaoke-copy.mode-scrolling p{opacity:.58;filter:none;transition:none!important;will-change:transform}
.karaoke-copy.mode-scrolling p.active-line{opacity:1;filter:none}
.karaoke-copy.mode-scrolling p.past{opacity:.24;filter:saturate(.62)}
.karaoke-copy.mode-scrolling p.empty-line{opacity:0}
.karaoke-copy.mode-single p{opacity:1;animation:lyricIn .28s cubic-bezier(.22,.75,.2,1)}
.karaoke-copy.mode-duet p{opacity:.68;transition:opacity .28s ease}
.karaoke-copy.mode-duet p.active-line{opacity:1}
.karaoke-copy.mode-duet p.speaker-male{--duet-lane-color:var(--male-color,#39a8ff)}
.karaoke-copy.mode-duet p.speaker-female{--duet-lane-color:var(--female-color,#ff58b7)}
.karaoke-copy.mode-duet p.speaker-duet{--duet-lane-color:var(--duet-color,#ff9b42)}
/* Upcoming lyrics are grey from their very first painted frame.  In
   particular, do not let the generic line-entering keyframes flash them
   white before the muted state is applied. */
.karaoke-copy p.queued-line{opacity:1!important;filter:none!important;animation:none!important;transition:none!important}
.karaoke-copy p.queued-line .karaoke-word{background:#929292!important;background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important}
#studio-screen [data-studio-tool-panel="processing"]{padding:11px!important}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-card{padding:12px!important;border-radius:13px!important;overflow-y:auto!important}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-head{min-height:0!important;padding:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;align-items:stretch!important}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-toggle{width:100%!important;min-height:58px;padding:9px!important;display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;border:1px solid #344451!important;border-radius:11px!important;background:#121a21!important}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-toggle>span{width:34px!important;height:34px!important;margin:0!important;grid-column:1;grid-row:1;border-radius:9px!important}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-toggle>div{grid-column:2;grid-row:1;min-width:0;display:flex!important;flex-direction:column!important;gap:3px!important}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-toggle b{font-size:14px!important}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-toggle small{font-size:11px!important;line-height:1.3!important}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-head>div:last-child{margin:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
#studio-screen [data-studio-tool-panel="processing"] #pipeline-profile{grid-column:1/-1;padding:8px 10px;border:1px solid #30404d;border-radius:9px;background:#0c1217;color:#72d7ff!important;font-size:12px!important;text-align:center}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-head>div:last-child button{min-height:37px!important;padding:5px 7px!important;font-size:11px!important;white-space:normal}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-body{padding:10px 0 0!important}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-stages{margin:0!important;gap:6px!important}
#studio-screen [data-studio-tool-panel="processing"] .pipeline-stage{min-height:42px!important;padding:8px 9px!important;font-size:12px!important}
#studio-screen [data-studio-tool-panel="export"] .studio-export-summary{gap:11px!important;padding:13px!important}
#studio-screen [data-studio-tool-panel="export"] .studio-export-summary span,#studio-screen [data-studio-tool-panel="export"] .studio-export-summary b{font-size:13px!important;line-height:1.35!important}
#studio-screen [data-studio-tool-panel="export"] .studio-export-summary span{color:#9ba9b5!important}

/* Unified Studio shell v1.30 — F-Voice Classic gold waveform for instrumental breaks. */
#video-frame .instrumental-break{left:50%!important;bottom:50%!important;width:min(84%,1450px)!important;height:clamp(92px,28%,230px)!important;transform:translate(-50%,50%)!important;opacity:var(--break-fade,1)!important;filter:none!important}
#video-frame .instrumental-break::before{content:""!important;display:block!important;position:absolute!important;inset:8% -3%!important;border-radius:50%!important;background:radial-gradient(ellipse,rgba(226,183,94,.16),rgba(169,120,40,.045) 48%,transparent 72%)!important;filter:blur(18px)!important;pointer-events:none!important}

/* Calm typography: the interface no longer mixes heavy and regular weights. */
body *{font-weight:400!important}
.karaoke-copy,.karaoke-copy p,.karaoke-copy .karaoke-word{font-weight:var(--karaoke-font-weight,400)!important;font-synthesis:weight}
.karaoke-copy .karaoke-word{-webkit-text-stroke-width:var(--karaoke-font-stroke,0px);-webkit-text-stroke-color:color-mix(in srgb,var(--word-fill,var(--karaoke-fill,#ff405c)) 46%,var(--karaoke-base,#fff));paint-order:stroke fill}
.karaoke-copy p.queued-line .karaoke-word{-webkit-text-stroke-color:#929292!important}
.editor-video-preview .karaoke-copy,.editor-video-preview .karaoke-copy p,.editor-video-preview .karaoke-copy .karaoke-word{font-weight:var(--karaoke-font-weight,400)!important}

/* AIR / «Парящий свет»: exact 1920×1080 reference geometry. */
.video-frame[data-style-template="air-pariashchiy-svet"] .karaoke-copy{position:absolute!important;width:76.5625%;height:19.4444%;padding:0!important;border:0;border-radius:0;background:url("assets/templates/air-pariashchiy-svet/lyrics_glass_panel.png") center/100% 100% no-repeat;box-shadow:none}
.video-frame[data-style-template="air-pariashchiy-svet"] .karaoke-copy,.video-frame[data-style-template="air-pariashchiy-svet"] .karaoke-copy p,.video-frame[data-style-template="air-pariashchiy-svet"] .karaoke-copy .karaoke-word{font-family:"EB Garamond",Georgia,serif!important}
.video-frame[data-style-template="air-pariashchiy-svet"] .karaoke-copy p:first-child .karaoke-word{text-shadow:0 0 16px rgba(255,205,133,.45)}
.video-frame[data-style-template="air-pariashchiy-svet"] .intro-card{background:transparent url("assets/templates/air-pariashchiy-svet/title_glow_overlay.png") center/cover no-repeat}
.video-frame[data-style-template="air-pariashchiy-svet"] .intro-card strong{font-family:"EB Garamond",Georgia,serif!important;font-weight:400!important;line-height:.94!important;letter-spacing:0!important;color:#8f602f!important;background:none!important;-webkit-text-fill-color:#8f602f!important;-webkit-text-stroke:0!important;text-shadow:0 0 28px rgba(241,190,112,.28)!important;transform:scale(var(--intro-content-scale))!important}
.video-frame[data-style-template="air-pariashchiy-svet"] .intro-card span{font-family:"Inter","Segoe UI",sans-serif!important;font-weight:300!important;line-height:1!important;letter-spacing:.2em!important;color:#534133!important;transform:scale(var(--intro-content-scale))!important}
.video-frame[data-style-template="air-pariashchiy-svet"] .intro-card em{display:none!important}
.video-frame .intro-card .air-song-label,.video-frame .intro-card .air-artist-label{display:none}
.video-frame[data-style-template="air-pariashchiy-svet"] .intro-card .air-song-label,.video-frame[data-style-template="air-pariashchiy-svet"] .intro-card .air-artist-label{position:absolute;display:flex;left:50%;width:auto;align-items:center;gap:2.25em;transform:translateX(-50%);white-space:nowrap;font-family:"Inter","Segoe UI",sans-serif;font-size:clamp(8px,1.35vw,26px);font-weight:300;line-height:1;letter-spacing:.35em;color:#6a523e;opacity:var(--intro-content-opacity)}
.video-frame[data-style-template="air-pariashchiy-svet"] .intro-card .air-song-label:before,.video-frame[data-style-template="air-pariashchiy-svet"] .intro-card .air-song-label:after,.video-frame[data-style-template="air-pariashchiy-svet"] .intro-card .air-artist-label:before,.video-frame[data-style-template="air-pariashchiy-svet"] .intro-card .air-artist-label:after{content:"";width:7.8em;height:1px;background:#8f602f99}
.video-frame[data-style-template="air-pariashchiy-svet"].intro-active>.karaoke-copy{visibility:hidden!important}

/* AIR / «Небесный горизонт»: the opening card uses the template background,
   the lyric glass stays compact, and instrumental gaps use only a centered
   progress line (the old decorative waveform is intentionally hidden). */
.video-frame.air-modern-template .intro-card{background:transparent!important}
.video-frame.air-modern-template .intro-card strong{font-family:"Inter","Segoe UI",sans-serif!important;font-weight:300!important;line-height:.94!important;letter-spacing:.02em!important;color:#30364c!important;background:none!important;-webkit-text-fill-color:#30364c!important;-webkit-text-stroke:0!important;text-shadow:0 1px 20px rgba(255,255,255,.3)!important;transform:scale(var(--intro-content-scale))!important}
.video-frame.air-modern-template .intro-card span{font-family:"Inter","Segoe UI",sans-serif!important;font-weight:400!important;line-height:1!important;letter-spacing:.16em!important;color:#38415c!important;transform:scale(var(--intro-content-scale))!important}
.video-frame.air-modern-template .intro-card em{display:none!important}
.video-frame.air-modern-template .intro-card .air-song-label,.video-frame.air-modern-template .intro-card .air-artist-label{position:absolute;display:flex;left:50%;width:auto;align-items:center;gap:2.2em;transform:translateX(-50%);white-space:nowrap;font-family:"Inter","Segoe UI",sans-serif;font-weight:300;line-height:1;color:#626b89;opacity:var(--intro-content-opacity)}
.video-frame.air-modern-template .intro-card .air-song-label:before,.video-frame.air-modern-template .intro-card .air-song-label:after,.video-frame.air-modern-template .intro-card .air-artist-label:before,.video-frame.air-modern-template .intro-card .air-artist-label:after{content:"";width:7em;height:1px;background:#69718b80}
.video-frame[data-style-template="air-zolotoy-standart"] .intro-card strong{font-family:"Alumni Sans FVoice","Alumni Sans","Oswald","Roboto Condensed",sans-serif!important;font-weight:600!important;line-height:1!important;letter-spacing:.015em!important;background:linear-gradient(180deg,#fff1be 0%,#e2b75e 28%,#a97828 58%,#e9c56f 100%)!important;background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;-webkit-text-stroke:1px rgba(255,235,175,.45)!important;text-shadow:0 0 10px rgba(230,180,70,.22),0 0 24px rgba(190,130,35,.10)!important;transform:translateY(-50%) scale(var(--intro-content-scale))!important}
.video-frame[data-style-template="air-zolotoy-standart"] .intro-card span{font-family:"Montserrat","Segoe UI",Arial,sans-serif!important;font-weight:300!important;line-height:1!important;letter-spacing:.12em!important;color:#f3f1ec!important;transform:translateY(-50%) scale(var(--intro-content-scale))!important}
.video-frame[data-style-template="air-zolotoy-standart"] .intro-card em{display:block!important;font-family:"Montserrat","Segoe UI",Arial,sans-serif!important;font-weight:400!important;line-height:1!important;letter-spacing:.18em!important;color:#818181!important;transform:translateY(-50%) scale(var(--intro-content-scale))!important}
.video-frame[data-style-template="air-zolotoy-standart"] .intro-card .air-song-label,.video-frame[data-style-template="air-zolotoy-standart"] .intro-card .air-artist-label{display:none!important}
.video-frame.air-modern-template.intro-active>.karaoke-copy{visibility:hidden!important}
.video-frame.air-modern-template .instrumental-break{bottom:50%!important;width:min(58%,980px)!important;height:30px!important}
.video-frame.air-modern-template .instrumental-break::before{inset:-24px -34px!important;background:radial-gradient(ellipse,rgba(255,209,122,.15),transparent 70%)!important}
.video-frame.air-modern-template .instrumental-break>i{inset:auto 0!important;top:50%!important;width:100%!important;height:5px!important;transform:translateY(-50%)!important;border-radius:999px!important;background:rgba(255,255,255,.34)!important;box-shadow:0 0 9px rgba(255,255,255,.18)!important;overflow:visible!important}
.video-frame.air-modern-template .instrumental-break>i>.gold-wave-base,.video-frame.air-modern-template .instrumental-break>i>em>.gold-wave-fill{display:none!important}
.video-frame.air-modern-template .instrumental-break>i::after{inset:0!important;width:100%!important;height:100%!important;transform:none!important;background:rgba(255,255,255,.34)!important;box-shadow:none!important;opacity:1!important}
.video-frame.air-modern-template .instrumental-break>i>em{inset:0 auto 0 0!important;width:var(--break-progress,0%)!important;height:5px!important;min-width:0!important;overflow:visible!important;border-radius:999px!important;background:linear-gradient(90deg,#fff3cb,#ffd17a)!important;box-shadow:0 0 14px rgba(255,209,122,.55)!important;clip-path:none!important}
.video-frame.air-modern-template .instrumental-break>i>em::after{content:""!important;inset:auto -8px auto auto!important;top:50%!important;width:16px!important;height:16px!important;transform:translateY(-50%)!important;border:2px solid #fff4d2!important;border-radius:50%!important;background:#ffd17a!important;box-shadow:0 0 0 4px rgba(255,209,122,.18),0 0 18px rgba(255,209,122,.68)!important;opacity:1!important}

/* The legacy gold-wave rules use an ID selector. Match that specificity so
   the fill width follows --break-progress instead of remaining at 100%. */
#video-frame.air-modern-template .instrumental-break{top:50%!important;bottom:auto!important;width:min(68%,1120px)!important;height:94px!important;transform:translate(-50%,-50%)!important}
#video-frame.air-modern-template .instrumental-break[hidden]{display:none!important}
#video-frame.air-modern-template.intro-active .instrumental-break{display:none!important}
#video-frame.air-modern-template .instrumental-break>span{position:absolute!important;left:0!important;right:0!important;top:0!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#fff5dc!important;text-shadow:0 2px 10px rgba(47,35,19,.55)!important}
#video-frame.air-modern-template .instrumental-break>span time{font-family:"Inter","Segoe UI",sans-serif!important;font-size:clamp(13px,1.05vw,19px)!important;font-weight:400!important;letter-spacing:.06em!important;color:#fff1cf!important;font-variant-numeric:tabular-nums!important}
#video-frame.air-modern-template .instrumental-break>i{inset:auto 0!important;top:57px!important;bottom:auto!important;height:7px!important;transform:none!important;border:1px solid rgba(255,255,255,.40)!important;border-radius:999px!important;background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(43,39,61,.42))!important;box-shadow:inset 0 1px 4px rgba(15,14,28,.48),0 0 12px rgba(255,209,122,.14)!important;overflow:visible!important}
#video-frame.air-modern-template .instrumental-break>i>em{inset:0 auto 0 0!important;width:var(--break-progress,0%)!important;height:7px!important;overflow:visible!important;border-radius:999px!important;background:linear-gradient(90deg,#f6d998,#ffeac0)!important;box-shadow:0 0 9px rgba(255,218,145,.34)!important;clip-path:none!important;transition:width .16s linear!important}


/* Give every range control a real, grabbable thumb instead of relying on a
   thin browser accent track.  touch-action keeps horizontal dragging stable. */
input[type="range"]{-webkit-appearance:none;appearance:none;height:28px!important;background:transparent!important;cursor:ew-resize!important;touch-action:none;pointer-events:auto!important;position:relative;z-index:2}
input[type="range"]::-webkit-slider-runnable-track{height:6px;border:1px solid #405365;border-radius:999px;background:linear-gradient(90deg,#17232d,#31404c)}
input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;margin-top:-8px;border:2px solid #62d4ff;border-radius:50%;background:radial-gradient(circle at 38% 34%,#b8edff 0 13%,#42c7ff 34%,#1476a5 72%,#0b3852 100%);box-shadow:0 0 0 4px #42c7ff24,0 0 14px #42c7ff66,inset 0 0 7px #c9f4ff80;cursor:grab}
input[type="range"]:hover::-webkit-slider-thumb{box-shadow:0 0 0 5px #42c7ff2e,0 0 17px #42c7ff80,inset 0 0 8px #d8f7ff99}
input[type="range"]:active::-webkit-slider-thumb{cursor:grabbing;box-shadow:0 0 0 6px #42c7ff38,0 0 20px #42c7ffaa,inset 0 0 9px #e5faffaa}
input[type="range"]::-moz-range-track{height:6px;border:1px solid #405365;border-radius:999px;background:#26343f}
input[type="range"]::-moz-range-thumb{width:18px;height:18px;border:2px solid #62d4ff;border-radius:50%;background:radial-gradient(circle at 38% 34%,#b8edff 0 13%,#42c7ff 34%,#1476a5 72%,#0b3852 100%);box-shadow:0 0 0 4px #42c7ff24,0 0 14px #42c7ff66,inset 0 0 7px #c9f4ff80;cursor:grab}
input[type="range"]:hover::-moz-range-thumb{box-shadow:0 0 0 5px #42c7ff2e,0 0 17px #42c7ff80,inset 0 0 8px #d8f7ff99}
input[type="range"]:active::-moz-range-thumb{cursor:grabbing;box-shadow:0 0 0 6px #42c7ff38,0 0 20px #42c7ffaa,inset 0 0 9px #e5faffaa}

/* Stable lyric rows: queued text stays white and does not pulse, shrink or
   change saturation while the active row is being painted. */
.karaoke-copy.mode-scroll p,.karaoke-copy.mode-scroll p.queued-line,.karaoke-copy.mode-rolling p,.karaoke-copy.mode-rolling p.queued-line{opacity:1!important;filter:none!important;transform:none!important;transition:opacity .22s ease,transform .22s ease!important}
.karaoke-copy.mode-rolling p.line-entering{animation:studioLyricIn .28s ease-out}

.project-card{position:relative}
.project-badges{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.project-badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border:1px solid #43505e;border-radius:999px;background:#111820;color:#b9c6d1;font-size:11px;letter-spacing:.035em}
.project-badge-mel{border-color:#d8a94d99;background:#d8a94d16;color:#f1d58b;box-shadow:0 0 16px #d8a94d18}
.project-badge-quick{border-color:#4caee777;background:#2d86bc14;color:#8fd8ff}
.project-badge-reference{border-color:#6fcba477;background:#45b98912;color:#91e6bd}
#video-frame .instrumental-break>i{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:0!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;opacity:1!important}
#video-frame .instrumental-break>i>.gold-wave-base,#video-frame .instrumental-break>i>em>.gold-wave-fill{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:clamp(2px,.34vw,7px)}
#video-frame .instrumental-break>i>.gold-wave-base{opacity:.3;filter:saturate(.78)}
#video-frame .instrumental-break>i>em{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;overflow:hidden!important;border-radius:0!important;background:none!important;box-shadow:none!important;opacity:1!important;clip-path:inset(0 calc(100% - var(--break-progress,0%)) 0 0);transition:clip-path .12s linear!important}
#video-frame .instrumental-break b{display:block;flex:1 1 0;min-width:2px;max-width:9px;height:var(--wave-height);border-radius:999px;background:linear-gradient(180deg,#fff1be 0%,#e2b75e 28%,#a97828 58%,#e9c56f 100%);box-shadow:inset 0 0 1px rgba(255,247,213,.75);transform-origin:center}
#video-frame .instrumental-break>i>em b{background:linear-gradient(180deg,#fff7d7 0%,#fff1be 14%,#e2b75e 42%,#a97828 68%,#e9c56f 88%,#fff1be 100%);box-shadow:0 0 7px rgba(230,180,70,.3),inset 0 0 2px rgba(255,255,255,.85)}
#video-frame .instrumental-break>i::after,#video-frame .instrumental-break>i>em::after{content:""!important;position:absolute!important;left:0!important;right:0!important;top:50%!important;height:3px!important;transform:translateY(-50%)!important;border-radius:999px!important;background:linear-gradient(90deg,transparent,#e2b75e 5%,#fff1be 50%,#e2b75e 95%,transparent)!important;box-shadow:0 0 8px rgba(230,180,70,.28)!important;filter:none!important}
#video-frame .instrumental-break>i::after{opacity:.42!important}
#video-frame .instrumental-break>i>em::after{opacity:1!important}
@media(max-width:900px){#video-frame .instrumental-break{width:86%!important;height:25%!important}#video-frame .instrumental-break>i>.gold-wave-base,#video-frame .instrumental-break>i>em>.gold-wave-fill{gap:2px}#video-frame .instrumental-break b{min-width:1px}}

/* Unified Studio shell v1.33 — Studio project actions match main navigation sizing. */
.topbar .studio-global-actions>button,.topbar .studio-global-actions>a{height:47px!important;min-height:47px!important;padding:0 21px!important;border-radius:14px!important;font-size:var(--fvoice-ui-text)!important;font-weight:650!important;line-height:1!important}

/* Player with the visible administrator review header: final precedence. */
body.portal-player:has(#admin-review-bar:not([hidden])) #studio-screen{height:calc(100vh - 80px)!important;min-height:0!important}
body.portal-player:has(#admin-review-bar:not([hidden])) #studio-screen .studio-workspace-shell,
body.portal-player:has(#admin-review-bar:not([hidden])) #studio-screen .studio-main-stage{height:100%!important;min-height:0!important}
body.portal-player:has(#admin-review-bar:not([hidden])) #studio-screen .studio-main-stage>.video-frame{height:100%!important;max-height:100%!important;min-height:0!important}

/* Confidence remains visible during selection and playback; fill keeps speaker colors. */
#editor-screen .timeline-word[data-word-review="confident"],
#studio-screen .studio-word-block[data-word-review="confident"],
#editor-screen .editor-line-item[data-word-review="confident"]{border:2px solid #34d399!important;box-sizing:border-box}
#editor-screen .timeline-word[data-word-review="uncertain"],
#studio-screen .studio-word-block[data-word-review="uncertain"],
#editor-screen .editor-line-item[data-word-review="uncertain"]{border:2px solid #fb7185!important;box-sizing:border-box}
#editor-screen .timeline-word.selected[data-word-review]{outline:2px solid #fbbf24;outline-offset:2px}
.word-review-legend{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:8px 0;color:#b8c8d3;font-size:12px}
.word-review-legend span::before{content:"";display:inline-block;width:12px;height:12px;margin-right:6px;border:2px solid #34d399;border-radius:4px;vertical-align:-2px}
.word-review-legend span:last-child::before{border-color:#fb7185}

.karaoke-party-frame {
  position: absolute;
  z-index: 6;
  box-sizing: border-box;
  border: 1px solid var(--party-accent);
  border-radius: min(34px, 6cqh);
  box-shadow: inset 0 0 15px color-mix(in srgb, var(--party-accent) 27%, transparent);
  pointer-events: none;
  opacity: var(--lyrics-reveal, 1);
  transition: border-color .22s ease, box-shadow .22s ease;
}
.karaoke-party-frame[data-kind="male"] { --party-accent: #65cfff; }
.karaoke-party-frame[data-kind="female"] { --party-accent: #f47bd5; }
.karaoke-party-frame[data-kind="duet"] { --party-accent: #ffb454; }
.video-frame.air-modern-template > .karaoke-party-frame { border-radius: 34px; }
.video-frame[data-style-template="air-pariashchiy-svet"] > .karaoke-party-frame { border-radius: 28px; }
.video-frame.air-modern-template > .karaoke-party-frame:not([hidden]) + .karaoke-copy {
  border-color: transparent;
}
.karaoke-party-frame[hidden], .intro-active > .karaoke-party-frame,
.video-frame:has(> .karaoke-copy[hidden]) > .karaoke-party-frame { display: none; }

#create-screen .create-hero { margin-bottom: 20px; }
.create-example-link {
  max-width: 1100px;
  margin: 0 auto 10px;
  padding: 0 16px;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 18px;
}
.create-example-link button, .create-example-link a {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #80d8ff;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.create-example-link button:hover, .create-example-link a:hover { color: #c8efff; }
.create-example-dialog {
  width: min(820px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(14px, 3vw, 24px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #334961;
  border-radius: 20px;
  background: #101923;
  color: #e7eef6;
}
.create-example-dialog::backdrop { background: #060a10cf; }
.create-example-dialog > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  background: #101923;
  box-shadow: 0 -24px #101923;
}
.create-example-dialog h2 { margin: 0; font-size: clamp(17px, 3vw, 23px); }
.create-example-dialog p { margin: 8px 0 14px; color: #acbbcc; font-size: .88rem; }
.create-example-dialog button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #3f576d;
  border-radius: 9px;
  background: #192839;
  color: #dff2ff;
  font-size: 20px;
  cursor: pointer;
}
.create-example-dialog video {
  display: block;
  width: 100%;
  max-height: 70dvh;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #090d15;
}

.create-example-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0;
}
.create-example-controls p { margin: 0; }
.create-example-controls button { padding: 6px 11px; font-size: .875rem; }
.create-example-controls button[aria-pressed="true"] {
  border-color: #4cae7e;
  background: #17382b;
  color: #9af0bf;
}
.create-example-controls button[aria-pressed="false"] {
  border-color: #d8757f;
  background: #431f29;
  color: #ffb1b9;
}
.create-example-controls button span { margin-left: 5px; }

.personal-template-picker { margin-top: 8px; }
.personal-template-picker summary,
#style-template-options button {
  box-sizing: border-box;
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  border: 1px solid #34475e;
  border-radius: 9px;
  background: #101925;
  color: #e4edf7;
  font: inherit;
  font-size: 11px;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.personal-template-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.personal-template-picker summary::-webkit-details-marker { display: none; }
.personal-template-picker summary::after {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  border-right: 2px solid #86cdea;
  border-bottom: 2px solid #86cdea;
  transform: rotate(45deg);
}
.personal-template-picker[open] summary::after { transform: rotate(225deg); }
#style-template-options { display: grid; gap: 5px; margin-top: 5px; }
.personal-template-picker summary:hover,
#style-template-options button:hover,
#style-template-options button[aria-pressed="true"] {
  border-color: #42c7ff70;
  background: #172937;
  color: #8edfff;
}
.personal-template-picker :focus-visible { outline: 2px solid #65d0f5; outline-offset: 2px; }
#delete-style-template:disabled,
#apply-style-template:disabled { opacity: .55; cursor: default; }

.create-guide {
  --guide-accent: #73d9ff;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #334961;
  font: 16px/1.55 Inter, Arial, sans-serif;
}
.create-guide .hero { margin-bottom: 20px; }
.create-guide .hero h3 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.create-guide .hero h3 span {
  color: #a7d6ff;
  background: linear-gradient(100deg, #83ddff, #b1a2ff, #f3a9e6);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.create-guide .toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.create-guide .toc strong { width: 100%; }
.create-guide .toc a {
  padding: 6px 10px;
  border: 1px solid #345369;
  border-radius: 8px;
  color: var(--guide-accent);
  font-size: .875rem;
}
.create-guide .toc a:hover { background: #192c3b; }
.create-guide .toc a:focus-visible { outline: 2px solid var(--guide-accent); }
.create-guide article section { scroll-margin-top: 70px; }
.create-guide article section + section { margin-top: 24px; }
.create-guide h4 { margin: 0 0 10px; font-size: clamp(19px, 3vw, 24px); }
.create-guide ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.create-guide li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #263746;
  border-radius: 12px;
  background: linear-gradient(115deg, #15212e, #111822 64%);
}
.create-guide .number {
  display: grid;
  place-items: center;
  height: 34px;
  border: 1px solid #2c5972;
  border-radius: 8px;
  color: var(--guide-accent);
  font-size: 14px;
  font-weight: 700;
}
.create-guide h5 { margin: 0; font-size: 1rem; }
.create-guide li p { margin: 3px 0 0; }
.create-guide figure { margin: 12px 0 0; }
.create-guide .crop {
  position: relative;
  overflow: hidden;
  border: 1px solid #304657;
  border-radius: 9px;
  background: #0b1017;
}
.create-guide .crop img { position: absolute; height: auto; max-width: none; display: block; }
.create-guide figcaption { margin-top: 4px; color: #acbbcc; font-size: .8rem; }
@media (max-width: 480px) {
  .create-guide li { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 9px; }
  .create-guide .number { height: 30px; }
  .create-guide figure { margin-left: -38px; }
}

.topbar .topbar-account {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  text-decoration: none;
  white-space: nowrap;
}
body:has(#studio-screen.active) .topbar .topbar-account { margin-left: 8px; }
#studio-screen .channel header b,
#studio-screen .channel header span,
#studio-screen .limiter,
#studio-screen .studio-tool-rail button span,
#studio-screen .studio-main-stage .studio-timeline-zoom output,
#studio-screen .studio-main-stage .studio-timeline-edit {
  font-size: var(--fvoice-ui-text) !important;
}
#studio-screen .channel header { gap: 8px; }
#studio-screen .channel header b { font-weight: 400; }
#studio-screen .channel header span { white-space: nowrap; }
#studio-screen .text-style-setting .two-fields :is(select, input) {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  border-color: #34475e;
  border-radius: 9px;
  background: #101925;
  color: #e4edf7;
}
#export-screen .workspace-head .back { text-decoration: none; }
@media (max-width: 840px) {
  .topbar { height: auto; min-height: 84px; flex-wrap: wrap; gap: 6px; }
  .topbar nav { order: 3; width: 100%; margin: 0; }
  .topbar .studio-global-actions { order: 4; margin: 0 0 6px; }
  body:has(#studio-screen.active) .topbar .topbar-account { margin-left: auto; }
  #studio-screen.active { height: auto !important; overflow: visible !important; }
}

#studio-screen .studio-main-stage .player-actions #open-player {
  width: auto;
  padding: 0 8px;
  font-size: 11px !important;
  white-space: nowrap;
}
#studio-screen .studio-main-stage .player-actions #open-player { color: #8edfff; }
body.portal-player #open-player { display: none; }
.studio-play-controls { display: flex; align-items: center; gap: 8px; }
#editor-screen .timeline-transport-main { flex-wrap: wrap; }
#studio-screen .studio-play-controls .vocal-preview-toggle,
#editor-screen .timeline-transport-main .vocal-preview-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto !important;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--vocal-border) !important;
  border-radius: 8px;
  background: var(--vocal-background) !important;
  color: var(--vocal-color) !important;
  font-size: 12px !important;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.vocal-preview-toggle[aria-pressed="true"] {
  --vocal-border: #4cae7e;
  --vocal-background: #17382b;
  --vocal-color: #9af0bf;
}
.vocal-preview-toggle[aria-pressed="false"] {
  --vocal-border: #b56974;
  --vocal-background: #371d26;
  --vocal-color: #ffb1b9;
}
.vocal-preview-toggle svg { width: 17px; height: 17px; flex: none; }
.vocal-preview-toggle[aria-pressed="true"] .vocal-icon-off,
.vocal-preview-toggle[aria-pressed="false"] .vocal-icon-on { display: none; }
.vocal-preview-toggle:disabled { opacity: .55; cursor: default; }
#editor-screen .editor-actions { flex-wrap: wrap; }

.topbar-account [hidden] { display: none; }
.topbar .topbar-account > .nav-link:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 21px;
  line-height: 1;
  font-weight: 650;
  text-decoration: none;
}
.topbar .topbar-account > a.nav-link {
  border-color: #344453;
  background: linear-gradient(180deg, #1a222b, #121820);
  color: #dce5ec;
  box-shadow: inset 0 1px #ffffff09;
}
.topbar .topbar-account > .nav-link:is(:hover, :focus-visible) {
  border-color: #42c7ff88;
  background: #172630;
  color: #7bdcff;
}
.topbar .topbar-account > .nav-link:focus-visible {
  outline: 2px solid #72d6ff;
  outline-offset: 3px;
}
.topbar .topbar-account > button.nav-link:not(:is(:hover, :focus-visible)) {
  color: #8edfff;
  border-color: #42c7ff52;
}
.studio-login-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid #334961;
  border-radius: 20px;
  background: radial-gradient(ellipse at 8% 0%, #173044, transparent 60%), #101923;
  color: #e7eef6;
  overflow: auto;
}
.studio-login-dialog::backdrop { background: #060a10cf; }
.studio-login-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.studio-login-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; }
.studio-login-brand .brand-mark { width: 36px; height: 36px; }
.studio-login-brand em { color: #80d8ff; font-style: normal; }
.studio-login-dialog h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.studio-login-dialog p { color: #acbbcc; font-size: 13px; line-height: 1.5; }
.studio-login-dialog p:empty { display: none; }
.studio-login-dialog #email-form:not([hidden]), .studio-login-dialog #code-form:not([hidden]) { display: grid; gap: 9px; }
.studio-login-bonus:not([hidden]) {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2.5vw, 16px);
  margin-bottom: 9px;
  padding: clamp(10px, 3vw, 16px);
  border: 1px solid #42c7ff52;
  border-radius: 14px;
  background: radial-gradient(ellipse at 12% 40%, #214961, transparent 76%), #142431;
}
.studio-login-bonus strong {
  color: #a2e9ff;
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.studio-login-bonus b, .studio-login-bonus small { display: block; }
.studio-login-bonus b { font-size: clamp(13px, 3.4vw, 17px); font-weight: 650; line-height: 1.25; }
.studio-login-bonus small { margin-top: 3px; color: #acbbcc; font-size: 13px; }
.studio-login-gift {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(36px, 10vw, 56px);
  aspect-ratio: 1;
  border: 1px solid #39728c;
  border-radius: 12px;
  color: #92e5ff;
  background: #122c3d;
}
.studio-login-gift-box {
  position: relative;
  width: 20px;
  height: 15px;
  margin-top: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(90deg, transparent 46%, currentColor 47% 53%, transparent 54%);
}
.studio-login-gift-box::before {
  content: "";
  position: absolute;
  inset: -5px -3px auto;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: #173b50;
}
.studio-login-gift-bow { position: absolute; bottom: calc(50% + 2px); }
.studio-login-gift-bow::before, .studio-login-gift-bow::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 6px;
  border: 1.5px solid currentColor;
}
.studio-login-gift-bow::before { right: 0; border-radius: 7px 7px 0 7px; transform: rotate(20deg); }
.studio-login-gift-bow::after { left: 0; border-radius: 7px 7px 7px 0; transform: rotate(-20deg); }
.studio-login-dialog .studio-login-help { margin: 3px 0 0; text-align: center; }
.studio-login-dialog label { font-size: 13px; font-weight: 650; }
.studio-login-dialog input {
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #3f576d;
  border-radius: 9px;
  background: #0b111a;
  color: inherit;
  font: inherit;
}
.studio-login-dialog button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #3f576d;
  border-radius: 9px;
  background: #192839;
  color: #dff2ff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.studio-login-dialog button.primary {
  min-height: 46px;
  border-color: #42c7ff70;
  background: linear-gradient(110deg, #203e51, #1a283b);
  font-weight: 650;
}
.studio-login-dialog button.primary:hover:not(:disabled) { border-color: #80d8ff; background: #244557; }
.studio-login-dialog :focus-visible { outline: 2px solid #83dcff; outline-offset: 2px; }
.studio-login-dialog button:disabled { opacity: .55; cursor: default; }
.studio-login-dialog .code-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-login-dialog #auth-error { color: #ffb1bd; }
.studio-login-dialog #local-return { color: #8edfff; font-size: 13px; }
.studio-login-dialog #local-return:not([hidden]) { display: inline-block; margin-top: 12px; }

.studio-player { position:relative; }
.studio-player.audio-waiting { opacity:1; }
.studio-player.audio-waiting > :not(.player-loading) { visibility:hidden; }
#studio-screen:has(.studio-player.audio-waiting) #job-preview .progress { visibility:hidden; }
.player-loading {
  position:absolute; z-index:2; inset:0; display:grid; align-content:center; gap:8px;
  padding:8px clamp(12px,3vw,24px); border-radius:inherit; border:1px solid #3a6d84;
  background:#142333; color:#e6f6ff;
}
.player-loading[hidden] { display:none; }
.player-loading-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:clamp(14px,3.7vw,17px); }
#player-loading-percent { font-variant-numeric:tabular-nums; color:#8cddff; }
.player-loading-track { height:8px; overflow:hidden; background:#233a50; border-radius:8px; }
.player-loading-track span {
  display:block; width:var(--loading-percent,0%); height:100%; border-radius:inherit;
  background:linear-gradient(90deg,#55b9ed 30%,#b5eeff 50%,#55b9ed 70%) 100% 0 / 240% 100%;
  transition:width .18s ease-out;
  animation:player-loading-shimmer 1.45s linear infinite;
}
.player-loading.is-indeterminate .player-loading-track span {
  width:32%; transition:none; animation:player-loading-scan 1.35s ease-in-out infinite alternate;
}
@keyframes player-loading-shimmer {
  to { background-position:0 0; }
}
@keyframes player-loading-scan {
  from { transform:translateX(0); }
  to { transform:translateX(212.5%); }
}
@media (prefers-reduced-motion:reduce) {
  .player-loading-track span { transition:none; animation-duration:2.6s; }
  .player-loading.is-indeterminate .player-loading-track span {
    animation-duration:2.4s;
  }
}
