/* 先看图 — one stylesheet. Bar widths come from a class rather than a style
   attribute, keeping the same discipline as the served pages in this repo:
   nothing on the page needs unsafe-inline to render correctly. */

:root {
  --bg: #0f1113;
  --panel: #171a1d;
  --panel2: #1e2225;
  --line: #2b3135;
  --ink: #e9edee;
  --dim: #9aa5a9;
  --faint: #6b767a;
  --accent: #e8834a;
  --ok: #57bd8a;
  --warn: #dfae4d;
  --bad: #e05c62;
  --r: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  padding: 0 0 max(28px, env(safe-area-inset-bottom));
  overflow-wrap: anywhere;
}

main { max-width: 780px; margin: 0 auto; padding: 0 14px;
       display: flex; flex-direction: column; gap: 14px; }

.topbar { display: flex; align-items: center; gap: 12px; max-width: 780px;
          margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 14px 16px; }

.mark { flex: none; width: 40px; height: 40px; border-radius: 11px;
        background: linear-gradient(150deg, #5c3620, #1d1a18);
        border: 1px solid #52392a; color: var(--accent);
        display: grid; place-items: center; font-size: 30px; line-height: 0.4; }

.titles h1 { margin: 0; font-size: 20px; letter-spacing: .04em; }
.titles p { margin: 2px 0 0; color: var(--dim); font-size: 13px; }

.panel { background: var(--panel); border: 1px solid var(--line);
         border-radius: var(--r); padding: 15px 15px 16px; }
.panel h2 { margin: 0 0 10px; font-size: 14px; letter-spacing: .06em;
            color: var(--dim); font-weight: 600; }
.panel.quiet { background: transparent; }
.panel.intro { background: linear-gradient(180deg, #1c2023, #171a1d); }

.sub { margin: 0 0 9px; color: #d0d7d9; font-size: 14px; }
.sub:last-child { margin-bottom: 0; }
.sub b { color: var(--ink); }
.tiny { margin: 10px 0 0; color: var(--faint); font-size: 12.5px; line-height: 1.6; }
.tiny b { color: var(--dim); }

code { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
       background: #0b0d0e; border: 1px solid var(--line); border-radius: 5px;
       padding: 1px 5px; color: var(--dim); }

/* ------------------------------------------------------------------ input */

.egs { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
       gap: 8px; margin-bottom: 13px; }
.eg { display: flex; flex-direction: column; gap: 2px; text-align: left;
      padding: 9px 11px; background: var(--panel2); border: 1px solid var(--line);
      border-radius: 9px; color: var(--ink); font: inherit; cursor: pointer; }
.eg b { font-size: 13.5px; font-weight: 600; }
.eg span { font-size: 11.5px; color: var(--faint); line-height: 1.45; }
.eg.on { border-color: var(--accent); background: #2c211a; }
.eg.on b { color: var(--accent); }
.eg:hover { border-color: #414a4e; }

.lbl { display: block; margin: 0 0 7px; color: var(--dim); font-size: 13px; }
.lbl b { color: var(--ink); }

textarea { width: 100%; background: #0b0d0e; border: 1px solid var(--line);
           border-radius: 9px; color: var(--ink); padding: 10px 11px;
           font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
           resize: vertical; }
textarea:focus, button:focus-visible, circle.pt:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }

.badlist { margin: 0; padding-left: 18px; color: var(--dim); font-size: 13px; }
.badlist li { margin-bottom: 4px; }
.badlist b { color: var(--ink); }
.panel.bad { border-left: 3px solid var(--warn); }

/* ------------------------------------------------------------------- plot */

.scatter { width: 100%; height: auto; display: block; touch-action: manipulation; }
.scatter .gl { stroke: #232a2d; stroke-width: 1; }
.scatter .gx, .scatter .gy { fill: var(--faint); font-size: 11px; }
.scatter .fit { stroke: var(--accent); stroke-width: 2; opacity: .85; }
.scatter .pt { fill: #7fb6d4; stroke: #0f1113; stroke-width: 1.5; cursor: pointer; }
.scatter .pt:hover { fill: #a9d4ea; }
.scatter .pt.hot { fill: var(--bad); }
.scatter .pt.off { fill: none; stroke: #4a5458; stroke-dasharray: 2 2; cursor: pointer; }

.plotbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
           margin-top: 10px; }
.plotbar .hint { color: var(--faint); font-size: 12px; }
.plotbar .btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.mini { padding: 5px 12px; border-radius: 7px; border: 1px solid var(--line);
        background: var(--panel2); color: var(--ink); font: inherit; font-size: 12.5px;
        cursor: pointer; white-space: nowrap; }
.mini:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------- verdict */

.verdict { border-radius: var(--r); border: 1px solid var(--line);
           border-left-width: 3px; padding: 15px; background: var(--panel); }
.verdict > b { display: block; font-size: 20px; margin-bottom: 5px;
               font-variant-numeric: tabular-nums; }
.verdict .say { margin: 0; color: #d0d7d9; font-size: 13.5px; }
.verdict .moved { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line);
                  color: var(--accent); font-size: 13px; }
.verdict .moved b { font-variant-numeric: tabular-nums; }
.verdict.ok { border-left-color: var(--ok); }
.verdict.ok > b { color: var(--ok); }
.verdict.bad { border-left-color: var(--bad); }
.verdict.bad > b { color: var(--bad); }
.verdict.na { border-left-color: var(--faint); }
.verdict.na > b { color: var(--dim); }

/* ------------------------------------------------------------------- grid */

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; }
.cell { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px;
        padding: 10px 11px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cell.hero { border-color: #5b3d29; background: #241c17; }
.cell .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cell.hero .v { color: var(--accent); }
.cell .v i { font-style: normal; color: var(--faint); font-size: 15px; }
.cell .k { font-size: 12px; color: var(--dim); }
.cell em { font-size: 11px; color: var(--faint); font-style: normal; }

/* --------------------------------------------------------------- findings */

.finding { border-left: 2px solid var(--line); background: var(--panel2);
           border-radius: 0 8px 8px 0; padding: 10px 12px; margin-bottom: 8px; }
.finding:last-of-type { margin-bottom: 0; }
.finding > b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.finding p { margin: 0; font-size: 12.5px; color: var(--dim); line-height: 1.6; }
.finding.bad { border-left-color: var(--bad); }
.finding.bad > b { color: var(--bad); }
.finding.warn { border-left-color: var(--warn); }
.finding.warn > b { color: var(--warn); }

.ok4 { margin: 0; padding-left: 20px; color: var(--dim); font-size: 13px; }
.ok4 li { margin-bottom: 3px; }

/* ------------------------------------------------------------------- rows */

.rows { display: flex; flex-direction: column; gap: 5px; }
.irow { display: grid; grid-template-columns: 1fr 90px 56px auto; align-items: center;
        gap: 9px; font-size: 13px; }
.irow .ln { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irow .o { text-align: right; font-variant-numeric: tabular-nums; color: var(--dim); }
.irow .t { display: block; height: 10px; background: #0b0d0e; border-radius: 3px;
           overflow: hidden; }
.irow .bar { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

.foot { max-width: 780px; margin: 22px auto 0; padding: 0 14px;
        color: var(--faint); font-size: 11.5px; text-align: center; }

@media (max-width: 430px) {
  .irow { grid-template-columns: 1fr 60px 48px auto; gap: 7px; }
  .plotbar .btns { margin-left: 0; width: 100%; }
  .mini { flex: 1; }
}

/* Widths, 1% apart, generated so no element needs a style attribute. */
.w0{width:0%}.w1{width:1%}.w2{width:2%}.w3{width:3%}.w4{width:4%}.w5{width:5%}.w6{width:6%}.w7{width:7%}
.w8{width:8%}.w9{width:9%}.w10{width:10%}.w11{width:11%}.w12{width:12%}.w13{width:13%}.w14{width:14%}.w15{width:15%}
.w16{width:16%}.w17{width:17%}.w18{width:18%}.w19{width:19%}.w20{width:20%}.w21{width:21%}.w22{width:22%}.w23{width:23%}
.w24{width:24%}.w25{width:25%}.w26{width:26%}.w27{width:27%}.w28{width:28%}.w29{width:29%}.w30{width:30%}.w31{width:31%}
.w32{width:32%}.w33{width:33%}.w34{width:34%}.w35{width:35%}.w36{width:36%}.w37{width:37%}.w38{width:38%}.w39{width:39%}
.w40{width:40%}.w41{width:41%}.w42{width:42%}.w43{width:43%}.w44{width:44%}.w45{width:45%}.w46{width:46%}.w47{width:47%}
.w48{width:48%}.w49{width:49%}.w50{width:50%}.w51{width:51%}.w52{width:52%}.w53{width:53%}.w54{width:54%}.w55{width:55%}
.w56{width:56%}.w57{width:57%}.w58{width:58%}.w59{width:59%}.w60{width:60%}.w61{width:61%}.w62{width:62%}.w63{width:63%}
.w64{width:64%}.w65{width:65%}.w66{width:66%}.w67{width:67%}.w68{width:68%}.w69{width:69%}.w70{width:70%}.w71{width:71%}
.w72{width:72%}.w73{width:73%}.w74{width:74%}.w75{width:75%}.w76{width:76%}.w77{width:77%}.w78{width:78%}.w79{width:79%}
.w80{width:80%}.w81{width:81%}.w82{width:82%}.w83{width:83%}.w84{width:84%}.w85{width:85%}.w86{width:86%}.w87{width:87%}
.w88{width:88%}.w89{width:89%}.w90{width:90%}.w91{width:91%}.w92{width:92%}.w93{width:93%}.w94{width:94%}.w95{width:95%}
.w96{width:96%}.w97{width:97%}.w98{width:98%}.w99{width:99%}.w100{width:100%}
