*,*::before,*::after { box-sizing: border-box; margin:0; padding:0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fafafa; color: #222; line-height: 1.6;
  display: flex; flex-direction: column;
}
main { max-width: 820px; margin: 0 auto; padding: 56px 24px 40px; flex: 1; width: 100%; }
.back { font-size: .85rem; color: #999; text-decoration: none; }
.back:hover { color: #0070f3; }
h1 { font-size: 2rem; margin: 14px 0 6px; letter-spacing: -.5px; }
.subtitle { color: #888; margin-bottom: 24px; font-size: .95rem; }
.bio p { margin-bottom: 12px; color: #333; }
.bio p code, td code, li code, p code { background:#eef; padding:1px 6px; border-radius:4px; font-size:.88em; color:#334; }
h2 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px;
  margin: 40px 0 16px; color: #999; font-weight: 600;
}
.card {
  display: block; padding: 18px 20px; background: #fff;
  border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px;
  color: inherit; text-decoration: none;
}
a.card:hover { border-color:#0070f3; box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.card p { color: #555; font-size: .92rem; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { padding-left: 20px; color: #555; font-size: .92rem; }
.card li { margin-bottom: 4px; }
.card h3 { font-size: 1rem; margin-bottom: 8px; }
.card pre { background:#f7f7fa; padding:12px; border-radius:6px; font-size:.85rem; overflow:auto; color:#333; margin:0; white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; background:#fff; border:1px solid #eee; border-radius:8px; overflow:hidden; margin-bottom: 12px; }
th, td { padding: 10px 14px; text-align: left; border-bottom:1px solid #f1f1f1; font-size:.92rem; }
th { background:#fafafa; color:#666; font-weight:600; font-size:.82rem; text-transform: uppercase; letter-spacing: .8px; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.score { font-weight:600; color:#137333; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card-title { font-weight: 600; margin-bottom: 6px; display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.card-desc { font-size: .85rem; color: #888; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; background: #e6f4ea; color: #137333;
  vertical-align: middle; white-space: nowrap;
}
.badge.info { background:#e8f0fe; color:#1a56db; }
.badge.dim { background:#f1f3f4; color:#5f6368; }
.badge.warn { background:#fef7e0; color:#9a5a00; }
.score-hero {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 22px; background: #fff;
  border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px;
}
.big-score {
  font-size: 2.6rem; font-weight: 700; color: #137333;
  font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -1px;
  min-width: 120px;
}
.score-desc strong { color:#333; font-size:.95rem; }
.score-desc { color:#666; font-size:.9rem; }
img.sample { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 8px 0; border:1px solid #eee; }
figure { margin: 12px 0 0; }
figcaption { font-size:.82rem; color:#888; margin-top:6px; text-align:center; }
.sample-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
footer {
  text-align: center; padding: 24px; border-top: 1px solid #eee;
  color: #999; font-size: .82rem; background: #fff;
}
footer a { color: #999; text-decoration: none; }
footer a:hover { text-decoration: underline; color: #0070f3; }
