/* Portaal: app-achtige schermen bovenop site.css */
.app-head .wrap { padding-block: 8px; }
.app-tabs { background: var(--navy); }
.app-tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 0; }
.app-tabs a { color: var(--on-navy-muted); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: .92rem; padding: 10px 12px 12px; border-bottom: 3px solid transparent; white-space: nowrap; }
.app-tabs a[aria-current="page"] { color: var(--on-navy); border-bottom-color: var(--lime); }
.who { color: var(--on-navy-muted); font-size: .85rem; display: flex; gap: 10px; align-items: center; }
.who button { background: none; border: 1px solid var(--on-navy-muted); color: var(--on-navy); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; cursor: pointer; }

.app { padding-block: 24px 64px; display: flex; flex-direction: column; gap: 18px; }
.app h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-card { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 820px) { .grid2, .grid-card { grid-template-columns: 1fr; } }

/* login */
.login { max-width: 440px; margin: 24px auto; }
.login .card { padding: 24px; gap: 16px; }

/* formulieren */
label.fld { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); min-width: 0; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], input[type=date], input[type=url], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; min-width: 0;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: transparent; }
.code-input { font-family: var(--card) !important; font-size: 2rem !important; letter-spacing: .4em; text-align: center; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--lime-ink); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-weight: 700; font-size: .92rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* trainer: spelerrij */
.pl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pl.done { border-left: 5px solid var(--lime); }
.pl.absent { opacity: .75; }
.pl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-head b { font-size: 1.08rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { font: inherit; font-weight: 700; font-size: .85rem; background: var(--surface); color: var(--muted); border: 0; padding: 7px 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button.absent[aria-pressed="true"] { background: var(--danger); }
.stars-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 8px; }
.stars-row .code { font-family: var(--card); font-weight: 700; font-size: 1.15rem; }
.stars { display: flex; gap: 2px; }
.stars button { font-size: 1.7rem; line-height: 1; background: none; border: 0; padding: 4px 5px; color: var(--line); cursor: pointer; min-width: 40px; min-height: 40px; }
.stars button.on { color: #E3A008; }
.stars .lbl { font-size: .8rem; color: var(--muted); align-self: center; margin-left: 6px; white-space: nowrap; }
.save-state { font-size: .8rem; color: var(--muted); }
.save-state.ok { color: var(--ok); }
.save-state.err { color: var(--danger); }
.progress { height: 8px; background: var(--chip); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--lime); }

/* ouder */
.kid-card canvas { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 12px 22px rgba(15,39,68,.25)); }
.statbars { display: flex; flex-direction: column; gap: 10px; }
.statbar { display: grid; grid-template-columns: 110px minmax(0,1fr) 36px; gap: 10px; align-items: center; font-size: .95rem; }
.statbar .bar { height: 10px; background: var(--chip); border-radius: 99px; overflow: hidden; }
.statbar .bar span { display: block; height: 100%; background: var(--navy); border-radius: 99px; }
:root[data-theme="dark"] .statbar .bar span { background: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .statbar .bar span { background: var(--lime); } }
.statbar b { font-family: var(--card); font-size: 1.25rem; text-align: right; font-variant-numeric: tabular-nums; }
.teaser { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.teaser .muted { color: var(--on-navy-muted); }
.notes { display: flex; flex-direction: column; gap: 8px; }
.notes div { border-left: 3px solid var(--lime); padding: 4px 0 4px 12px; }
.att { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.att .d { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; background: var(--surface); }
.att .d b { font-family: var(--display); }

/* beheer */
.list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.list button.item { font: inherit; text-align: left; background: var(--surface); color: var(--ink); border: 0; border-top: 1px solid var(--line); padding: 10px 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.list button.item:first-child { border-top: 0; }
.list button.item[aria-current="true"] { background: var(--chip); box-shadow: inset 4px 0 0 var(--lime); }
.list button.item:hover { background: var(--bg); }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mini { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mini td, .mini th { padding: 6px 6px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mini th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 0; }
.mini input, .mini select { padding: 6px 8px; font-size: .92rem; }
.mini select { min-width: 110px; }
.confirm { background: var(--danger-soft); color: var(--danger); border-radius: 8px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--chip); flex: none; }
.matrix td.c { text-align: center; }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 600; }
.toast.err { background: var(--danger); }
.loading { color: var(--muted); padding: 24px 0; }
.catblk { border-left: 3px solid var(--lime); padding-left: 10px; display: flex; flex-direction: column; gap: 0; }
.catblk .stars-row { grid-template-columns: 60px minmax(0, 1fr); }
.chip.sm { padding: 5px 12px; font-size: .85rem; }
.statgroup { display: flex; flex-direction: column; gap: 4px; }
.feet { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4px 14px; padding-left: 120px; }
.foot { display: grid; grid-template-columns: 46px minmax(0,1fr) 26px; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); }
.foot .bar { height: 6px; }
.foot .fv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.feetsum { background: var(--chip); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 560px) { .feet { padding-left: 0; } }
@media (max-width: 560px) { .feet { grid-template-columns: 1fr; padding-left: 12px; } }
@media (max-width: 430px) { .stars .lbl { display: none; } .stars button { min-width: 38px; padding: 4px 3px; } }

/* Beheerder: Bekijk als ouder */
.preview-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; background: #FFF4C2; color: #3A2E00; border: 1px solid #E8D27A; border-radius: 10px; padding: 10px 14px; }
.preview-bar .btn.quiet { color: #3A2E00; border-color: #C9B25A; }

/* inschrijfformulier (inschrijven.html) */
.inschrijf { max-width: 780px; display: flex; flex-direction: column; gap: 18px; }
.inschrijf .card h2 { font-size: 1.25rem; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radio { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; background: var(--surface); }
.radio:has(input:checked) { border-color: var(--lime-ink); box-shadow: inset 0 0 0 1px var(--lime-ink); }
.radio input, .check.top input { accent-color: var(--lime-ink); width: 18px; height: 18px; flex: none; }
.check.top { align-items: flex-start; font-weight: 500; }
.check.top input { margin-top: 3px; }
.req::after { content: " *"; color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.help { font-size: .82rem; font-weight: 400; color: var(--muted); }
.med-flag { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: .75rem; width: 22px; height: 22px; border-radius: 50%; background: var(--danger); color: #fff; cursor: pointer; flex: none; border: 0; padding: 0; }
.bezet { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pill.info { background: var(--chip); }
