:root {
  --bg: #f6f5f1;
  --panel: #ffffff;
  --ink: #1d1d1b;
  --muted: #6d6b64;
  --line: #dcd9d0;
  --accent: #4a7a2c;
  --accent-ink: #ffffff;
  --row: #faf9f6;
  --h: 34px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --panel: #1f1f1c;
    --ink: #ecebe6;
    --muted: #9b998f;
    --line: #34332f;
    --accent: #8cbf5a;
    --accent-ink: #12140f;
    --row: #242420;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 32px; }
a { color: var(--accent); }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 650; }
h2 { font-size: 14px; margin: 16px 0 6px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; vertical-align: middle; }
.sub { margin: 0 0 14px; color: var(--muted); }
.muted { color: var(--muted); font-weight: 400; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }
.bar label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
select, input[type=file], button {
  height: var(--h); font: inherit; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 8px;
}
input[type=file] { padding: 5px 6px; max-width: 250px; }
select { min-width: 120px; }
button { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; padding: 0 18px; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button.ghost { background: transparent; color: var(--accent); height: 26px; padding: 0 10px; font-weight: 500; }
.status { margin: 10px 0 6px; color: var(--muted); min-height: 20px; }
.status.err { color: #b3402a; }
.progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .tables { grid-template-columns: 1fr; } }
.tables > div { min-width: 0; }
.tbl { overflow: auto; max-height: 300px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.tbl.tall { max-height: 520px; }
.tbl:empty { display: none; }
table { border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; width: max-content; min-width: 100%; }
th, td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { position: sticky; top: 0; background: var(--panel); font-weight: 600; z-index: 1; }
tr:nth-child(even) td { background: var(--row); }
td.pred { font-weight: 600; color: var(--accent); }
td.bad { color: #b3402a; }
footer { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
