:root {
  --blue: #0b4eae;
  --dark: #073b82;
  --cyan: #18c7e8;
  --bg: #f1f4f8;
  --text: #20242a;
  --muted: #6a7078;
  --line: #e2e7ed;
  --ok: #08bf5b;
  --warn: #e6a700;
  --err: #d64545;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(7, 59, 130, 0.12);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(24, 199, 232, 0.18), transparent 60%),
    radial-gradient(900px 360px at 100% 0%, rgba(11, 78, 174, 0.16), transparent 55%),
    var(--bg);
  min-height: 100vh;
}
.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.brand { display: flex; gap: 14px; align-items: center; }
.mark {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, var(--dark), var(--blue));
  color: white; display: grid; place-items: center;
  font-weight: 800; font-size: 22px;
  box-shadow: var(--shadow);
}
h1 { margin: 0; font-size: 1.35rem; color: var(--dark); }
.tag { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.pill {
  background: white; border: 1px solid var(--line);
  color: var(--blue); border-radius: 999px;
  padding: 8px 12px; font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
}
.dropzone {
  background: var(--card);
  border: 2px dashed #b7c7e6;
  border-radius: 20px;
  padding: 36px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, background .15s;
  cursor: pointer;
}
.dropzone.dragover {
  border-color: var(--cyan);
  background: #f3fbff;
  transform: translateY(-1px);
}
.dz-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  color: white; font-weight: 800; letter-spacing: .04em;
}
.dropzone h2 { margin: 0 0 6px; color: var(--dark); font-size: 1.25rem; }
.dropzone p { margin: 0 0 16px; color: var(--muted); }
.card {
  margin-top: 18px;
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 231, 237, 0.9);
}
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.card h2 { margin: 0; font-size: 1.1rem; color: var(--dark); }
.badge {
  border-radius: 999px; padding: 6px 12px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em;
  background: #eef2f7; color: var(--muted);
}
.badge.ok { background: #e7f9ef; color: #0a8f45; }
.badge.review { background: #fff6da; color: #9a6d00; }
.badge.err { background: #fdecec; color: #b42318; }
.badge.loading { background: #e8f4ff; color: var(--blue); }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 16px 0 8px;
}
.grid .full { grid-column: 1 / -1; }
dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
dd { margin: 0; font-weight: 600; line-height: 1.35; word-break: break-word; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  appearance: none; border: 0; border-radius: 12px;
  padding: 12px 16px; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.btn.primary { background: linear-gradient(135deg, var(--dark), var(--blue)); color: white; }
.btn.ghost { background: #eef2f7; color: var(--dark); }
.btn.disabled, .btn[aria-disabled="true"] {
  opacity: 0.45; pointer-events: none; cursor: not-allowed;
}
.progress {
  height: 6px; border-radius: 999px; background: #e8eef7; overflow: hidden; margin: 12px 0 4px;
}
.progress .bar {
  height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
footer {
  margin-top: 28px; text-align: center; color: var(--muted); font-size: 0.82rem;
}
@media (max-width: 640px) {
  .top { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .pill { align-self: flex-start; }
}
