:root {
  --ink: #1d2327; --muted: #6b7378; --line: #dfe3e6; --bg: #f6f7f8;
  --accent: #1f5f8b; --ok: #2e7d4f; --err: #b3261e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; letter-spacing: .04em; }
.brand span { font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
main { max-width: 820px; margin: 32px auto; padding: 0 20px; }
section { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-bottom: 20px; }
h1 { font-size: 1.4rem; margin: 0 0 12px; }
h2 { font-size: 1.05rem; margin: 28px 0 10px; }
section > h2:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row input { flex: 1 1 220px; }
input {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
button {
  padding: 10px 16px; border: 0; border-radius: 6px; background: var(--accent);
  color: #fff; font: inherit; cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
button.link, button.small { background: none; color: var(--accent); padding: 0 4px; }
button.danger { color: var(--err); }
.drop {
  border: 2px dashed var(--line); border-radius: 8px; padding: 40px 20px; text-align: center;
  cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: .15s;
}
.drop:hover, .drop:focus, .drop.over { border-color: var(--accent); background: #f0f6fa; outline: none; }
.drop span { color: var(--muted); }
.list { list-style: none; padding: 0; margin: 12px 0 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.name { word-break: break-all; }
.bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.done .bar > div { background: var(--ok); }
.failed .status { color: var(--err); }
.status { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.msg { padding: 10px 14px; border-radius: 6px; background: #fff3f2; color: var(--err); border: 1px solid #f1c9c6; }
.msg.ok { background: #f0f8f3; color: var(--ok); border-color: #c5e4d0; }
