:root {
  --bg: #f6f7f9; --card: #fff; --line: #e4e7ec; --text: #1d2330; --muted: #6a7386; --none: #e9ecf1;
  --c99: #2fbf7c; --c90: #9ccf4f; --c70: #f2b63d; --c50: #f08a3c; --c0: #e5484d;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f141b; --card: #161d27; --line: #263142; --text: #e6ebf2; --muted: #93a0b4; --none: #222c3a; }
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 28px; }
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 15px; margin: 0; }
.sub { color: var(--muted); margin: 4px 0 14px; font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rate { font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 12px; }
.body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(72, minmax(0, 1fr)); gap: 3px; }
.cell { aspect-ratio: 1 / 1.8; border-radius: 2px; background: var(--none); cursor: default; }
.cell:hover, .cell:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.c99 { background: var(--c99); } .c90 { background: var(--c90); } .c70 { background: var(--c70); }
.c50 { background: var(--c50); } .c0 { background: var(--c0); } .none { background: var(--none); }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; display: flex; flex-direction: column-reverse; min-width: 0; }
.bar .ok { background: var(--c99); opacity: .75; }
.bar .er { background: var(--c0); opacity: .85; }
.pelican { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pelican iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: #fff; }
.pelican .cap { padding: 6px 10px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.pelican.empty-pel { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--muted); font-size: 12px; }
footer { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: 12px; }
.legend { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.note { flex-basis: 100%; }
.empty { color: var(--muted); padding: 30px; text-align: center; }
#tip { position: fixed; z-index: 10; pointer-events: none; background: #11161d; color: #f2f5f9; border-radius: 8px;
  padding: 8px 10px; font-size: 12px; line-height: 1.6; white-space: pre; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
@media (max-width: 900px) {
  .body { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(36, minmax(0, 1fr)); }
}
