:root {
  --bg: #fafafa;
  --card: #fff;
  --line: #e7e8ec;
  --txt: #14151a;
  --dim: #71737d;
  --accent: #111827;
  --accent2: #6366f1;
  --danger: #dc2626;
  --ok: #16a34a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--txt); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 1rem; letter-spacing: -.01em; }
.tag { color: var(--dim); font-size: .72rem; font-weight: 400; margin-left: 8px; }
.disk { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--dim); }
.bar { width: 120px; height: 6px; background: #eceef2; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6366f1, #8b5cf6); transition: width .35s; }

main { max-width: 820px; margin: 0 auto; padding: 28px 20px 70px; }

.drop {
  border: 1.5px dashed #d6d9e0; border-radius: 16px; background: #fff;
  text-align: center; padding: 44px 20px; cursor: pointer; transition: .15s;
}
.drop:hover { border-color: #b9bec9; }
.drop.over { border-color: var(--accent2); background: #f5f4ff; }
.big { font-size: 1.9rem; }
.drop h1 { font-size: 1.15rem; font-weight: 650; margin-top: 8px; letter-spacing: -.01em; }
.drop p { color: var(--dim); font-size: .85rem; margin-top: 4px; }
.drop .meta { font-size: .75rem; margin-top: 10px; color: #9aa0ab; }
.link { background: none; border: 0; padding: 0; color: var(--accent2); font-weight: 600; cursor: pointer; }

.queue { display: grid; gap: 8px; margin-top: 14px; }
.q { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.qtop { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; margin-bottom: 7px; }
.qname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.qstat { color: var(--dim); font-size: .75rem; white-space: nowrap; }
.qbar { height: 5px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.qbar i { display: block; height: 100%; width: 0; background: var(--accent2); transition: width .2s; }
.q.done .qbar i { background: var(--ok); }
.q.fail .qbar i { background: var(--danger); }

.head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 32px 0 12px; flex-wrap: wrap; }
.head h2 { font-size: .95rem; font-weight: 700; }
#count { color: var(--dim); font-weight: 400; font-size: .8rem; margin-left: 6px; }
#search { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 13px; font-size: .85rem; outline: none; min-width: 190px; }
#search:focus { border-color: var(--accent2); }

.files { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.row:hover { border-color: #d6dae2; }
.ico { width: 36px; height: 36px; border-radius: 9px; background: #f4f5f8; display: grid; place-items: center; font-size: 1.05rem; flex: 0 0 auto; }
.meta { flex: 1; min-width: 0; }
.name { font-weight: 600; font-size: .87rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { color: var(--dim); font-size: .74rem; }
.acts { display: flex; gap: 2px; flex: 0 0 auto; }
.ib { border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; font-size: .95rem; line-height: 1; }
.ib:hover { background: #f2f3f6; }
.ib.del:hover { background: #fdecec; }
.empty { color: var(--dim); font-size: .85rem; text-align: center; padding: 34px; }

footer { text-align: center; color: #a0a5ae; font-size: .72rem; padding: 24px; }
