:root {
  --navy: #1f3a4d; --blauw: #7b98ae; --licht: #f3f5f7; --rand: #d9e0e6; --tekst: #1b1f23; --grijs: #5f6b76;
  --groen: #2e7d32; --groenlicht: #e7f4e8; --oranje: #b26a00; --oranjelicht: #fff1dc; --rood: #c62828; --roodlicht: #fdecea;
  --geel: #fff3a0;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--licht); color: var(--tekst); font: 17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
button, input, select, textarea { font: inherit; }
#balk { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff;
  padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; min-height: 56px; }
#titel { flex: 1; font-weight: 600; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icoonknop { background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; width: 44px; height: 44px; padding: 0 0 4px; }
.sync { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 20px; padding: 6px 12px; font-size: 14px; }
.stip { width: 10px; height: 10px; border-radius: 50%; background: #9aa5ae; }
.sync.online .stip { background: #66d16e; } .sync.wacht .stip { background: #ffb74d; } .sync.fout .stip { background: #ef5350; }
main { padding: 12px 12px calc(env(safe-area-inset-bottom) + 40px); max-width: 760px; margin: 0 auto; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--grijs); margin: 22px 4px 8px; }
.kaart { background: #fff; border: 1px solid var(--rand); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.knop { display: block; width: 100%; border: 0; border-radius: 12px; padding: 15px; font-weight: 600; font-size: 17px; background: var(--navy); color: #fff; text-align: center; }
.knop.licht { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.knop.klein { display: inline-block; width: auto; padding: 10px 16px; font-size: 15px; }
.knop:disabled { opacity: .5; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=url], input[type=number], select, textarea { width: 100%; padding: 13px; border: 1px solid #b9c3cc; border-radius: 10px; background: #fff; font-size: 17px; }
textarea { min-height: 80px; resize: vertical; }
.uitleg { color: var(--grijs); font-size: 15px; margin: 6px 0; }
.logo { display: block; width: 220px; margin: 18px auto 8px; }
.lijstitem { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.lijstitem .tekst { flex: 1; min-width: 0; }
.lijstitem .naam { font-weight: 600; }
.lijstitem .sub { color: var(--grijs); font-size: 14px; }
.voortgang { height: 8px; background: #e3e8ec; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.voortgang div { height: 100%; background: var(--groen); }
.pijl { color: var(--blauw); font-size: 26px; }
.infotabel { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15px; }
.infotabel dt { color: var(--grijs); } .infotabel dd { margin: 0; font-weight: 600; }
details.mededelingen { background: #fff; border: 1px solid var(--rand); border-radius: 12px; margin-bottom: 10px; }
details.mededelingen summary { padding: 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.mededelingen summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blauw); }
details.mededelingen[open] summary::after { content: "\2212"; }
details.mededelingen ul { margin: 0; padding: 0 14px 10px 32px; }
details.mededelingen li { margin: 0 0 10px; }
.belangrijk { background: var(--geel); padding: 1px 3px; border-radius: 3px; }
.filters { display: flex; gap: 8px; margin: 14px 0 10px; }
.filters button { flex: 1; border: 1px solid var(--rand); background: #fff; border-radius: 20px; padding: 9px 4px; font-size: 15px; }
.filters button.actief { background: var(--navy); color: #fff; border-color: var(--navy); }
.intro { background: #fff; border-left: 4px solid var(--blauw); padding: 10px 12px; border-radius: 6px; margin-bottom: 10px; font-size: 15px; }
.taak { display: flex; gap: 12px; background: #fff; border: 1px solid var(--rand); border-radius: 12px; padding: 10px; margin-bottom: 8px; align-items: flex-start; }
.taak.gedaan { background: var(--groenlicht); border-color: #b9dcbb; }
.taak.dubbel { border-color: #f0c27a; }
.taak.conflict { border: 2px solid var(--rood); background: var(--roodlicht); }
.taak.sub { margin-left: 26px; }
.vink { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 10px; border: 3px solid #8796a3; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; padding: 0; }
.vink.aan { background: var(--groen); border-color: var(--groen); }
.vink.ander { border-color: var(--groen); color: var(--groen); font-size: 13px; font-weight: 700; }
.taaktekst { flex: 1; min-width: 0; padding-top: 2px; cursor: pointer; }
.taaktekst .extra { color: var(--grijs); font-size: 15px; margin-top: 4px; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.label { font-size: 13px; padding: 2px 8px; border-radius: 10px; background: #e8edf1; color: var(--navy); font-weight: 600; }
.label.wie { background: var(--groen); color: #fff; }
.label.dubbel { background: var(--oranjelicht); color: var(--oranje); }
.label.conflict { background: var(--rood); color: #fff; }
.label.meet { background: #fff; border: 1px solid var(--blauw); }
.opmerking { border-top: 1px solid var(--rand); padding: 10px 0; }
.opmerking:first-child { border-top: 0; padding-top: 0; }
.opmerking .wie { font-size: 13px; color: var(--grijs); }
.paneel-achtergrond { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10; }
.paneel-inhoud { position: fixed; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: #fff; z-index: 11; border-radius: 16px 16px 0 0;
  padding: 18px 16px calc(env(safe-area-inset-bottom) + 20px); max-width: 760px; margin: 0 auto; }
.paneel-inhoud img { width: 100%; border-radius: 10px; margin: 10px 0; }
.paneel-inhoud .sluit { float: right; background: #e8edf1; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 22px; }
.geschiedenis { font-size: 14px; color: var(--grijs); margin: 0; padding-left: 18px; }
.rij { display: flex; gap: 8px; } .rij > * { flex: 1; }
#melding { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 16px); background: var(--navy); color: #fff; border-radius: 12px;
  padding: 14px 16px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto; }
#melding button { background: none; border: 0; color: #9fd0ff; font-weight: 700; font-size: 16px; }
.waarschuwing { background: var(--oranjelicht); color: #6b4300; border-radius: 10px; padding: 10px 12px; font-size: 15px; margin: 10px 0; }
.leeg { text-align: center; color: var(--grijs); padding: 20px; }
[hidden] { display: none !important; }
a.knop { text-decoration: none; }
