:root{
  --bg:#141414; --card:#1c1c1c; --line:#2a2a2a; --txt:#fff; --dim:#9a9a9a;
  --orange:#f7971e; --green:#52d689; --red:#ff5c5c;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html,body{margin:0; height:100%}
body{background:var(--bg); color:var(--txt); font:16px/1.5 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
header{display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 18px; border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--bg); z-index:5}
.brand b{color:var(--orange); font-size:20px; letter-spacing:.5px}
.brand span{margin-left:8px; font-size:15px; color:var(--dim)}
.status{display:flex; align-items:center; gap:8px; font-size:14px; color:var(--dim)}
.dot{width:10px; height:10px; border-radius:50%; background:#555; display:inline-block}
.status.on .dot{background:var(--green); box-shadow:0 0 8px var(--green)}
.status.off .dot{background:var(--red)}
main{padding:16px; max-width:1100px; margin:0 auto}
.card{background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:18px}
.lab{display:block; font-size:13px; color:var(--dim); margin:0 0 6px}
.lab b{color:var(--orange); font-size:14px}
textarea{width:100%; background:#111; color:var(--txt); border:1px solid var(--line); border-radius:10px;
  padding:12px; font:16px/1.6 ui-monospace,Menlo,Consolas,monospace; resize:vertical}
.row{display:flex; gap:14px; flex-wrap:wrap; align-items:flex-end; margin-top:14px}
.fld{flex:1 1 220px; min-width:200px}
select{width:100%; background:#111; color:var(--txt); border:1px solid var(--line); border-radius:10px; padding:11px 10px; font-size:15px}
input[type=range]{width:100%; accent-color:var(--orange); height:34px}
.btns{align-items:center; justify-content:flex-start}
button{border:0; border-radius:10px; padding:14px 26px; font-size:17px; font-weight:600; cursor:pointer}
button.primary{background:var(--orange); color:#101010}
button.ghost{background:#262626; color:var(--txt)}
button.small{padding:9px 14px; font-size:14px; border-radius:8px}
button:disabled{opacity:.5}
.hint{color:var(--dim); font-size:13px}
.list h2{font-size:15px; color:var(--dim); font-weight:600; margin:8px 0 10px}
.item{background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:10px}
.item .txt{font-size:17px; margin-bottom:8px; word-break:break-all}
.item .meta{font-size:12px; color:var(--dim); display:flex; gap:12px; flex-wrap:wrap; margin-bottom:10px}
.item audio{width:100%; height:38px; margin-bottom:10px}
.item .acts{display:flex; gap:8px; flex-wrap:wrap}
.item.err{border-color:var(--red)}
.item.err .txt{color:var(--red)}
@media (max-width:600px){ .fld{flex:1 1 100%} button{padding:15px 20px} }

.login{max-width:440px; margin:48px auto; padding:0 16px}
.login h2{font-size:16px; color:var(--dim); margin:0 0 12px}
.login input{width:100%; background:#111; color:var(--txt); border:1px solid var(--line); border-radius:10px; padding:14px; font-size:17px}
header .who{font-size:13px; color:var(--orange); margin-right:10px}
.status button.small{padding:7px 12px; font-size:13px}

/* ---------- v2：进度 / 本次生成 / 提示 ---------- */
.list h2{display:flex; align-items:center; gap:10px}
.h2btns{margin-left:auto}
.progwrap{margin-top:14px}
.prog{height:8px; background:#111; border:1px solid var(--line); border-radius:99px; overflow:hidden}
.prog>div{height:100%; width:0; background:linear-gradient(90deg,#f7971e,#ffd08a); transition:width .25s ease}
.progtxt{margin-top:8px; font-size:13px; color:var(--orange); word-break:break-all}
.list.batch{border-left:3px solid var(--orange); padding-left:14px; border-radius:4px}
.item.fresh{border-color:var(--orange); box-shadow:0 0 0 1px rgba(247,151,30,.35)}
.tag{display:inline-block; margin-left:6px; padding:1px 7px; border-radius:99px; font-size:11px; background:var(--orange); color:#101010; vertical-align:2px}
.errbox{font-size:13px; color:#ffb4b4; background:rgba(255,92,92,.08); border:1px dashed rgba(255,92,92,.45);
  border-radius:8px; padding:8px 10px; margin:6px 0 10px; word-break:break-all}
.empty{color:var(--dim); font-size:14px; padding:14px; border:1px dashed var(--line); border-radius:12px}
.toast{position:fixed; left:50%; bottom:28px; transform:translate(-50%,24px); max-width:90vw;
  background:#262626; color:#fff; border:1px solid var(--line); border-left:4px solid var(--orange);
  padding:13px 18px; border-radius:12px; font-size:15px; opacity:0; pointer-events:none;
  transition:opacity .2s, transform .2s; z-index:50; box-shadow:0 8px 26px rgba(0,0,0,.45)}
.toast.show{opacity:1; transform:translate(-50%,0)}
.toast.ok{border-left-color:var(--green)}
.toast.err{border-left-color:var(--red)}

/* ---------- v3：Count（按速度生成）区块 ---------- */
input[type=number]{width:100%; background:#111; color:var(--txt); border:1px solid var(--line);
  border-radius:10px; padding:11px 10px; font-size:15px}
