:root {
  color-scheme: light dark;
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  line-height: 1.5;
  background: #0f172a;
  color: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 35%),
    #0f172a;
}

a {
  color: #38bdf8;
}

.app-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.app-header {
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #94a3b8;
}

.app-header h1 {
  margin: 0 0 8px;
  font-size: 2.4rem;
}

.subtitle {
  margin: 0;
  color: #94a3b8;
}

.card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.65);
  color: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.button.secondary {
  background: linear-gradient(135deg, #059669, #047857);
}

.hint,
.muted {
  color: #94a3b8;
}

.error {
  color: #fca5a5;
}

.error-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meta {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.meta div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}

.meta dt {
  color: #94a3b8;
}

.meta dd {
  margin: 0;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.875rem;
  background: rgba(148, 163, 184, 0.18);
}

.badge-completed {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.badge-failed {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.badge-in_progress,
.badge-queued,
.badge-pending {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

.downloads {
  margin-top: 24px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 640px) {
  .meta div {
    grid-template-columns: 1fr;
  }
}
