:root {
  /* Huisstijl hsvbatters.nl: navy uit het clublogo, blauw accent van de website, Roboto */
  --navy: #20113c;
  --navy-2: #33215a;
  --blue: #467fbf;
  --red: var(--blue);
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #121a2b;
  --muted: #5d6880;
  --line: #dde2ec;
  --accent: var(--red);
  --ok: #1d8a4e;
  --warn: #b7791f;
  --s1: #d64545; --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: #120a22;
    --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; }
.brand-sub { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .8; padding-bottom: 3px; }
@media (max-width: 480px) { .brand-sub { display: none; } }
.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; }

.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; }
.chip-solid { background: rgba(255,255,255,.14); border-color: transparent; color: #fff; font-weight: 600; }

/* ---------- 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; }

/* ---------- 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, .5); animation: fade .18s; }
.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 .presets { display: grid; gap: 8px; margin: 10px 0 14px; }
.sheet .presets .btn { justify-content: flex-start; font-weight: 500; }
.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; }
.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: #8a6d00; }
.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; } }

/* ================= 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; }
.info-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); font: 700 12px/1 Georgia, serif; font-style: italic; vertical-align: 1px; }
.info-ic.on { background: var(--blue); color: #fff; }
.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, .info-ic { color: #8db4e6; border-color: #8db4e6; } .info-ic.on { background: #8db4e6; color: #120a22; } }

/* 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; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.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: #1d8a4e; } .g-open { background: var(--tc-1); } .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; }
@media (max-width: 480px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.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); }
.small-seg button { min-height: 32px; font-size: 13px; }
.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-floorline { stroke: #d5d9e3; stroke-width: .35; fill: none; }
.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-mound { fill: #b4753f; }
.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-3d svg { width: 100%; max-width: 560px; display: block; margin: 0 auto; border-radius: 10px; }
.d3-sky { fill: #cfe3f5; } .d3-trees { fill: #2f6b3a; } .d3-stripe { fill: #357040; opacity: .35; }
.d3-wall { fill: #e4e7ee; } .d3-wallline { stroke: #b9bfcc; stroke-width: .5; } .d3-wallstripe { fill: #20113c; opacity: .12; }
.d3-floor { fill: #e9d9bb; } .d3-plank { stroke: #d6c39f; stroke-width: .25; fill: none; }
.d3-limbs path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.d3-head { fill: #f6dcc6; }
.d3-cap { fill: #20113c; stroke: #20113c; stroke-width: .15; }
.d3-capb { fill: #fff; font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 700; text-anchor: middle; }
.d3-shadow { fill: rgba(0,0,0,.18); }
.d3-tag text { fill: #fff; font: 700 2.3px Inter, system-ui, sans-serif; text-anchor: middle; }
.d3-bat { stroke: #8a5a2b; stroke-linecap: round; }
.d3-glove { fill: #8a5a2b; }
.d3-teebase { fill: #333; } .d3-teestem { stroke: #333; fill: none; }
.d3-net { fill: rgba(255,255,255,.25); stroke: #5b6170; stroke-width: .4; } .d3-mesh { stroke: #5b6170; stroke-width: .15; fill: none; }
.d3-wall3 { fill: #9aa0ad; stroke: #7d8390; stroke-width: .3; }
.df-topwrap { margin-top: 6px; }
.df-topwrap summary { cursor: pointer; color: var(--muted); }
.df-topwrap svg { width: 100%; max-width: 420px; display: block; margin: 6px auto 0; border-radius: 8px; }
.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-card img { width: 128px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; background: #000; }
.yt-play { position: absolute; left: 56px; top: 50%; transform: translateY(-50%); width: 30px; height: 22px; border-radius: 6px; background: #e62117; color: #fff; display: grid; place-items: center; font-size: 11px; }
.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-tl { margin: 4px 0 10px; padding-left: 0; list-style: none; } .today-tl li { padding: 3px 0; border-bottom: 1px dashed var(--line); } .today-tl li span { display: inline-block; min-width: 44px; }
.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; }
.today-todo { margin: 0; padding-left: 18px; } .today-todo li { margin: 6px 0; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.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: #1d8a4e; } .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-start { background: #20113c !important; border-color: #20113c !important; grid-column: 1 / -1; font-size: 16px; min-height: 48px; }
.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; }
.g-subsel { font: inherit; font-size: 13px; height: 34px; max-width: 92px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.g-wissel summary { cursor: pointer; }
/* 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; }

/* 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); }
.db-cmp { width: 100%; border-collapse: collapse; margin: 8px 0 6px; font-size: 14px; }
.db-cmp th, .db-cmp td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.db-cmp th { font-weight: 700; color: var(--muted); font-size: 12.5px; }

/* 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; }
.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: #c62b30; --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 input { flex: 1; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--text); min-height: 0; padding: 0; }
.today-train.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.today-train.dark .muted, .today-train.dark .today-tl .muted { color: #c9c1de; }
.today-train.dark .today-tl li { border-color: rgba(255,255,255,.15); }
.today-train.dark .btn:not(.primary) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.today-train.dark .btn.ghost { background: transparent; }
.btn.primary.red { background: var(--brand-red); border-color: var(--brand-red); }
.train-mini { display: flex; align-items: center; gap: 12px; }
.team-status { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.link-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
/* 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-hint { text-align: center; margin: 0; }
.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; }
.today-train.dark .btn.g-start { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; }
.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, .today-train 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, .today-train 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: #2f6fd0; --navy: #1e1238; --navy-2: #33215a; }
@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; } }
.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; }
.brand-sub { display: none; }
.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; }
