:root{
  --bg:#f0f4f8; --surface:#ffffff; --ink:#102a43; --accent:#0284c7;
  --muted:#486581; --line:#d9e2ec; --ok:#0f766e; --no:#b91c1c; --warn:#b45309;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  line-height:1.55; -webkit-font-smoothing:antialiased;
}
a{color:var(--accent)}
code{background:#e4eef7;padding:.1em .35em;border-radius:4px;font-size:.92em}
.wrap{max-width:1080px;margin:0 auto;padding:0 1.25rem}

.hero{padding:3rem 0 1.5rem;border-bottom:1px solid var(--line)}
.hero h1{font-size:clamp(2rem,5vw,3rem);margin:0 0 .4rem;letter-spacing:-.02em}
.hero .accent{color:var(--accent)}
.hero p{color:var(--muted);max-width:60ch;margin:0}

.disclosure{
  background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12;
  border-radius:10px;padding:.8rem 1rem;margin:1.25rem 0;font-size:.92rem;
}
.disclosure a{color:#9a3412}

section{padding:2rem 0}
h2{font-size:1.45rem;margin:0 0 .75rem;letter-spacing:-.01em}
h3{font-size:1.05rem;margin:0 0 .6rem}
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:12px;
  padding:1.1rem 1.25rem;margin-bottom:1.25rem;
}
.grid{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}

.controls{display:grid;gap:.9rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.controls label{display:flex;flex-direction:column;font-size:.85rem;color:var(--muted);gap:.3rem}
.controls input[type=number]{padding:.5rem .6rem;border:1px solid var(--line);border-radius:8px;font-size:1rem;color:var(--ink);background:#fbfdff}
.controls input[type=checkbox]{width:1.1rem;height:1.1rem;accent-color:var(--accent)}
.check-row{display:flex;align-items:center;gap:.5rem;font-size:.95rem;color:var(--ink)}

button{
  background:var(--accent);color:#fff;border:0;border-radius:8px;
  padding:.55rem 1rem;font-size:.92rem;cursor:pointer;font-family:inherit;
}
button:hover{filter:brightness(1.08)}
button.ghost{background:var(--surface);color:var(--accent);border:1px solid var(--accent)}
.row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-top:.8rem}

.verdict{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;padding:.7rem 1rem}
.verdict.warn{background:#fffbeb;border-color:#fde68a;color:#78350f}
.err{color:var(--no)}

table{width:100%;border-collapse:collapse;font-size:.9rem}
th,td{text-align:left;padding:.5rem .6rem;border-bottom:1px solid var(--line);vertical-align:top}
th{color:var(--muted);font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em}
tr.pass td:first-child{box-shadow:inset 3px 0 0 var(--ok)}
tr.fail td:first-child{box-shadow:inset 3px 0 0 var(--line);color:var(--muted)}
.chip{display:inline-block;font-size:.7rem;padding:.05rem .4rem;border-radius:999px;background:#e4eef7;color:var(--muted);margin:.1rem .15rem .1rem 0}
.chip.ok{background:#ccfbf1;color:var(--ok)}
.chip.no{background:#fee2e2;color:var(--no)}
.checks{max-width:220px}

svg{width:100%;height:auto;display:block}
.plot{fill:#fbfdff;stroke:var(--line)}
.grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
.axis{fill:var(--muted);font-size:11px}
.lbl{fill:var(--ink);font-size:10px;font-weight:600}
.dot.pass circle{fill:var(--accent)}
.dot.fail circle{fill:#cbd5e1}
.legend-item{display:inline-block;margin:.2rem .9rem .2rem 0;font-size:.82rem;color:var(--muted)}
.legend-item.pass{color:var(--ink)}

.kv{font-size:.9rem}
.kv td{padding:.35rem .5rem;border-bottom:1px solid var(--line)}
.kv td:first-child{color:var(--muted);white-space:nowrap}

ul.checklist{list-style:none;padding:0;margin:0}
ul.checklist li{padding:.4rem 0;border-bottom:1px solid var(--line);font-size:.92rem}
ul.checklist li.ok{color:var(--ok)}
ul.checklist li.no{color:var(--no)}
ul.checklist li.score{font-weight:700;color:var(--ink);border-bottom:0}

pre.report{background:#0f2233;color:#dbeafe;border-radius:10px;padding:1rem;overflow:auto;font-size:.8rem;max-height:340px}
.muted{color:var(--muted)}
.small{font-size:.82rem;color:var(--muted)}

.foot{border-top:1px solid var(--line);padding:1.5rem 0 2.5rem;color:var(--muted);font-size:.85rem}
.foot nav{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:.6rem}
.foot nav a{color:var(--muted)}

@media (max-width:640px){
  .controls{grid-template-columns:1fr}
  .hero{padding:2rem 0 1rem}
}
