:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #d6deeb;
  --text: #1f2a37;
  --muted: #576074;
  --primary: #2f6fee;
  --ok: #0d8a4e;
  --warn: #bf4f2c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(140deg, #eef3ff, #f8fbff 35%, #eefcff);
  min-height: 100vh;
}

.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.card {
  width: min(720px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 18px 45px rgba(47, 111, 238, 0.11);
}

h1 {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
}

.hint {
  color: var(--muted);
  margin: 0 0 1rem;
}

.label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.dropzone {
  border: 1.8px dashed var(--line);
  border-radius: 14px;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.dropzone.dragging {
  border-color: var(--primary);
  background: #eaf0ff;
}

#files {
  display: none;
}

button {
  margin-top: 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.05);
}

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

.status,
.progress {
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
}

.status {
  border: 1px solid transparent;
  color: var(--muted);
}

.status.ok {
  border-color: #b9ecda;
  color: var(--ok);
  background: #f0fff5;
}

.status.warn {
  border-color: #f5cfbf;
  color: var(--warn);
  background: #fff4ef;
}

.status.info {
  border-color: #d5e2ff;
  background: #f1f6ff;
}
