:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --primary: #2457d6;
  --ok: #067647;
  --warn: #b54708;
  --bad: #b42318;
  --info: #175cd3;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
.hero { padding: 48px 24px 32px; background: linear-gradient(135deg, #173ea5, #2f80ed); color: white; }
.hero > div { max-width: 1100px; margin: 0 auto; }
.eyebrow { margin: 0 0 10px; opacity: .85; font-weight: 700; letter-spacing: .04em; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); }
.lead { max-width: 760px; line-height: 1.65; font-size: 18px; opacity: .95; }
.container { max-width: 1100px; margin: -24px auto 40px; padding: 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 12px 30px rgba(16, 24, 40, .08); margin-bottom: 20px; }
.grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.upload-box { border: 1px dashed #98a2b3; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #fcfcfd; }
.label-title { font-weight: 800; }
.hint { color: var(--muted); font-size: 14px; }
input[type=file] { width: 100%; }
.actions { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
button { border: 0; border-radius: 12px; padding: 13px 18px; background: var(--primary); color: white; font-weight: 800; cursor: pointer; }
button.ghost { background: white; color: var(--primary); border: 1px solid #b2ccff; }
.status { margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: #eff8ff; color: #1849a9; border: 1px solid #b2ddff; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.metric strong { display: block; font-size: 28px; margin-top: 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
th { background: #f9fafb; font-size: 14px; color: #344054; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.badge.ok { background: #ecfdf3; color: var(--ok); }
.badge.warn { background: #fffaeb; color: var(--warn); }
.badge.bad { background: #fef3f2; color: var(--bad); }
.badge.info { background: #eff8ff; color: var(--info); }
.results-empty { color: var(--muted); padding: 20px 0; }
.details pre { white-space: pre-wrap; max-height: 420px; overflow: auto; background: #101828; color: #f9fafb; padding: 18px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
dialog { width: min(680px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(16,24,40,.55); }
footer { text-align: center; color: var(--muted); padding: 28px 16px 40px; }
@media (max-width: 760px) { .grid.two, .summary { grid-template-columns: 1fr; } .container { margin-top: -12px; } }
