:root { --bg:#f4f5f3; --surface:#fcfcfb; --fg:#15181a; --fg2:#4b5155; --muted:#757b7a; --line:#dfe2de; --row:#eef0ec;
  --accent:#2a78d6; --good:#1d6b2e; --warn:#8a6d1f; --bad:#b3312f;
  --g-op:#5598e7; --g-crit:#eb6834; --g-job:#1baf7a;
  --mono:"IBM Plex Mono", ui-monospace, Consolas, monospace; --sans:"Segoe UI", system-ui, -apple-system, sans-serif; }
@media (prefers-color-scheme: dark) { :root { --bg:#111312; --surface:#1a1c1b; --fg:#f1f3f2; --fg2:#b8bebb; --muted:#8a908d;
  --line:#2b2f2d; --row:#202322; --accent:#3987e5; --good:#5cc46f; --warn:#e0b84d; --bad:#ef7a77;
  --g-op:#3987e5; --g-crit:#d95926; --g-job:#199e70; color-scheme:dark; } }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:15px/1.5 var(--sans); }
.wrap { max-width:1200px; margin:0 auto; padding:28px 16px 48px; display:grid; gap:20px; }
a { color:var(--accent); }
h1 { margin:0; font-size:1.6rem; } h2 { margin:0; font-size:1.05rem; }
.lead { color:var(--fg2); margin:4px 0 0; max-width:820px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:12px; }
.tile { background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:12px 14px; }
.tile .k { font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.tile .v { font:600 1.5rem/1.2 var(--mono); font-variant-numeric:tabular-nums; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:14px; display:grid; gap:10px; min-width:0; }
.tools { display:flex; flex-wrap:wrap; gap:10px; align-items:center; position:sticky; top:0; z-index:5; }
.fams { display:grid; gap:16px; }
.fam[hidden] { display:none; }
.fhead { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; }
.fsum { color:var(--muted); font-size:.85rem; }
.tools input, .tools select { font:inherit; font-size:.9rem; padding:5px 9px; border:1px solid var(--line); border-radius:6px;
  background:var(--bg); color:var(--fg); }
.tools input { flex:1; min-width:160px; }
.count { color:var(--muted); font-size:.85rem; }
.tbox { overflow-x:auto; border:1px solid var(--line); border-radius:6px; }
table { width:100%; border-collapse:collapse; font-size:.86rem; }
.fam table { table-layout:fixed; min-width:760px; }  /* (same columns in every card) */
.fam th:nth-child(1) { width:13%; } .fam th:nth-child(2) { width:21%; } .fam th:nth-child(3) { width:15%; }
.fam th:nth-child(4) { width:13%; } .fam th:nth-child(5) { width:20%; } .fam th:nth-child(6) { width:10%; } .fam th:nth-child(7) { width:8%; }
th { background:var(--surface); text-align:left; font-size:.7rem; letter-spacing:.05em;
  text-transform:uppercase; color:var(--muted); padding:7px 8px; border-bottom:1px solid var(--line); cursor:pointer; white-space:nowrap; }
td { padding:6px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
td .sub { font-size:.76rem; color:var(--muted); font-family:var(--sans); margin-top:1px; }
td.n .sub { font-family:var(--mono); }
td.n, th.n { text-align:right; font-family:var(--mono); font-variant-numeric:tabular-nums; }
tbody tr:nth-child(even) td { background:var(--row); }
.chip { font-size:.72rem; font-weight:600; padding:1px 8px; border-radius:99px; border:1px solid currentColor; }
.improves { color:var(--good); } .equals { color:var(--accent); } .above { color:var(--warn); }
.info { display:flex; flex-wrap:wrap; gap:6px 18px; font-family:var(--mono); font-size:.86rem; color:var(--fg2); }
#gbox { overflow:auto; border:1px solid var(--line); border-radius:6px; background:var(--surface); }
.legend { display:flex; flex-wrap:wrap; gap:6px 16px; font-size:.82rem; color:var(--fg2); align-items:center; }
.sw { width:11px; height:11px; border-radius:2px; display:inline-block; margin-right:6px; vertical-align:-1px; }
#tip { position:fixed; pointer-events:none; background:var(--fg); color:var(--bg); font:12px/1.35 var(--mono); padding:5px 8px;
  border-radius:4px; white-space:pre; z-index:10; } #tip[hidden] { display:none; }
footer { color:var(--muted); font-size:.82rem; }
@media (max-width:640px) { .wrap { padding:20px 16px 36px; } h1 { font-size:1.3rem; } }
.links { margin:0; font-size:.9rem; }
.sjst { table-layout:fixed; } .sjst th:nth-child(1) { width:40%; } .sjst th:nth-child(2) { width:20%; }
.sjst th:nth-child(3) { width:22%; } .sjst th .sub { font-size:.65rem; text-transform:none; letter-spacing:0; }
.tabs { display:flex; gap:6px; margin:12px 0 2px; border-bottom:1px solid var(--line); }
.tabs a { padding:7px 16px; border:1px solid transparent; border-bottom:none; border-radius:8px 8px 0 0; text-decoration:none;
  color:var(--fg2); font-weight:600; margin-bottom:-1px; }
.tabs a:hover { color:var(--fg); }
.tabs a.on { background:var(--surface); border-color:var(--line); color:var(--fg); }
