:root {
  --page: #f9f9f7; --surface: #fcfcfb; --ink: #0b0b0b; --ink2: #52514e; --ink3: #8a8984;
  --grid: #e4e3df; --line: #dcdbd6;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #6250d6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.5 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
main { max-width: 1060px; margin: 0 auto; padding: 32px 20px 64px; }
header h1 { font-size: 34px; line-height: 1.15; margin: 4px 0 10px; letter-spacing: -0.01em; }
.kicker { color: var(--ink2); margin: 0; font-size: 14px; }
.lede { font-size: 19px; color: var(--ink); max-width: 820px; margin: 0 0 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.tile .v { font-size: 34px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 16px; font-weight: 500; color: var(--ink2); }
.tile .l { color: var(--ink2); font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.panel h2 { font-size: 20px; margin: 6px 0 2px; }
.sub { color: var(--ink2); font-size: 14px; margin: 2px 0 12px; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink2); }
.seg button.on { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; font-size: 13px; cursor: pointer; background: var(--surface); color: var(--ink); user-select: none; }
.chip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chip.off { color: var(--ink3); }
.chip.off i { background: var(--grid) !important; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-size: 12px; fill: var(--ink2); }
.chart .lab { fill: var(--ink); font-size: 12.5px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--grid); }
th:first-child, td:first-child, #open td:nth-child(2), #open th:nth-child(2), #open th:nth-child(3) { text-align: left; }
th { color: var(--ink2); font-weight: 600; }
.tableview summary { cursor: pointer; color: var(--ink2); font-size: 14px; margin-top: 8px; }
.tip { position: fixed; pointer-events: none; background: #111; color: #fff; padding: 8px 10px; border-radius: 8px;
  font-size: 13px; line-height: 1.45; display: none; z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.tip b { font-weight: 600; }
.tip .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
pre { background: #f1f0ec; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.method li { margin-bottom: 6px; font-size: 15px; }
.bar { display: inline-block; height: 10px; border-radius: 0 3px 3px 0; vertical-align: middle; }
a { color: #1c5cab; }
@media (max-width: 640px) { header h1 { font-size: 26px; } .lede { font-size: 17px; } }
