
:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f0f0ee;
  --text: #1b1b1a;
  --muted: #6b6b66;
  --border: #e3e3df;
  --accent: #15803d;
  --accent-text: #166534;
  --accent-ink: #ffffff;
  --accent-bg: #e6f5ee;
  --wrong: #dc2626;
  --wrong-text: #b91c1c;
  --wrong-bg: #fbeaea;
  --focus: #0b1120;
  --e-1: 0 1px 3px rgba(0, 0, 0, 0.08);
  --r-1: 4px;
  --r-2: 8px;
  --r-4: 12px;
  --r-pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #131a2a;
    --surface-2: #1b2438;
    --text: #e8eaf0;
    --muted: #9aa3b8;
    --border: #263149;
    --accent: #22c55e;
    --accent-text: #22c55e;
    --accent-ink: #07120a;
    --accent-bg: #0e2b1c;
    --wrong: #f87171;
    --wrong-text: #f87171;
    --wrong-bg: #2a1414;
    --focus: #e8eaf0;
    --e-1: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
a { color: var(--accent-text); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 4px 0 4px; }
h2 { font-size: 1.1rem; margin: 0 0 4px; }
h3 { font-size: 0.95rem; margin: 20px 0 8px; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* The top bar: the mark, the name, where you are, who you are. */
.bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.bar-in { max-width: 1000px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand .mark { width: 28px; height: 28px; }
.brand .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-bg); padding: 2px 8px; border-radius: var(--r-pill); }
.bar nav { display: flex; gap: 4px; margin-right: auto; }
.bar nav a { padding: 6px 12px; border-radius: var(--r-2); color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; }
.bar nav a:hover { background: var(--surface-2); color: var(--text); }
.who { color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }

main { max-width: 1000px; margin: 0 auto; padding: 20px 16px 48px; }
.crumb { font-size: 0.875rem; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* Cards and sections. */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-4);
  box-shadow: var(--e-1); padding: 16px 20px; margin: 16px 0; }
.card > h2 + .lead, .card > h2 + p { margin-top: 0; }
.card.narrow { max-width: 560px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 16px 0; }
.tenant { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-4); box-shadow: var(--e-1); padding: 14px 16px; }
.tenant.off { background: transparent; box-shadow: none; }
.tenant h2 { font-size: 1.05rem; margin: 0; }
.tenant h2 a { color: var(--text); text-decoration: none; }
.tenant h2 a:hover { text-decoration: underline; }
.tenant .host { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.counts { display: flex; gap: 16px; color: var(--muted); font-size: 0.875rem; }
.counts b { color: var(--text); font-size: 1.1rem; margin-right: 4px; }

/* Badges. */
.badge { display: inline-block; padding: 1px 10px; border-radius: var(--r-pill); font-size: 0.78rem;
  font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--accent-bg); color: var(--accent-text); }
.badge.off { background: var(--wrong-bg); color: var(--wrong-text); }

/* Tables. */
.table { overflow-x: auto; margin: 8px -4px 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px 10px 4px; border-bottom: 1px solid var(--border);
  vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  font-weight: 700; white-space: nowrap; }
td.nowrap, td .nowrap { white-space: nowrap; }
tr.gone td { color: var(--muted); }
tr.gone td code { opacity: 0.8; }
td form { margin: 0; }
.empty { color: var(--muted); margin: 8px 0 0; }

/* Forms. */
form { margin: 0; }
.form { display: grid; gap: 14px; max-width: 480px; margin-top: 12px; }
.field { display: grid; gap: 4px; font-size: 0.9rem; }
.field .label { font-weight: 600; }
.field .help { color: var(--muted); font-size: 0.82rem; }
input, button, .btn { font: inherit; }
input[type=text], input[type=email], input[type=date], input[type=file] { padding: 9px 10px; border: 1px solid var(--border);
  border-radius: var(--r-2); background: var(--bg); color: var(--text); width: 100%; }
input[type=file] { padding: 7px 10px; }
label.check { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9rem; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 4px; }
input[type=color] { width: 48px; height: 32px; padding: 2px; border: 1px solid var(--border);
  border-radius: var(--r-2); background: var(--bg); cursor: pointer; }
/* An input followed by a fixed ending, side by side: the address and its .skipdoc.com. */
.addr { display: flex; align-items: stretch; }
.addr input { border-radius: var(--r-2) 0 0 var(--r-2); border-right: 0; min-width: 0; }
.addr .suffix { display: flex; align-items: center; padding: 0 10px; background: var(--surface-2);
  color: var(--muted); border: 1px solid var(--border); border-radius: 0 var(--r-2) var(--r-2) 0;
  font-family: var(--mono); font-size: 0.9rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }

/* Buttons: primary, secondary, danger (outlined), danger-solid (the final yes). */
button, .btn { display: inline-block; padding: 8px 16px; border: 1px solid var(--accent);
  border-radius: var(--r-2); background: var(--accent); color: var(--accent-ink); cursor: pointer;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; line-height: 1.4; justify-self: start; }
button:hover, .btn:hover { filter: brightness(1.06); }
.btn.secondary, button.secondary { background: transparent; color: var(--accent-text); border-color: var(--border); }
.btn.danger, button.danger { background: transparent; color: var(--wrong-text); border-color: var(--wrong); }
.btn.danger-solid, button.danger-solid { background: var(--wrong); border-color: var(--wrong); color: #fff; }
.btn.small, button.small { padding: 4px 12px; font-size: 0.85rem; }

/* Messages. */
.notice, .error { border-radius: var(--r-2); padding: 10px 14px; margin: 12px 0; border: 1px solid; }
.notice { background: var(--accent-bg); border-color: var(--accent); color: var(--text); }
.error { background: var(--wrong-bg); border-color: var(--wrong); color: var(--text); }
.warn { background: var(--surface-2); border-radius: var(--r-2); padding: 10px 14px; margin: 12px 0; }

/* The code, shown once. */
.code { font: 700 1.75rem/1.3 var(--mono); letter-spacing: 0.04em; word-break: break-all;
  background: var(--surface-2); border-radius: var(--r-2); padding: 14px 16px; margin: 12px 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }

/* Brand: colours and logo. */
.swatch { width: 44px; height: 22px; vertical-align: middle; border: 1px solid var(--border);
  border-radius: var(--r-1); margin-right: 8px; }
.logo { max-width: 200px; max-height: 64px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-2); padding: 6px; vertical-align: middle; }
.kv { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 8px 0; }
.kv > div { display: grid; gap: 2px; }
.kv .label { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  font-weight: 700; }

/* The two phones of the brand preview, side by side. */
.previews { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.phone { margin: 0; text-align: center; }
.phone img { display: block; width: 180px; height: 286px; max-width: 100%; }
.phone figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* Instellingen: one block per switch. */
.setting { padding: 12px 0; border-top: 1px solid var(--border); }
.setting:first-of-type { border-top: 0; padding-top: 4px; }
.setting h3 { margin: 0; }
.setting .btn { margin-top: 4px; }

/* Statistiek: bars and columns as inline SVG, painted here so dark mode follows. */
.chart { display: block; width: 100%; max-width: 720px; height: auto; margin: 8px 0 0; }
.chart-bg, .spark-bg { fill: var(--surface-2); }
.chart-fill, .spark-fill { fill: var(--accent); }
.chart-value { fill: var(--text); font: 700 11px var(--font); }
.chart-label { fill: var(--muted); font: 9px var(--font); }
.spark { display: inline-block; width: 120px; height: 8px; vertical-align: middle; margin-right: 8px; }
table.stats td.share { white-space: nowrap; }
table.stats .num { text-align: right; padding-right: 16px; }
table.stats tr.start td { color: var(--muted); }
table.stats tr.drop td { background: var(--wrong-bg); }
.kv .big { font-size: 1.4rem; font-weight: 800; }
.periode { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 20px 0 4px; }
.periode a { padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--border);
  text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.periode a[aria-current] { background: var(--accent-bg); border-color: var(--accent); }
details { margin-top: 8px; }
summary { cursor: pointer; color: var(--accent-text); font-weight: 600; font-size: 0.9rem; }

@media (max-width: 560px) {
  .spark { width: 64px; }
  h1 { font-size: 1.4rem; }
  .card { padding: 14px; }
  .bar nav { margin-right: 0; }
  .code { font-size: 1.3rem; }
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: 8px; }
}

.me { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.me form { margin: 0; }
.code.link { font-size: 1.05rem; letter-spacing: 0; }
