/* ===== Tokens ===== */
:root {
    --red: #e31e24; --red-d: #b9151b; --yellow: #ffe000; --green: #3f9a38; --green-d: #2d7a28;
    --ink: #161a23; --muted: #596070; --line: #e8e6e1; --bg: #f7f6f2; --card: #ffffff;
    --radius: 16px; --radius-s: 10px;
    --shadow: 0 1px 2px rgba(22,26,35,.04), 0 8px 24px -12px rgba(22,26,35,.14);
    --shadow-h: 0 2px 4px rgba(22,26,35,.05), 0 16px 32px -14px rgba(22,26,35,.22);
    --grad: linear-gradient(90deg, var(--red), var(--yellow) 52%, var(--green));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; color: var(--ink); line-height: 1.55; letter-spacing: -.003em;
    font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(900px 420px at 8% -8%, rgba(227,30,36,.07), transparent 60%),
        radial-gradient(800px 380px at 100% 0%, rgba(63,154,56,.08), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: var(--red-d); text-underline-offset: 3px; }
h1 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.3rem); line-height: 1.15; letter-spacing: -.025em; margin: .25em 0 .5em; font-weight: 800; }
h2 { font-size: 1.15rem; letter-spacing: -.01em; margin: 0 0 .4em; font-weight: 700; }
h3 { margin: 0 0 .4em; }
.muted { color: var(--muted); } .small { font-size: .85rem; }

/* ===== Header ===== */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.top::after { content: ""; display: block; height: 4px; background: var(--grad); }
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 64px; flex-wrap: wrap; gap: 8px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.brand img { display: block; height: 48px; width: auto; margin: 6px 0; transition: transform .25s; }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.brand span { font-weight: 600; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--line); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
nav a { color: var(--ink); font-weight: 600; font-size: .93rem; text-decoration: none; padding: 7px 13px; border-radius: 999px; transition: background .15s, color .15s; }
nav a:hover { background: #f0eee8; color: var(--red); }
.who { margin-left: 8px; color: var(--muted); font-size: .82rem; padding: 4px 10px; background: #f0eee8; border-radius: 999px; }
main { padding-top: 38px; padding-bottom: 48px; min-height: 72vh; }
.foot { color: var(--muted); font-size: .85rem; padding-bottom: 28px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; box-shadow: 0 6px 16px -8px rgba(227,30,36,.7); transition: transform .12s, box-shadow .15s, background .15s; }
.btn:hover { background: var(--red-d); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(227,30,36,.8); }
.btn:active { transform: translateY(0); }
.btn.alt { background: #fff; color: var(--ink); border-color: #d9d6cf; box-shadow: none; }
.btn.alt:hover { border-color: var(--red); color: var(--red); background: #fff; }
.btn.green { background: var(--green-d); box-shadow: 0 6px 16px -8px rgba(45,122,40,.7); } .btn.green:hover { background: #236320; }
.btn.small { padding: 6px 13px; font-size: .84rem; }
.btn.danger { background: #fff; color: #c0262b; border-color: #f0c9ca; box-shadow: none; } .btn.danger:hover { background: #fdeeee; }
.btn.big { padding: 14px 28px; font-size: 1.05rem; }

/* ===== Cards & layout ===== */
.card-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.narrow { max-width: 480px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.row-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.row-between > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.flash { background: #eaf6ec; border: 1px solid #bfe0c4; color: #1d5a2a; padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 18px; font-weight: 600; }
.alert { background: #fdecec; border: 1px solid #f3c2c3; color: #8f1519; padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 14px; }

/* ===== Home ===== */
.hero { text-align: center; padding: 32px 0 8px; }
.hero-logo { max-width: 62%; height: auto; margin-bottom: 4px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.12)); }
.hero h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
.hero p { max-width: 640px; margin: .5em auto 1.2em; color: var(--muted); font-size: 1.08rem; }
.parade-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 860px; margin: 28px auto 0; }
.parade-card { position: relative; overflow: hidden; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.parade-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.parade-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad); }
.parade-card h2 { font-size: 1.4rem; margin-top: 6px; }
.parade-card .chip { display: inline-block; background: #f2f0ea; border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 600; margin: 0 6px 12px 0; }
.parade-card .btn { margin-top: 6px; }

/* ===== Dashboard ===== */
.stats { list-style: none; padding: 0; margin: 10px 0 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.stats li { flex: 1; min-width: 100px; background: #f7f6f2; border-radius: 12px; padding: 12px 14px; font-size: .85rem; color: var(--muted); }
.stats li b { display: block; font-size: 1.8rem; line-height: 1.1; color: var(--ink); letter-spacing: -.03em; }
.stats .warn { background: #fff4de; color: #9a5b00; } .stats .warn b { color: #9a5b00; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; } .steps:last-child { margin-bottom: 0; } .steps.tools { margin-top: 2px; }

/* ===== Forms ===== */
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 18px; padding: 16px 20px 8px; background: #fcfbf8; }
legend { font-weight: 800; padding: 3px 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: #fff; background: var(--ink); border-radius: 999px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=url], .field textarea, input[type=search] {
    width: 100%; max-width: 580px; padding: 10px 14px; border: 1.5px solid #dcd9d1; border-radius: var(--radius-s); font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, input[type=search]:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,30,36,.14); }
.field textarea { min-height: 92px; resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--red); width: 1.1em; height: 1.1em; }
.field.check { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.field.check label { font-weight: 500; display: inline; flex: 1; min-width: 240px; }
.consent { background: #fffbe6; border-color: #f1dc6d; }
.consent legend { background: #8a6d00; }
ul.errors, .field ul, .form-error { color: #c0262b; list-style: none; padding: 0; margin: 2px 0 4px; font-size: .88rem; font-weight: 600; }
.hidden { display: none !important; }
.hp { position: absolute; left: -9999px; }
.inline { margin: 0 14px; font-weight: 500; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid #f0eee8; vertical-align: top; }
th { background: #faf9f5; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
tbody tr:hover { background: #fcfbf8; } tbody tr:last-child td { border-bottom: 0; }
tr.st-pending { background: #fffbea; } tr.st-rejected { opacity: .5; }
td.remark { max-width: 260px; font-size: .9rem; }
td.actions { white-space: nowrap; } td.actions form { display: inline; }
.ok { color: var(--green-d); font-weight: 600; } .warn { color: #b25a00; font-weight: 600; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 16px; }
.tabs a { padding: 7px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: .15s; }
.tabs a:hover { border-color: var(--red); } .tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
input.sc { width: 70px; padding: 7px; border: 1.5px solid #dcd9d1; border-radius: 8px; text-align: center; font: inherit; }
input.sc:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,30,36,.14); }
ol.rank { padding-left: 0; list-style: none; margin: 0; } ol.rank li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
ol.rank .pos { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: #f2f0ea; font-weight: 800; font-size: .85rem; }
ol.rank li:nth-child(1) .pos { background: var(--yellow); } ol.rank li:nth-child(2) .pos { background: #e3e5ea; } ol.rank li:nth-child(3) .pos { background: #f0cfae; }

/* ===== Planning ===== */
.cols { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.list { list-style: none; margin: 0; padding: 10px; min-height: 90px; background: rgba(22,26,35,.045); border-radius: var(--radius); }
.list.empty { outline: 2px dashed #cfccc3; outline-offset: -8px; }
.card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(22,26,35,.04); position: relative; transition: box-shadow .15s, transform .15s; }
.card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--yellow); }
.card:hover { box-shadow: var(--shadow); }
.card .handle { cursor: grab; font-size: 1.25rem; color: #b0b3bd; user-select: none; padding: 2px 2px 0 6px; }
.card .handle:hover { color: var(--red); }
.card .nr { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem; flex: none; }
.card .body { flex: 1; min-width: 0; }
.card .name { font-weight: 700; }
.card .badge { font-size: .7rem; background: #f2f0ea; padding: 2px 9px; border-radius: 999px; font-weight: 600; vertical-align: 1px; }
.card .wish { font-size: .83rem; background: #fff3cd; border-radius: 8px; padding: 3px 9px; margin-top: 5px; display: inline-block; }
.card.locked::before { background: var(--green); } .card.locked { background: #f4fbf5; }
.card.locked .handle { cursor: not-allowed; opacity: .35; }
.card.ghost { opacity: .35; transform: scale(.98); } .card.dim { opacity: .22; }
.lock-btn { background: none; border: 0; cursor: pointer; font-size: 1.1rem; border-radius: 8px; padding: 4px 6px; } .lock-btn:hover { background: #f0eee8; }
#save-status { font-size: .9rem; font-weight: 600; margin-right: 6px; } #save-status.saved { color: var(--green-d); } #save-status.error { color: var(--red); }
.search { margin-bottom: 14px; }
.cols.readonly .handle { display: none; } .cols.readonly .card { cursor: default; }
.banner-locked { background: #eaf6ec; border: 1px solid #bfe0c4; color: #1d5a2a; padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 16px; font-weight: 600; }
.inline-form { display: inline; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
input.nr-input { width: 56px; height: 34px; text-align: center; font: inherit; font-weight: 800; color: #fff; background: var(--ink); border: 2px solid transparent; border-radius: 10px; padding: 0; -moz-appearance: textfield; appearance: textfield; }
input.nr-input::-webkit-outer-spin-button, input.nr-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.nr-input::placeholder { color: #aab; }
input.nr-input:hover { background: #2b3040; }
input.nr-input:focus { outline: none; background: #fff; color: var(--ink); border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,30,36,.16); }
.card .nr { flex: none; }
.card.flash-move { animation: flashmove 1.1s ease; }
@keyframes flashmove { 0% { box-shadow: 0 0 0 0 rgba(255,224,0,.9); background: #fff8c4; } 100% { box-shadow: 0 0 0 14px rgba(255,224,0,0); } }
#save-status.unsaved { color: #9a5b00; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== Editie-formulier ===== */
.page-head p { margin: -.2em 0 1.4em; }
.edition-form { max-width: 920px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px 8px; }
.form-card.wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.form-card header { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.form-card header h2 { margin: 0; }
.form-card header p { margin: 0; }
.ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 1.4rem; border-radius: 14px; background: linear-gradient(135deg, #fff1c2, #ffd9d6); }
.two { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.form-card:has(#edition_rulesUrl) .two { grid-template-columns: 1fr 1fr; }
.three { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 14px; flex: 1; }
@media (max-width: 760px) { .two, .three, .form-card:has(#edition_rulesUrl) .two { grid-template-columns: 1fr; } }
.form-card .field input[type=text], .form-card .field input[type=number], .form-card .field input[type=url] { max-width: none; }
.help { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.parade-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px 0; margin-bottom: 12px; background: #fcfbf8; border: 1px solid var(--line); border-radius: 14px; }
.chip-type { flex: none; margin-top: 30px; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .parade-row { flex-direction: column; } .chip-type { margin-top: 0; } }
.switch-row { display: flex; gap: 16px; align-items: flex-start; cursor: pointer; padding-bottom: 14px; }
.switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .slider { position: absolute; inset: 0; border-radius: 999px; background: #cfccc3; transition: background .2s; }
.switch .slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::after { transform: translateX(22px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 4px rgba(63,154,56,.25); }
.form-actions { display: flex; gap: 10px; margin: 24px 0 8px; }

.parade-desc { margin: .2em 0 1em; font-size: .95rem; }

/* ===== Nieuwe onderdelen ===== */
[hidden] { display: none !important; }
pre.code { background: #1b1f2a; color: #e8ecf3; border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: .85rem; }
code { background: #f0eee8; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.privacy-note { background: #f2f7f0; border: 1px solid #cfe3ca; border-radius: 10px; padding: 10px 14px; font-size: .88rem; color: #2f4a2b; margin: 6px 0 16px; }
.warn-box { background: #fff4de; border: 1px solid #f1d49a; color: #7a4a00; padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 16px; }
.error-text { color: var(--red); font-weight: 600; font-size: .9rem; }
.mt { margin-top: 1.4em; }
.wide-text { width: 100%; max-width: 760px; padding: 10px 14px; border: 1.5px solid #dcd9d1; border-radius: var(--radius-s); font: inherit; }
.inline-fields { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-fields input[type=text], .inline-fields input[type=search], .inline-fields select { padding: 10px 14px; border: 1.5px solid #dcd9d1; border-radius: var(--radius-s); font: inherit; min-width: 220px; background: #fff; }
.inline-fields > input[type=text], .inline-fields > input[type=search] { flex: 1 1 280px; max-width: 460px; }
.inline-fields label { font-weight: 600; font-size: .9rem; display: flex; flex-direction: column; gap: 4px; }
progress { appearance: none; -webkit-appearance: none; height: 12px; width: 100%; border: 0; border-radius: 999px; overflow: hidden; background: #ece9e1; }
progress::-webkit-progress-bar { background: #ece9e1; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--yellow), var(--green)); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 999px; }
progress.mini { width: 120px; height: 8px; }
.checkin-head { display: grid; gap: 8px; } .checkin-head .count { font-size: 1.1rem; } .checkin-head .count b { font-size: 1.8rem; letter-spacing: -.03em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rows .row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(22,26,35,.04); }
.rows .row[data-collected="1"] { background: #f4fbf5; border-color: #cfe3ca; }
.rows .body { flex: 1; min-width: 0; } .rows .name { font-weight: 700; font-size: 1.02rem; }
.rows .wish { font-size: .85rem; background: #fff3cd; border-radius: 8px; padding: 3px 9px; margin-top: 5px; display: inline-block; }
.rows .contact { margin-top: 6px; font-size: .9rem; }
.rows .badge { font-size: .7rem; background: #f2f0ea; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.nr.big { min-width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.3rem; flex: none; }
.state { font-size: 1.5rem; font-weight: 800; flex: none; }
.check-btn { flex: none; min-width: 112px; min-height: 48px; border-radius: 999px; border: 2px solid #cfccc3; background: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: .15s; }
.check-btn.on { background: var(--green); border-color: var(--green); color: #fff; }
.check-btn:disabled { opacity: .5; }
.variant { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.variant:last-child { border-bottom: 0; } .variant-actions { display: flex; gap: 6px; flex-wrap: wrap; } .variant-actions form { display: inline; }
.parade-fields { flex: 1; min-width: 0; } .two-even { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.danger-zone { margin-top: 28px; border-color: #f0c9ca; background: #fffafa; max-width: 920px; }
.save-bar { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ===== Responsive ===== */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle span { top: 21px; } .nav-toggle span::before { left: 0; right: 0; top: -7px; } .nav-toggle span::after { left: 0; right: 0; top: 7px; }
.top.nav-open .nav-toggle span { background: transparent; } .top.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); } .top.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .js .nav-toggle { display: block; }
    .js nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 4px 0 12px; gap: 2px; }
    .js .top.nav-open nav { display: flex; }
    .js nav a { padding: 12px 14px; font-size: 1rem; } .js nav .who { align-self: flex-start; margin: 6px 0 0 6px; }
    .brand span { display: none; }
}
@media (max-width: 720px) {
    main { padding-top: 18px; }
    .wrap { padding: 0 14px; }
    .card-box, .form-card { padding: 16px; border-radius: 14px; }
    h1 { margin-bottom: .4em; }
    .row-between { align-items: flex-start; } .row-between > div { width: 100%; }
    .btn.big { width: 100%; justify-content: center; }
    .grid2 { grid-template-columns: 1fr; }
    /* tabellen worden kaarten */
    .rt thead { display: none; }
    .rt, .rt tbody, .rt tr, .rt td { display: block; width: 100%; }
    .table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
    .rt tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; padding: 8px 14px; box-shadow: var(--shadow); }
    .rt td { display: block; border: 0; padding: 6px 0; text-align: left; overflow-wrap: anywhere; }
    .rt td::before { content: attr(data-label); display: block; margin-bottom: 1px; font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
    .rt td[data-label=""]::before { display: none; }
    .rt td:empty { display: none; }
    .rt td.actions { display: flex; gap: 8px; flex-wrap: wrap; } .rt td.remark { max-width: none; }
    .rt td[colspan] { text-align: left; } .rt td[colspan]::before { display: none; }
    input.sc { width: 84px; }
    /* planning: opslaan altijd binnen bereik */
    .save-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-between; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(22,26,35,.08); }
    .save-bar .btn { flex: 1; justify-content: center; min-height: 44px; } #save-status { flex-basis: 100%; text-align: center; font-size: .85rem; }
    body.has-save-bar main { padding-bottom: 120px; }
    .card .handle { padding: 8px 10px 8px 2px; font-size: 1.5rem; touch-action: none; }
    input.nr-input { width: 60px; height: 40px; font-size: 1rem; }
    .rows .row { padding: 12px; gap: 10px; } .nr.big { min-width: 46px; height: 46px; font-size: 1.15rem; }
    .check-btn { min-width: 96px; }
    .two-even, .inline-fields { grid-template-columns: 1fr; } .inline-fields > * { width: 100%; } .inline-fields input[type=text], .inline-fields input[type=search], .inline-fields select { min-width: 0; width: 100%; }
    .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; } .tabs a { white-space: nowrap; }
    .stats li { min-width: 90px; }
    .hero-logo { max-width: 80%; }
}
@media (pointer: coarse) {
    .btn { min-height: 44px; } .btn.small { min-height: 40px; padding: 8px 16px; } .chip, .tabs a { min-height: 40px; }
    .lock-btn { min-width: 44px; min-height: 44px; font-size: 1.3rem; }
    input[type=checkbox], input[type=radio] { width: 1.3em; height: 1.3em; }
}

/* ===== Keuzerijen (radio's) ===== */
.choices { display: grid; gap: 8px; max-width: 640px; }
.choice { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1.5px solid #e6e3db; border-radius: var(--radius-s); padding: 11px 14px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: #cfccc3; }
.choice input[type=radio], .choice input[type=checkbox] { margin: 3px 0 0; flex: none; }
.field .choice label, .choice label { display: block; flex: 1; margin: 0; font-weight: 500; line-height: 1.4; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--red); background: #fff5f5; box-shadow: 0 0 0 3px rgba(227,30,36,.08); }
.choice:has(input:focus-visible) { outline: 3px solid rgba(227,30,36,.35); outline-offset: 2px; }
.field label.required::after { content: " *"; color: var(--red); font-weight: 700; }
.required-note { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.required-note .req { color: var(--red); font-weight: 700; }
.choice label.required::after { content: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(227,30,36,.45); outline-offset: 2px; }
pre.code:focus-visible { outline: 3px solid rgba(255,224,0,.8); }

.info-box { background: #eef5fb; border: 1px solid #c5dcef; color: #1d4466; padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 16px; }
details.help { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 14px; }
details.help summary { cursor: pointer; font-weight: 700; } details.help p { margin: .6em 0 0; color: var(--muted); }
label.choice input { margin-top: 4px; }
@media (max-width: 720px) {
    .rt td.score { display: inline-block; width: calc(50% - 4px); vertical-align: top; }
    .rt td.score input.sc { width: 100%; max-width: 140px; }
}
