/* Lettertypen uit de eigen map (2.72.0): niets meer bij Google ophalen. Variabele bestanden, latin + latin-ext. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/oswald-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/oswald-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(fonts/montserrat-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(fonts/montserrat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.skip-link { position: fixed; left: 8px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: 10px; background: #fff; color: #120a22; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; outline: 3px solid #ffd23f; }
:root {
  /* Branding: runtime-waarden uit config.js, met de standaardclub als veilige fallback. */
  --club-primary: #20113c;
  --club-primary-dark: #120a22;
  --club-primary-light: #33215a;
  --club-accent: #467fbf;
  /* Compatibiliteitsaliassen voor bestaande componenten. */
  --navy: var(--club-primary);
  --navy-2: var(--club-primary-light);
  --blue: var(--club-accent);
  --red: var(--club-accent);
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #121a2b;
  --muted: #5d6880;
  --line: #dde2ec;
  --accent: var(--red);
  --ok: #1d8a4e;
  --warn: #b7791f;
  --s1: #d03d3d; --s2: #e8853a; --s3: #d9b31c; --s4: #6fb33f; --s5: #1d8a4e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .05);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--club-primary-dark);
    --surface: #1c1430;
    --surface-2: #271d40;
    --text: #e8edf7;
    --muted: #9aa6bf;
    --line: #34295a;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(72px + var(--safe-b));
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- top ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 16px;
  background: var(--navy); color: #fff;
}
.brand { display: flex; align-items: flex-end; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 34px; width: auto; display: block; }

.mp-chip {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 44px; padding: 4px 12px; border: 0; border-radius: 10px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.12); color: #fff;
}
.mp-chip small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; line-height: 1.2; }
.mp-chip b { font-size: 14px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.mp-chip b::after { content: " ✎"; opacity: .6; font-weight: 400; }
.sync {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
}
.sync .dot { width: 10px; height: 10px; border-radius: 50%; background: #7ddc9c; }
.sync.pending .dot { background: #ffd166; }
.sync.offline .dot, .sync.error .dot { background: #ff7b7b; }
.sync.busy .dot { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

main { max-width: 760px; margin: 0 auto; padding: 14px 16px 24px; outline: none; }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 9px; font-size: 11.5px; text-decoration: none; color: var(--muted);
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--accent); font-weight: 600; }

/* ---------- generic ---------- */
h1 { font-size: 22px; margin: 4px 0 12px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px;
}
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 10px; }

/* ---------- instellingen ---------- */
.settings-page { display: grid; gap: 18px; }
.settings-section { display: grid; gap: 8px; }
.settings-section-last { margin-bottom: 8px; }
.settings-section-title { margin: 2px 4px 0; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.settings-card { margin-bottom: 0; }
.settings-card h2 { margin-bottom: 6px; }
.settings-card-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.settings-card-head h2 { margin-bottom: 4px; }
.settings-card-head p { margin: 0; }
.settings-card-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); font-size: 20px; }
.settings-choice { justify-content: space-between; align-items: center; gap: 12px; }
.settings-choice > div { min-width: 0; }
.branding-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--preview-primary, var(--navy)); color: #fff; border-left: 5px solid var(--preview-accent, var(--accent)); }
.branding-preview img { width: 72px; height: 34px; object-fit: contain; object-position: left center; }
.branding-preview b, .branding-preview small { display: block; }
.branding-preview small { opacity: .78; font-size: 12px; }
.branding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.branding-grid .field { min-width: 0; }
.branding-wide { grid-column: 1 / -1; }
.field-help { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.branding-colors { border-top: 1px solid var(--line); padding-top: 10px; }
.branding-color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.color-field { display: grid; grid-template-columns: 30px 1fr; gap: 6px; align-items: center; }
.color-field > span { grid-column: 1 / -1; font-size: 12px; font-weight: 600; }
.color-field input[type=color] { width: 30px; height: 30px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.color-field input[type=text] { min-height: 36px; padding: 5px 8px; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-weight: 600; text-decoration: none; font-size: 15px;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
input:not([type]), input[type=text], input[type=url], input[type=password], input[type=search], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], textarea, select {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); font-size: 16px;
}
input:focus, select:focus, .btn:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 1px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; margin: 0 -16px 6px; padding-inline: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 13px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- player list ---------- */
.search { margin-bottom: 10px; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li + li { margin-top: 8px; }
.prow {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none;
}
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font-weight: 700; font-size: 14px; color: var(--navy-2);
}
@media (prefers-color-scheme: dark) { .avatar { color: #b9c7ea; } }
.prow .name { font-weight: 600; }
.prow .meta { font-size: 13px; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 28px;
  padding: 0 8px; border-radius: 8px; font-weight: 700; font-size: 14px; background: var(--surface-2);
}
.badge.s1 { background: var(--s1); color: #fff; } .badge.s2 { background: var(--s2); color: #fff; }
.badge.s3 { background: var(--s3); color: #1a1a1a; } .badge.s4 { background: var(--s4); color: #fff; }
.badge.s5 { background: var(--s5); color: #fff; }
.progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 5px; width: 120px; }
.progress > i { display: block; height: 100%; background: var(--navy-2); }
.team-tag { font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); }

/* ---------- player detail ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 6px; }
.phead { display: flex; gap: 14px; align-items: center; }
.phead .avatar { width: 56px; height: 56px; font-size: 19px; }
.phead h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.stat b { display: block; font-size: 19px; }
.stat span { font-size: 12px; color: var(--muted); }

.comp { padding: 10px 0; border-top: 1px solid var(--line); }
.comp:first-of-type { border-top: 0; padding-top: 2px; }
.comp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.comp-head .lbl { font-weight: 600; }
.delta { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.delta.up { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.delta.down { color: var(--s1); background: color-mix(in srgb, var(--s1) 14%, transparent); }
.spark { width: 64px; height: 20px; }
.spark path { fill: none; stroke: var(--navy-2); stroke-width: 1.6; }
@media (prefers-color-scheme: dark) { .spark path { stroke: #8fa8de; } }

.scores { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 6px; }
.scores button {
  min-height: 52px; touch-action: manipulation; user-select: none; -webkit-user-select: none; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  font-weight: 700; font-size: 19px; cursor: pointer; transition: transform .06s; border-width: 1.5px; border-color: color-mix(in srgb, var(--text) 16%, transparent);
}
.scores button:active { transform: scale(.94); }
.scores button.on[data-v="1"] { background: var(--s1); border-color: var(--s1); color: #fff; }
.scores button.on[data-v="2"] { background: var(--s2); border-color: var(--s2); color: #fff; }
.scores button.on[data-v="3"] { background: var(--s3); border-color: var(--s3); color: #1a1a1a; }
.scores button.on[data-v="4"] { background: var(--s4); border-color: var(--s4); color: #fff; }
.scores button.on[data-v="5"] { background: var(--s5); border-color: var(--s5); color: #fff; }
.computed { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }

.th-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- chart ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); }
.chart text { fill: var(--muted); font-size: 10px; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.chart .avg { stroke: var(--navy-2); }
@media (prefers-color-scheme: dark) { .chart .avg { stroke: #8fa8de; } }

/* ---------- quick rate ---------- */
.qr-controls { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
.qr-nav { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; }
.qr-nav .btn { padding: 0; }
.qr-item { padding: 10px 0; border-top: 1px solid var(--line); }
.qr-item:first-child { border-top: 0; }
.qr-item .name { font-weight: 600; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }

/* ---------- history ---------- */
.hday { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 6px; text-transform: capitalize; }
.hitem { display: flex; gap: 10px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.hitem + .hitem { margin-top: 6px; }
.hitem .arrow { font-weight: 700; white-space: nowrap; }
.hitem .sub { color: var(--muted); font-size: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tbl td.num, .tbl th.num { text-align: right; }

.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.notice { background: color-mix(in srgb, var(--warn) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }

/* ================= materiaal ================= */
.materiaal-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.materiaal-summary > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.materiaal-summary b { display: block; font-size: 24px; line-height: 1.1; }
.materiaal-summary span, .materiaal-counts span { display: block; color: var(--muted); font-size: 12px; }
.materiaal-top-actions { margin: 10px 0 14px; }
.materiaal-list { display: grid; gap: 10px; }
.materiaal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.materiaal-card.under { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); }
.materiaal-card h2 { margin: 0 0 2px; }
.materiaal-alert { flex: none; color: #8a5b00; background: color-mix(in srgb, var(--warn) 16%, transparent); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700; }
.materiaal-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 8px; }
.materiaal-counts > div { background: var(--surface-2); border-radius: 9px; padding: 7px 8px; }
.materiaal-counts b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.materiaal-note { margin: 8px 0; }
.materiaal-actions { gap: 6px; }
.materiaal-actions .btn { flex: 1 1 130px; }
.materiaal-history { margin-top: 12px; }
.materiaal-history summary { display: flex; align-items: baseline; gap: 8px; cursor: pointer; }
.materiaal-history summary .small { margin-left: auto; }
.materiaal-history ul { list-style: none; padding: 0; margin: 12px 0 0; }
.materiaal-history li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.materiaal-history small { display: block; color: var(--muted); margin-top: 2px; }
@media (max-width: 420px) { .materiaal-counts b { font-size: 17px; } .materiaal-counts span { font-size: 11px; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--hdr, 60px) + 8px); z-index: 50; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: #1b2436; color: #fff; padding: 11px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: tin .2s ease-out; }
.toast.err { background: #8a1c1c; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

.loader { display: grid; place-items: center; padding: 60px 0; color: var(--muted); }

@media (prefers-color-scheme: dark) {
  .chip.active, .seg button.on, .btn.navy { background: var(--blue); border-color: var(--blue); }
  .topbar { border-bottom: 1px solid var(--line); }
}
.qr-item .name a, .hitem a { text-decoration: none; color: inherit; }
.hitem a { font-weight: 600; }

/* ================= mobiel / training ================= */
button, .btn, .chip, a { touch-action: manipulation; }
.btn:active, .chip:active, .seg button:active, .icon-btn:active, .mp-chip:active, .sync:active { transform: scale(.96); }
.chip { min-height: 40px; padding: 8px 15px; font-weight: 500; }
.seg button { min-height: 50px; font-size: 17px; touch-action: manipulation; }
select { min-height: 48px; font-weight: 600; }

/* sticky balken onder de kop */
.sticky {
  position: sticky; top: var(--hdr, 60px); z-index: 15;
  margin: -14px -16px 12px; padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
section[id^="g-"] { scroll-margin-top: calc(var(--hdr, 60px) + 120px); }

.icon-btn {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-size: 26px; line-height: 1; cursor: pointer; text-decoration: none;
}
.icon-btn:disabled { opacity: .35; }
.pbar { display: flex; align-items: center; gap: 10px; }
.pbar-mid { flex: 1; min-width: 0; text-align: center; }
.pbar-mid b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-mid span { font-size: 12px; color: var(--muted); }
.jump { margin: 8px -16px 0; padding-bottom: 2px; }
.jump .chip { min-height: 34px; padding: 5px 12px; font-size: 13px; }

.qr-sticky .qr-controls { margin: 0; }
.qr-progress { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.qr-progress .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.qr-progress .bar i { display: block; height: 100%; background: var(--blue); transition: width .2s; }
.legend { font-size: 12px; color: var(--muted); margin: -2px 0 6px; }
.prev { font-size: 12px; color: var(--muted); font-weight: 400; }
.undo {
  margin-left: auto; border: 0; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue);
  font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 8px; cursor: pointer; min-height: 32px;
}
@media (prefers-color-scheme: dark) { .undo { color: #8db4e6; } }
.next-comp { margin-top: 4px; min-height: 54px; font-size: 16px; }
.qr-item.done .name a { color: var(--muted); }
.qr-item .name a { font-size: 17px; }

/* bottom sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 6, 20, .7); animation: fade .18s; } /* 70% dekking (Martijn, 2 dec 2026), gelijk aan de proefstijl */
.sheet {
  position: relative; width: min(100%, 560px); max-height: 85vh; overflow: auto;
  background: var(--surface); border-radius: 18px 18px 0 0; padding: 8px 16px calc(18px + var(--safe-b));
  animation: up .2s ease-out;
}
.sheet-grip { width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 2px auto 12px; }
.sheet h2 { font-size: 18px; }
.sheet .btn { min-height: 50px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.sheet-wrap.closing .sheet { transform: translateY(100%); transition: transform .18s; }
.sheet-wrap.closing .sheet-backdrop { opacity: 0; transition: opacity .18s; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--blue); }

/* ================= spelerbeheer ================= */
.fab {
  position: fixed; right: 16px; bottom: calc(76px + var(--safe-b)); z-index: 18;
  display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 20px 0 16px;
  border: 0; border-radius: 26px; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 18px rgba(32, 17, 60, .3); cursor: pointer;
}
.fab span { font-size: 26px; line-height: 1; font-weight: 400; }
.plist { padding-bottom: 70px; }
.edit-btn { margin-left: auto; width: 44px; height: 44px; font-size: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.grid2.even { grid-template-columns: 1fr 1fr; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
div.field { margin-bottom: 12px; }
input[type=date] { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.game-players { margin: 10px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.game-players > summary { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; }
.game-players > summary::-webkit-details-marker { display: none; }
.game-players > summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.game-players:not([open]) > summary::after { transform: rotate(-90deg); }
.game-players > summary .small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-player-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; padding: 0 10px 8px; border-top: 1px solid var(--line); }
.game-player { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 4px; cursor: pointer; }
.game-player input { flex: none; width: 18px; height: 18px; accent-color: var(--blue); }
.game-player span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-player-help { margin: 0; padding: 0 12px 10px; }
.pick.two { display: grid; grid-template-columns: 1fr 1fr; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-weight: 600; cursor: pointer;
}
.pick input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
@media (prefers-color-scheme: dark) { .pick input:checked + span { background: var(--blue); border-color: var(--blue); } }
.form-error { background: color-mix(in srgb, #d64545 14%, var(--surface)); color: #b42323; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin-top: 4px; }
@media (prefers-color-scheme: dark) { .form-error { color: #ff9b9b; } }
.btn.danger { color: #c62828; border-color: color-mix(in srgb, #c62828 40%, transparent); background: transparent; }
@media (prefers-color-scheme: dark) { .btn.danger { color: #ff8a8a; } }

/* ================= advies ================= */
.advice summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 32px; }
.advice summary::-webkit-details-marker { display: none; }
.advice summary > span { flex: 1; }
.advice summary b { display: block; font-size: 16px; }
.advice summary small { color: var(--muted); font-size: 12.5px; }
.advice summary::after { content: "▾"; color: var(--muted); font-size: 18px; transition: transform .15s; }
.advice:not([open]) summary::after { transform: rotate(-90deg); }
details.advice[open] summary { margin-bottom: 8px; }
.adv { border-left: 4px solid var(--line); padding: 2px 0 2px 12px; margin-top: 12px; }
.adv h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; color: var(--muted); }
.adv ul { margin: 0; padding: 0; list-style: none; }
.adv li { padding: 5px 0; font-size: 15px; }
.adv li + li { border-top: 1px dashed var(--line); }
.adv .tip { font-size: 13px; color: var(--muted); margin-top: 2px; }
.adv .tip::before { content: "Tip: "; font-weight: 700; color: var(--blue); }
.adv a { text-decoration: none; }
.adv.focus { border-color: #e8853a; }
.adv.slow { border-color: #d64545; }
.adv.good, .adv.strong { border-color: #1d8a4e; }
.adv.spread { border-color: #d9b31c; }
.adv.attention { border-color: var(--blue); }
.adv-sum { margin: 0 0 4px; font-size: 15px; }
.adv-note { margin: 12px 0 0; }
.adv-hint { margin: 0 0 10px; }

/* ================= fase 1: schaal, NVT, observaties, meetmoment ================= */
.scores { grid-template-columns: repeat(var(--n, 5), 1fr) 1.05fr; }
.scores button.nvt { font-size: 13px; letter-spacing: .02em; color: var(--muted); }
.scores button.nvt.on { background: #6b7280; border-color: #6b7280; color: #fff; }
.anchor { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.anchor b { color: var(--text); font-weight: 600; }
.anchor-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.note-btn {
  position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 36px; margin-left: 6px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; color: var(--muted);
}
.note-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.note-btn i { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--blue); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.qr-item .name { flex-wrap: nowrap; }
.qr-item .name .spacer { flex: 1; }
.link-btn { border: 0; background: none; padding: 8px 0 0; color: var(--blue); font-weight: 600; font-size: 13.5px; cursor: pointer; text-align: left; }
@media (prefers-color-scheme: dark) { .link-btn { color: #8db4e6; } }
.legend.link-btn { display: block; width: 100%; color: var(--muted); font-weight: 400; font-size: 12px; padding: 0 0 8px; }
.legend.link-btn b { color: var(--blue); }
.notes { list-style: none; margin: 4px 0 12px; padding: 0; }
.notes li { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.notes li + li { margin-top: 6px; }
.notes small { color: var(--muted); font-size: 12px; }
textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 16px; color: inherit; resize: vertical; }
.anchors { list-style: none; margin: 0 0 12px; padding: 0; }
.anchors li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.anchors .badge { flex: none; }
.pick.col { display: grid; gap: 6px; }
.pick.col span { flex-direction: column; align-items: flex-start; justify-content: center; padding: 8px 12px; text-align: left; font-weight: 500; }
.pick.col span small { font-size: 12px; font-weight: 400; opacity: .8; line-height: 1.3; }
.pick.three { display: grid; grid-template-columns: repeat(3, 1fr); }
.hnote { font-size: 13px; margin-top: 3px; padding: 5px 8px; border-radius: 7px; background: var(--surface-2); }
.tag-prov, .tag-test { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; vertical-align: 1px; }
.tag-prov { background: color-mix(in srgb, #d9b31c 22%, transparent); color: #6f5800; }
.tag-test { background: color-mix(in srgb, #1d8a4e 18%, transparent); color: #146b3b; }
@media (prefers-color-scheme: dark) { .tag-prov { color: #f1d36a; } .tag-test { color: #7fd8a6; } }
.qr-item .name { gap: 6px; }
.qr-item .name a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.qr-item .name .prev, .qr-item .name .anchor-tag, .qr-item .name .undo { white-space: nowrap; flex: none; }
@media (max-width: 400px) { .qr-item .name .anchor-tag { display: none; } }
@media (max-width: 520px) {
  .branding-grid { grid-template-columns: 1fr; }
  .branding-wide { grid-column: auto; }
  .settings-choice { align-items: flex-start; flex-direction: column; }
  .settings-choice .btn { width: 100%; }
}

/* ================= itembank: domeinen, subgroepen, uitleg ================= */
details.dom > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 40px; }
details.dom > summary::-webkit-details-marker { display: none; }
details.dom > summary > span:first-child { flex: 1; }
details.dom > summary b { display: block; font-size: 17px; }
details.dom > summary small { color: var(--muted); font-size: 12.5px; }
details.dom > summary::after { content: "▾"; color: var(--muted); font-size: 18px; transition: transform .15s; }
details.dom:not([open]) > summary::after { transform: rotate(-90deg); }
details.dom[open] > summary { margin-bottom: 6px; }
details.dom { scroll-margin-top: calc(var(--hdr, 60px) + 120px); }
.subhead { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin: 14px 0 0; padding-top: 10px; border-top: 2px solid var(--surface-2); }
.subhead + .comp { border-top: 0; }
.comp-head .lbl { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer; min-height: 32px; }

.look { font-size: 13px; color: var(--muted); margin: -2px 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.look.open { -webkit-line-clamp: unset; display: block; }
.adv .look { -webkit-line-clamp: 2; margin: 2px 0 0; }
.tag-extra { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); color: var(--muted); vertical-align: 2px; }
.qr-title { margin-bottom: 8px; }
.qr-kicker { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.qr-name { font-size: 20px; font-weight: 700; line-height: 1.25; margin-top: 2px; }
.qr-desc { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.qr-desc b { color: var(--blue); }
.mini-switch { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; }
.mini-switch input { width: 18px; height: 18px; accent-color: var(--blue); }
.pdf-link { display: inline-block; text-decoration: none; }
.next-comp small { font-weight: 400; opacity: .85; }

/* uitleg per item: tik op de naam */
.comp-head span.lbl { font-weight: 600; padding: 4px 0; }
.look-box { font-size: 13.5px; line-height: 1.45; margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--blue) 10%, var(--surface)); border-left: 3px solid var(--blue); }
.look-box b { color: var(--blue); font-weight: 700; }
@media (prefers-color-scheme: dark) { .look-box b { color: #8db4e6; border-color: #8db4e6; } }

/* i-icoon achter de itemnaam */
.comp-head .lbl { flex: 0 1 auto; }
.info-btn {
  flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; margin-left: 2px;
  border-radius: 50%; border: 1.5px solid var(--blue); background: transparent; color: var(--blue);
  font: italic 700 13px/1 Georgia, serif; cursor: pointer; position: relative;
}
.info-btn::before { content: ""; position: absolute; inset: -10px; } /* groter tikvlak */
.info-btn.on { background: var(--blue); color: #fff; }
.comp-head .tag-extra { margin-left: 4px; }
@media (prefers-color-scheme: dark) { .info-btn { color: #8db4e6; border-color: #8db4e6; } .info-btn.on { background: #8db4e6; color: #120a22; } }

/* ================= posities ================= */
.pos-pick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; }
.pos-pick button { min-height: 42px; padding: 0; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.pos-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pos-pick button.other { box-shadow: inset 0 -3px 0 var(--blue); }
@media (max-width: 380px) { .pos-pick { grid-template-columns: repeat(5, 1fr); } }
@media (prefers-color-scheme: dark) { .pos-pick button.on { background: var(--blue); border-color: var(--blue); } }

/* ================= ontwikkelplan ================= */
.btn.small-btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
.mini-btn { float: right; margin-left: 8px; border: 1px solid var(--blue); background: transparent; color: var(--blue); border-radius: 8px; padding: 3px 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.goal { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.goal.reached { border-color: #1d8a4e; }
.goal.closed { opacity: .75; }
.goal-head { display: flex; align-items: center; gap: 8px; }
.goal-line { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.goal-line b { color: var(--text); }
.goal-bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; margin: 8px 0 6px; }
.goal-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #1d8a4e); }
.goal-txt { font-size: 13px; margin-top: 3px; }
.goal-actions { margin-top: 8px; gap: 6px; }
.goal-status { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); }
.goal-status.behaald { background: color-mix(in srgb, #1d8a4e 20%, transparent); color: #146b3b; }
.warn { color: #b42323; font-weight: 600; }
@media (prefers-color-scheme: dark) { .warn { color: #ff9b9b; } .goal-status.behaald { color: #7fd8a6; } }
.done-goals { margin-top: 10px; }
.done-goals summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.pick.five { display: grid; grid-template-columns: repeat(5, 1fr); }
.pick.four { display: grid; grid-template-columns: repeat(4, 1fr); }
.gc-name { font-weight: 700; font-size: 17px; text-decoration: none; }
.rep-btn { text-decoration: none; font-size: 18px; margin-left: auto; }
.rep-btn + .edit-btn { margin-left: 6px; }

/* ================= beoordelen: modus + tests ================= */
.mode-seg { margin-bottom: 8px; }
.mode-seg button { min-height: 38px; font-size: 15px; }
.test-inputs { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.test-inputs label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); flex: 1 1 110px; }
.tin { display: flex; align-items: center; gap: 4px; }
.tin input { width: 100%; min-height: 46px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 18px; font-weight: 700; color: var(--text); }
.tin em { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; }
.test-inputs .btn { min-height: 46px; flex: 0 0 auto; }
.sw-btn.running { background: #b42323; border-color: #b42323; color: #fff; font-variant-numeric: tabular-nums; }

/* ================= coachoverzicht ================= */
.overview ul { list-style: none; margin: 0; padding: 0; }
.overview li { padding: 8px 10px 8px 12px; border-left: 4px solid var(--line); margin-top: 6px; border-radius: 4px; background: var(--surface-2); font-size: 14.5px; }
.overview li.warn { border-color: #d64545; color: inherit; font-weight: 400; }
.overview li.ok { border-color: #1d8a4e; }
.overview li.info { border-color: var(--blue); }
.ov-names { font-size: 13px; margin-top: 3px; }
.ov-names a { color: var(--blue); text-decoration: none; font-weight: 600; }
.ov-link { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 14px; margin-bottom: 10px; font-size: 14.5px; cursor: pointer; }
.ov-link.has { border-color: #d64545; }
.ov-link b { color: #b42323; }
@media (prefers-color-scheme: dark) { .ov-link b { color: #ff9b9b; } }

/* ================= rapporten ================= */
.report h2 { margin-top: 18px; font-size: 16px; }
.rep-head { display: flex; gap: 14px; align-items: center; margin: 6px 0 12px; }
.rep-head h1 { margin: 2px 0; }
.rep-head img { border-radius: 12px; }
.rep-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.tbl.rep { margin-bottom: 10px; background: var(--surface); }
.tbl.rep th { font-size: 13px; color: var(--muted); }
.report textarea { min-height: 90px; }
.rep-foot { margin-top: 14px; }
.dist { display: flex; width: 110px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.dist i { display: block; height: 100%; }
.dist i.s1 { background: var(--s1); } .dist i.s2 { background: var(--s2); } .dist i.s3 { background: var(--s3); } .dist i.s4 { background: var(--s4); } .dist i.s5 { background: var(--s5); }

@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #f1f2f6; --text: #111; --muted: #555; --line: #ccc; }
  body { background: #fff; padding: 0; color: #111; }
  .topbar, .tabbar, .toasts, .no-print, .fab, .sync { display: none !important; }
  main { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .tbl.rep, .report ul, .rep-head { break-inside: avoid; }
  .report textarea { border: 1px solid #ccc; resize: none; }
  a { color: inherit; text-decoration: none; }
  .dist i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* uitleg per test */
.qr-name .info-btn { vertical-align: 3px; margin-left: 6px; }
.test-how { margin-top: 8px; }
.test-how p { margin: 0 0 6px; }
.test-how p:last-child { margin-bottom: 0; }

/* ================= posities als icoontjes (spelerkop) ================= */
.pos-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.pos-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--surface); }
.pos-badge.prim { background: var(--navy); color: #fff; }
.pos-badge.sec { border-style: dashed; }
.pos-code { font-weight: 800; font-size: 15px; min-width: 22px; text-align: center; }
.pos-txt { display: flex; flex-direction: column; line-height: 1.15; }
.pos-txt b { font-size: 13px; font-weight: 600; }
.pos-txt small { font-size: 10.5px; opacity: .75; text-transform: uppercase; letter-spacing: .05em; }
.field-ic { width: 30px; height: 30px; flex: none; }
.field-ic .f-out { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .45; }
.field-ic .f-in { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .7; }
.field-ic .f-dot { fill: var(--blue); stroke: var(--surface); stroke-width: 1.5; }
.pos-badge.prim .field-ic .f-dot { fill: #fff; stroke: var(--navy); }
.pos-edit { border: 0; background: none; color: var(--blue); font-weight: 700; font-size: 14px; cursor: pointer; padding: 8px 4px; min-height: 40px; }
.pos-edit.empty { border: 1.5px dashed var(--blue); border-radius: 999px; padding: 6px 14px; }
.pos-editor { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
@media (prefers-color-scheme: dark) {
  .pos-badge { border-color: var(--blue); }
  .pos-badge.prim { background: var(--blue); border-color: var(--blue); }
  .pos-badge.prim .field-ic .f-dot { stroke: var(--blue); }
  .pos-edit { color: #8db4e6; } .pos-edit.empty { border-color: #8db4e6; }
}

/* ================= TC-overzicht ================= */
:root { --tc-1: #2a78d6; --tc-2: #eb6834; --tc-3: #1baf7a; --tc-4: #eda100; --tc-5: #e87ba4; --tc-6: #008300; --tc-7: #6250d6; --tc-8: #e34948; }
@media (prefers-color-scheme: dark) { :root { --tc-1: #3987e5; --tc-2: #d95926; --tc-3: #199e70; --tc-4: #c98500; --tc-5: #d55181; --tc-6: #008300; --tc-7: #9085e9; --tc-8: #e66767; } }
.tc-verdict { font-size: 17px; font-weight: 600; margin: -4px 0 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.tile .t-l { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tile b { font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile b small { font-size: 16px; color: var(--muted); font-weight: 600; }
.tile .t-s { font-size: 12px; color: var(--muted); line-height: 1.3; }
.tc-team { padding: 12px 0; border-top: 1px solid var(--line); }
.tc-team:first-of-type { border-top: 0; padding-top: 2px; }
.team-dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.tc-name { font-size: 16px; }
.st-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 3px 9px 3px 4px; border-radius: 999px; }
.st-chip i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; }
.st-chip.good { background: color-mix(in srgb, #1d8a4e 14%, transparent); color: #146b3b; } .st-chip.good i { background: #1d8a4e; }
.st-chip.warn { background: color-mix(in srgb, #d9a21c 18%, transparent); color: #7a5a00; } .st-chip.warn i { background: #c98500; }
.st-chip.bad { background: color-mix(in srgb, #d64545 14%, transparent); color: #a11d1d; } .st-chip.bad i { background: #d64545; }
.st-chip.none { background: var(--surface-2); color: var(--muted); } .st-chip.none i { background: var(--muted); }
@media (prefers-color-scheme: dark) { .st-chip.good { color: #7fd8a6; } .st-chip.warn { color: #f1d36a; } .st-chip.bad { color: #ff9b9b; } }
.tc-metrics { display: grid; gap: 6px; margin-top: 10px; }
.tc-metrics > div { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; }
.tc-metrics b { text-align: right; font-variant-numeric: tabular-nums; }
.mbar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.tc-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--muted); }
.tc-facts b { color: var(--text); }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart text.dl { fill: var(--text); font-size: 10.5px; font-weight: 600; }
.hbars { display: grid; gap: 7px; }
.hbar, .gbar { display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; }
.hb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hb-track { position: relative; height: 14px; border-radius: 4px; background: var(--surface-2); }
.hb-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--tc-1); }
.hb-track em { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1.5px dashed var(--muted); }
.hb-axis { display: grid; grid-template-columns: 92px 1fr auto 1fr 40px; font-size: 11px; color: var(--muted); }
.hb-axis span:nth-child(1) { grid-column: 2; } .hb-axis span:nth-child(2) { grid-column: 3; text-align: center; } .hb-axis span:nth-child(3) { grid-column: 4; text-align: right; }
.gb-track { display: flex; gap: 2px; height: 16px; }
.gb-track i, .gbars .legend-row i { display: block; height: 100%; border-radius: 3px; }
.g-ok { background: var(--team-color, #1d8a4e); } .g-open { background: color-mix(in srgb, var(--team-color, var(--tc-1)) 45%, var(--surface-2)); } .g-late { background: #d64545; } .g-stop { background: #9aa0aa; }
.gbars .legend-row i { display: inline-block; height: 10px; }
.table-view summary { cursor: pointer; color: var(--muted); font-size: 14px; }

/* ================= Team-tab: veld (kleuren als de lineup-app) ================= */
.team-card, #defense { --f-grass:#3f8348; --f-grass-dark:#357040; --f-grass-line:#4a9455; --f-clay:#c68a52; --f-clay-dark:#b4753f; --f-chalk:#f4f1e8; }
.f-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 560px; margin: 10px auto 0; border-radius: 12px; overflow: hidden; }
.f-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.f-slot { position: absolute; transform: translate(-50%, -22%); width: 24%; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.f-disc { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--f-chalk); color: #14181d; font-weight: 800; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.35); border: 2px solid rgba(0,0,0,.15); }
.f-slot.filled .f-disc { background: #c62b30; color: #fff; border-color: rgba(255,255,255,.5); }
.f-slot.thin .f-disc { background: #e6b34a; color: #14181d; }
.f-names { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.f-name { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(20,24,29,.82); color: #fff; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; text-decoration: none; line-height: 1.35; }
.f-name.sec { background: rgba(244,241,232,.88); color: #14181d; font-weight: 500; font-style: italic; }
.f-more, .f-none { font-size: 10.5px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.f-none { opacity: .8; font-style: italic; }
.legend-mini { display: flex; gap: 6px; }
.legend-mini .f-name { font-size: 10.5px; }
.badge.mini { min-width: 30px; height: 20px; font-size: 11.5px; padding: 0 5px; border-radius: 6px; }
.tbl.depth td { vertical-align: top; line-height: 1.9; }
.tbl.depth a { text-decoration: none; font-weight: 600; }
.tbl.depth a.muted { font-weight: 400; }
.tabbar a span { white-space: nowrap; }
@media (max-width: 420px) { .tabbar a { font-size: 10px; padding-left: 0; padding-right: 0; } .tabbar svg { width: 22px; height: 22px; } }

/* ================= handleiding ================= */
.help-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-weight: 800; font-size: 20px; text-decoration: none; }
.help-btn.on { background: var(--blue); }
.mp-chip { flex: 1 1 auto; }
details.help-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 16.5px; }
details.help-sec > summary::-webkit-details-marker { display: none; }
details.help-sec > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
details.help-sec:not([open]) > summary::after { transform: rotate(-90deg); }
.help-body { font-size: 15px; }
.help-body ol, .help-body ul { padding-left: 20px; margin: 8px 0; }
.help-body li { margin: 4px 0; }
.help-body .tbl { margin: 8px 0; }

/* ---------- advies slagvolgorde ---------- */
.lu-list { list-style: none; margin: 0; padding: 0; }
.lu-row { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line, #e6e3ee); }
.lu-row:first-child { border-top: 0; }
.lu-nr { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.lu-main { flex: 1; min-width: 0; }
.lu-name { font-weight: 600; }
.lu-name a { text-decoration: none; color: inherit; }
.lu-name .pos-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1.5px solid var(--navy); margin-left: 4px; vertical-align: 1px; }
.lu-low { font-size: 11px; color: #8a5a00; background: #fff3d6; border-radius: 6px; padding: 1px 6px; font-weight: 500; }
.lu-dims { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--muted, #666); }
.lu-dims span { display: inline-flex; align-items: center; gap: 4px; }
.lu-why { margin-top: 3px; line-height: 1.35; }
.lu-more { margin-top: 10px; }
.lu-more summary { cursor: pointer; padding: 6px 0; }
@media print { .lu-more, [data-lu-copy] { display: none; } }
.f-wrap.small-field { max-width: 440px; }
#lu-presence summary { cursor: pointer; list-style-position: inside; }
#lu-presence { margin-top: 0; }
.share-preview { display: block; width: 100%; border-radius: 10px; margin: 4px 0 12px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.share-opts { display: grid; gap: 8px; }
.share-opts .btn { width: 100%; justify-content: center; text-decoration: none; }
.sheet .share-body { max-height: 75vh; overflow: auto; }
.tabbar a[hidden] { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding-inline: 0; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 0; }
.tbl.compact { font-size: 13px; width: 100%; }
.tbl.compact th, .tbl.compact td { padding: 6px 5px; }
.tbl.compact th { font-size: 11.5px; line-height: 1.2; }
.lineup .tbl.depth, #defense .tbl { table-layout: auto; width: 100%; }
.tc-head { flex-wrap: wrap; row-gap: 4px; }
.tc-head .st-chip { white-space: nowrap; }
.tbl.compact td:first-child { white-space: nowrap; }
@media (max-width: 360px) { .tbl.compact th, .tbl.compact td { padding: 5px 3px; } .tbl.compact { font-size: 12.5px; } .tbl.compact .opt { display: none; } }

/* ---------- training: planner ---------- */
.gear-btn { display: inline-grid; place-items: center; }
.gear-btn[hidden] { display: none; }
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.plan-grid .field { margin: 0; }
.plan-grid select, .plan-grid input { width: 100%; min-height: 48px; font-weight: 600; }
input[type=date], input[type=time] { appearance: none; -webkit-appearance: none; display: block; line-height: 1.2; }
textarea { min-height: 0; resize: vertical; line-height: 1.4; }
.plan-h { font-size: 15px; margin: 16px 0 8px; }
.tl { border-left: 3px solid var(--accent); padding-left: 10px; display: grid; gap: 8px; }
.tl-row { display: flex; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.4; }
.tl-row.sub { margin-left: 12px; font-size: 13px; }
.tl-t { flex: 0 0 92px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.station { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: var(--surface); }
.st-head { display: flex; align-items: center; gap: 10px; }
.st-nr { flex: 0 0 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.st-why { margin: 6px 0 0; }
.st-more summary { cursor: pointer; padding: 4px 0; }
.drill-body ol, .drill-body ul { padding-left: 20px; margin: 4px 0 8px; }
.drill-body p { margin: 4px 0; }
.hl { font-weight: 700; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.grp { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; }
.card-link { font-weight: 600; text-decoration: none; }
.tbl.rot td { font-size: 12px; }
.bank { list-style: none; margin: 0 0 12px; padding: 0; }
.bank li a { display: flex; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.drill-card h1 { font-size: 22px; }
@media print {
  body.print-plan main > *:not(#plan-print) { display: none !important; }
  body.print-plan .st-more { display: block; }
  body.print-plan .st-more > summary { display: none; }
  body.print-plan details:not([open]) > *:not(summary) { display: block; }
  body.print-plan .no-print, body.print-plan .mini-btn { display: none !important; }
  .station { break-inside: avoid; }
}

/* ---------- zonekaart ---------- */
.zgrid { display: grid; grid-template-columns: 0.55fr 1fr 1fr 1fr 0.55fr; grid-template-rows: 0.45fr 1fr 1fr 1fr 0.45fr; gap: 4px; max-width: 360px; margin: 8px auto; aspect-ratio: 1 / 1.1; }
.zgrid.mini { max-width: 200px; gap: 2px; }
.zc { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; font-size: 16px; display: grid; place-items: center; padding: 2px; min-height: 0; cursor: pointer; line-height: 1.1; text-align: center; }
.zc small { display: block; font-size: 10px; font-weight: 500; opacity: .85; }
.zgrid.mini .zc { font-size: 11px; border-radius: 5px; } .zgrid.mini .zc small { display: none; }
.zc.in { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.zc.out { font-size: 11px; font-weight: 600; color: var(--muted); }
.zc.out-H { grid-column: 2 / 5; grid-row: 1; } .zc.out-L { grid-column: 2 / 5; grid-row: 5; }
.zc.out-W { grid-column: 1; grid-row: 2 / 5; } .zc.out-E { grid-column: 5; grid-row: 2 / 5; }
.zgrid.input .zc:active { transform: scale(.96); }
.zc.sel { outline: 3px solid var(--accent); outline-offset: -2px; }
.zgrid.heat .zc { cursor: default; }
.zc.h1 { background: color-mix(in srgb, #2f6fd6 22%, var(--surface)); } .zc.h2 { background: color-mix(in srgb, #2f6fd6 42%, var(--surface)); }
.zc.h3 { background: color-mix(in srgb, #2f6fd6 64%, var(--surface)); color: #fff; } .zc.h4 { background: #2f6fd6; color: #fff; }
.z-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.aim { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; flex: 1; min-width: 220px; }
.aim button { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 6px 0; font: inherit; font-size: 13px; }
.aim button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.res-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-top: 6px; }
.z-stats { margin: 8px 0; }
.z-tips { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.pz-wrap { display: flex; flex-wrap: wrap; gap: 14px; }
.pz { flex: 1 1 200px; }
/* smalle telefoons: topbalk compacter (logo, meetmoment, ?, ⚙, sync) */
.mp-chip small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 400px) {
  .topbar { gap: 6px; padding-left: 10px; padding-right: 8px; }
  .brand img { height: 28px; }
  .help-btn, .sync { width: 38px; min-width: 38px; height: 40px; min-height: 40px; padding: 0; font-size: 17px; }
  .sync { width: auto; padding: 0 8px; }
  .mp-chip { padding: 4px 8px; min-height: 40px; }
  .mp-chip small { font-size: 9.5px; }
  .mp-chip b { font-size: 13px; }
}
@media (max-width: 340px) { .mp-chip small { display: none; } .brand img { height: 24px; } }

/* ---------- oefenbank: tekeningen ---------- */
.drill-fig { margin: 6px 0 10px; }
.drill-fig svg { width: 100%; max-width: 520px; display: block; margin: 0 auto; border-radius: 10px; }
.df-floor { fill: #eef0f5; stroke: #d5d9e3; stroke-width: .4; }
.df-grass { fill: #3f8348; } .df-stripe rect { fill: #357040; opacity: .45; } .df-dirt { fill: #c8895a; } .df-grassin { fill: #46904f; }
.df-chalk { stroke: #f4f1e8; stroke-width: .6; fill: none; } .df-track { fill: none; stroke: #b07a45; stroke-width: 2.2; opacity: .8; } .df-base { fill: #fff; }
.df-pl circle { fill: #20113c; stroke: #fff; stroke-width: .5; } .df-pl.on circle { fill: #467fbf; }
.df-pl text, .df-co text, .df-num text { font: 700 2.8px Inter, system-ui, sans-serif; fill: #fff; text-anchor: middle; }
.df-co circle { fill: #e6b34a; stroke: #fff; stroke-width: .5; } .df-co text { fill: #241a00; }
.df-cone { fill: #f08a24; stroke: #fff; stroke-width: .3; }
.df-ball { fill: #fff; stroke: #c62b30; stroke-width: .35; } .df-mb { fill: #3a3a3a; stroke: #fff; stroke-width: .3; }
.df-tee rect { fill: #333; }
.df-net { fill: none; stroke: #8a8fa3; stroke-width: .5; stroke-dasharray: 1 .8; }
.df-wall { stroke: #8a8fa3; stroke-width: 1.6; stroke-linecap: round; }
.df-tape { stroke: #f4f1e8; stroke-width: .9; stroke-linecap: round; } .df-tape.d { stroke: #8a8fa3; stroke-width: .9; }
.df-ring, .df-box { fill: rgba(255,255,255,.12); stroke: #fff; stroke-width: .45; stroke-dasharray: 1.2 .8; }
.df-floor ~ .df-ring, .df-floor ~ .df-box { stroke: #20113c; fill: rgba(32,17,60,.04); }
.df-run { fill: none; stroke: #20113c; stroke-width: .7; stroke-dasharray: 1.6 1; } .df-arh { fill: #20113c; }
.df-run.w { stroke: #fff; }
.df-balp { fill: none; stroke: #c62b30; stroke-width: .7; } .df-abh { fill: #c62b30; }
.df-lbl { font: 600 2.7px Inter, system-ui, sans-serif; fill: #20113c; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: .6; }
.df-lbl.w { fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: .6; }
.df-num circle { fill: #467fbf; } .df-t9 { fill: rgba(255,255,255,.85); stroke: #20113c; stroke-width: .5; } .df-t9l { stroke: #20113c; stroke-width: .35; }
.df-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; font-size: 11px; color: var(--muted); margin-top: 4px; }
.df-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.lg-q { background: #467fbf; } .lg-c { background: #e6b34a; } .lg-k { background: #f08a24; border-radius: 1px !important; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lg-run { width: 16px !important; height: 0 !important; border-top: 2px dashed #20113c; border-radius: 0 !important; }
.lg-bal { width: 16px !important; height: 0 !important; border-top: 2px solid #c62b30; border-radius: 0 !important; }
.card-link.plain { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.grp .card-link { font-size: 13px; display: block; margin: 2px 0 4px; }
.drill-sheet { max-height: 90vh; }
.drill-sheet h2 { font-size: 20px; }

/* ---------- oefenbank: perspectief met stickmen ---------- */
.df-legend { justify-content: flex-start; max-width: 560px; margin: 6px auto 0; }
.lg-p { background: #20113c; } .lg-q { background: #467fbf !important; } .lg-c { background: #d39b2a !important; }
.lg-b { background: #fff; border: 1.5px solid #c62b30; width: 8px !important; height: 8px !important; }
.lg-net { width: 14px !important; height: 9px !important; border-radius: 1px !important; border: 1px dashed #5b6170; background: rgba(91,97,112,.12); }
.lg-wall { width: 14px !important; height: 4px !important; border-radius: 1px !important; background: #9aa0ad; }
.lg-tape { width: 16px !important; height: 3px !important; background: #8a8fa3; border-radius: 2px !important; }
.lg-ring { width: 12px !important; height: 9px !important; border: 1.5px dashed #20113c; background: transparent; }
.lg-tee { width: 3px !important; height: 11px !important; border-radius: 1px !important; background: #333; }
.lg-mb { background: #3a3a3a; } .lg-t9 { border-radius: 1px !important; background: linear-gradient(#20113c,#20113c) 33% 0/1px 100% no-repeat, linear-gradient(#20113c,#20113c) 66% 0/1px 100% no-repeat, linear-gradient(#20113c,#20113c) 0 33%/100% 1px no-repeat, linear-gradient(#20113c,#20113c) 0 66%/100% 1px no-repeat, #fff; border: 1px solid #20113c; }
.lg-n { background: #467fbf; }
.club-card { margin: 4px 0 10px; }
.club-card img { width: 100%; max-width: 520px; display: block; margin: 0 auto; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.club-card figcaption { text-align: center; margin-top: 4px; }
.df-more summary { cursor: pointer; color: var(--muted); margin-bottom: 4px; }

.df-view { text-align: center; margin-bottom: 3px; }
.drill-fig > svg { width: 100%; max-width: 520px; display: block; margin: 0 auto; border-radius: 10px; }
.lg-run { position: relative; } .lg-run::after { content: ''; position: absolute; right: -3px; top: -4px; border: 3px solid transparent; border-left: 5px solid #20113c; }
.lg-bal { position: relative; } .lg-bal::after { content: ''; position: absolute; right: -3px; top: -4px; border: 3px solid transparent; border-left: 5px solid #c62b30; }
.yt-card { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 6px; margin: 6px 0 10px; position: relative; background: var(--surface); }
.yt-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yt-txt .small { line-height: 1.3; }
/* zonekaart: teller per vak + tik-feedback */
.zc { position: relative; }
.zc .zn { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; }
.zc.flash { animation: zflash .6s ease-out; }
@keyframes zflash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 45%, var(--surface)); } 100% { box-shadow: 0 0 0 10px transparent; } }
/* overgangs-evaluatie */
.ov-list { margin: 0 0 10px; padding-left: 18px; } .ov-list li { margin: 4px 0; } .ov-norm { font-weight: 700; white-space: nowrap; }
.ov-eis { display: grid; grid-template-columns: 1fr 1fr 70px auto auto; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ov-eis select, .ov-eis input { font: inherit; font-size: 14px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); min-width: 0; }
.ov-eis .ov-note { grid-column: 1 / -1; }
@media (max-width: 520px) { .ov-eis { grid-template-columns: 1fr 1fr auto; } .ov-eis select[data-ov=veld] { grid-column: 2 / -1; } .ov-eis input[data-ov=norm] { width: 100%; } }
.ov-tbl td:first-child { white-space: nowrap; }
.ov-tbl th small { display: block; font-weight: 500; opacity: .75; white-space: nowrap; }
.ov-tbl td.ov-c { text-align: center; font-weight: 700; } .ov-tbl td.ok { background: color-mix(in srgb, #2f9e5b 18%, transparent); }
.ov-tbl td.no { background: color-mix(in srgb, #d64545 16%, transparent); } .ov-tbl td.na { color: var(--muted); }
.ov-tbl select, .ov-tbl .ov-note { font: inherit; font-size: 13px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); width: 100%; min-width: 120px; }
.ov-tbl .ov-note { margin-top: 4px; }
/* pitch-grips */
.df-panel { fill: #fff; stroke: #d5d9e3; stroke-width: .35; } .df-zone { fill: rgba(70,127,191,.08); stroke: #467fbf; stroke-width: .35; stroke-dasharray: 1 .6; }
.df-baseball { fill: #fbfaf6; stroke: #b9b4a6; stroke-width: .5; }
.df-seam { fill: none; stroke: #c62b30; stroke-width: .6; } .df-stitch { fill: none; stroke: #c62b30; stroke-width: 1.8; stroke-dasharray: .35 1.1; opacity: .85; }
.df-finger { fill: rgba(232,190,160,.88); stroke: #8a5a3c; stroke-width: .45; } .df-finger.press { fill: rgba(196,128,90,.95); stroke: #5e3620; stroke-width: .6; }
.df-thumb { fill: rgba(232,190,160,.35); stroke: #8a5a3c; stroke-width: .45; stroke-dasharray: 1 .7; }
.df-fl { font: 700 3px Inter, system-ui, sans-serif; fill: #3a2414; text-anchor: middle; } .df-fl.d { fill: #6b4a33; }
.df-okc { fill: none; stroke: #8a5a3c; stroke-width: 1.6; }
.lg-seam { width: 14px !important; height: 0 !important; border-top: 2px dotted #c62b30; border-radius: 0 !important; background: none !important; }
.lg-f { width: 7px !important; height: 14px !important; border-radius: 4px !important; background: #e8bea0; border: 1px solid #8a5a3c; }
.lg-fp { width: 7px !important; height: 14px !important; border-radius: 4px !important; background: #c4805a; border: 1px solid #5e3620; }
.lg-du { width: 9px !important; height: 11px !important; border-radius: 5px !important; background: rgba(232,190,160,.35); border: 1px dashed #8a5a3c; }
.lg-ok { width: 10px !important; height: 10px !important; border-radius: 50% !important; border: 2px solid #8a5a3c; background: none !important; }
/* zonekaart: pitchsoorten */
.pt-row { align-items: flex-start; } .pt-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; flex: 1; }
.pt-grid button { font: inherit; font-size: 12.5px; font-weight: 600; min-height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
.pt-grid button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* ---------- Vandaag ---------- */
.today-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .today-actions .btn.primary { grid-column: 1 / -1; font-size: 16px; min-height: 48px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.quick span { font-size: 22px; line-height: 1; }
.today-status .sl { font-weight: 700; } .sl.ok { color: var(--ok); } .sl.pend { color: #b7791f; } .sl.off { color: #b42323; }
.link-btn.small { font-size: 13px; }
/* rondleiding */
.tour h2 { margin-top: 6px; } .tour-dots { display: flex; gap: 6px; justify-content: center; } .tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .tour-dots i.on { background: var(--accent); }
/* ---------- trainingsmodus ---------- */
.live-head { position: sticky; top: calc(var(--hdr, 56px) + 4px); z-index: 5; }
.live-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.live-block { font-size: 18px; font-weight: 800; }
.live-clock { font: 800 40px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--accent); }
.live-bar { height: 6px; border-radius: 3px; background: var(--line); margin: 8px 0; overflow: hidden; } .live-bar i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
.live-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .live-btns .btn { padding-left: 2px; padding-right: 2px; }
.live-st .st-nr { margin-right: 8px; } .live-score summary { cursor: pointer; padding: 6px 0; }
.live-tl { list-style: none; padding: 0; color: var(--muted); } .live-tl li { padding: 2px 0; } .live-tl li.now { color: var(--text); font-weight: 700; } .live-tl li.past { text-decoration: line-through; opacity: .6; }
/* aanwezigheid */
.att-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.att { font: inherit; font-weight: 600; padding: 10px 8px; border-radius: 10px; border: 1px solid var(--line); text-align: left; cursor: pointer; }
.att.on { background: color-mix(in srgb, #1d8a4e 12%, var(--surface)); border-color: color-mix(in srgb, #1d8a4e 40%, var(--line)); color: var(--text); }
.att.off { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
/* inspreken */
.mic-btn { margin-top: 6px; } .mic-btn.rec { background: #b42323; color: #fff; border-color: #b42323; }
/* oefenbank */
.bank li { display: flex; align-items: center; } .bank li a { flex: 1; min-width: 0; }
.fav-btn { background: none; border: 0; font-size: 20px; line-height: 1; padding: 6px 4px; color: #c9a227; cursor: pointer; } .fav-btn.big { font-size: 24px; vertical-align: middle; }
.bank-filters { margin: 0 0 8px; } .bank-filters summary { cursor: pointer; padding: 4px 0; }
.bank-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0; }
.bank-fgrid select { width: 100%; }
@media (max-width: 440px) { body.tabs7 .tabbar a { font-size: 9px; letter-spacing: -.2px; } body.tabs7 .tabbar svg { width: 20px; height: 20px; } }
/* aanwezigheid: 4 standen */
.att { display: flex; flex-direction: column; gap: 1px; } .att small { font-weight: 500; font-size: 11px; opacity: .8; }
.att.late { background: color-mix(in srgb, #d9a21c 18%, var(--surface)); border-color: color-mix(in srgb, #c98500 45%, var(--line)); color: var(--text); }
.att.no { background: color-mix(in srgb, #d64545 14%, var(--surface)); border-color: color-mix(in srgb, #d64545 45%, var(--line)); color: var(--text); }
.att-sum { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0; } .att-k { font-weight: 700; white-space: nowrap; }
.att-k.on { color: #1d8a4e; } .att-k.late { color: #b7791f; } .att-k.off { color: var(--muted); } .att-k.no { color: #b42323; }
/* oefening kiezen (planner) */
.pick-sheet { max-height: 88vh; overflow-y: auto; }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 4px 0; cursor: pointer; }
.pick.cur { border-color: var(--accent); }
.pick .pk-sub { display: block; background: none !important; padding: 0 !important; border: 0 !important; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.pick .pk-tag { font-style: normal; font-size: 11px; font-weight: 700; color: #146b3b; margin-left: 4px; }
/* ---------- wedstrijdmodus ---------- */
.g-head { position: sticky; top: calc(var(--hdr, 56px) + 4px); z-index: 5; }
.g-head .row { justify-content: space-between; gap: 8px; } .g-team { font-size: 15px; flex: 1; } .g-team:last-child { text-align: right; }
.g-score { font: 800 30px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--accent); }
.g-inn { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; }
.g-batter { font-size: 20px; font-weight: 800; }
.g-res { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.g-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; min-height: 54px; }
.g-btn b { font-size: 16px; } .g-btn small { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.1; }
.g-btn.hit { background: color-mix(in srgb, #1d8a4e 12%, var(--surface)); border-color: color-mix(in srgb, #1d8a4e 40%, var(--line)); }
.g-btn.ob { background: color-mix(in srgb, #467fbf 12%, var(--surface)); border-color: color-mix(in srgb, #467fbf 40%, var(--line)); }
.g-btn.out { background: var(--surface-2); }
.g-btn:active, .g-mini:active { transform: scale(.96); }
.g-pick { display: inline-block; } .g-pick summary { list-style: none; cursor: pointer; } .g-pick summary::-webkit-details-marker { display: none; }
.g-pick[open] { display: block; width: 100%; } .g-pick .chips { margin-top: 6px; }
.g-field, .g-order { list-style: none; padding: 0; margin: 8px 0 0; } .g-field li, .g-order li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.g-pos { display: inline-grid; place-items: center; min-width: 30px; height: 26px; border-radius: 6px; background: #20113c; color: #fff; font-size: 12px; font-weight: 700; }
.g-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-mini { font: inherit; font-size: 13px; font-weight: 700; min-width: 40px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.g-mini.good { color: #146b3b; border-color: color-mix(in srgb, #1d8a4e 45%, var(--line)); } .g-mini.bad { color: #a11d1d; border-color: color-mix(in srgb, #d64545 45%, var(--line)); }
.g-log { list-style: none; padding: 0; margin: 6px 0 0; } .g-log li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
#gNote { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
/* ---------- wedstrijdprogramma ---------- */
.pg-list { list-style: none; padding: 0; margin: 6px 0 0; }
.pg-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pg-row.today { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.pg-date { display: flex; flex-direction: column; min-width: 64px; font-size: 13px; } .pg-date span { color: var(--muted); }
.pg-main { flex: 1; min-width: 0; }
.pg-res { font: 800 15px/1 Inter, system-ui, sans-serif; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.pg-res.win { background: color-mix(in srgb, #1d8a4e 16%, transparent); color: #146b3b; } .pg-res.loss { background: color-mix(in srgb, #d64545 14%, transparent); color: #a11d1d; } .pg-res.draw { background: var(--surface-2); }
.pg-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-possel { font: inherit; font-size: 13px; font-weight: 700; width: 58px; height: 32px; border-radius: 6px; background: #20113c; color: #fff; border: 0; padding: 0 4px; }
/* Opstelling en wissels: compacte bediening, zodat de naam leesbaar blijft */
.g-order li { gap: 4px; }
.g-order .g-possel { flex: 0 0 auto; width: 44px; min-height: 0; height: 30px; padding: 0 2px; font-size: 12px; text-align: center; text-align-last: center; -webkit-appearance: none; appearance: none; }
.g-order .g-mini { flex: 0 0 auto; min-width: 28px; width: 28px; height: 28px; padding: 0; font-size: 12px; border-radius: 6px; }
.g-wissel summary { cursor: pointer; }
/* Wisselscherm: per slagplek speler + positie */
.g-sub-list { list-style: none; padding: 0; margin: 0; max-height: 60vh; overflow-y: auto; }
.g-sub-list li { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.g-sub-nr { flex: 0 0 22px; font-weight: 700; font-size: 13px; color: var(--muted); }
.g-sub-list .g-sub-p { flex: 1 1 auto; min-width: 0; width: auto; min-height: 0; height: 38px; font-size: 14px; }
.g-sub-list .g-sub-pos { flex: 0 0 64px; width: 64px; min-height: 0; height: 38px; font-size: 14px; font-weight: 700; }
/* Volledig scoren: veld van bovenaf met lopers en outs */
.g-full { margin-top: 8px; }
.g-outs { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.g-outs i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--muted); }
.g-outs i.on { background: #c0392b; border-color: #c0392b; }
.g-diamond { position: relative; width: 240px; height: 200px; margin: 0 auto; }
.g-dline { position: absolute; left: 50%; top: 50%; width: 118px; height: 118px; transform: translate(-50%, -50%) rotate(45deg); border: 2px solid color-mix(in srgb, #1d8a4e 50%, var(--line)); background: color-mix(in srgb, #1d8a4e 10%, var(--surface)); border-radius: 4px; }
.g-base { position: absolute; transform: translate(-50%, -50%); min-width: 66px; max-width: 96px; height: 42px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.g-base small { font-size: 11px; color: var(--muted); }
.g-base b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-base.b2 { left: 50%; top: 18px; } .g-base.b1 { left: 202px; top: 100px; } .g-base.b3 { left: 38px; top: 100px; } .g-base.bh { left: 50%; top: 182px; }
.g-base.occ { background: #20113c; color: #fff; border-color: #20113c; }
.g-base.sel { outline: 3px solid #f0b400; outline-offset: 1px; }
.g-base.target { border: 2px dashed #467fbf; }
.g-base:active { transform: translate(-50%, -50%) scale(.96); }
.g-hint { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 4px; min-height: 20px; }
.g-reasons { display: grid; gap: 6px; }
/* Volledig: hoe ging de slagman uit (veldspelers 1-9 aantikken) */
.g-otype { margin: 6px 0 10px; }
.g-otype button { font-size: 13px; }
.g-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.g-pad button { height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-pad button b { font-size: 18px; line-height: 1; }
.g-pad button small { font-size: 11px; color: var(--muted); }
.g-pad button:active { background: #20113c; color: #fff; }
.g-seq { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 10px 0 0; min-height: 30px; }
.g-seq b { font-family: Oswald, Inter, sans-serif; font-size: 24px; letter-spacing: .5px; }
/* desktop / muis: chips (teams, filters) laten afbreken in plaats van verborgen horizontaal scrollen */
@media (min-width: 700px), (hover: hover) and (pointer: fine) {
  .chips { flex-wrap: wrap; overflow-x: visible; margin-inline: 0; padding-inline: 0; }
}
.yt-ext { flex: none; display: grid; place-items: center; width: 120px; max-width: 34%; aspect-ratio: 16 / 9; border-radius: 8px; background: #1877f2; color: #fff; font-size: 24px; }
.yt-ext.yt { background: #c4302b; }

/* TC-vergadering (2.18.0) */
.tcn-list { list-style: none; padding: 0; margin: 8px 0 0; }
.tcn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tcn:last-child { border-bottom: 0; }
.tcn.pending { opacity: .75; }
.tcn-main { flex: 1; min-width: 0; }
.tcn-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.tcn-besluit { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); font-size: 14px; white-space: pre-wrap; }
.tcn-btns { display: flex; gap: 4px; flex-shrink: 0; }
.mini-btn.ok { color: #146b3b; font-weight: 800; }
.tc-meet-when { margin: 8px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tc-count { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tc-done-group h3 { font-size: 15px; }
.tcn-btns .mini-btn, .tc-meet-when .mini-btn { float: none; margin: 0; padding: 6px 10px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .mini-btn.ok { color: #5fd38f; } }

/* Rugnummers (2.19.0) */
.avatar.rug-av { background: var(--navy-2, #20113c); color: #fff; font: 800 16px/1 Oswald, Inter, system-ui, sans-serif; letter-spacing: .5px; }
.phead .avatar.rug-av { font-size: 24px; }
@media (prefers-color-scheme: dark) { .avatar.rug-av { background: #3b2a66; color: #fff; } }
.rug-badge { border: 1.5px solid var(--navy-2, #20113c); background: var(--navy-2, #20113c); color: #fff; border-radius: 999px; padding: 6px 14px; min-height: 40px; font-weight: 800; font-size: 15px; cursor: pointer; }
.rug-badge.empty { background: transparent; color: var(--blue); border: 1.5px dashed var(--blue); font-weight: 700; font-size: 14px; }
.rug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.rug { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface, #fff); color: inherit; font: 700 16px/1.1 Inter, system-ui, sans-serif; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 2px; }
.rug small { font-size: 10.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.rug.free { border-color: color-mix(in srgb, #1d8a4e 55%, transparent); color: #146b3b; background: color-mix(in srgb, #1d8a4e 7%, transparent); }
.rug.taken { background: var(--surface-2); color: var(--muted); }
.rug.uit { background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, transparent 5px 10px); color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.rug.cur { background: var(--navy-2, #20113c); border-color: var(--navy-2, #20113c); color: #fff; }
@media (prefers-color-scheme: dark) { .rug.free { color: #6fdc9b; } }
.rug-legend { margin: 8px 0 0; }
.rug-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; border: 1.5px solid var(--line); }
.rug-dot.free { border-color: #1d8a4e; background: color-mix(in srgb, #1d8a4e 12%, transparent); } .rug-dot.taken { background: var(--surface-2); } .rug-dot.uit { background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, transparent 3px 6px); }
.rug-plist { list-style: none; padding: 0; margin: 0; max-height: 50vh; overflow: auto; }
.rug-plist button { width: 100%; text-align: left; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font-size: 15px; cursor: pointer; }
.sheet .rug-grid { max-height: 52vh; overflow: auto; padding: 2px; }

/* Beoordelen: andere positie (2.19.1) */
.qr-other-head { margin: 14px 0 4px; padding-top: 10px; border-top: 2px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }

/* Speelt ook in (2.20.0) */
.xteams-badge { border: 1.5px solid var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--blue); border-radius: 999px; padding: 6px 12px; min-height: 40px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.xteams-badge.empty { background: transparent; border-style: dashed; }
@media (prefers-color-scheme: dark) { .xteams-badge { color: #8db4e6; border-color: #8db4e6; } }
.guest-tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
@media (prefers-color-scheme: dark) { .guest-tag { color: #8db4e6; } }

/* Database (2.21.0) */
.db-res { padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.db-res.ok { background: color-mix(in srgb, #1d8a4e 10%, transparent); }
.db-res.bad { background: color-mix(in srgb, #d64545 10%, transparent); }

/* Coaches en inloggen (2.23.0) */
.coach-list { list-style: none; padding: 0; margin: 4px 0 0; }
.coach-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.coach-list li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.coach-list li.off { opacity: .6; }
.coach-list .mini-btn { float: none; margin: 0; padding: 6px 10px; font-size: 14px; }
.coach-card details ol { padding-left: 18px; margin: 6px 0 0; }

/* Inloggen met Google (2.24.0) */
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1f1f1f; border: 1.5px solid #dadce0; font-weight: 600; }
.or-line { display: flex; align-items: center; gap: 10px; margin: 2px 0; }
.or-line::before, .or-line::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

/* Veldbezetting: max. 2 namen, telbolletje, lijst per positie (2.24.3) */
button.f-disc { position: relative; padding: 0; font-family: inherit; cursor: pointer; }
button.f-disc:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.f-count { position: absolute; top: -7px; right: -13px; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 999px; background: #fff; color: #14181d; font-size: 11px; font-weight: 800; line-height: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pl-h { font-size: 15px; margin: 12px 0 4px; }
.pl-list { list-style: none; padding: 0; margin: 0; }
.pl-list a { display: flex; align-items: center; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.pl-nr { width: 20px; color: var(--muted); font-size: 13px; text-align: right; }
.pl-name { font-weight: 600; } .pl-name.sec { font-weight: 500; font-style: italic; }

/* ---------- profielen (2.25.0) ---------- */
.prof-pick h2 { margin-top: 4px; }
.prof-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-top: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.prof-opt.on { border: 2px solid var(--accent); padding: 11px; }
.prof-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; }
.prof-tx { display: flex; flex-direction: column; gap: 2px; } .prof-tx small { color: var(--muted); line-height: 1.35; }
.prof-card { display: flex; align-items: center; gap: 12px; }
.uitleg { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.uitleg-kop { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pk); }
.uitleg-ill { height: 120px; margin: 10px 0 4px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--pk) 12%, transparent); }
.uitleg-ill span { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--pk); color: #fff; font-size: 30px; font-weight: 700; }
.uitleg .tour-dots i.on { background: var(--pk); }
.uitleg-hint { text-align: center; margin: 8px 0 0; }
.meer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.meer-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.meer-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--bg, #f3f4f8); font-size: 16px; }
.meer-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .meer-tx small { color: var(--muted); }
.hero-kop { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.hero-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; } .hero-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.kpi b { font-size: 24px; letter-spacing: -.02em; }
.drill-row { display: flex; gap: 12px; overflow-x: auto; padding: 8px 0 4px; scroll-snap-type: x mandatory; }
.drill-tile { flex: none; width: 160px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; scroll-snap-align: start; }
.drill-tile img, .drill-ph { width: 160px; height: 100px; object-fit: cover; border-radius: 12px; display: grid; place-items: center; background: var(--line); font-weight: 700; color: var(--muted); }
.drill-tile b { font-size: 14px; line-height: 1.25; }
/* 2.42.4: zoeken / domein = tegels in een raster (geen oude lijst meer) */
.drill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; margin: 6px 0 16px; }
.drill-grid .drill-tile { width: auto; }
.drill-grid .drill-tile img, .drill-grid .drill-ph { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.drill-ph { overflow: hidden; } .drill-ph svg { width: 100%; height: 100%; display: block; }

/* ---------- nieuwe opbouw (2.26.0): huisstijl zoals de schets ---------- */
:root { --brand-red: var(--club-accent); --radius: 16px; }
h1, .hello, .qc-title, .qr-name, .phero h1 { font-family: Oswald, Inter, system-ui, sans-serif; font-weight: 600; letter-spacing: .2px; }
h1 { font-size: 26px; line-height: 1.15; }
.hello { margin-bottom: 2px; }
.card { border-radius: var(--radius); padding: 16px; }
.btn { border-radius: 12px; }
.tabbar a.active { color: var(--brand-red); }
.tabbar a.active svg { stroke-width: 2.2; }
.gear-btn { display: none !important; }
.prof-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; color: #fff; font: 700 15px/1 Inter, system-ui, sans-serif; cursor: pointer; padding: 0; }
.prof-btn.on { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.acc-head { display: flex; align-items: center; gap: 12px; }
@media (max-width: 400px) { .topbar { gap: 6px; } .help-btn { width: 40px; } .sync #syncText { display: none; } }
/* Vandaag */
.today-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; margin: 0 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.today-search:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
/* cookiemelding: boven de tabbalk, onder de sheets */
.cookie-balk { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h, 64px) + env(safe-area-inset-bottom, 0px) + 10px); z-index: 55; width: min(calc(100% - 24px), 520px); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); font-size: 14px; }
.cookie-balk p { margin: 0 0 10px; } .cookie-balk .row { gap: 8px; } .cookie-balk .btn { flex: 1; }
/* Ledenbeheer: blok Oud-leden */
.lb-oud { margin-top: 14px; } .lb-oud summary { cursor: pointer; } .lb-oud-list { list-style: none; margin: 0; padding: 0; }
.lb-oud-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); } .lb-oud-list .row { gap: 6px; }
div.tile { cursor: default; } /* cijfertegels (TC-overzicht) zijn geen knop */
.sheet:focus { outline: none; } /* krijgt de focus bij het openen (sheetWrap), de rand zou alleen afleiden */
.today-search input { flex: 1; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--text); min-height: 0; padding: 0; }
.btn.primary.red { background: var(--brand-red); border-color: var(--brand-red); }
/* Beoordelen: kaartmodus */
.qr-view { flex: none; margin-left: auto; }
.qr-view button { min-height: 30px !important; font-size: 13px !important; padding: 0 10px; flex: none; }
.qc { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; padding: 18px 16px; border-radius: 20px; background: var(--surface-2); touch-action: pan-y; }
.qc-top { display: flex; align-items: center; gap: 14px; }
.qc-ring { flex: none; color: var(--text); }
.qc-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.qc-who .avatar { width: 58px; height: 58px; font-size: 20px; flex: none; }
.qc-who .avatar.rug-av { font-size: 26px; }
.qc-name { display: block; font-size: 21px; font-weight: 800; color: var(--text); text-decoration: none; line-height: 1.2; }
.qc-scores .scores button { min-height: 68px; font-size: 26px; font-weight: 800; border-radius: 14px; }
.qc-scores .scores button.nvt { font-size: 14px; }
.qc-scores .anchor { margin-top: 8px; }
.qc-nav { display: flex; gap: 8px; align-items: center; } .qc-nav .btn { flex: 1; }
.qc-done { align-items: center; text-align: center; }
.qc-done .btn { width: 100%; }
/* Oefenbank: rijen */
.bank-rowsec { margin: 14px 0 6px; }
.bank-rowsec h2 { font-size: 17px; }
.drill-tile b { color: var(--text); }
/* Spelerskaart */
.phero { background: var(--navy); border-color: var(--navy); color: #fff; }
.phero .muted { color: #c9c1de; }
.phero .team-tag { background: rgba(255,255,255,.15); color: #fff; }
.phero .avatar { width: 70px; height: 70px; font-size: 24px; background: var(--brand-red); color: #fff; border: 3px solid #fff; }
.phero .avatar.rug-av { background: var(--brand-red); font-size: 32px; }
.phero h1 { font-size: 26px; color: #fff; }
.phero .icon-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
.phero .stat { background: rgba(255,255,255,.1); } .phero .stat span { color: #c9c1de; }
.radar { display: block; width: 100%; max-width: 360px; height: auto; margin: 10px auto 0; }
.radar .rg { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1; }
.radar .rv { fill: rgba(198,43,48,.45); stroke: #ff8a8e; stroke-width: 2; stroke-linejoin: round; }
.radar text { fill: #e8e3f3; font: 600 9.5px Inter, system-ui, sans-serif; }
.pbadges { margin: -4px 0 12px; }
.ptabs { margin-top: 8px; }
.ptabs button { min-height: 38px !important; font-size: 14px !important; }
.qr-progress.k .bar { display: none; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .chips.scroll-x .chip { flex: none; }
@media (min-width: 700px) { .chips.scroll-x { flex-wrap: wrap; } }
.qc-nav .btn { white-space: nowrap; padding: 0 10px; }
.phero .phead { position: relative; align-items: flex-start; }
.phero .phead .edit-btn { position: absolute; top: 0; right: 0; }
.phero .phead .rep-btn { right: 46px; }
.phero .phead .icon-btn { width: 40px; height: 40px; }
.phero .phead h1 { font-size: 24px; margin: 0 0 4px; padding-right: 90px; min-height: 40px; display: flex; align-items: center; }
.phero .phead > div:not(.avatar) { flex: 1; min-width: 0; }
.phero .phead > .avatar { flex: none; }
a.link-btn { display: inline-block; text-decoration: none; }
/* ---------- swing-analyse (2.27.0) ---------- */
.sw-stage { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: #000; margin: 0 0 10px; }
.sw-stage video, .sw-stage canvas { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; }
.sw-stage.bat canvas { cursor: crosshair; outline: 3px solid #ffd23f; outline-offset: -3px; }
.sw-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; } .sw-btns .btn { flex: 1 1 auto; }
.sw-nav { display: grid; grid-template-columns: 44px 1fr 1fr 1fr 44px; gap: 6px; margin: 6px 0; } .sw-nav .btn { padding: 0 4px; font-size: 13px; } .sw-nav .btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
#swFrame { width: 100%; margin: 4px 0; }
.sw-info { margin: 0; }
.sw-fix summary { cursor: pointer; color: var(--blue); font-weight: 600; margin: 4px 0; }
.sw-busy { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 20px; text-align: center; }
.sw-metrics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sw-metrics li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); } .sw-metrics li:first-child { border-top: 0; }
.sw-ml { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .sw-ml small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.sw-mv { flex: none; font-weight: 800; text-align: right; max-width: 45%; } .sw-mv i { font-weight: 500; font-size: 12px; color: var(--muted); }
.sw-tips { margin: 0; padding-left: 20px; } .sw-tips li { margin: 4px 0; }
.sw-cta { margin-bottom: 12px; }
/* ---------- metingen (2.28.0) ---------- */
.mp-sheet { max-height: 88vh; overflow-y: auto; }
.mp-list .prof-opt { margin-top: 8px; }
.mp-more { margin-top: 12px; } .mp-more summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.scores button.was { border: 2px dashed var(--navy-2); background: var(--surface); }
.meting-card .hero-bar { margin-top: 6px; }
.delta { display: inline-block; padding: 1px 7px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }

/* ---------- lettertype zoals de schets (2.28.1): Inter voor tekst, Oswald voor koppen en grote cijfers ---------- */
body, button, input, select, textarea { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, .hello, .qc-title, .qr-name, .phero h1, .meting-card h2, .hero-score h2, .qc-name, .pbar-mid b, .kpi b, .stat b, .live-clock, .g-score { font-family: Oswald, Inter, system-ui, sans-serif; letter-spacing: .2px; }
.meting-card h2, .hero-score h2 { font-weight: 600; font-size: 20px; }
.qc-name { font-weight: 600; font-size: 23px; }
.kpi b, .stat b { font-weight: 600; }

/* ---------- zoals de schets (2.29.0) ---------- */
:root { --blue: var(--club-accent); --navy: var(--club-primary); --navy-2: var(--club-primary-light); }
@media (prefers-color-scheme: light) { :root { --bg: #f3f4f8; --line: #e3e6ee; --text: #14181d; --muted: #5b6475; --shadow: none; } }
@media not (prefers-color-scheme: dark) { :root { --bg: #f3f4f8; --line: #e3e6ee; --text: #14181d; --muted: #5b6475; } }
@media (prefers-color-scheme: dark) { :root { --blue: #4a86e0; } }
/* Contrast (2.72.0, WCAG 4,5:1): in het lichte thema de accentkleur van de club 14% donkerder voor tekst en knoppen, en donkerder rood/groen. */
@media not (prefers-color-scheme: dark) { :root { --blue: color-mix(in srgb, var(--club-accent) 86%, #000); --red: var(--blue); --brand-red: var(--blue); --ok: #17753f; --s5: #17753f; } }
@media (prefers-color-scheme: dark) { .settings-section-title { color: var(--muted); } .tabbar a.active { color: #8db4e6; } .sl.ok { color: #7fd8a6; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.badge.s2, .badge.s4 { color: #1a1a1a; }
.card { box-shadow: none; }
/* kop */
.topbar { gap: 10px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
.brand2 { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.brand2 .brand img { height: 28px; }
.hdr-sub { border: 0; background: none; padding: 0; color: #c9c1de; font: 500 12px/1.2 Inter, system-ui, sans-serif; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; text-align: left; }
.hdr-sub.mp { color: #fff; font-weight: 600; }
.team-pill { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #4a3a78; background: #2a1c4d; color: #fff; font: 700 13px/1 Inter, system-ui, sans-serif; cursor: pointer; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#meetpuntBtn, #helpBtn, #syncBtn { display: none !important; }
.prof-btn { width: 36px; height: 36px; background: var(--brand-red) !important; position: relative; font-weight: 800; font-size: 14px; }
.prof-btn[data-sync="pending"]::after, .prof-btn[data-sync="busy"]::after, .prof-btn[data-sync="offline"]::after, .prof-btn[data-sync="error"]::after { content: ''; position: absolute; right: -2px; top: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--navy); background: #e6a019; }
.prof-btn[data-sync="offline"]::after, .prof-btn[data-sync="error"]::after { background: #d64545; }
.team-pick .prof-opt { padding: 12px 14px; }
/* Vandaag */
.hello { font-size: 26px; margin: 2px 0 2px; }
.today-date { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.today-search { margin-bottom: 14px; }
.hero2 { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.hero-t { margin: 0; font: 600 24px/1.15 Oswald, Inter, system-ui, sans-serif; letter-spacing: .2px; }
.hero-sub { margin: 0; font-size: 14px; color: var(--muted); }
.hero2 .hero-bar { height: 8px; background: #e9ecf3; } .hero2 .hero-bar i { background: var(--blue); }
.btn.big { min-height: 54px; font-size: 17px; font-weight: 700; border-radius: 12px; width: 100%; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.red { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.hero2 .link-btn { padding-top: 0; align-self: flex-start; }
.hero2.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.hero2.dark .kicker { color: #c9c1de; } .hero2.dark .hero-sub { color: #d6d0e6; }
.btn.ghost-w { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; min-height: 46px; }
.row-card { flex-direction: row; align-items: center; gap: 12px; }
.rc-t { display: block; font-size: 16px; } .rc-s { display: block; font-size: 13px; color: #d6d0e6; margin-top: 2px; }
.tile-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.tile b { font-size: 15px; } .tile span { font-size: 13px; color: var(--muted); }
.tile.c { align-items: center; padding: 14px 8px; } .tile.c b { font-size: 14px; }
.warnbox { padding: 14px 16px; border-radius: 14px; background: #fff6e5; border: 1px solid #f0d9a8; font-size: 14px; line-height: 1.4; margin-bottom: 14px; color: #14181d; }
.card-t { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.dot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dot-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.dot-list .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; background: #e6a019; }
.sr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sr-list a, .sr-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.sr-list span:last-child { display: flex; flex-direction: column; } .sr-list small { color: var(--muted); }
.sr-list .avatar { width: 40px; height: 40px; flex: none; }
/* Beoordelen: meetmoment */
.mp-row { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 2px 0 10px; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.mp-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-row .link-btn { padding: 0; }
/* tabbalk zoals de schets */
.tabbar { padding-top: 4px; }
.tabbar a span { font-weight: 700; }
/* ---------- inklapbare bediening Scoren/Tests (2.30.0) ---------- */
.qr-mini { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; }
.qr-mini .icon-btn { width: 44px; height: 48px; }
.qr-mini-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; min-width: 0; padding: 4px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.qr-mini-mid b { font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-mini-mid small { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-fold { display: block; width: 100%; margin-top: 8px; padding: 6px; border: 0; background: none; color: var(--blue); font: 600 13px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.qc { gap: 12px; margin-top: 10px; padding: 16px 14px; }
.qc-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.qc-inputs label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.qc-inputs input { font-size: 22px; font-weight: 700; min-height: 56px; text-align: center; }
.qr-name .info-btn { vertical-align: middle; }
/* vegen: kaart beweegt mee (2.30.1) */
.qc { user-select: none; -webkit-user-select: none; will-change: transform; }
.qc input { user-select: text; -webkit-user-select: text; }
main { overflow-x: clip; }
.qc a, .qc svg, .qc img { -webkit-user-drag: none; user-drag: none; }
/* ---------- ghost-modus (2.31.0) ---------- */
.sw-ghost { margin: 8px 0; } .sw-ghost-none { margin: 8px 0; }
.sw-ref { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.sw-saved { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sw-saved li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.sw-saved li span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .sw-saved small { color: var(--muted); }
/* swing-knop in de spelerskop (2.31.1) */
.phero .phead .sw-btn-ic { right: 92px; text-decoration: none; }
.phero .phead h1 { padding-right: 136px; }
/* ---------- bewaarde swing afspelen (2.32.0) ---------- */
.sw-play { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; margin: 4px 0; }
.sw-play .btn { min-height: 44px; padding: 0; font-size: 16px; }
.sw-saved li .btn.small { flex: none; min-height: 36px; padding: 0 10px; }
/* 8 tabs (profiel Alles + Meer, 2.32.1) */
body.tabs8 .tabbar a { padding-left: 0; padding-right: 0; font-size: 9.5px; letter-spacing: -.2px; }
body.tabs8 .tabbar svg { width: 20px; height: 20px; }
@media (max-width: 360px) { body.tabs8 .tabbar a span { font-size: 8.5px; } }
/* ---------- eigen startpagina (2.33.0) ---------- */
.fav-sec { margin-bottom: 14px; }
.fav-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fav-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 700 13px/1.2 Inter, system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.fav-tile span { font-size: 22px; line-height: 1; }
.se-sheet { max-height: 88vh; overflow-y: auto; }
.se-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.se-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.se-row.on { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); }
.se-row label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.se-row input { width: 20px; height: 20px; flex: none; accent-color: var(--blue); }
.se-ic { width: 30px; flex: none; text-align: center; font-size: 18px; }
.se-tx { display: flex; flex-direction: column; min-width: 0; } .se-tx small { color: var(--muted); }
/* test t.o.v. teamgemiddelde (2.33.1, vervangen door de kolom in 2.34.0) */
.tv-team { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.tv-team.up { color: var(--ok); } .tv-team.down { color: var(--s1); }
/* ---------- t.o.v. teamgemiddelde (2.34.0) ---------- */
.radar .rt { fill: rgba(255,255,255,.10); stroke: rgba(255,255,255,.6); stroke-width: 1.5; stroke-dasharray: 4 3; stroke-linejoin: round; }
.radar-leg { display: flex; justify-content: center; gap: 16px; margin-top: 2px; color: #c9c1de; }
.radar-leg span { display: inline-flex; align-items: center; gap: 6px; }
.radar-leg i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-p { background: rgba(198,43,48,.6); border: 1.5px solid #ff8a8e; }
.lg-t { background: rgba(255,255,255,.1); border: 1.5px dashed rgba(255,255,255,.7); }
.dom-team { margin-left: auto; margin-right: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.delta.vt { margin-left: 4px; }
.tests-tbl td.num, .tests-tbl th.num { text-align: right; }

/* ---------- 2.35.0: spelersrapport op 1 pagina, nog niet gescoord, wedstrijdcijfers in slagvolgorde ---------- */
.rep-mode { display: inline-flex; }
.rep1 .r1-head h1 { margin: 0; }
.r1-rug { font-family: Oswald, Inter, sans-serif; color: var(--red, #c62b30); font-weight: 600; }
.r1-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .r1-grid { grid-template-columns: 1fr; } }
.r1-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; min-width: 0; }
.r1-box h2 { font-size: 15px; margin: 0 0 6px; }
.r1-box h3 { font-size: 13px; margin: 8px 0 4px; color: var(--muted); }
.r1-box ul { margin: 0; padding-left: 18px; } .r1-box li { margin: 2px 0; font-size: 14px; }
.r1-box .tbl.rep { margin: 0; }
.r1-big { font-family: Oswald, Inter, sans-serif; font-size: 28px; font-weight: 600; margin: 0; line-height: 1.1; }
.r1-big small { font-size: 13px; color: var(--muted); font-family: Inter, sans-serif; }
.r1-radar { display: flex; flex-direction: column; justify-content: center; }
.rep1 .radar { margin: 0 auto; max-width: 300px; }
.rep1 .radar .rg { stroke: var(--line); }
.rep1 .radar .rv { fill: rgba(198,43,48,.25); stroke: #c62b30; }
.rep1 .radar .rt { fill: rgba(47,111,208,.08); stroke: #2f6fd0; }
.rep1 .radar text { fill: var(--text); }
.rep1 .radar-leg { color: var(--muted); }
.rep1 .lg-p { background: rgba(198,43,48,.25); border-color: #c62b30; }
.rep1 .lg-t { background: rgba(47,111,208,.08); border-color: #2f6fd0; }
.rep1 textarea { width: 100%; }
.lu-game { margin-top: 2px; color: var(--text); }
@media print {
  @page { size: A4; margin: 12mm; }
  .rep1 { font-size: 11.5px; }
  .rep1 .r1-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rep1 .r1-box { padding: 6px 9px; margin-bottom: 8px; border-radius: 8px; break-inside: avoid; }
  .rep1 .r1-box h2 { font-size: 13px; margin-bottom: 4px; }
  .rep1 .r1-box li { font-size: 11.5px; }
  .rep1 .rep-head { margin-bottom: 8px; }
  .rep1 .rep-head h1 { font-size: 22px; }
  .rep1 .radar { max-width: 230px; }
  .rep1 .r1-big { font-size: 22px; }
  .rep1 .tbl.rep td, .rep1 .tbl.rep th { padding: 3px 5px; }
  .rep1 textarea { min-height: 0; border: 0 !important; padding: 0; font: inherit; overflow: hidden; }
  .rep1 .rep-foot { margin-top: 4px; font-size: 9.5px; }
  .rep1 .radar, .rep1 .radar-leg i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { min-height: 0 !important; height: auto !important; }
  .rep1 .rep-foot { margin-bottom: 0; }
}

/* ---------- 2.36.0: pitch-analyse, groei per maand ---------- */
.sw-soort { display: flex; margin-bottom: 4px; } .sw-soort button { flex: 1; }
.sw-ctas { display: flex; gap: 8px; } .sw-ctas .sw-cta { flex: 1; }

/* ---------- 2.37.0: spelerspagina voor speler en ouders ---------- */
body.spelermodus .tabbar, body.spelermodus #teamBtn, body.spelermodus #profBtn, body.spelermodus #hdrSub, body.spelermodus #meetpuntBtn,
body.spelermodus #helpBtn, body.spelermodus #syncBtn, body.spelermodus .gear-btn { display: none !important; }
body.spelermodus main { padding-bottom: 24px; }
.sp-hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; margin-bottom: 14px; }
.sp-hero .kicker { color: #ffb3b5; }
.sp-hero h1 { margin: 2px 0; font-size: 30px; color: #fff; }
.sp-win { background: color-mix(in srgb, var(--ok, #1d8a4e) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok, #1d8a4e) 35%, var(--line)); }
.sp-win h2 { margin: 4px 0 8px; }
.sp-list { list-style: none; margin: 0; padding: 0; } .sp-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sp-list li:last-child { border-bottom: 0; } .sp-list b { font-family: Oswald, Inter, sans-serif; white-space: nowrap; }
.sp-doelen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sp-bar { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 6px 0 4px; }
.sp-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue, #2f6fd0), var(--ok, #1d8a4e)); }
.sp-aanpak { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.sp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .card .sp-two { grid-template-columns: 1fr; } }
.sp-two h3, .card h3 { font-size: 15px; margin: 8px 0 4px; }
.sp-stat .r1-big { margin: 2px 0; }
.sp-pr { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 8px; background: #fff3c4; color: #7a5a00; }
.sp-vid { list-style: none; margin: 0 0 6px; padding: 0; } .sp-vid li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sp-vid li span { flex: 1; min-width: 140px; } .sp-vid small { width: 100%; text-align: right; }
.sp-radar .radar { margin-top: 0; }
.card.sp-radar { background: var(--navy); color: #fff; } .sp-radar h2 { color: #fff; }
.sp-voet { text-align: center; margin: 14px 8px; }
.sp-fout { margin-top: 20px; }
.sp-coach { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 12px; margin-bottom: 12px; border-radius: 12px; background: #fff3c4; color: #5c4400; font-size: 13px; font-weight: 600; }
.sp-team { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* ---------- 2.38.0: wat meten we per team ---------- */
.ti-n { font-family: Oswald, Inter, sans-serif; font-size: 26px; line-height: 1; }
.ti-sheet { max-height: 88vh; overflow-y: auto; }
.ti-dom { border-top: 1px solid var(--line); padding: 6px 0; }
.ti-dom > summary { cursor: pointer; padding: 6px 0; list-style-position: inside; }
.ti-teller { position: sticky; top: -1px; background: var(--surface); padding: 6px 0; margin: 0; z-index: 1; border-bottom: 1px solid var(--line); }
.ti-warn { color: #b7791f; font-weight: 600; }
.ti-sheet .se-list { gap: 4px; }
.ti-sheet .se-row { padding: 5px 10px; }
.ti-sheet .se-row small { font-size: 12px; }

/* ---------- 2.39.0: punten volgens de sprintnormen ---------- */
.norm-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.norm-tag.n5 { background: #d8f0df; color: #14653a; } .norm-tag.n4 { background: #e6f4ea; color: #1d7a45; }
.norm-tag.n3 { background: #eef0f4; color: #4a5160; } .norm-tag.n2 { background: #fdf0dc; color: #8a5a0b; } .norm-tag.n1 { background: #fbe4e4; color: #9b2c2c; }

/* ---------- 2.40.0: Video-training ---------- */
.vt-lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vt-opst { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.vt-opst.later { opacity: .6; }
.vt-nr { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; font-family: Oswald, Inter, sans-serif; font-size: 18px; font-weight: 700; }
.vt-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .vt-tx small { color: var(--muted); }
.vt-tag { font-size: 13px; font-weight: 700; color: var(--blue); white-space: nowrap; } .vt-opst.later .vt-tag { color: var(--muted); font-weight: 600; }
.vt-schets-card { padding: 8px; } .vt-schets { width: 100%; height: auto; display: block; font-family: Inter, sans-serif; }
.vt-met { list-style: none; margin: 0; padding: 0; } .vt-met li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; } .vt-met span { color: var(--muted); text-align: right; font-size: 13px; }
.vt-stappen { margin: 0 0 10px; padding-left: 20px; line-height: 1.5; }
.vt-camsel { display: block; margin-bottom: 8px; }
.vt-honk { width: 84px; padding: 4px 6px; font: inherit; border: 1px solid var(--line, #ccc); border-radius: 8px; }
.vt-alarm { display: none; background: #e0a100; color: #1a1a1a; font-weight: 700; padding: 10px 14px; border-radius: 10px; margin: 0 0 10px; font-size: 1.05rem; }
.vt-live.twee .vt-alarm { display: block; }
.vt-camsel select { width: 100%; }
.vt-stage { border-radius: 14px; overflow: hidden; background: #222; margin-bottom: 10px; min-height: 120px; }
.vt-canvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.vt-checks { list-style: none; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.vt-checks li { display: flex; align-items: center; gap: 10px; } .vt-checks li span { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #b7bdca; color: #fff; font-weight: 800; }
.vt-checks li.ok { color: var(--text); } .vt-checks li.ok span { background: var(--ok); }
.btn.green { background: var(--ok); border-color: var(--ok); color: #fff; }
.vt-status { font-family: Oswald, Inter, sans-serif; font-size: 22px; margin: 4px 0 8px; }
.vt-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vt-res > div { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.vt-res small { color: var(--muted); font-weight: 600; } .vt-res b { font-family: Oswald, Inter, sans-serif; font-size: 22px; font-weight: 600; }
/* live-laag */
body.vt-live-on { overflow: hidden; } body.vt-live-on .topbar, body.vt-live-on .tabbar, body.vt-live-on #app { display: none !important; }
.vt-live { position: fixed; inset: 0; z-index: 900; display: flex; background: #1e1238; color: #fff; font-family: Inter, system-ui, sans-serif; }
.vt-live.go { background: #c62b30; }
.vt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 20px; }
.vt-top { display: flex; align-items: center; gap: 10px; } .vt-logo { font-family: Oswald, sans-serif; font-style: italic; font-size: 20px; } .vt-sub { font-size: 13px; color: #c9c1de; } .vt-spacer { flex: 1; }
.vt-livetag { padding: 4px 10px; border-radius: 999px; background: #c62b30; font-size: 12px; font-weight: 800; } .vt-live.go .vt-livetag { background: #1e1238; }
.vt-stop { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.vt-body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.vt-body h1 { margin: 0; font-family: Oswald, sans-serif; font-weight: 600; font-size: clamp(32px, 7vw, 64px); line-height: 1.05; color: #fff; }
.vt-body p { margin: 8px 0 0; font-size: 17px; color: #d6d0e6; }
.vt-mic { font-weight: 700; color: #53d18a !important; }
.vt-herkend { display: flex; align-items: center; gap: 28px; } .vt-groot { font-family: Oswald, sans-serif; font-size: clamp(90px, 22vw, 180px); font-weight: 700; line-height: .9; color: #ffd23f; }
.vt-knoppen { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.vt-knoppen button { min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); background: #2a1c4d; color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.vt-knoppen .vt-ja { background: #1d8a4e; border-color: #1d8a4e; }
.vt-center { flex: 1; display: grid; place-items: center; } .vt-klaar { font-family: Oswald, sans-serif; font-size: clamp(60px, 14vw, 110px); color: #d6d0e6; } .vt-go { font-family: Oswald, sans-serif; font-size: clamp(110px, 30vw, 230px); font-weight: 700; letter-spacing: 4px; }
.vt-wie { font-size: 17px; color: #d6d0e6; margin: 0 0 10px !important; }
.vt-live .vt-res { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vt-live .vt-res > div { background: #2a1c4d; border-color: #3a2b63; } .vt-live .vt-res small { color: #c9c1de; } .vt-live .vt-res b { font-size: 30px; color: #fff; }
.vt-side { width: 220px; flex: none; background: rgba(0,0,0,.25); padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.vt-cam { border-radius: 10px; overflow: hidden; background: #000; } .vt-cam .vt-canvas { cursor: default; }
.vt-rijkop { margin: 4px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c9c1de; }
.vt-rij { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.vt-rij button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 10px; border: 0; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.vt-rij button.nu { background: #33215a; } .vt-rn { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #c62b30; font-family: Oswald, sans-serif; font-weight: 700; }
.vt-rt { display: flex; flex-direction: column; min-width: 0; } .vt-rt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vt-rt small { font-size: 11.5px; color: #c9c1de; }
@media (max-width: 700px) { .vt-side { width: 150px; } .vt-live .vt-res { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vt-herkend { gap: 14px; } }

/* 2.42.5: start training vanuit de planner */
.plan-start { margin: 10px 0; text-align: center; }

/* 2.42.6: trainingsmodus, per speler alle werkpunten van het station */
.live-pl { border-top: 2px solid var(--text, #1e1238); padding: 10px 0 2px; margin-top: 8px; }
.live-pl:first-of-type { margin-top: 4px; }
.live-pl-naam { font-family: Oswald, Inter, sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.live-pl.done .live-pl-naam { color: var(--muted); }
.live-pl .live-it { padding: 6px 0 8px 10px; border-top: 1px dashed var(--line); }
.live-pl .live-it:first-of-type { border-top: 0; }
.live-pl .live-it .name { font-weight: 500; font-size: 14px; margin-bottom: 4px; }

/* 2.43.0: gast-account (alleen demo) */
.gast-band { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h, 64px) + env(safe-area-inset-bottom, 0px) + 8px); z-index: 60; background: #e0a100; color: #1a1a1a; font: 700 12px/1 Inter, sans-serif; padding: 7px 12px; border-radius: 999px; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.18); white-space: nowrap; }
@media print { .gast-band { display: none; } }

/* 2.44.0: Facebook-video in de app (klik om af te spelen) */
.fb-embed { margin: 6px 0 10px; }
.fb-embed .fb-play { width: 100%; text-align: left; font: inherit; cursor: pointer; margin: 0 0 4px; }
.fb-frame { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 4px; }
.fb-embed.reel .fb-frame { max-width: 320px; aspect-ratio: 9 / 16; margin-left: auto; margin-right: auto; }
.fb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 2.46.0: oefenbank sorteren */
.bank-sort { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 12px; }
.bank-sort .seg { display: inline-flex; background: var(--line, #e6e3ee); border-radius: 999px; padding: 3px; gap: 2px; }
.bank-sort .seg button { border: 0; background: transparent; font: 600 13px/1 Inter, sans-serif; color: var(--muted, #6b6880); padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.bank-sort .seg button.on { background: var(--surface, #fff); color: var(--text, #1e1238); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.bank-sort .dir-btn { border: 1px solid var(--line, #e6e3ee); background: var(--surface, #fff); color: var(--text, #1e1238); font: 600 13px/1 Inter, sans-serif; padding: 7px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.bank-sort .dir-btn span { color: var(--blue, #2f6fd0); font-weight: 800; }
.tile-meta { color: var(--blue, #2f6fd0); font-weight: 600; }

/* 2.48.0: alle metingen + verwijderen */
.test-alle { margin-top: 10px; }
.test-lijst { list-style: none; margin: 6px 0 0; padding: 0; }
.test-lijst li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.test-lijst .tl-wat { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.test-lijst .tl-del { flex: none; }

/* 2.49.0: coachkaarten */
.drill-ph.ck-ph { font-size: 44px; display: flex; align-items: center; justify-content: center; }
.ck-body .ck-zeg, .ck-body .ck-niet { border-radius: 10px; padding: 2px 12px; margin: 8px 0; border-left: 4px solid; }
.ck-body .ck-zeg { border-color: #2e8b57; background: color-mix(in srgb, #2e8b57 9%, transparent); }
.ck-body .ck-niet { border-color: #c0392b; background: color-mix(in srgb, #c0392b 8%, transparent); }

/* 2.51.0: AI-intake eigen oefenkaarten */
.ai-bank { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 10px; }
.ai-band { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: #fff3c4; color: #7a5a00; }
.ai-fout { margin: 8px 0; padding: 8px 10px; border-radius: 10px; font-size: 14px; background: color-mix(in srgb, #c0392b 10%, var(--surface)); border-left: 3px solid #c0392b; }
.look-box.ai-warn { background: color-mix(in srgb, #c0392b 9%, var(--surface)); border-left-color: #c0392b; }
.look-box.ai-zacht { background: transparent; border-left-color: var(--line); color: var(--muted); }
.look-box ul { margin: 4px 0 0; padding-left: 18px; }
.ai-form .field { display: block; margin-bottom: 10px; }
.ai-form .field small { display: block; margin-top: 2px; }
.ai-2, .ai-3 { display: grid; gap: 0 10px; grid-template-columns: 1fr 1fr; }
.ai-3 { grid-template-columns: 1.2fr 1fr 1fr; }
/* afbeelding kiezen: eigen knop in de huisstijl, het echte bestandsveld is onzichtbaar (2.51.1) */
.ai-file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.ai-file-btn { position: relative; cursor: pointer; margin: 0; }
.ai-file-in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.ai-file-btn:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
#aiImgNaam { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ai-prev img { max-width: 100%; max-height: 220px; border-radius: 10px; margin: 0 0 10px; display: block; }
.ai-items { list-style: none; margin: 0 0 8px; padding: 0; }
.ai-items li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.ai-items label { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.ai-items small { width: 100%; padding-left: 24px; }
.ai-lijst { list-style: none; margin: 6px 0 0; padding: 0; }
.ai-rij { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.ai-rij > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ai-rij img, .ai-ph { width: 52px; height: 52px; flex: none; border-radius: 8px; object-fit: cover; background: color-mix(in srgb, var(--blue) 10%, var(--surface)); display: grid; place-items: center; font-size: 22px; }

/* ---------- Ledenbeheer (#/leden, 2.66.0): alle leden in één tabel ---------- */
main:has(.lb) { max-width: 1180px; }
.lb-bar { position: sticky; top: var(--hdr, 0px); z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; margin-bottom: 4px; background: var(--bg); }
.lb-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; } /* relative: de onzichtbare kolomkop (.sr-only, absoluut) blijft zo binnen het schuifvak; anders maakte hij de hele pagina op de telefoon 865 px breed */
.lb { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; font-size: 14px; }
.lb th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 10px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.lb td { padding: 2px 3px; border-bottom: 1px solid var(--line); background: var(--surface); }
.lb tbody tr:last-child td { border-bottom: 0; }
.lb th:first-child, .lb td:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.lb .lb-voornaam { min-width: 130px; } .lb .lb-tussenvoegsel { width: 84px; } .lb .lb-achternaam { min-width: 150px; }
.lb .lb-geslacht { width: 66px; } .lb .lb-geboortedatum { width: 150px; } .lb .lb-team { width: 110px; } .lb .lb-bond { width: 124px; } .lb .lb-rug { width: 66px; } .lb .lb-eind { width: 72px; text-align: center; }
.lb .lb-acts { display: flex; justify-content: center; gap: 2px; } .lb .lb-acts > * { margin: 0; }
.lb .lb-del { font-size: 16px; opacity: .7; } .lb .lb-del:hover { opacity: 1; color: #d64545; } .lb .lb-del:disabled { opacity: .3; cursor: default; }
.lb .lb-in { display: block; width: 100%; min-width: 0; min-height: 38px; margin: 0; padding: 4px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 15px; color: inherit; }
.lb select.lb-in { padding-left: 4px; padding-right: 0; }
.lb .lb-in:hover { border-color: var(--line); }
.lb .lb-in:focus { outline: none; border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 25%, transparent); }
.lb .lb-in.ch { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 45%, transparent); font-weight: 600; }
.lb tr.nieuw td { background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.lb tr.err td { background: color-mix(in srgb, #d64545 9%, var(--surface)); }
.lb tr.err td, .lb tr.lb-fout td { border-bottom-color: color-mix(in srgb, #d64545 35%, var(--line)); }
.lb tr.lb-fout td { position: static; box-shadow: none; padding: 4px 11px 8px; color: #b42323; font-size: 13px; font-weight: 600; background: color-mix(in srgb, #d64545 9%, var(--surface)); }
.lb tr.err + tr.lb-fout td { border-top: 0; } .lb tr.err td { border-bottom: 0; }
.lb td.lb-eind a, .lb-x { display: grid; place-items: center; width: 32px; height: 38px; margin: 0 auto; border: 0; background: none; color: var(--muted); font-size: 20px; text-decoration: none; cursor: pointer; }
.lb td.lb-eind a:hover, .lb-x:hover { color: var(--blue); }
@media (pointer: coarse) { .lb .lb-in { font-size: 16px; min-height: 42px; } }
@media (prefers-color-scheme: dark) { .lb tr.lb-fout td { color: #ff9b9b; } }
@media print { .lb-bar { position: static; } }

.game-analysis h3 { margin: 14px 0 4px; font-size: 16px; }
.game-section > summary { display: flex; align-items: baseline; gap: 8px; cursor: pointer; list-style: none; padding: 4px 0; }
.game-section > summary::-webkit-details-marker { display: none; }
.game-section > summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.game-section:not([open]) > summary::after { transform: rotate(-90deg); }
.game-section > summary .small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.game-section, .game-players) > summary b { white-space: nowrap; } /* de titel op een regel; de toelichting erachter kort af */
.game-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.game-results-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 9px; border-radius: 9px; background: var(--surface-2); text-align: center; }
.game-results-grid b { font-size: 19px; font-variant-numeric: tabular-nums; }
.game-results-grid span { font-size: 11px; color: var(--muted); }
.game-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.game-form > span { display: inline-flex; gap: 3px; }
.game-form i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
.game-form-win { background: #25854a; } .game-form-loss { background: #c62b30; } .game-form-tie { background: #e0a100; }
.game-form small { width: 100%; color: var(--muted); }
.game-diff td { color: var(--muted); font-size: 12px; }
.game-split { margin-top: 12px; }
.game-split h4 { margin: 0 0 5px; font-size: 14px; }
.game-distribution { display: grid; gap: 6px; margin: 8px 0; }
.game-distribution > div { display: grid; grid-template-columns: 48px 1fr 30px; align-items: center; gap: 8px; font-size: 13px; }
.game-dist-track { height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.game-dist-track i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.game-summary { padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb, var(--blue) 7%, var(--surface)); }
.game-summary p { margin: 0; }
.game-bars { display: grid; gap: 5px; margin: 8px 0; overflow-x: auto; }
.game-bar-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--muted); }
.game-bar-legend span { display: inline-flex; align-items: center; gap: 4px; }
.game-bar-legend i { width: 9px; height: 9px; border-radius: 2px; }
.game-bar-row { display: grid; grid-template-columns: 50px minmax(90px, 1fr) minmax(90px, 1fr) minmax(90px, 1fr) minmax(90px, 1fr); align-items: center; gap: 5px; min-width: 430px; font-size: 11px; }
.game-bar-track { position: relative; height: 14px; border-radius: 3px; overflow: hidden; background: var(--surface-2); }
.game-bar-track i { display: block; height: 100%; border-radius: inherit; min-width: 2px; }
.game-bar-track b { position: absolute; right: 4px; top: 0; line-height: 14px; font-size: 10px; }
.game-bar-for { background: #25854a; } .game-bar-against { background: #c62b30; } .game-bar-errors { background: #e0a100; } .game-bar-plays { background: var(--blue); }
@media (max-width: 520px) { .game-results-grid { grid-template-columns: 1fr 1fr; } .game-results-grid b { font-size: 17px; } }
.game-players { border: 0; padding: 0; margin: 10px 0 4px; }
.game-players legend { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.game-player { cursor: pointer; }
.game-player input { margin: 0 5px 0 0; accent-color: var(--accent); }
.game-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.game-legend span { display: inline-flex; align-items: center; gap: 4px; }
.game-key { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.game-key-1 { background: #c62b30; } .game-key-2 { background: #e0a100; }
.game-key.game-win { background: #25854a; } .game-key.game-loss { background: #c62b30; } .game-key.game-tie { background: #e0a100; }
.game-analysis .game-chart { width: 100%; max-width: 560px; height: auto; display: block; }
.game-chart .game-line-1 { stroke: #c62b30; } .game-chart .game-line-2 { stroke: #e0a100; }
.game-chart .game-win { fill: #25854a; } .game-chart .game-loss { fill: #c62b30; } .game-chart .game-tie { fill: #e0a100; }
.game-result { font-weight: 700; } .game-result.win { color: #25854a; } .game-result.loss { color: #c62b30; } .game-result.tie { color: #a06b00; }
@media print {
  body.print-game-analysis main > *:not(.game-analysis) { display: none !important; }
  body.print-game-analysis .game-analysis { display: block !important; }
  body.print-game-analysis .no-print { display: none !important; }
  body.print-game-analysis .game-analysis .game-chart { max-width: 100%; }
}

/* ================= Proefstijl DugoutIQ (2.69.12, alleen App-admin: Instellingen -> Mijn voorkeuren) =================
   Bron: Design/DugoutIQ-Design-System (tokens.css, components.css). Nachtblauw met oranje, Montserrat voor koppen en cijfers.
   Alles hangt aan :root[data-stijl="diq"] (gezet door applyStijl in js/01); dit blok weghalen = de proef is weg. */
:root[data-stijl="diq"] {
  --bg: #041321; --surface: #0a2b43; --surface-2: #123a55; --text: #f6f8fa; --muted: #a9bac8; --line: rgba(151, 185, 207, .32);
  --navy: #17445f; --navy-2: #ffa13b; --blue: #ffa13b; --red: #ff7900; --accent: #ff7900; --brand-red: #ff7900;
  --ok: #2fbf6b; --warn: #ffa13b;
  --radius: 15px; --shadow: 0 8px 22px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .06);
  --diq-display: Montserrat, Inter, Arial, sans-serif;
  color-scheme: dark;
}
:root[data-stijl="diq"] body { background: radial-gradient(ellipse at 50% 0%, #0c2a42 0%, #041321 70%) fixed #041321; }
:root[data-stijl="diq"] :is(h1, h2, .hello, .card-t, .qc-title, .qr-name, .phero h1, .meting-card h2, .hero-score h2, .qc-name, .pbar-mid b, .kpi b, .stat b, .live-clock, .g-score, .settings-section-title) {
  font-family: var(--diq-display); letter-spacing: 0;
}
:root[data-stijl="diq"] h1 { font-weight: 800; }
:root[data-stijl="diq"] .settings-section-title { color: var(--muted); }
/* kop en tabbalk */
:root[data-stijl="diq"] .topbar { background: #061b2b; border-bottom: 1px solid var(--line); }
:root[data-stijl="diq"] .tabbar { background: #061b2b; border-top: 1px solid var(--line); }
:root[data-stijl="diq"] .tabbar a { color: var(--muted); }
:root[data-stijl="diq"] .tabbar a.active { color: #ffa13b; }
/* panelen */
:root[data-stijl="diq"] .card { background: linear-gradient(145deg, rgba(10, 39, 60, .97), rgba(4, 20, 34, .99)); border-color: rgba(151, 185, 207, .38); box-shadow: var(--shadow); }
:root[data-stijl="diq"] .notice { background: rgba(255, 121, 0, .12); border-color: rgba(255, 145, 46, .45); color: var(--text); }
/* knoppen: secundair = donker met lichte rand, primair = oranje, beide als pil */
:root[data-stijl="diq"] .btn { border-radius: 99px; background: #071c2d; border-color: rgba(179, 197, 209, .55); color: var(--text); font-weight: 700; }
:root[data-stijl="diq"] :is(.btn.primary, .btn.navy, .btn.blue, .btn.red, .btn.primary.red, .fab) { background: linear-gradient(180deg, #ff942e, #f47700); border: 1px solid #ffb66a; color: #fff; box-shadow: 0 3px 10px rgba(255, 121, 0, .2); }
:root[data-stijl="diq"] .btn.ghost { background: transparent; }
:root[data-stijl="diq"] .btn.big { border-radius: 99px; }
:root[data-stijl="diq"] .link-btn, :root[data-stijl="diq"] .card-link { color: #ffa13b; }
/* chips en schakelaars: tegel-look, gekozen = oranje */
:root[data-stijl="diq"] .chip { background: linear-gradient(145deg, #123a55, #0b2a42 58%, #071e31); border-color: rgba(151, 185, 207, .39); color: var(--text); }
:root[data-stijl="diq"] .chip.active { background: linear-gradient(180deg, #ff942e, #f47700); border-color: #ffb66a; color: #fff; }
:root[data-stijl="diq"] .seg button { background: #071e31; border-color: var(--line); color: var(--muted); }
:root[data-stijl="diq"] .seg button.on { background: linear-gradient(180deg, #ff942e, #f47700); border-color: #ffb66a; color: #fff; }
:root[data-stijl="diq"] .team-tag { background: rgba(255, 121, 0, .16); color: #ffa13b; }
/* velden */
:root[data-stijl="diq"] :is(input:not([type]), input[type=text], input[type=url], input[type=password], input[type=search], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], textarea, select) { background: #071e31; border-color: var(--line); color: var(--text); }
:root[data-stijl="diq"] ::placeholder { color: #7f97aa; }
:root[data-stijl="diq"] .today-search { background: #071e31; }
:root[data-stijl="diq"] .today-search input { background: transparent; }
/* schuifvenster en toast */
:root[data-stijl="diq"] .sheet { background: #0a2b43; border-top: 1px solid var(--line); }
:root[data-stijl="diq"] .sheet-backdrop { background: rgba(2, 9, 16, .7); }
:root[data-stijl="diq"] .toast { background: #123a55; border: 1px solid var(--line); color: var(--text); }
/* vaste lichte kleuren uit de gewone stijl die op donker niet leesbaar zijn */
:root[data-stijl="diq"] .warnbox { background: rgba(255, 121, 0, .12); border-color: rgba(255, 145, 46, .45); color: var(--text); }
:root[data-stijl="diq"] :is(.lu-low, .sp-pr, .ai-band) { background: rgba(255, 121, 0, .16); color: #ffa13b; }
:root[data-stijl="diq"] .team-pill { background: #0c304a; border-color: rgba(151, 185, 207, .45); }
:root[data-stijl="diq"] :is(.warn, .ov-link b, .form-error, .btn.danger, .lb tr.lb-fout td) { color: #ff8a80; }
:root[data-stijl="diq"] .btn.danger { background: transparent; border-color: rgba(255, 138, 128, .5); }
:root[data-stijl="diq"] .drill-ph { background: #0c304a; }
/* naam, logo en stadionfoto (bestanden in stijl-diq/, ongewijzigd uit het ontwerp) */
:root[data-stijl="diq"] .brand2 .brand img { height: 34px; width: auto; }
.diq-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 270px; padding: 34px 38px; display: flex; flex-direction: column; justify-content: flex-start;
  border: 1px solid rgba(180, 207, 224, .52); border-radius: 18px; background: #061b2b url('stijl-diq/dugoutiq-stadium-hero.png') center center / cover no-repeat; box-shadow: 0 18px 42px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .15); }
.diq-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2, 14, 25, .86) 0%, rgba(2, 14, 25, .70) 33%, rgba(2, 14, 25, .12) 74%, rgba(2, 14, 25, .04) 100%); }
.diq-brandline { display: flex; align-items: center; gap: 23px; max-width: 634px; }
.diq-brandline img { width: 275px; max-width: 48%; height: auto; display: block; filter: drop-shadow(0 3px 9px rgba(0, 0, 0, .45)); }
.diq-brandline i { width: 1px; height: 58px; background: rgba(255, 255, 255, .8); flex: none; }
.diq-brandline b { font: 700 clamp(17px, 2vw, 23px)/1.28 Montserrat, Inter, Arial, sans-serif; color: #f6f8fa; text-shadow: 0 2px 10px #000; }
.diq-hero small { display: block; margin: 20px 0 0 4px; font: 700 10px Inter, Arial, sans-serif; letter-spacing: .24em; color: #e4edf3; text-shadow: 0 2px 8px #000; }
.diq-hero em { position: absolute; right: 24px; bottom: 17px; font: 400 9px Inter, Arial, sans-serif; letter-spacing: .16em; color: #d6e4ed; text-shadow: 0 2px 7px #000; opacity: .85; }
/* Indeling van Vandaag volgens Design/DugoutIQ-Design-System/DugoutIQ-Standalone-HTML-Example.html: brede pagina, welkomstregel met seizoen,
   twee kolommen (hoofdmenu links, overzichten rechts); tot 900 px een kolom en twee tegels naast elkaar, tot 600 px de kleine maten. */
main:has(.diq-page) { max-width: 1440px; padding: 18px 22px 30px; }
.diq-page .hello { margin: 22px 3px 0; font: 700 17px Montserrat, Inter, Arial, sans-serif; }
.diq-page .today-date { clear: both; margin: 4px 3px 12px; font-size: 11px; }
/* Vandaag in de proefstijl: geen kopbalk, de foto staat bovenaan; team en profiel rechts naast de begroeting, meetpunt als knop achter de datumregel */
body:has(.diq-page) .topbar { display: none; }
main:has(.diq-page) { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.diq-acts { float: right; display: flex; align-items: center; gap: 8px; margin: 18px 3px 0 12px; }
.diq-mp { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 145, 46, .55); background: rgba(255, 121, 0, .14); color: #ffb366; font: 700 11px Inter, Arial, sans-serif; cursor: pointer; }
.diq-mp:active { background: rgba(255, 121, 0, .28); }
.diq-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(300px, .82fr); gap: 14px; align-items: start; }
.diq-layout > div { min-width: 0; }
.diq-layout > div:empty { display: none; }
.diq-layout:has(> div:empty) { grid-template-columns: minmax(0, 1fr); }
.diq-panel { border: 1px solid rgba(176, 204, 222, .30); border-radius: 15px; padding: 16px; margin-bottom: 12px; background: linear-gradient(145deg, rgba(10, 39, 60, .97), rgba(4, 20, 34, .99)); box-shadow: 0 10px 24px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .07); }
.diq-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.diq-panel-title { font: 700 12px Montserrat, Inter, Arial, sans-serif; letter-spacing: .01em; margin: 0; color: #f6f8fa; }
.diq-panel-link { color: #ffa13b; font-size: 10px; text-decoration: none; }
.diq-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.diq-tile { min-width: 0; min-height: 76px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 9px; align-items: center; column-gap: 11px; padding: 10px; text-decoration: none; color: #f6f8fa;
  background: linear-gradient(145deg, #123a55 0%, #0b2a42 58%, #071e31 100%); border: 1px solid rgba(151, 185, 207, .39); border-radius: 11px; box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 5px 12px rgba(0, 0, 0, .32); transition: .16s ease; }
.diq-tile:active { transform: scale(.97); border-color: rgba(255, 145, 46, .8); }
@media (hover: hover) { .diq-tile:hover { transform: translateY(-2px); border-color: rgba(255, 145, 46, .8); box-shadow: 0 7px 17px #0007, 0 0 13px #ff790020; } }
.diq-tile-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex: none; border-radius: 8px; color: #ffa13b; background: linear-gradient(145deg, rgba(255, 121, 0, .22), rgba(255, 121, 0, .055)); border: 1px solid rgba(255, 145, 46, .4); }
.diq-tile-icon svg { display: block; width: 20px; height: 20px; flex: none; }
.diq-tile-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.diq-tile-title { font: 700 10px Montserrat, Inter, Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diq-tile-subtitle { font: 400 9px/1.25 Inter, Arial, sans-serif; color: #b2c2ce; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diq-chevron { font-size: 16px; color: #7895a9; text-align: center; }
/* paneel Teamstatistieken (diqStatsCard in 15): maten uit het voorbeeld van het ontwerp */
.diq-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.diq-metric { padding: 12px; border: 1px solid rgba(151, 185, 207, .28); border-radius: 10px; background: linear-gradient(145deg, #0d3049, #071e31); }
.diq-metric span { display: block; color: #a9bac8; font-size: 9px; margin-bottom: 6px; }
.diq-metric b { font: 800 22px Montserrat, Inter, Arial, sans-serif; letter-spacing: -.7px; color: #f6f8fa; }
.diq-chart { margin-top: 12px; padding: 12px; border: 1px solid rgba(151, 185, 207, .25); border-radius: 10px; background: rgba(3, 17, 29, .55); }
.diq-chart-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 7px; color: #f6f8fa; }
.diq-chart-top b { display: block; font: 700 10px Montserrat, Inter, Arial, sans-serif; }
.diq-chart-top small { display: block; font-size: 8px; color: #a9bac8; margin-top: 4px; }
.diq-chart-top strong { font: 800 17px Montserrat, Inter, Arial, sans-serif; white-space: nowrap; }
.diq-chart-top strong small { display: inline; font: 400 9px Inter, Arial, sans-serif; margin: 0; }
.diq-chart svg { display: block; width: 100%; height: auto; }
.diq-grid { stroke: rgba(166, 193, 211, .14); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.diq-line { fill: none; stroke: #ff7900; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.diq-area { fill: #ff7900; opacity: .12; }
.diq-axis { display: flex; justify-content: space-between; color: #8199aa; font-size: 8px; margin-top: 2px; }
.diq-axis-mid span { flex: 1; text-align: center; }
.diq-dot { fill: #ff7900; stroke: #09283f; stroke-width: 2; } .diq-bars { fill: #ff7900; }
/* hetzelfde paneel in het gewone ontwerp (2.71.1): kleuren en letters van de app, iets groter dan in de proefstijl */
.stats-card .diq-panel-title { font: 600 18px Oswald, Inter, system-ui, sans-serif; letter-spacing: .2px; color: inherit; }
.stats-card .diq-panel-link { color: var(--blue); font-size: 13px; font-weight: 700; }
.stats-card :is(.diq-metric, .diq-chart) { background: var(--bg); border-color: var(--line); }
.stats-card .diq-metric span { color: var(--muted); font-size: 12px; }
.stats-card .diq-metric b { color: var(--text); font: 600 24px Oswald, Inter, system-ui, sans-serif; letter-spacing: 0; }
.stats-card .diq-chart-top { color: var(--text); }
.stats-card .diq-chart-top b { font: 700 13px Inter, system-ui, sans-serif; }
.stats-card .diq-chart-top small { color: var(--muted); font-size: 11px; }
.stats-card .diq-chart-top strong { font: 600 18px Oswald, Inter, system-ui, sans-serif; }
.stats-card .diq-chart-top strong small { font-size: 11px; }
.stats-card .diq-grid { stroke: var(--line); }
.stats-card .diq-line { stroke: var(--blue); } .stats-card :is(.diq-area, .diq-bars) { fill: var(--blue); }
.stats-card .diq-dot { fill: var(--blue); stroke: var(--surface); }
.stats-card .diq-axis { color: var(--muted); font-size: 11px; }
@media (max-width: 900px) { .diq-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  main:has(.diq-page) { padding: 9px 9px 24px; }
  .diq-hero { min-height: 205px; background-position: 60% center; padding: 22px 17px; }
  .diq-brandline { gap: 12px; } .diq-brandline img { width: 175px; } .diq-brandline i { height: 43px; } .diq-brandline b { font-size: 12px; }
  .diq-hero small { font-size: 7px; letter-spacing: .16em; }
  .diq-menu-grid { gap: 6px; }
  .diq-tile { grid-template-columns: 32px minmax(0, 1fr) 8px; column-gap: 8px; min-height: 65px; padding: 7px; }
  .diq-tile-icon { width: 32px; height: 32px; } .diq-tile-icon svg { width: 18px; height: 18px; }
  .diq-tile-title { font-size: 9px; } .diq-tile-subtitle { font-size: 8px; }
}
/* telefoonmaten van de hero uit DugoutIQ-Responsive-Preview-Definitief-Logo.html (gestapeld logo): gaan voor de 600 px-regels hierboven */
@media (max-width: 760px) {
  .diq-hero { min-height: 180px; background-position: 62% center; border-radius: 15px; padding: 20px 16px; }
  .diq-brandline img { width: 155px; } .diq-brandline i { height: 38px; } .diq-brandline b { font-size: 11px; }
  .diq-hero small { font-size: 6px; letter-spacing: .13em; margin-top: 14px; }
  .diq-hero em { font-size: 7px; right: 12px; bottom: 10px; }
}
@media (max-width: 380px) { .diq-hero { min-height: 160px; } .diq-brandline img { width: 132px; } .diq-brandline i { height: 32px; } .diq-brandline b { font-size: 9px; } }
/* Kleine icoonknop in een kaartkop (.ga-ic). Wedstrijdanalyse: afdrukken en CSV als icoonknop (de tekstknoppen liepen op een smalle telefoon uit de kaart) */
.icon-btn.ga-ic { width: 40px; height: 40px; border-radius: 10px; margin-left: 6px; color: inherit; }
.icon-btn.ga-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Instellingen: een kaart mag de pagina niet breder maken dan het scherm (lange tekst zonder spaties duwde alle kaarten tot de rand) */
.settings-page, .settings-section { grid-template-columns: minmax(0, 1fr); }
.settings-card { min-width: 0; overflow-wrap: anywhere; }
.icon-btn.ga-ic { align-self: center; }
/* Spelerskaart: de drie icoonknoppen iets kleiner, zodat de naam meer ruimte heeft en er niet doorheen loopt */
.phero .phead .icon-btn { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
.phero .phead .rep-btn { right: 39px; }
.phero .phead .sw-btn-ic { right: 78px; }
.phero .phead h1 { padding-right: 116px; overflow-wrap: anywhere; }
/* Vaste trainingen per team (2.70.0): instelvenster, twee velden naast elkaar per training */
.trt-row { border-top: 1px solid var(--line); padding: 10px 0 12px; }
.trt-row:first-of-type { border-top: 0; }
.trt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.trt-grid .field { margin-bottom: 8px; min-width: 0; }
.trt-row .link-btn { padding: 0; }
/* Bewaard trainingsplan (2.71.0): statusregel boven het plan in de planner */
.plan-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; }
.plan-status.notice { padding: 10px 12px; }
.plan-status .link-btn { padding: 0; }
/* ================= Meeschalende tegels en kaarten =================
   Een patroon op twee niveaus: het raster rekent zelf uit hoeveel kolommen passen (auto-fit + minimum), dus geen lijst breekpunten
   en geen orientation-query. Draai je de tablet of maak je het venster breder, dan schuiven tegels en kaarten naast elkaar.
   Geldt voor het gewone ontwerp en de proefstijl: de regels hangen aan main en de rasterclasses, niet aan de stijl. */
/* Niveau 2: tegels binnen een rij. --tegel-min is zo gekozen dat een telefoon van 390 px het oude aantal houdt (150 = 2, 100 = 3). */
.tiles, .tile-row, .tile-row.three, .fav-grid, .kpi-row, .stats, .materiaal-summary, .diq-menu-grid, .diq-metrics, .plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(var(--tegel-min, 150px), 1fr));
}
.tile-row.three, .fav-grid, .kpi-row, .stats, .materiaal-summary { --tegel-min: 100px; }
.plan-grid { --tegel-min: 110px; } .diq-menu-grid { --tegel-min: 160px; } .diq-metrics { --tegel-min: 150px; }
/* Vandaag: elk blok is een kaart. Losse tegelrijen en de favorieten staan in een kaart; Wedstrijdmodus is een kaart met dezelfde opbouw als TC-vergadering,
   zodat er op een breed scherm niets los tussen de kaarten zweeft. */
.tile-card > :is(.tile-row, .kpi-row) { margin-bottom: 0; }
/* Spelers op een breed scherm (render() in 21 bouwt dit alleen vanaf 1024 px): bovenaan over de volle breedte teamkeuze, coachoverzicht,
   advies en zoeken (.md-kop); daaronder drie kolommen: de namen (blijft staan, scrolt zelf, zonder zichtbare schuifbalk) en de spelerpagina,
   waarvan de kaarten over twee kolommen vloeien. */
main:has(> .md) { max-width: 1280px; }
.md-kop { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.md-kop > * { flex: 0 0 100%; }
.md-kop > .search { flex: 1 1 300px; }
.md-kop > p, .md-kop > .fab { flex: none; margin: 0 0 12px; }
.md-kop > .fab { position: static; box-shadow: none; } /* de zwevende knop lag over de spelerpagina */
/* het teamadvies over de volle breedte: de blokken (focus, weinig groei, gaat goed ...) naast elkaar in plaats van een lange lijst */
.md-kop > details.advice[open] { columns: 340px; column-gap: 24px; }
.md-kop > details.advice summary { column-span: all; }
.md-kop > details.advice .adv { break-inside: avoid; margin: 0 0 12px; }
.md { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.md-lijst { position: sticky; top: calc(var(--hdr, 0px) + 8px); max-height: calc(100dvh - var(--hdr, 0px) - 90px); overflow-y: auto; scrollbar-width: none; }
.md-lijst::-webkit-scrollbar { display: none; }
.md-lijst .plist { padding-bottom: 0; }
.md-lijst .prow.on { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.md-detail { columns: 400px; column-gap: 14px; }
.md-detail > * { break-inside: avoid; }
.md-detail > .back { display: none; }
.md-detail > .sticky { column-span: all; margin: 0 0 12px; padding: 0 0 10px; } /* op de telefoon loopt de balk door tot de schermrand (negatieve marge); hier blijft hij binnen de spelerpagina */
/* Opstelling en wissels tijdens de wedstrijd: de titel staat al in de kop van de kaart, niet nog eens erbinnen */
.g-wissel > div > .row:first-child { display: none; }
/* Meer: de lijst met onderdelen in twee kolommen zodra er ruimte is (op de telefoon blijft het een kolom) */
.meer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
/* Niveau 1: op elk scherm met twee of meer kaarten vloeien de kaarten over kolommen van minstens 400 px (1 op de telefoon, 2 op een liggende
   tablet, 3 op een laptop), van boven naar beneden en de kolommen even vol; koppen, knoppen en balken ertussen lopen over de volle breedte.
   Formulieren en losse kaarten houden 760 px. Eigen indeling: Ledenbeheer, Vandaag, Spelers, Team en Analyse; de Handleiding blijft een leeskolom
   (bij openklappen zouden de onderdelen anders van kolom wisselen). De Zonekaart (een grote en een kleine kaart) blijft ook een kolom. Onder 846 px passen geen twee kolommen: daar blijft alles zoals het was. */
@media screen and (min-width: 846px) {
  main:not([data-route="hulp"], :has(.lb, .diq-page, > .zone-card)):has(> .card ~ .card) { max-width: 1280px; columns: 400px; column-gap: 14px; }
  main:not([data-route="hulp"], :has(.lb, .diq-page, > .zone-card)):has(> .card ~ .card) > * { column-span: all; }
  main:not([data-route="hulp"], :has(.lb, .diq-page, > .zone-card)):has(> .card ~ .card) > :is(.card, .warnbox) { column-span: none; break-inside: avoid; }
  main:not([data-route="hulp"], :has(.lb, .diq-page, > .zone-card)):has(> .card ~ .card) > :is(.btn, .back) { display: flex; } /* een knop of terug-link tussen de kaarten is van zichzelf geen blok en liep anders mee in een kolom */
  /* Vandaag heeft zijn eigen twee kolommen (.diq-layout, vandaagOpbouw in 15); alleen breed als de rechterkolom iets bevat */
  main:has(> .diq-layout):not(:has(> .diq-layout > div:empty)) { max-width: 1280px; }
  /* Analyse: alle kaarten (de onderdelen van de wedstrijdanalyse, coachoverzicht, advies, groei ...) vloeien over kolommen van minstens 400 px,
     en daarna de lijst met laatste wijzigingen. .game-analysis is alleen een houder (voor het afdrukken) en telt hier niet als blok. */
  #app[data-route="analyse"] { max-width: 1280px; display: block; columns: 400px; column-gap: 14px; }
  #app[data-route="analyse"] > .game-analysis { display: contents; }
  #app[data-route="analyse"] > *, #app[data-route="analyse"] > .game-analysis > * { break-inside: avoid; }
  #app[data-route="analyse"] > :is(h1, h2, p, .chips) { column-span: all; }
  /* Wedstrijdmodus tijdens de wedstrijd: de score bovenaan over de volle breedte, dan de keuze slaan of verdedigen, de rest in twee kolommen,
     en Wedstrijd afsluiten onderaan over de volle breedte (knoppen en balken tussen kaarten lopen al over de volle breedte) */
  #app[data-route="wedstrijd"]:has(> .g-head) { columns: 400px 2; }
  #app[data-route="wedstrijd"] > .g-head { column-span: all; }
  #app[data-route="wedstrijd"] > .g-wissel { break-before: column; } /* de rechterkolom begint bij Opstelling en wissels */
  #app[data-route="wedstrijd"]:has(> .g-head) > .btn.block { margin-top: 12px; }
  /* Planner: de twee kaarten bovenaan (wie is er, instellingen) samen over de volle breedte in twee kolommen; daaronder Start training */
  #app[data-route="training"]:has(> .plan-set) { columns: 400px 2; }
  /* Planner: de drie kaarten van het plan (overzicht, stations, groepen) vloeien over kolommen, net als op Instellingen */
  .plan-cards { columns: 400px; column-gap: 14px; }
  .plan-cards > * { break-inside: avoid; }
  /* Vandaag zonder Teamstatistieken: de kaarten vloeien over kolommen, net als de secties op Instellingen */
  main:has(> .vandaag-kol) { max-width: 1280px; }
  .vandaag-kol { columns: 400px; column-gap: 14px; }
  .vandaag-kol > * { break-inside: avoid; }
  /* Instellingen: de secties vloeien als geheel over kolommen van minstens 400 px (van boven naar beneden, de kolommen even vol),
     zodat elke kolom met een sectietitel begint; een rooster per sectie liet bij een sectie met een kaart de rest van de rij leeg */
  main:has(> .settings-page) { max-width: 1280px; }
  .settings-page { display: block; columns: 400px; column-gap: 14px; }
  .settings-section { display: block; margin-bottom: 18px; break-inside: avoid; }
  .settings-section-title { margin-top: 0; margin-bottom: 8px; }
  .settings-card { margin-bottom: 8px; }
}
/* Team op een breed scherm: de twee lange advieskaarten (slagvolgorde, veldbezetting) in de tweede en derde kolom, de rest onder elkaar in de eerste.
   De volgorde in de pagina blijft zoals op de telefoon; de advieskaarten lopen over alle rijen en de laatste rij (1fr) vangt hun extra hoogte op,
   zodat de kaarten in de eerste kolom niet uit elkaar worden getrokken. */
@media screen and (min-width: 1024px) {
  #app[data-route="team"] { max-width: 1280px; columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(98, auto) 1fr; column-gap: 14px; align-items: start; }
  #app[data-route="team"] > * { grid-column: 1; min-width: 0; }
  #app[data-route="team"] > .chips { grid-column: 1 / -1; order: -2; }
  #app[data-route="team"] > #lu-presence { order: -1; } /* Wie is er (niet)? bovenaan de eerste kolom: het stuurt beide adviezen */
  #app[data-route="team"] > .card:has(> .tbl.depth) { order: 1; } /* Diepte per positie na de wedstrijdstatistiek */
  #app[data-route="team"] > .row.wrap { order: 2; } /* de knoppen blijven onderaan */
  #app[data-route="team"] > .lineup { grid-column: 2; grid-row: 2 / -1; }
  #app[data-route="team"]:not(:has(> .chips)) > .lineup { grid-row: 1 / -1; } /* club met een team: geen teamkeuze erboven */
  #app[data-route="team"] > .lineup ~ .lineup { grid-column: 3; }
}
