:root{color-scheme:dark;--bg:#090c16;--panel:#121827;--panel2:#171d30;--line:#283149;--text:#f3f2fb;--muted:#99a1b6;--muted2:#6f7c96;--violet:#a6a2ff;--gold:#ffcf7d;--green:#6ee4bc;--r:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);line-height:1.5;min-height:100vh}body::before{content:'';pointer-events:none;position:fixed;inset:0;background:linear-gradient(115deg,transparent 5%,#ffffff02 50%,transparent 90%);z-index:-1}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--violet);outline-offset:3px}a{color:inherit}.glow{position:fixed;z-index:-2;pointer-events:none;filter:blur(86px);opacity:.22;border-radius:50%}.glow-one{background:#563ef1;width:500px;height:430px;right:-170px;top:-200px}.glow-two{background:#825426;width:380px;height:380px;left:-240px;top:350px}.wrap{width:min(1150px,calc(100% - 44px));margin:auto}.sitehead{display:flex;justify-content:space-between;align-items:center;padding:25px 0 15px;border-bottom:1px solid #222b41}.brand{display:flex;align-items:center;gap:13px}.brandmark{width:47px;height:47px;display:flex;align-items:center;justify-content:center;border:1px solid #384365;border-radius:13px;background:#151b30;color:var(--gold);font-size:20px;font-weight:850;letter-spacing:-2px}.brandmark span:last-child{color:var(--violet)}.mini-arrow{font-size:12px;color:var(--muted);padding:0 4px;letter-spacing:0}.brandname{font-size:16px;font-weight:850;letter-spacing:.035em}.brandname span{color:var(--gold)}.brandline{font-size:10px;letter-spacing:.22em;color:#8c94b5;font-weight:650}.tag-ver{color:var(--gold);letter-spacing:0;margin-left:5px}.iconbtn{width:45px;height:45px;background:#171e32;border:1px solid #333d56;border-radius:14px;color:#c2c9dc;font-size:26px}.iconbtn:hover{border-color:var(--violet)}.hero{padding:48px 0 34px}.overline,.eyebrow{color:var(--violet);font-weight:850;font-size:11px;letter-spacing:.17em}.overline{display:flex;align-items:center;gap:10px;color:var(--gold)}.pulse{background:var(--gold);border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 4px #ffd67c22}.hero h1{font-size:clamp(30px,5vw,54px);letter-spacing:-.055em;line-height:1.1;margin:14px 0 13px;font-weight:820;max-width:890px}.hero h1 em{font-style:normal;background:linear-gradient(90deg,#f5ca84,#b7aeff);background-clip:text;color:transparent}.hero p{color:#a9b2c8;margin:0;max-width:730px;font-size:16px}.hero p strong{color:#e6e7f6}.steps{display:flex;align-items:center;gap:20px;margin-top:28px;color:#a7b0c6;font-size:12px;font-weight:680;letter-spacing:.02em}.steps span:not(.steparrow){display:flex;align-items:center;gap:8px}.steps b{display:grid;place-items:center;color:var(--gold);width:23px;height:23px;border:1px solid #565071;border-radius:7px;font-size:10px}.steparrow{color:#52617e}.panel{background:linear-gradient(152deg,rgba(23,30,49,.95),rgba(13,18,32,.98));border:1px solid #2b354e;border-radius:var(--r);padding:25px;box-shadow:0 12px 44px #0002}.panel+.panel{margin-top:16px}.paneltitle{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:21px}.paneltitle h2{margin:4px 0 0;font-size:21px;letter-spacing:-.025em}.pill{border-radius:50px;font-size:11px;font-weight:700;padding:6px 11px;white-space:nowrap;border:1px solid #405c5a;color:#6fe4b9;background:#1c38362f}.pill.warn{color:var(--gold);background:#46392334;border-color:#645037}.pill.secondary{color:#b8bdf3;border-color:#464675;background:#5352aa1d}.searchbar{display:flex;gap:11px;align-items:center;border:1px solid #465274;background:#0d1425;border-radius:13px;padding:8px 8px 8px 16px}.searchsymbol{color:var(--violet);font-size:29px;line-height:1}.searchbar input{border:none;outline:0;min-width:0;flex:1;background:transparent;color:#f4f4ff;font-size:15px}.searchbar:focus-within{border-color:var(--violet)}input::placeholder,textarea::placeholder{color:#707b94}.primary{border:none;border-radius:10px;background:linear-gradient(110deg,#d5c0ff,#9e9df9);color:#151426;font-weight:850;padding:12px 18px;font-size:13px;letter-spacing:.01em;display:inline-flex;align-items:center;justify-content:center;gap:11px;white-space:nowrap;box-shadow:0 6px 17px #655bd021}.primary:hover{filter:brightness(1.07)}.primary:active{transform:translateY(1px)}.primary span:last-child{font-size:18px}.linkrow{display:flex;gap:9px;align-items:center;margin:14px 0}.linkrow span{font-size:12px;color:#8893ac}.linkrow input{flex:1;min-width:0;background:#0d1425;border:1px solid #343c55;border-radius:9px;padding:10px 13px;color:#eef1fc;font-size:12px}.smallbutton{padding:10px 12px;border-radius:9px;background:#222a40;border:1px solid #4b526c;color:#d9d9ee;font-size:12px;white-space:nowrap}.hint{color:#818da9;font-size:12px}.results{display:grid;gap:7px;margin-top:16px;max-height:360px;overflow:auto;padding-right:2px}.songresult{width:100%;border:1px solid #343e59;border-radius:11px;background:#151e31;color:#fff;display:flex;gap:12px;align-items:center;text-align:left;padding:10px}.songresult:hover{border-color:var(--violet);background:#202a45}.resultart{width:45px;height:45px;border-radius:8px;background:#30334c;flex-shrink:0;object-fit:cover}.resultmeta{display:flex;flex-direction:column;min-width:0;flex:1}.resultmeta strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.resultmeta small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#a5aec4;font-size:11px}.resultchev{font-size:20px;color:var(--gold);padding:0 5px}.control-label{display:block;color:#c5ccdf;font-size:13px;font-weight:650;margin:0 0 9px}.control-label span{color:#7f8ca8;font-weight:400}.songmeta{background:#1d2639;border:1px solid #39475e;display:flex;align-items:center;gap:12px;padding:9px;border-radius:12px;margin-bottom:18px}.songart{height:53px;width:53px;border-radius:9px;display:grid;place-items:center;background:#3e3766;font-size:25px;flex-shrink:0;overflow:hidden}.songart img{width:100%;height:100%;object-fit:cover}.songmeta>div:nth-child(2){display:flex;flex-direction:column;flex:1;min-width:0}.songmeta b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.songmeta span{font-size:11px;color:#a8b1c8}.songmeta a{color:#b8baff;font-size:12px;text-decoration:none}textarea{resize:vertical;width:100%;border:1px solid #35405e;background:#0b1220;color:#e4e7f5;border-radius:11px;padding:16px;font-size:13px;line-height:1.72}textarea:focus{border-color:#827fe3;outline:0}#sourceLyrics{min-height:210px}.sourcefooter{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:9px}.textbutton{border:none;background:none;color:#c1b8fa;font-size:12px;white-space:nowrap}.option-grid{display:grid;grid-template-columns:1fr 1fr 160px;gap:14px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field>span{color:#bfc9de;font-size:12px;font-weight:650}.field select,.field input{width:100%;background:#0c1424;color:#e7e8f8;border:1px solid #36415a;border-radius:10px;padding:13px;font-size:13px;outline:0}.field select:focus,.field input:focus{border-color:var(--violet)}.checks{display:flex;flex-wrap:wrap;gap:22px;margin:23px 0}.checks label,.remember{display:inline-flex;align-items:center;gap:9px;font-size:12px;color:#bac5dd;cursor:pointer}.checks input{position:absolute;opacity:0;width:1px;height:1px}.checkboxface{width:18px;height:18px;border-radius:5px;border:1px solid #526181;background:#131b2c;display:inline-grid;place-items:center}.checks input:checked+.checkboxface{background:var(--violet);color:#141326;border-color:var(--violet)}.checks input:checked+.checkboxface::before{content:'✓';font-size:14px;font-weight:900}.checks input:focus-visible+.checkboxface{outline:2px solid var(--gold);outline-offset:2px}.huge{padding:16px 20px;width:100%;font-size:14px}.huge>span:first-child{color:#60549c;font-size:18px}.output-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:41px 0 16px}.output-head h2{margin:6px 0 0;font-size:26px;letter-spacing:-.035em}.outmeta{color:#8490aa;font-size:12px}.outputgrid{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;align-items:start}.outputpanel{padding:20px;min-width:0;height:100%}.outputtop{display:flex;align-items:center;gap:12px;margin-bottom:16px}.outputtop>div:nth-child(2){flex:1}.outputtop .eyebrow{font-size:9px}.outputtop h3{margin:0;font-size:19px}.fieldicon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;font-size:25px;font-weight:700}.fieldicon.amber{background:#59401e65;color:#ffd184}.fieldicon.purple{background:#42377780;color:#c4b1fa}.outlinebutton{border:1px solid #4d5877;background:#20283d;color:#e2e3f8;padding:11px 17px;border-radius:10px;font-size:12px;font-weight:700;white-space:nowrap}.outlinebutton:hover{border-color:var(--violet)}.outputbox{height:375px;min-height:235px}.stylebox{height:215px;min-height:160px}.tagcheck{color:#83dfb8;font-size:12px;min-height:45px;line-height:1.6;padding:12px 0}.tagcheck.bad{color:#ffba96}.outputfoot{margin-top:11px;display:flex;justify-content:space-between;gap:8px;color:#7f8da9;font-size:11px}.field-id{color:#676f89;font-family:monospace}.actions{display:flex;justify-content:flex-end;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}.go-link{display:inline-flex;align-items:center;gap:12px;padding:12px 15px;text-decoration:none;color:var(--gold);font-weight:750;font-size:13px}.go-link:hover{text-decoration:underline}.toast{min-height:22px;margin:7px 0 20px;color:#96e9c6;font-size:12px;text-align:right}footer{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:22px 0 36px;margin-top:24px;border-top:1px solid #252f46;color:#67758d;font-size:10px;letter-spacing:.02em}footer span:first-child{color:#8d93bd;font-weight:750;letter-spacing:.12em}dialog{border:1px solid #46506d;padding:0;background:#131b2d;color:#ebedf7;border-radius:20px;max-width:430px;width:calc(100% - 32px);box-shadow:0 20px 100px #000b}dialog::backdrop{background:#010409c9;backdrop-filter:blur(6px)}.modal{padding:25px}.modal-head{display:flex;justify-content:space-between;align-items:start}.modal-head h2{margin:5px 0;font-size:23px}.closebtn{font-size:26px;width:35px;height:35px}.modal p{font-size:13px;color:#a4afc5;line-height:1.7;margin:13px 0 23px}.modal .field input{width:100%}.remember{margin:17px 0}.modal .huge{margin-top:12px}
@media(max-width:780px){.wrap{width:calc(100% - 28px)}.sitehead{padding:16px 0}.hero{padding:31px 0}.hero h1{font-size:34px}.hero p{font-size:13px}.panel{padding:19px}.option-grid{grid-template-columns:1fr 1fr}.option-grid .field:last-child{grid-column:span 2}.outputgrid{grid-template-columns:1fr}.outputbox{height:330px}.stylebox{height:155px;min-height:120px}.actions{justify-content:stretch}.actions>.primary,.actions>.outlinebutton{flex:1}.outmeta{font-size:11px}footer{flex-direction:column;text-align:center;gap:6px}}
@media(max-width:470px){.brandname{font-size:14px}.brandline{font-size:9px;letter-spacing:.08em}.brandmark{width:40px;height:40px;font-size:18px}.hero h1{font-size:32px}.hero{padding:30px 0 25px}.steps{gap:10px;font-size:11px}.searchbar{flex-wrap:wrap;gap:7px}.searchbar input{font-size:14px;width:calc(100% - 44px);flex-basis:calc(100% - 44px)}.searchbar .primary{width:100%}.paneltitle h2{font-size:20px}.paneltitle .pill{font-size:9px}.linkrow{flex-wrap:wrap}.linkrow span{width:100%}.linkrow input{width:calc(100% - 110px)}.linkrow button{width:94px}.checks{gap:11px 16px}.checks label{font-size:11px}.output-head{margin-top:34px}.output-head h2{font-size:23px}.outputtop h3{font-size:18px}.outputtop .outlinebutton{padding:10px}.songmeta a{font-size:11px}.sourcefooter{align-items:flex-start}.sourcefooter .hint{font-size:11px}}

[hidden]{display:none!important}

/* Spoken tribute introduction settings */
.tribute-config{margin:22px 0 2px;padding:18px;border:1px solid #49405f;border-radius:13px;background:linear-gradient(135deg,#31264088,#171f3388)}
.tribute-heading{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.tribute-heading strong{font-size:14px;color:#ffda98}.tribute-heading span{font-size:12px;color:#acb5d0}
.tribute-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:15px;align-items:center}
.speech-checkbox{display:flex;gap:10px;align-items:center;font-size:13px;color:#eee4fc;cursor:pointer;min-height:40px}
.speech-checkbox input{width:18px;height:18px;accent-color:#b3a0ff;flex-shrink:0}
.speech-preview{margin-top:13px;font-size:12px;color:#bcabc9;font-style:italic;line-height:1.55;overflow-wrap:anywhere}
.tribute-config .field input:disabled{opacity:.5}
@media(max-width:640px){.tribute-controls{grid-template-columns:1fr}.tribute-config{padding:14px}.tribute-heading{gap:3px}}
/* v1.3 - short vocal intro and local melody reference */
.short-intro-config{margin:22px 0 2px;padding:18px;border:1px solid #49405f;border-radius:13px;background:linear-gradient(135deg,#31264088,#171f3388)}
.short-intro-row{display:flex;gap:12px;align-items:end}
.short-intro-row .field{flex:1}
.short-intro-row .outlinebutton{min-height:44px}
.melodic-help{line-height:1.7;font-size:13px;margin:-2px 0 20px}
.melodic-help strong{color:#bfb8f8}
.uploadbox{border:1px dashed #8173ba;border-radius:14px;display:flex;align-items:center;gap:14px;padding:20px;cursor:pointer;background:#161b35;margin-bottom:12px}
.uploadbox:hover{background:#252244;border-color:#d0c1f0}
.uploadbox>span:nth-child(2){display:flex;gap:4px;flex-direction:column;font-size:14px}
.uploadbox small{font-size:11px;color:#a8b4d0}
.uploadicon{color:var(--gold);font-size:29px}
.offscreen-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.melody-row{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:18px 0}
.melodypanel input[type=range]{width:100%;accent-color:#ac9af7;margin-bottom:12px;cursor:pointer}
.melody-buttons{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}
.melody-buttons button:disabled{opacity:.5;cursor:not-allowed}
.audio-player{width:100%;margin:12px 0 15px;max-height:60px}
.melody-note-head{display:flex;flex-direction:column;gap:3px;margin:15px 0 11px}
.melody-note-head strong{color:#e6defa;font-size:14px}
.melody-note-head span{font-size:12px;color:#909db6}
#melodyGuide{margin-top:10px;color:#dcd7ee;min-height:90px}
.melody-reminder{font-size:12px;line-height:1.65;margin:17px 0 4px;color:#a4aeca}
@media(max-width:640px){.short-intro-row{flex-direction:column;align-items:stretch}.melody-buttons{display:grid;grid-template-columns:1fr 1fr}.melody-buttons button{white-space:normal}.melody-buttons button:last-child:nth-child(3){grid-column:1/-1}}

/* v2.0 direct Treblo generation */
.generatepanel{margin-top:25px;border-color:#6354a3;background:linear-gradient(150deg,#191d35 0%,#121a2c 67%)}
.gen-help{font-size:13px;line-height:1.65;margin:0 0 22px}.gen-help strong{color:#ffdb96}
.gen-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:14px;margin:10px 0 20px}
.prompt-control{margin-bottom:20px}.prompt-control textarea{min-height:95px}
.reference-options{border:1px solid #685b9b;border-radius:13px;background:#211c36;padding:17px;margin:18px 0}
.reference-head{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}
.reference-head strong{color:#e0c9ff;font-size:14px}.reference-head span{color:#a9a8cf;font-size:12px}
.reference-options input[type=range]{width:100%;accent-color:#b49dff;cursor:pointer;padding:10px 0}
.reference-options p{font-size:12px;line-height:1.6;margin:7px 0 0}
.pin-controls{display:grid;grid-template-columns:minmax(170px,1fr) auto auto;align-items:end;gap:14px;margin:20px 0}
.pin-controls>.hint{align-self:center;font-weight:700;color:#98dac1}.generate-button{background:linear-gradient(110deg,#ffca72,#f4a8ff);color:#16111e;box-shadow:0 10px 30px #8854b020}.generate-button:disabled{opacity:.55;cursor:wait}
.api-notice{font-size:11px;line-height:1.7;margin:15px 0 0}.api-notice code{background:#222943;padding:2px 4px;border-radius:4px;white-space:nowrap}
.generation-result{border:1px solid #42516c;background:#111b2b;margin-top:20px;padding:20px;border-radius:15px}
.generation-status-head{display:flex;align-items:center;gap:13px}.generation-status-head strong{font-size:17px}.gen-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#413660;color:#e6bfff;font-size:24px}
.generation-status-head .hint{font-size:11px;margin-top:5px;overflow-wrap:anywhere}.gen-progress-track{height:7px;background:#27334d;border-radius:9px;overflow:hidden;margin:19px 0 12px}.gen-progress-bar{height:100%;width:2%;border-radius:9px;background:linear-gradient(90deg,#ffce89,#c9a7ff);transition:width .4s}
#generationMessage{line-height:1.6;font-size:12px;min-height:28px}.generation-result audio{width:100%;margin:17px 0}.generation-actions{display:flex;gap:15px;flex-wrap:wrap;align-items:center;margin-top:12px}.generation-actions .primary{padding:14px 18px}.powered{display:inline-block;margin-top:17px;color:#c4affb;font-size:12px;font-weight:750;text-decoration:underline;text-underline-offset:3px}
@media(max-width:800px){.gen-grid{grid-template-columns:1fr 1fr}.gen-grid .field:first-child{grid-column:span 2}.pin-controls{grid-template-columns:1fr 1fr}.pin-controls .field{grid-column:1/-1}.pin-controls>.hint{grid-column:1/-1}.pin-controls .outlinebutton{grid-column:1/-1}}
@media(max-width:470px){.gen-grid{grid-template-columns:1fr}.gen-grid .field:first-child{grid-column:auto}.reference-options{padding:13px}.generation-result{padding:14px}.generation-actions{flex-direction:column;align-items:stretch}.generation-actions .primary{text-align:center}.generation-actions .go-link{justify-content:center}}
