:root{
  --bg:#f3f1eb;
  --surface:rgba(255,255,255,.92);
  --surface-strong:#fff;
  --ink:#151715;
  --muted:#71756f;
  --line:rgba(22,26,22,.1);
  --brand:#355cff;
  --soft:rgba(53,92,255,.09);
  --amber:#9b6a22;
  --violet:#7b65a6;
  --danger:#b64c42;
  --shadow:0 14px 30px rgba(35,39,31,.1);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none;
}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg,color-mix(in srgb,var(--bg),#fff 12%),var(--bg));color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
h1,h2,p{margin:0}
button,input,textarea{font:inherit}
button{cursor:pointer;transition:background .12s,border-color .12s,transform .12s,box-shadow .12s}
button:disabled{opacity:.45;cursor:not-allowed}
button:active:not(:disabled){transform:translateY(1px)}
button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid rgba(53,92,255,.2);outline-offset:3px}
.topbar{position:sticky;top:0;z-index:20;height:64px;display:flex;align-items:center;gap:22px;padding:0 28px;background:var(--surface-strong);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;white-space:nowrap}
.brand-symbol{width:31px;height:31px;border-radius:13px;background:var(--ink);color:var(--bg);display:grid;place-items:center}
.brand-symbol svg,.upload-art svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.top-nav{display:flex;align-items:center;gap:5px;margin-right:auto;padding:4px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.62)}
.top-nav span{display:inline-flex;align-items:center;min-height:33px;padding:8px 13px;border-radius:999px;color:var(--muted);font-size:11px}
.top-nav .active{background:var(--ink);color:var(--bg);font-weight:650}
.top-actions{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:10px;white-space:nowrap}
.connection{display:flex;align-items:center;gap:7px}
.connection i{width:5px;height:5px;border-radius:50%;background:var(--brand);display:block}
.tag{border:1px solid var(--line);border-radius:999px;padding:8px 11px;background:var(--surface-strong);color:var(--ink)}
main{max-width:1880px;margin:auto;padding:28px 28px 24px}
.upload-panel{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start;margin-bottom:16px;padding:22px 24px;border:1px solid var(--line);border-radius:28px;background:var(--surface);box-shadow:var(--shadow)}
.upload-art{position:relative;width:58px;height:58px;border-radius:18px;background:var(--ink);color:var(--bg);display:grid;place-items:center;line-height:1}
.upload-art svg{width:30px;height:30px;stroke-width:2}
.upload-art span{position:absolute;right:-4px;bottom:-3px;width:21px;height:21px;border-radius:50%;background:var(--brand);color:#fff;border:2px solid var(--surface-strong);display:grid;place-items:center;font-size:16px}
.upload-copy{min-width:0}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.section-heading h1{font-size:20px;line-height:1.25;letter-spacing:-.6px;font-weight:750}
.section-heading span{flex-shrink:0;padding:4px 8px;border-radius:999px;background:#eef1ff;color:var(--brand);font-size:10px;font-weight:700}
label{display:block;margin-bottom:8px;color:#565d58;font-size:11px;font-weight:650}
textarea,input{width:100%;min-width:0;border:1px solid var(--line);background:var(--surface-strong);color:var(--ink);outline:none}
textarea{display:block;min-height:120px;resize:vertical;border-radius:20px;padding:14px 16px;line-height:1.65;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:13px}
textarea::placeholder,input::placeholder{color:#a3aaa5}
textarea:focus,input:focus{border-color:rgba(53,92,255,.42);box-shadow:0 0 0 4px rgba(53,92,255,.08)}
.hint{margin-top:10px;color:var(--muted);font-size:11px;line-height:1.7}
.form-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-top:16px}
.form-bottom.single-action{justify-content:flex-end;align-items:center}
.option-toggle{display:inline-flex;align-items:center;gap:8px;margin:0;color:var(--ink);font-size:12px;font-weight:700;white-space:nowrap}
.option-toggle input{width:16px;min-height:16px;height:16px;margin:0;accent-color:var(--ink);box-shadow:none}
input{min-height:41px;border-radius:16px;padding:10px 13px}
button,.primary,.secondary{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:11px 18px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
button{background:var(--ink);color:var(--bg)}
button:hover:not(:disabled){box-shadow:0 8px 18px rgba(0,0,0,.12)}
button span{margin-left:4px}
.secondary{background:var(--surface-strong);border-color:var(--line);color:var(--ink);box-shadow:none}
.secondary:hover:not(:disabled){background:#f6f7f4;box-shadow:none}
.primary{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.compact{min-height:36px;padding:9px 14px}
#status.error{color:var(--danger)}
progress{display:block;width:100%;height:5px;margin-top:10px;border:0;border-radius:999px;background:#eef0eb;accent-color:var(--brand);overflow:hidden}
progress::-webkit-progress-bar{background:#eef0eb;border-radius:999px}
progress::-webkit-progress-value{background:var(--brand);border-radius:999px}
.queue-card{border:1px solid var(--line);border-radius:28px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 24px 16px;background:var(--surface)}
.section-head h2{display:flex;align-items:center;gap:9px;font-size:16px;letter-spacing:-.3px}
.section-head h2 span{padding:3px 8px;border-radius:999px;background:#f0f2ef;color:var(--muted);font-size:10px;font-weight:500}
.section-head p{margin-top:7px;color:var(--muted);font-size:10px;min-height:16px}
.query-strip{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin:0 24px 14px;padding:10px 14px;border:1px solid var(--line);border-radius:18px;background:var(--surface-strong);color:var(--muted);font-size:11px}
.query-strip span{display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap}
.query-strip strong{color:var(--ink);font-size:17px;font-variant-numeric:tabular-nums}
.query-strip p{flex:1;min-width:220px;color:var(--muted);line-height:1.6}
.query-strip progress{flex-basis:100%;margin:0}
.queue-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 24px 14px}
.filter-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:3px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--surface-strong)}
.filter-tabs .secondary{min-height:32px;padding:8px 11px;border:0;background:transparent;color:var(--muted);font-size:10px}
.filter-tabs .secondary:hover{background:#f0f2ef;color:var(--ink)}
.table-help{margin:0;padding:0 24px 14px;color:var(--muted);font-size:10px;line-height:1.7}
footer{display:flex;justify-content:space-between;gap:18px;padding:18px 4px 8px;color:#8b918a;font-size:9px;letter-spacing:1px}
footer span{letter-spacing:0}
[hidden]{display:none!important}
@media(max-width:1000px){.form-bottom{align-items:stretch;flex-direction:column}.top-actions .tag{display:none}}
@media(max-width:700px){.topbar{height:auto;min-height:58px;padding:12px 16px;gap:10px;flex-wrap:wrap}.top-nav{order:3;width:100%;justify-content:center}.top-actions{margin-left:auto}.connection{display:none}main{padding:16px}.upload-panel{grid-template-columns:1fr;padding:18px;border-radius:24px}.upload-art{width:48px;height:48px;border-radius:15px}.upload-art svg{width:25px;height:25px}.section-heading{flex-direction:column;gap:8px}.query-strip{margin-inline:16px}.query-strip p{min-width:100%}.queue-tools{align-items:stretch;flex-direction:column}.filter-tabs{border-radius:18px}.filter-tabs .secondary{flex:1}.section-head{align-items:flex-start;flex-direction:column}.section-head h2{align-items:flex-start;flex-direction:column}footer{flex-direction:column}}
