* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
}

.wrap {
  max-width: 480px;
  margin: 48px auto;
  padding: 0 16px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
}

.hint {
  margin: 0 0 24px;
  color: #555;
  font-size: 0.95rem;
}

.dropzone {
  border: 2px dashed #9aa3af;
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  background: #fff;
  margin-bottom: 16px;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone.dragover {
  border-color: #2563eb;
  background: #eff6ff;
}

.file-btn {
  display: inline-block;
  margin: 8px 0;
  padding: 8px 14px;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.file-btn:hover {
  background: #1d4ed8;
}

.file-name {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #333;
  word-break: break-all;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

select {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
}

#submitBtn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

#submitBtn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.progress-panel {
  margin-top: 16px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: #2563eb;
  transition: width 0.25s ease;
}

.status {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: 0.9rem;
}

.status.error {
  color: #b91c1c;
}

.status.info {
  color: #1e40af;
}

.status.ok {
  color: #166534;
}
