:root{--bg:#090a10;--panel:#11131c;--panel2:#171925;--line:#282b3a;--text:#f5f5fa;--muted:#9297a9;--accent:#8b5cf6;--accent2:#a78bfa;--danger:#fb7185}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 20% 0%,#171226 0,#090a10 38%),#090a10;color:var(--text);font:14px Inter,system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer;border:0}.hidden{display:none!important}.login-page{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(420px,100%);background:rgba(17,19,28,.94);border:1px solid var(--line);border-radius:12px;padding:30px;box-shadow:0 25px 80px #0008}.brand{display:flex;align-items:center;gap:11px}.brand b{display:block;font-size:15px}.brand span{display:block;color:var(--muted);font-size:11px;margin-top:2px}.brand-mark{width:32px;height:32px;border-radius:9px;background:#19142a;border:1px solid #3b2a65;display:flex;align-items:center;justify-content:center;gap:2px}.brand-mark i{display:block;width:3px;border-radius:4px;background:var(--accent)}.brand-mark i:nth-child(1){height:10px}.brand-mark i:nth-child(2){height:17px}.brand-mark i:nth-child(3){height:13px}.login-title{font-size:28px;font-weight:800;margin-top:35px}.muted,p{color:var(--muted)}form{margin-top:22px}input[type=password],textarea{width:100%;background:#0d0f17;border:1px solid var(--line);color:var(--text);border-radius:8px;outline:0}input[type=password]{padding:13px}textarea{min-height:410px;padding:14px;resize:vertical;line-height:1.65}button.primary{width:100%;padding:12px;border-radius:8px;background:var(--accent);color:white;font-weight:700;margin-top:10px}button.primary:hover{background:var(--accent2)}button.ghost{background:#151722;border:1px solid var(--line);color:#d8d9e4;border-radius:7px;padding:9px 12px}.error{color:var(--danger);font-size:12px;min-height:18px;margin-top:8px}header{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#0b0c12e8;backdrop-filter:blur(10px);position:sticky;top:0;z-index:10}nav{display:flex;gap:4px;padding:12px 24px;border-bottom:1px solid var(--line);background:#0c0d14}nav .nav{background:transparent;color:var(--muted);padding:9px 12px;border-radius:7px}.nav.active{background:#1b1630;color:#c4b5fd}main{max-width:1120px;margin:auto;padding:28px 20px 45px}.page-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.page-head small{color:#9b82e9;letter-spacing:.15em;font-size:10px}.page-head h1{margin:6px 0 5px;font-size:26px}.page-head p{margin:0}.grid,.lyrics-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card{background:linear-gradient(145deg,#131620,#0f1119);border:1px solid var(--line);border-radius:10px;padding:18px}.drop{min-height:390px;border:1px dashed #383c4d;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#d9dae4;text-align:center;cursor:pointer}.drop input{display:none}.drop small{color:var(--muted)}.upload-icon{width:48px;height:48px;border-radius:12px;background:#1c1531;color:#b69cff;display:grid;place-items:center;font-size:24px}.file-info{margin-top:12px;background:#0d0f17;border:1px solid var(--line);padding:10px;border-radius:7px}.control{margin-bottom:25px}.row,.processing-row,.card-title{display:flex;justify-content:space-between;align-items:center}.row strong{color:#c4b5fd}.control input[type=range]{width:100%;accent-color:var(--accent)}.range-note{font-size:11px;color:var(--muted);margin-top:6px}.processing{margin-top:14px}.progress{height:6px;background:#242634;border-radius:10px;overflow:hidden;margin-top:8px}.progress i{display:block;width:0;height:100%;background:var(--accent);transition:width .2s}.player{width:100%;margin-top:16px}.status{font-size:12px;color:var(--muted);min-height:20px;margin-top:10px}.local-badge{font-size:10px;color:#86efac;border:1px solid #1f4b35;background:#102018;border-radius:20px;padding:7px 10px}.card-title{margin-bottom:12px}.card-title>span{font-size:10px;color:var(--muted);text-transform:uppercase}.small{padding:6px 9px!important;font-size:11px}.actions{display:flex;gap:8px;margin-top:10px}.actions button{width:auto;margin:0}.actions .primary{flex:1}.actions .ghost{min-width:100px}.help{margin-top:16px}.help p{line-height:1.6}.help code{color:#c4b5fd}footer{text-align:center;color:#626779;font-size:11px;padding:18px;border-top:1px solid var(--line)}
@media(max-width:760px){header{padding:0 15px}nav{padding:10px 15px}main{padding:20px 14px}.grid,.lyrics-grid{grid-template-columns:1fr}.drop{min-height:250px}.page-head{align-items:start;gap:10px}.page-head h1{font-size:23px}textarea{min-height:320px}.login-card{padding:23px}}


/* V11 UI consistency */
button{min-height:40px;transition:background .18s,border-color .18s,color .18s,transform .12s}button:active{transform:translateY(1px)}button.primary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin-top:10px;border:1px solid #9b7af8;box-shadow:0 8px 22px rgba(139,92,246,.16)}button.primary:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}button.ghost{display:inline-flex;align-items:center;justify-content:center;min-height:40px;background:#11131c;border:1px solid #303342;color:#d8d9e4}button.ghost:hover{background:#181b27;border-color:#45495c;color:#fff}.actions button{margin:0}.actions .ghost{min-width:110px}.nav{min-height:40px;border:1px solid transparent}.nav.active{border-color:#33265a}.control input[type=range]{appearance:none;-webkit-appearance:none;height:6px;border-radius:99px;background:#272a35;outline:none;accent-color:var(--accent);cursor:pointer}.control input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:99px;background:#272a35}.control input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:17px;height:17px;margin-top:-5.5px;border-radius:50%;background:#8b5cf6;border:2px solid #c4b5fd;box-shadow:0 0 0 3px #171925}.control input[type=range]::-moz-range-track{height:6px;border-radius:99px;background:#272a35}.control input[type=range]::-moz-range-progress{height:6px;border-radius:99px;background:#8b5cf6}.control input[type=range]::-moz-range-thumb{width:17px;height:17px;border-radius:50%;background:#8b5cf6;border:2px solid #c4b5fd;box-shadow:0 0 0 3px #171925}.card-title .ghost.small{min-height:34px}.upload-card,.controls,.lyrics-grid .card{min-width:0}
@media(max-width:760px){main{width:100%;padding:16px 12px 35px}.grid,.lyrics-grid{display:block;width:100%}.grid>.card,.lyrics-grid>.card{width:100%;display:block;margin-bottom:12px}.grid>.card:last-child,.lyrics-grid>.card:last-child{margin-bottom:0}.drop{width:100%;min-height:230px}.actions{display:grid;grid-template-columns:1fr;width:100%;gap:8px}.actions button{width:100%!important;min-width:0!important}.page-head{display:block}.page-head .local-badge{display:inline-flex;margin-top:10px}.page-head h1{font-size:22px}.card{padding:15px;border-radius:9px}textarea{min-height:280px}.nav{flex:1;text-align:center}.nav{width:100%}nav{display:flex;width:100%;padding:9px 10px;gap:6px}header{height:60px}.login-card{width:100%;max-width:420px}.control{margin-bottom:21px}.range-note{line-height:1.5}.processing{width:100%}}


/* V12 — Dark UI consistency */
html{scrollbar-color:#343746 #0b0c12;scrollbar-width:thin}
body{scrollbar-color:#343746 #0b0c12;scrollbar-width:thin}
*{scrollbar-width:thin;scrollbar-color:#343746 #0b0c12}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-track{background:#0b0c12;border-radius:8px}
*::-webkit-scrollbar-thumb{background:#343746;border:2px solid #0b0c12;border-radius:8px}
*::-webkit-scrollbar-thumb:hover{background:#45495c}
*::-webkit-scrollbar-corner{background:#0b0c12}

button,
button.primary,
button.ghost{
  appearance:none;
  -webkit-appearance:none;
  font-family:inherit;
  border-radius:8px;
  font-weight:600;
  letter-spacing:0;
}
button.primary{
  background:#19152a;
  border:1px solid #5b3c9f;
  color:#d8ccff;
  box-shadow:0 6px 18px rgba(0,0,0,.22);
}
button.primary:hover{background:#211a38;border-color:#7955c7;color:#eeeaff}
button.primary:focus-visible,
button.ghost:focus-visible,
.nav:focus-visible{outline:2px solid #7250c4;outline-offset:2px}
button.ghost{
  background:#11131c;
  border:1px solid #303342;
  color:#cfd2df;
  box-shadow:none;
}
button.ghost:hover{background:#181b27;border-color:#45495c;color:#f4f4fa}
button.ghost:disabled,button.primary:disabled{background:#10121a;border-color:#292c38;color:#666b7b;box-shadow:none}

/* Login button uses the same dark button system */
#loginForm button{width:100%;margin-top:10px;min-height:42px}

/* Form controls stay inside the dark theme */
input[type=password],textarea,
input[type=password]:focus,textarea:focus{
  color:#f5f5fa;
  background:#0d0f17;
}
input[type=password]:focus,textarea:focus{border-color:#4a3b70;box-shadow:0 0 0 2px rgba(139,92,246,.08)}

/* Native audio control — dark where browser permits */
audio{color-scheme:dark}

/* Slider — explicitly dark in all supported browsers */
.control input[type=range]{
  background:#20232e;
  border:0;
  color-scheme:dark;
}
.control input[type=range]::-webkit-slider-runnable-track{background:#20232e}
.control input[type=range]::-webkit-slider-thumb{background:#8b5cf6;border-color:#b9a4ff;box-shadow:0 0 0 3px #11131c}
.control input[type=range]::-moz-range-track{background:#20232e}
.control input[type=range]::-moz-range-progress{background:#7650cf}
.control input[type=range]::-moz-range-thumb{background:#8b5cf6;border-color:#b9a4ff;box-shadow:0 0 0 3px #11131c}

/* Consistent action buttons */
.actions{align-items:stretch}
.actions button{min-height:42px;margin:0!important}
.actions .primary{flex:1}
.actions .ghost{min-width:110px}
.card-title .small{min-height:36px}

@media(max-width:760px){
  .actions{grid-template-columns:1fr}
  .actions button{width:100%!important}
  .card-title{gap:10px}
  .card-title .small{flex:0 0 auto}
}
