:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1f1c;
  --muted: #5e635b;
  --line: #e4e2db;
  --accent: #1f6f4a;
  --accent-ink: #ffffff;
  --pass: #1f7a4a;
  --warn: #9a6400;
  --fail: #b3261e;
  --pass-bg: #e8f4ec;
  --warn-bg: #fbf1dc;
  --fail-bg: #fbe7e5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141614;
    --surface: #1c1f1c;
    --text: #ecebe6;
    --muted: #a3a89f;
    --line: #2e322d;
    --accent: #5fc08c;
    --accent-ink: #0d1a12;
    --pass: #6fd29b;
    --warn: #e8b85a;
    --fail: #f08a80;
    --pass-bg: #1b2c21;
    --warn-bg: #2f2716;
    --fail-bg: #331d1b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top { border-bottom: 1px solid var(--line); padding: 14px 0; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
nav a { margin-left: 16px; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 40px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin: 36px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
form.audit { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 8px; }
input, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-width: 0; }
form.audit input { flex: 1 1 260px; }
button { font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 16px 0; }
.score { display: flex; align-items: center; gap: 18px; }
.score .num { font-size: 52px; font-weight: 800; line-height: 1; }
.score p { margin: 0; color: var(--muted); }
.check { border-top: 1px solid var(--line); padding: 14px 0; }
.check:first-child { border-top: 0; }
.check-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 2px 9px; }
.badge.pass { color: var(--pass); background: var(--pass-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.fail { color: var(--fail); background: var(--fail-bg); }
.check p { margin: 4px 0; }
.check ul { margin: 6px 0 0; padding-left: 18px; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.err { color: var(--fail); }
.cta { background: var(--surface); border: 2px solid var(--accent); border-radius: 14px; padding: 20px; margin: 32px 0; }
.cta h2 { margin-top: 0; }
.cta form { display: grid; gap: 10px; }
.cta .hp { position: absolute; left: -9999px; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { border-top: 1px solid var(--line); padding: 14px 0; }
.guide-list p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.guide .meta, .crumbs { color: var(--muted); font-size: 14px; }
.guide img { max-width: 100%; }
code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: 0.9em; overflow-wrap: anywhere; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 14px; }
pre code { border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 20px 0 40px; color: var(--muted); font-size: 14px; }
.foot p { margin: 4px 0; }
