:root {
  --bg: #0b0c0f; --card: #14161b; --card-2: #1b1e25; --line: #262a33; --text: #e9ecf2; --text-2: #a3aab8; --dim: #737b8b;
  --accent: #7cc4ff; --accent-ink: #06121d; --good: #5fd39a; --warn: #f2c14e; --bad: #ff6b6b;
  --r: 14px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; font-size: 15px; line-height: 1.5; }
.wrap { max-width: 640px; margin: 0 auto; padding: 48px 16px 32px; }
.top { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.logo { width: 44px; height: 44px; border-radius: 12px; background: url(icon.svg) center/cover; flex: none; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 6px; }
.sub { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.dim { color: var(--dim); }
p { margin: 0 0 14px; color: var(--text-2); }
.foot { text-align: center; color: var(--dim); font-size: 12px; margin-top: 18px; }
label { display: block; font-size: 13px; color: var(--text-2); margin: 0 0 6px; }
.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 196, 255, .18); }
.code { font: 600 26px ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .35em; text-align: center; height: 56px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font: 600 15px inherit; font-family: inherit; cursor: pointer; }
.btn:hover { border-color: #3a404c; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.link { background: none; border: none; color: var(--text-2); padding: 0; height: auto; font-weight: 500; text-decoration: underline; }
.btn:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.row .grow { flex: 1; }
form .btn { width: 100%; margin-top: 14px; }
.err { color: var(--bad); font-size: 14px; min-height: 0; margin-top: 10px; }
.err:empty { display: none; }
.note { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--text-2); margin: 0 0 16px; }
.note b { color: var(--text); }
.timer { font-variant-numeric: tabular-nums; }
.whoami { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.whoami b { color: var(--text); }
.drop { border: 2px dashed #343a46; border-radius: 12px; padding: 34px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(124, 196, 255, .05); }
.drop strong { display: block; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.drop span { color: var(--dim); font-size: 13px; }
.drop:focus-visible { outline: 3px solid rgba(124, 196, 255, .4); outline-offset: 2px; }
.list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.item { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.item .l1 { display: flex; gap: 10px; align-items: baseline; }
.item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.item .sz { color: var(--dim); font-size: 13px; white-space: nowrap; }
.bar { height: 6px; background: #252932; border-radius: 99px; overflow: hidden; margin: 9px 0 6px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .25s; }
.item.done .bar > i { background: var(--good); }
.item.failed .bar > i { background: var(--bad); }
.item .l2 { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); }
.item .l2 .st { flex: 1; }
.item.done .st { color: var(--good); }
.item.failed .st { color: var(--bad); }
h3 { font-size: 14px; margin: 24px 0 8px; color: var(--text-2); font-weight: 600; }
.files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.files li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; font-size: 14px; border-top: 1px solid var(--line); }
.files li:first-child { border-top: none; }
.files li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li span:last-child { color: var(--dim); white-space: nowrap; }
.big { font-size: 40px; line-height: 1; margin-bottom: 12px; }
@media (max-width: 480px) { .wrap { padding-top: 28px; } .card { padding: 18px; } .code { font-size: 22px; } }
.hint { color: var(--dim); font-size: 12px; margin-top: 6px; }
.note.mt { margin: 16px 0 0; }
