@font-face { font-family: 'Geist'; font-weight: 100 900; font-display: swap; src: url('geist-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: 'Geist'; font-weight: 100 900; font-display: swap; src: url('geist-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193, U+2212; }
@font-face { font-family: 'Geist Mono'; font-weight: 100 900; font-display: swap; src: url('geist-mono-latin.woff2') format('woff2'); }
:root {
  --bg: #fbfbfa; --paper: #fff; --ink: #16181d; --dim: #5d636e; --line: #e3e4e8; --acc: #e5484d; --ok: #2f9e44;
  --font: 'Geist', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root { --bg: #0f1013; --paper: #16181d; --ink: #ededef; --dim: #a0a5b0; --line: #2a2d35; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
main { max-width: 680px; margin: 0 auto; padding: 56px 16px 80px; }
a { color: inherit; }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--dim); text-transform: uppercase; }
.kicker a { text-decoration: none; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 10px; font-weight: 650; }
h2 { font-size: 18px; margin: 0 0 10px; font-weight: 620; }
.lead { color: var(--dim); margin: 0 0 28px; font-size: 17px; }
.lead.src { font: 14px/1.4 var(--mono); word-break: break-all; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; }
label { font-weight: 560; font-size: 14px; }
input[type=url] { width: 100%; font: 16px/1.3 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; }
input[type=url]:focus, .file:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.hint { color: var(--dim); font-size: 13.5px; margin: 0; }
.or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; margin: 4px 0; }
.or::before, .or::after { content: ''; height: 1px; background: var(--line); }
.file { display: block; border: 1px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--dim); cursor: pointer; font-weight: 500; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file.has { color: var(--ink); border-style: solid; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--dim); font-size: 14px; margin-top: 4px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); }
button { font: 600 16px/1 var(--font); color: var(--paper); background: var(--ink); border: 0; border-radius: 10px; padding: 15px 18px; cursor: pointer; margin-top: 6px; }
button:disabled { opacity: .55; cursor: progress; }
.msg { margin: 0; font-size: 14px; color: var(--dim); min-height: 1.4em; }
.msg.err { color: var(--acc); }
.jobs { margin-top: 40px; }
.jobs ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.jobs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.jobs li a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobs li a:hover { text-decoration: underline; }
.st { color: var(--dim); font-size: 13px; white-space: nowrap; }
.st-done { color: var(--ok); }
.st-failed { color: var(--acc); }
.status #stage { font-size: 18px; font-weight: 600; margin: 4px 0 0; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 30%; background: var(--ink); border-radius: 4px; animation: run 1.6s ease-in-out infinite; }
@keyframes run { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .bar i { animation-duration: 6s; } }
footer { margin-top: 40px; color: var(--dim); font-size: 13px; }
