:root {
  --roze: #B84D6B;
  --roze-licht: #D97089;
  --donker: #3A3550;
  --achter: #FFF9F7;
  --kaart: #FFFFFF;
  --rand: #F0E3DF;
  --grijs: #8A8496;
  --groen: #2F8F5B;
  --oranje: #D98A2B;
  --rood: #C0392B;
  font-family: Nunito, ui-rounded, -apple-system, system-ui, sans-serif;
  color: var(--donker);
  background: var(--achter);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
header {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--achter); border-bottom: 1px solid var(--rand);
}
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.logo span { color: var(--roze-licht); }
.logo small { font-weight: 600; font-size: .8rem; color: var(--grijs); margin-left: 4px; }
.logo.groot { font-size: 2rem; text-align: center; }
main { max-width: 640px; margin: 0 auto; padding: 12px 12px 32px; }
.kaart {
  background: var(--kaart); border: 1px solid var(--rand); border-radius: 18px;
  padding: 16px; margin-bottom: 12px;
}
h2 { font-size: 1rem; margin: 0 0 10px; }
button {
  font: inherit; font-weight: 700; border: 0; border-radius: 999px;
  padding: 10px 18px; background: var(--roze); color: #fff; cursor: pointer;
}
button:disabled { opacity: .6; }
button.tweede { background: #fff; color: var(--roze); border: 2px solid var(--roze); }
button.klein { padding: 7px 14px; font-size: .85rem; }
button.link { background: none; color: var(--grijs); text-decoration: underline; padding: 4px; }
.knoppen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.uitleg { color: var(--grijs); font-size: .85rem; margin: 8px 0 0; }
.fout { color: var(--rood); min-height: 1.2em; }
.cijfers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cijfers > div { background: var(--achter); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.cijfers .label { font-size: .8rem; color: var(--grijs); }
.cijfers b { font-size: 1.3rem; }
.cijfers small { color: var(--grijs); font-size: .8rem; }
.kor { margin-top: 14px; }
.kor-tekst { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; gap: 8px; }
.balk { height: 10px; background: var(--rand); border-radius: 999px; overflow: hidden; }
.balk > div { height: 100%; width: 0; background: var(--groen); transition: width .4s; }
.balk > div.oranje { background: var(--oranje); }
.balk > div.rood { background: var(--rood); }
.lijst { list-style: none; margin: 0; padding: 0; }
.lijst li { padding: 9px 0; border-bottom: 1px solid var(--rand); font-size: .92rem; }
.lijst li:last-child { border-bottom: 0; }
.lijst li.ok { color: var(--groen); font-weight: 700; }
.lijst li.leeg { color: var(--grijs); }
.meldingen summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.meldingen summary::-webkit-details-marker { display: none; }
.meldingen summary small { color: var(--grijs); white-space: nowrap; }
.meldingen li.waarschuwing b { color: var(--oranje); }
.meldingen li.fout b { color: var(--rood); }
.meldingen p { margin: 6px 0 0; color: var(--grijs); font-size: .88rem; }
.meldingen pre { white-space: pre-wrap; font: inherit; font-size: .88rem; background: var(--achter); padding: 8px 10px; border-radius: 10px; }
form label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; margin-bottom: 10px; }
form label.vink { flex-direction: row; align-items: center; gap: 8px; }
input:not([type=checkbox]) {
  font: inherit; padding: 10px 12px; border: 1px solid var(--rand); border-radius: 12px; background: #fff;
}
input:focus { outline: 2px solid var(--roze-licht); outline-offset: 1px; }
.voet { text-align: center; }
body.inlog main { max-width: 380px; padding-top: 12vh; }
body.inlog form { margin-top: 16px; }
body.inlog button { width: 100%; }

.sleutel { font-family: ui-monospace, Menlo, monospace; font-size: 1rem; letter-spacing: .04em; background: var(--achter); padding: 10px 12px; border-radius: 10px; word-break: break-all; }
.knop-link { display: inline-block; font-weight: 700; color: #fff; background: var(--roze); border-radius: 999px; padding: 10px 18px; text-decoration: none; }
form.rij { display: flex; gap: 8px; }
form.rij input { flex: 1; min-width: 0; }
