:root {
  --bg: #0f172a; --panel: #ffffff; --ink: #0f172a; --muted: #64748b;
  --accent: #2563eb; --line: #e2e8f0; --warn: #b45309;
}
* { box-sizing: border-box; }
body {
  margin: 0; font: 15px/1.5 system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: #f1f5f9;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--bg); color: #fff;
}
.brand { font-weight: 700; letter-spacing: .2px; }
main { max-width: 1000px; margin: 24px auto; padding: 0 16px; }

.btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 18px; font-size: 15px; cursor: pointer;
}
.btn.ghost { background: transparent; border: 1px solid #475569; color: #e2e8f0; }
.btn:hover { filter: brightness(1.08); }

.dropzone {
  background: var(--panel); border: 2px dashed var(--line); border-radius: 14px;
  padding: 40px; text-align: center;
}
.dropzone h1 { margin: 0 0 6px; font-size: 24px; }
.hint { list-style: none; padding: 0; color: var(--muted); display: inline-block; text-align: left; }
.hint code { background: #f1f5f9; padding: 1px 6px; border-radius: 5px; }
.status { margin-top: 14px; min-height: 20px; color: var(--muted); }
.status.error { color: #dc2626; font-weight: 600; }
.privacy { color: var(--muted); font-size: 13px; margin-top: 18px; }

.report { background: var(--panel); border-radius: 14px; padding: 24px; }
.report-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.report h2 { margin: 0; }
.meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.notes { margin: 8px 0 18px; }
.note { display: block; color: var(--warn); font-size: 13px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 7px 10px; text-align: right; }
th { background: #f8fafc; text-align: right; }
td:first-child, th:first-child { text-align: left; }

.chart { margin: 8px 0 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: #eff6ff; color: var(--accent); border-radius: 999px; padding: 4px 12px; font-size: 13px; }

@media print {
  .topbar, .dropzone { display: none; }
  body { background: #fff; }
  .report { box-shadow: none; padding: 0; }
}
