:root {
  --bg: #eef3fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #dbe4f0;
  --blue: #2563eb;
  --dark: #0f172a;
  --green: #079455;
  --orange: #dc6803;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, #dbeafe, transparent 32rem), var(--bg);
  color: var(--text);
}
.shell {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto;
}
.hero {
  background: linear-gradient(135deg, #111827, #1d4ed8);
  color: white;
  border-radius: 28px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .18);
}
.hero h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 48px); }
.hero p { margin: 0; max-width: 720px; color: rgba(255,255,255,.84); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 10px !important;
}
.pill {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.card {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}
.card h2 { margin: 0 0 14px; }
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.muted { color: var(--muted); }
.hidden { display: none !important; }
.upload {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
input, select, button {
  font: inherit;
}
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  background: var(--dark);
  color: white;
}
button.primary { background: var(--blue); }
button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}
table {
  border-collapse: collapse;
  min-width: 1120px;
  width: 100%;
}
th, td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px;
  vertical-align: top;
}
th {
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
td.line {
  font-weight: 900;
  color: var(--blue);
}
.inline {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px;
  margin-top: 8px;
}
.search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}
.alert {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.alert.ok {
  background: #ecfdf3;
  color: #067647;
  border-color: #abefc6;
}
pre {
  white-space: pre-wrap;
  background: #0b1220;
  color: #d1e7ff;
  padding: 18px;
  border-radius: 16px;
  overflow: auto;
}
@media (max-width: 760px) {
  .hero, .card-head { flex-direction: column; }
  .inline, .search { grid-template-columns: 1fr; }
}
