:root {
  --bg: #f7f8fa; --card: #fff; --text: #1d2330; --muted: #667085; --line: #e4e7ec;
  --brand: #1f5eff; --brand-dark: #1747c4;
  --ok: #12804a; --ok-bg: #e7f6ee; --warn: #a15c00; --warn-bg: #fff4e0;
  --fail: #c0262d; --fail-bg: #fdecec; --info: #475467; --info-bg: #eef1f5;
  --r1: #f5c400; --r1-bg: #fff9db; --r1-text: #5c4a00;
  --r2: #f08c00; --r2-bg: #fff0db; --r2-text: #7a3e00;
  --r3: #d92d20; --r3-bg: #fdeceb; --r3-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11141a; --card: #1a1f28; --text: #e7eaf0; --muted: #98a2b3; --line: #2a313d;
    --brand: #5b8cff; --brand-dark: #3f74f5;
    --ok: #4cc38a; --ok-bg: #12301f; --warn: #f0b04a; --warn-bg: #33270f;
    --fail: #f2777c; --fail-bg: #3a1618; --info: #b0b8c6; --info-bg: #232a35;
    --r1: #e8c22a; --r1-bg: #2e2810; --r1-text: #1d1700;
    --r2: #f59f3a; --r2-bg: #33230f; --r2-text: #241300;
    --r3: #f0544a; --r3-bg: #3a1614; --r3-text: #ffffff;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.nav { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.nav nav { display: flex; gap: 16px; align-items: center; }
.logo { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--text); }
main { padding: 32px 16px 48px; }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 28px 0 12px; }
h3 { font-size: 1rem; margin: 0; }
.muted { color: var(--muted); font-size: .92rem; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 11px 20px;
       font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn.secondary { background: var(--info-bg); color: var(--text); }
button.link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }
button.danger { color: var(--fail); margin-top: 24px; }
form.inline { display: inline; }
input[type=email], input[type=password], input[name=domain] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit;
  background: var(--card); color: var(--text); }
.hero { text-align: center; padding: 32px 0 16px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 24px; }
.checkform { display: flex; gap: 8px; max-width: 520px; margin: 16px auto; }
.checkform input { flex: 1; }
.error { color: var(--fail); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.features > div, .card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card.narrow { max-width: 420px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.stack label.check { flex-direction: row; font-weight: 400; gap: 8px; align-items: flex-start; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; background: var(--info-bg); }
.flash.ok { background: var(--ok-bg); } .flash.warn { background: var(--warn-bg); } .flash.fail { background: var(--fail-bg); }
.report-head { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.score { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center;
         padding-top: 22px; border: 4px solid var(--line); flex: none; }
.score .num { font-size: 1.7rem; font-weight: 700; } .score .of { font-size: .75rem; color: var(--muted); }
.score.ok { border-color: var(--ok); } .score.warn { border-color: var(--warn); } .score.fail { border-color: var(--fail); }
.domain-row .score { width: 56px; height: 56px; padding-top: 12px; border-width: 3px; }
.domain-row .score .num { font-size: 1.1rem; } .domain-row .score .of { display: none; }
.cta { background: var(--card); border: 1px solid var(--brand); border-radius: 12px; padding: 16px 20px; margin: 20px 0;
       display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta p { margin: 0; flex: 1; min-width: 240px; }
.res { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 10px;
       padding: 14px 18px; margin-bottom: 10px; }
.res.ok { border-left-color: var(--ok); } .res.warn { border-left-color: var(--warn); } .res.fail { border-left-color: var(--fail); }
.res p { margin: 6px 0 0; }
.res-head { display: flex; align-items: center; gap: 10px; }
.advice { background: var(--bg); border-radius: 6px; padding: 8px 10px; }
details { margin-top: 8px; font-size: .9rem; } code { word-break: break-all; font-size: .85rem; }
.pill { font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--info-bg); color: var(--info); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.fail { background: var(--fail-bg); color: var(--fail); }
.domain-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 24px; }
.domain-row { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line);
              border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--text); }
.domain-row:hover { border-color: var(--brand); }
.domain-row .grow { display: flex; flex-direction: column; }
.spark { width: 100%; height: 80px; }
.spark rect { fill: var(--info); } .spark rect.ok { fill: var(--ok); } .spark rect.warn { fill: var(--warn); } .spark rect.fail { fill: var(--fail); }
.alerts { padding-left: 18px; margin: 0; }
.foot { color: var(--muted); font-size: .85rem; padding-bottom: 32px; }
@media (max-width: 560px) { .checkform { flex-direction: column; } h1 { font-size: 1.45rem; } }
.why, .fix, .record { border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.why { background: var(--warn-bg); }
.res.fail .why { background: var(--fail-bg); }
.why p, .fix p { margin: 4px 0 0; }
.fix { border: 1px solid var(--line); }
.fix .links { display: flex; gap: 16px; flex-wrap: wrap; }
.record { background: var(--bg); }
.record dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 6px 0 0; }
.record dt { color: var(--muted); } .record dd { margin: 0; }
code.copy { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; user-select: all; }

/* risiconiveaus: Aandacht (geel), Let op! (oranje), NU FIXEN (rood) */
.badge { font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
         letter-spacing: .02em; }
.badge.r1 { background: var(--r1); color: var(--r1-text); }
.badge.r2 { background: var(--r2); color: var(--r2-text); }
.badge.r3 { background: var(--r3); color: var(--r3-text); }
.res.r1 { border-left-color: var(--r1); } .res.r2 { border-left-color: var(--r2); } .res.r3 { border-left-color: var(--r3); }
.res.r1 .why { background: var(--r1-bg); } .res.r2 .why { background: var(--r2-bg); } .res.r3 .why { background: var(--r3-bg); }
.summary { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--ok);
           border-radius: 12px; padding: 18px 20px; margin: 16px 0 24px; }
.summary.r1 { border-top-color: var(--r1); } .summary.r2 { border-top-color: var(--r2); } .summary.r3 { border-top-color: var(--r3); }
.summary h2 { margin: 0 0 14px; font-size: 1.25rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.tile { border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; align-items: center; }
.tile .count { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.tile .lbl { font-size: .82rem; font-weight: 700; }
.tile.r1 { background: var(--r1-bg); color: var(--r1-text); border: 2px solid var(--r1); }
.tile.r2 { background: var(--r2-bg); color: var(--r2-text); border: 2px solid var(--r2); }
.tile.r3 { background: var(--r3-bg); color: var(--r3); border: 2px solid var(--r3); }
.tile.empty { opacity: .45; }
.sum-group { margin-top: 14px; }
.sum-group h3 { font-size: .95rem; font-weight: 500; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sum-group ul { margin: 6px 0 0; padding-left: 20px; }
.sum-group li { margin: 3px 0; }
@media (prefers-color-scheme: dark) {
  .tile.r1, .tile.r2 { color: var(--text); }
}
.listings { margin: 6px 0 0; padding-left: 18px; } .listings li { margin: 4px 0; }

/* uitgezette meldingen */
.res form.mute { margin-top: 10px; text-align: right; font-size: .85rem; }
.res form.mute button.link { color: var(--muted); }
.res form.mute button.link:hover { color: var(--brand); text-decoration: underline; }
.muted-list { list-style: none; margin: 8px 0 0; padding: 0; }
.muted-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap;
                 padding: 10px 0; border-top: 1px solid var(--line); }
.muted-list li:first-child { border-top: 0; }
.muted-list li > span { min-width: 0; overflow-wrap: anywhere; }
.muted-list form { margin: 0; flex: none; }
@media (max-width: 560px) { .muted-list li { align-items: flex-start; } }
