:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1c2434;
  --muted: #5b677a;
  --border: #d7deea;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --ok: #166534;
  --ok-bg: #dcfce7;
  --warn: #9a3412;
  --warn-bg: #ffedd5;
  --err: #991b1b;
  --err-bg: #fee2e2;
  --shadow: 0 10px 30px rgba(28, 36, 52, 0.08);
  --radius: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, #dbeafe 0, transparent 40%),
    radial-gradient(circle at top right, #e0e7ff 0, transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.header h1 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 62ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.upload-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.upload-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.upload-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.upload-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.upload-card input[type="file"] {
  margin-top: 8px;
}

.file-name {
  font-size: 0.9rem;
  color: var(--accent);
  word-break: break-all;
}

.actions {
  margin-top: 22px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 650;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

button:hover:not(:disabled) {
  background: var(--accent-hover);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  line-height: 1.5;
}

.status.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.status.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.status.err {
  background: var(--err-bg);
  color: var(--err);
}

.status ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.status-block {
  margin-top: 12px;
}

.status-block-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.help {
  margin-top: 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.help h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.help ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.help code {
  background: #eef2ff;
  color: #3730a3;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}
