:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1020;
  color: #f8fafc;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top, #18213d 0, #0b1020 45%, #070b15 100%); min-height: 100vh; }
button, input { font: inherit; }
.shell { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 80px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: #7dd3fc; font-weight: 700; }
h1 { margin: 0; font-size: clamp(34px, 7vw, 64px); line-height: 1; }
.subtitle { margin: 10px 0 0; color: #94a3b8; }
.card { background: rgba(15, 23, 42, .86); border: 1px solid rgba(148, 163, 184, .16); border-radius: 18px; padding: 20px; margin-top: 18px; box-shadow: 0 20px 80px rgba(0,0,0,.22); backdrop-filter: blur(14px); }
label { display: block; font-weight: 700; margin-bottom: 10px; }
.submit-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input { min-width: 0; background: #0b1220; color: #f8fafc; border: 1px solid #334155; border-radius: 12px; padding: 13px 14px; outline: none; }
input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .12); }
button, .download { border: 0; border-radius: 12px; padding: 12px 16px; background: #0ea5e9; color: #fff; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: #1e293b; color: #cbd5e1; }
.hint, .empty { color: #94a3b8; font-size: 14px; margin-bottom: 0; }
.section-head, .job-head, .job-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0; font-size: 20px; }
.jobs { display: grid; gap: 12px; margin-top: 16px; }
.job { background: #0b1220; border: 1px solid #243146; border-radius: 14px; padding: 14px; }
.job-head span, .job-meta { color: #94a3b8; font-size: 13px; }
.progress { height: 9px; background: #111827; overflow: hidden; border-radius: 999px; margin: 12px 0 7px; }
.progress > div { height: 100%; background: linear-gradient(90deg, #0284c7, #38bdf8); border-radius: inherit; transition: width .25s ease; }
.download { margin-top: 12px; background: #22c55e; }
.error { color: #fca5a5; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 880px); padding-top: 24px; }
  .submit-row { grid-template-columns: 1fr; }
  button { width: 100%; }
}
