:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5b6470;
  --line: #e3ded6;
  --accent: #1f5f5b;
  --accent-text: #ffffff;
  --warn-bg: #fff4d6;
  --warn-text: #5c4300;
  --ok: #1a7f4b;
  --fail: #b3261e;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --surface: #1e2227;
    --text: #e8eaed;
    --muted: #a3acb8;
    --line: #333a43;
    --accent: #6fc7c0;
    --accent-text: #10201f;
    --warn-bg: #3d3212;
    --warn-text: #f3dfa2;
    --ok: #5fd39a;
    --fail: #ff8a80;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--text); }
nav a { margin-left: 16px; text-decoration: none; }
nav a:first-child { margin-left: 0; }
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.2; margin: 0 0 12px; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 62ch; margin: 0 0 20px; }
h2 { margin: 40px 0 12px; font-size: 1.4rem; }
h3 { margin: 0 0 6px; font-size: 1.05rem; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-text); text-decoration: none;
  border: 1px solid var(--accent); font: inherit; font-weight: 600; cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--accent); }
.btn.small { padding: 5px 12px; font-size: .9rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.notice { background: var(--warn-bg); color: var(--warn-text); padding: 10px 16px; font-size: .95rem; }
.notice a { color: inherit; font-weight: 600; }
footer.site { margin-top: 56px; border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.pass { color: var(--ok); font-weight: 600; }
.fail { color: var(--fail); font-weight: 600; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 16px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
.defect { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.defect dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0 0; }
.defect dt { color: var(--muted); }
.defect dd { margin: 0; }
.sev { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid currentColor; }
.sev.hoog { color: var(--fail); }
.sev.middel { color: var(--warn-text); background: var(--warn-bg); border-color: transparent; }
.sev.laag { color: var(--muted); }
input, select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.shop { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 820px) { .shop { grid-template-columns: 1.4fr 1fr; } }
.product { display: flex; flex-direction: column; }
.product .price { font-weight: 700; margin: auto 0 10px; }
.cart-line { display: grid; grid-template-columns: 1fr 70px auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cart-line input { width: 70px; }
.totals { margin: 12px 0; }
.totals div { display: flex; justify-content: space-between; padding: 2px 0; }
.totals .grand { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.badge { display: inline-block; min-width: 22px; text-align: center; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: .85rem; font-weight: 700; }
.msg { min-height: 1.4em; font-size: .9rem; margin: 6px 0 0; }
@media print {
  header.site nav, .notice, .no-print { display: none; }
  body { background: #fff; }
  .defect, .card, .stat { break-inside: avoid; }
}
