:root{
 --surface-1:#fcfcfb; --surface-2:#f1f0ec; --surface-3:#e9e8e2;
 --text-primary:#1d1d1b; --text-secondary:#5c5b55; --text-muted:#8a8980;
 --grid:#e3e2dc; --border:#d8d7d0;
 --s-base:#2a78d6; --s-sft:#eb6834; --s-rl_sft_v1:#1baf7a; --s-rl_sft_v2:#eda100; --s-rl_base_v1:#e87ba4;
 --bad:#b3261e; --good:#1b6e1b;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
 --surface-1:#1a1a19; --surface-2:#242422; --surface-3:#2d2d2a;
 --text-primary:#f0efec; --text-secondary:#c3c2b7; --text-muted:#8e8d85;
 --grid:#33332f; --border:#3d3d38;
 --s-base:#3987e5; --s-sft:#d95926; --s-rl_sft_v1:#199e70; --s-rl_sft_v2:#c98500; --s-rl_base_v1:#d55181;
 --bad:#ff7b72; --good:#6fd36f; color-scheme:dark;
}}
:root[data-theme="dark"]{
 --surface-1:#1a1a19; --surface-2:#242422; --surface-3:#2d2d2a;
 --text-primary:#f0efec; --text-secondary:#c3c2b7; --text-muted:#8e8d85;
 --grid:#33332f; --border:#3d3d38;
 --s-base:#3987e5; --s-sft:#d95926; --s-rl_sft_v1:#199e70; --s-rl_sft_v2:#c98500; --s-rl_base_v1:#d55181;
 --bad:#ff7b72; --good:#6fd36f; color-scheme:dark;
}
*{box-sizing:border-box}
body{margin:0;background:var(--surface-1);color:var(--text-primary);
 font:15px/1.5 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
header{padding:20px 16px 0;max-width:1400px;margin:0 auto}
h1{font-size:21px;margin:0 0 4px;letter-spacing:-0.01em}
h2{font-size:17px;margin:28px 0 2px;letter-spacing:-0.01em}
h3{font-size:14px;margin:18px 0 6px;color:var(--text-secondary);font-weight:600}
p{margin:6px 0;color:var(--text-secondary);max-width:85ch}
a{color:var(--s-base)}
.sub{color:var(--text-muted);font-size:13px}
main{max-width:1400px;margin:0 auto;padding:0 16px 60px}
nav{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0 0;border-bottom:1px solid var(--border);padding-bottom:0}
nav button{font:inherit;font-size:14px;background:none;border:none;border-bottom:2px solid transparent;
 color:var(--text-secondary);padding:8px 12px;cursor:pointer;border-radius:6px 6px 0 0}
nav button:hover{background:var(--surface-2);color:var(--text-primary)}
nav button.on{color:var(--text-primary);border-bottom-color:var(--s-base);font-weight:600}
section{display:none}section.on{display:block}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:14px;margin-top:10px}
.chart{height:300px;background:var(--surface-1);border:1px solid var(--border);border-radius:10px;padding:4px}
.ctl{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:14px 0;padding:10px 12px;
 background:var(--surface-2);border:1px solid var(--border);border-radius:10px}
select,input,button.btn{font:inherit;font-size:13px;background:var(--surface-1);color:var(--text-primary);
 border:1px solid var(--border);border-radius:7px;padding:5px 9px}
button.btn{cursor:pointer;background:var(--surface-3)}
label{font-size:13px;color:var(--text-secondary);display:inline-flex;align-items:center;gap:5px}
table{border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:13px;width:100%;margin-top:8px;
 display:block;overflow-x:auto;white-space:nowrap}
th,td{padding:5px 9px;border-bottom:1px solid var(--grid);text-align:right}
th{color:var(--text-secondary);font-weight:600;position:sticky;top:0;background:var(--surface-1)}
th:first-child,td:first-child{text-align:left}
tr.hl td{background:var(--surface-2)}
.card{margin:10px 0;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}
.card .hd{font-weight:600;font-size:13px;margin-bottom:6px;color:var(--text-primary)}
.card .msg{margin:6px 0;white-space:pre-wrap;word-break:break-word;font-size:13.5px}
.card .msg b{color:var(--text-muted);font-size:11px;letter-spacing:0.04em;display:block;margin-bottom:2px}
.card .resp{background:var(--surface-1);border-radius:8px;padding:8px 10px;border:1px solid var(--border)}
.tag{display:inline-block;padding:1px 7px;border-radius:5px;border:1px solid var(--border);
 margin:0 5px 4px 0;font-size:11.5px;color:var(--text-secondary);background:var(--surface-1)}
.tag.bad{border-color:var(--bad);color:var(--bad)}
.tag.good{border-color:var(--good);color:var(--good)}
.tag.warn{border-color:var(--s-sft);color:var(--s-sft)}
.reason{color:var(--text-muted);font-size:12.5px;font-style:italic;margin:4px 0 2px}
.sw{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:5px;vertical-align:middle}
.note{background:var(--surface-2);border-left:3px solid var(--s-sft);padding:10px 14px;border-radius:0 8px 8px 0;margin:14px 0}
.note p{margin:3px 0}
.kv{display:flex;gap:22px;flex-wrap:wrap;margin:10px 0}
.kv div{font-size:13px;color:var(--text-secondary)}
.kv b{display:block;font-size:19px;color:var(--text-primary);font-variant-numeric:tabular-nums;font-weight:600}
#themeBtn{position:absolute;top:18px;right:16px}
.muted{color:var(--text-muted);font-size:13px}
