* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.sub {
  margin: 0 0 22px;
  color: #6b7280;
}

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

.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  min-height: 180px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 18px;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #2563eb;
  background: #eff6ff;
}

.drop-zone-inner {
  text-align: center;
  display: grid;
  gap: 6px;
}

.drop-zone-inner strong {
  font-size: 18px;
}

.drop-zone-inner span {
  color: #6b7280;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.file-name {
  font-weight: 600;
}

.hint {
  color: #6b7280;
  font-size: 14px;
}

.btn {
  appearance: none;
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.progress-wrap {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #2563eb;
  transition: width 0.15s linear;
}

.status {
  min-height: 24px;
  color: #b91c1c;
  font-weight: 600;
}

.success-box {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 14px;
  padding: 16px;
}

.success-box p {
  margin: 0 0 10px;
  font-weight: 700;
  color: #166534;
}

.download-link {
  color: #0f766e;
  text-decoration: none;
  font-weight: 700;
}

.hidden {
  display: none;
}