:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f7fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #eef4fb 0%, #f7f9fc 45%, #f4f7fb 100%); }

button, input { font: inherit; }

.container { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 28px; }

.header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: #667085; margin-bottom: 8px; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
.subtitle { margin: 12px 0 0; color: #667085; font-size: 16px; }

.status-pill { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #fff; border: 1px solid #dfe5ee; border-radius: 999px; font-size: 13px; color: #475467; white-space: nowrap; box-shadow: 0 4px 18px rgba(16,24,40,.04); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }

.card { background: rgba(255,255,255,.94); border: 1px solid #e1e7ef; border-radius: 18px; padding: 26px; margin-bottom: 18px; box-shadow: 0 12px 40px rgba(16,24,40,.06); }
h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.card p { color: #667085; margin: 7px 0 0; font-size: 14px; }

.dropzone { min-height: 220px; margin-top: 22px; border: 1.5px dashed #b8c3d4; border-radius: 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 9px; cursor: pointer; background: #fafcff; transition: .2s ease; }
.dropzone:hover, .dropzone.dragover { border-color: #1d4ed8; background: #f5f8ff; }
.dropzone input { display: none; }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #eaf0ff; color: #1d4ed8; font-size: 25px; font-weight: 700; }
.dropzone strong { font-size: 15px; }
.dropzone span { color: #98a2b3; font-size: 13px; }

.actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.button { border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 750; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button.primary { background: #172033; color: #fff; }

.progress-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.progress-head > strong { font-size: 28px; }
.progress-track { height: 12px; background: #e9eef5; border-radius: 99px; overflow: hidden; margin: 22px 0; }
.progress-bar { width: 0%; height: 100%; background: #1d4ed8; border-radius: inherit; transition: width .35s ease; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats div { padding: 14px; background: #f8fafc; border-radius: 12px; }
.stats span { display: block; color: #667085; font-size: 12px; margin-bottom: 5px; }
.stats strong { font-size: 20px; }

.result-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.alert { padding: 14px 16px; border-radius: 12px; background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; margin-bottom: 18px; font-size: 14px; }
.hidden { display: none !important; }
footer { text-align: center; color: #98a2b3; font-size: 12px; padding: 12px 0; }

@media (max-width: 700px) {
  .container { padding-top: 28px; }
  .header, .result-card { flex-direction: column; }
  .status-pill { align-self: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .actions .button, .result-card .button { width: 100%; }
}
