:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe2ee;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top right, #e2e8f0, #f8fafc 40%, #eef2ff);
  color: var(--text);
}

.app-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.hero h1 {
  margin: 4px 0 8px;
  font-size: 2rem;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin: 0;
}

.subtitle,
.muted,
.status {
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 18px;
  padding: 18px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}

h2 {
  margin-top: 0;
}

.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

input[type="file"] {
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  padding: 8px;
  background: #f8fafc;
  min-width: 270px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
}

.stat-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.stat-item .label {
  font-size: 0.82rem;
  color: var(--muted);
}

.stat-item .value {
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 4px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
}

th {
  background: var(--accent-soft);
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .card {
    padding: 14px;
  }
}
