:root {
  --paper: #EEF1EA; --card: #FFFFFF; --ink: #17263A; --muted: #5E6B63; --rule: #D5DCD2;
  --grass: #2F7A4B; --grass2: #2B7045; --chalk: rgba(255,255,255,.82);
  --bib: #F07F1E; --V: #356CB5; --M: #B98A00; --A: #C4513A; --K: #F07F1E;
  --chip: #FFFFFF; --chipInk: #17263A; --sel: #17263A; --selInk: #FFFFFF;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
/* De app is altijd licht, ook als de telefoon op donker staat (één weergave om goed te houden) */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
/* iOS zoomt in op invulvelden met een kleinere letter dan 16px; daarom altijd minstens 16px.
   touch-action: manipulation voorkomt inzoomen door twee keer snel te tikken (knijpen om te zoomen blijft werken). */
input, select, textarea { font-size: max(16px, 1rem); }
html { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--bib); outline-offset: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 64px; }

/* kop */
.top { padding: 18px 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand h1 { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1; margin: 0; }
.who { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.teamhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.teamhead h2 { font-family: var(--display); font-weight: 700; font-size: 30px; margin: 0; line-height: 1.05; }
.teamhead .lvl { color: var(--muted); font-size: 15px; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--grass); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tabs { display: flex; gap: 4px; margin-top: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 4px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--grass); color: #fff; }

/* kaarten en formulieren */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; margin-top: 14px; }
.card h2, .card h3.t { font-family: var(--display); font-weight: 700; font-size: 24px; margin: 0 0 4px; line-height: 1.1; }
.sub { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.stack { display: flex; flex-direction: column; gap: 12px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); flex: 1; min-width: 150px; }
input[type=text], input[type=email], input[type=date], input[type=number], select {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; color: var(--ink); width: 100%; min-height: 44px;
}
/* Knoppen in drie maten: klein 36px, standaard 48px, groot 64px (alleen de hoofdknoppen op het wedstrijdscherm) */
.btn { border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 600; cursor: pointer; min-height: 48px; line-height: 1.25; }
.btn.primary { background: var(--grass); color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--rule); color: var(--ink); }
.btn.warn { background: transparent; border: 1.5px solid var(--A); color: var(--A); }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: 14px; border-radius: 9px; }
.btn[disabled] { opacity: .55; cursor: default; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.error { color: var(--A); font-weight: 600; margin: 10px 0 0; font-size: 15px; }
.banner { background: color-mix(in srgb, var(--bib) 16%, var(--card)); border: 1px solid var(--bib); border-radius: 12px; padding: 10px 14px; margin-top: 14px; font-size: 15px; }
.hint { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
/* betalen: de melding als het team een seizoen nodig heeft, en de stand bij het team */
.betaal-slot { width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--bib) 16%, var(--card)); color: var(--bib); display: grid; place-items: center; margin-bottom: 10px; }
.betaal-slot .ic { width: 26px; height: 26px; }
.betaal-slot.ok { background: color-mix(in srgb, var(--grass) 14%, var(--card)); color: var(--grass); }
.betaal h3 { font-family: var(--display); font-weight: 700; font-size: 26px; margin: 0 0 8px; line-height: 1.1; }
.betaal p { margin: 0 0 12px; }
.betaal .btn { width: 100%; margin-top: 8px; }
.modal .betaal { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; margin-top: 14px; }
.betaal-prijs { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; margin: 4px 0 12px; }
.betaal-prijs b { font-family: var(--display); font-size: 30px; display: block; line-height: 1; }
.betaal-prijs span { color: var(--muted); font-size: 14px; }
.betaal-prijs .introductie { display: block; font-style: normal; font-weight: 700; font-size: 13px; color: var(--grass); margin-bottom: 4px; }
.oude-prijs { font-size: .6em; font-weight: 400; color: var(--muted); margin-right: 4px; }
.betaal-prijs ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.betaal-tijdlijn { list-style: none; margin: 4px 0 12px; padding: 0; }
.betaal-tijdlijn li { position: relative; padding: 0 0 14px 22px; }
.betaal-tijdlijn li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--grass); }
.betaal-tijdlijn li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 17px; bottom: 2px; width: 1.5px; background: var(--rule); }
.betaal-tijdlijn li:last-child::before { background: var(--bib); }
.betaal-tijdlijn li > b:first-child { display: block; }
.teamcard .betaal-pil { display: table; margin-top: 8px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.teamcard .betaal-pil.gratis, .teamcard .betaal-pil.open { background: color-mix(in srgb, var(--bib) 16%, var(--card)); color: color-mix(in srgb, var(--bib) 55%, var(--ink)); }
.teamcard .betaal-pil.vrij { background: color-mix(in srgb, var(--grass) 14%, var(--card)); color: var(--grass); }
.rules { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15px; margin: 8px 0 0; }
.rules dt { color: var(--muted); }
.rules dd { margin: 0; font-weight: 600; }
.small { font-size: 14px; color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1.5px solid var(--rule); background: transparent; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; min-height: 44px; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.count { font-size: 14px; color: var(--muted); margin-top: 10px; }

.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.toggle input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--grass); flex: none; }
.toggle b { display: block; font-weight: 600; }
.toggle span { color: var(--muted); font-size: 14px; }

/* teamlijst */
.teamlist { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .teamlist { grid-template-columns: 1fr 1fr; } }
.teamcard { text-align: left; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.teamcard b { font-family: var(--display); font-size: 24px; display: block; line-height: 1.1; }
.teamcard span { color: var(--muted); font-size: 14px; }

/* veld */
.blocks { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 10px; }
@media (min-width: 700px) { .blocks { grid-template-columns: 1fr 1fr; } }
.block { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 12px; }
.block header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.block h3 { font-family: var(--display); font-weight: 700; font-size: 26px; margin: 0; line-height: 1; }
.block header span { color: var(--muted); font-size: 14px; }
.pitch { position: relative; aspect-ratio: 100 / 104; border-radius: 10px; overflow: hidden;
  background: repeating-linear-gradient(180deg, var(--grass) 0 12.5%, var(--grass2) 12.5% 25%); }
.pitch.big { aspect-ratio: 100 / 122; }
.pitch.huge { aspect-ratio: 100 / 132; }
/* Alleen de lijnen van het veld zelf; icoontjes in de spelers (zoals bij halverwege) houden hun eigen maat */
.pitch > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.chip { border: 0; background: var(--chip); color: var(--chipInk); font-family: var(--display); font-weight: 700; font-size: 18px;
  padding: 5px 10px; border-radius: 8px; cursor: pointer; min-height: 34px; white-space: nowrap; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.pitch.big .chip, .pitch.huge .chip { font-size: 15px; padding: 4px 7px; min-height: 30px; }
.chip.keeper { background: var(--bib); color: #1d1d1d; }
.chip.sel { background: var(--sel); color: var(--selInk); box-shadow: 0 0 0 3px var(--bib); }
.pair { display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,.28); border-radius: 10px; padding: 3px; }
.pair .arrow { color: #fff; font-size: 11px; line-height: 1.2; font-weight: 600; white-space: nowrap; padding: 0 2px; }
.bench { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.bench .lbl { font-size: 14px; color: var(--muted); margin-right: 2px; }
.bench .chip { background: var(--paper); color: var(--ink); border: 1.5px dashed var(--rule); box-shadow: none; font-size: 16px; }
.bench .chip.sel { background: var(--sel); color: var(--selInk); border-color: var(--sel); }
.mid { font-size: 14px; margin: 8px 0 0; }

/* tabellen */
.tblwrap { overflow-x: auto; margin-top: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 6px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl td { padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; white-space: nowrap; }
.tbl td.name { font-weight: 600; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.cells { display: flex; gap: 4px; }
.cell { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff; background: var(--rule); }
.cell.off { background: transparent; border: 1.5px dashed var(--rule); color: var(--muted); }
.l-K { background: var(--K); color: #1d1d1d; } .l-V { background: var(--V); } .l-M { background: var(--M); } .l-A { background: var(--A); }
.cell.half { background-image: linear-gradient(135deg, transparent 50%, var(--card) 50%); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); align-items: center; }
.legend .cell { width: 18px; height: 18px; font-size: 11px; display: inline-grid; vertical-align: middle; margin-right: 4px; }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; min-width: 110px; background: var(--rule); }
.bar i { display: block; height: 100%; }
.bar .K { background: var(--K); } .bar .V { background: var(--V); } .bar .M { background: var(--M); } .bar .A { background: var(--A); }

.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.plist li:last-child { border-bottom: 0; }
.plist .nm { font-weight: 600; }
.plist .meta { color: var(--muted); font-size: 14px; word-break: break-all; }
.empty { text-align: center; padding: 28px 10px; color: var(--muted); }
.center { max-width: 460px; margin: 40px auto 0; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center; z-index: 9; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }
[hidden] { display: none !important; }

/* ---------- live wedstrijd ---------- */
.live { padding-bottom: 90px; }
.scoreboard { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 12px 16px 14px; margin-top: 8px; position: sticky; top: 6px; z-index: 3; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.sb-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; }
.sb-title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.sb-clock { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-variant-numeric: tabular-nums; }
.sb-clock #lt { font-size: 44px; font-weight: 700; line-height: 1; }
.sb-clock #lt.over { color: var(--bib); }
.sb-clock small { font-size: 16px; opacity: .7; }
.pause { margin-left: 6px; align-self: center; background: transparent; border: 1.5px solid rgba(255,255,255,.35); color: inherit; border-radius: 8px; width: 34px; height: 30px; font-size: 12px; cursor: pointer; }
.sb-paused { color: var(--bib); font-weight: 600; font-size: 14px; margin-top: 2px; }
.sb-score { width: 100%; margin-top: 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: rgba(255,255,255,.07); border: 0; border-radius: 12px; padding: 8px 10px; color: inherit; cursor: pointer; }
.sb-score.static { cursor: default; }
.sb-score b { font-family: var(--display); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.sb-team { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-team:first-child { text-align: right; }
.sb-team:last-child { text-align: left; }
.live .pitch { margin-top: 12px; }
.halfway { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed var(--rule); background: var(--card); font-size: 15px; }
.halfway.due { border: 2px solid var(--bib); background: color-mix(in srgb, var(--bib) 18%, var(--card)); }
.live-actions { display: grid; gap: 10px; margin-top: 16px; }
.live-actions.two { grid-template-columns: 1fr 1fr; }
/* Doelpunt en Kwart klaar blijven onderin in beeld, ook als het scherm vol staat */
.live-actions.two { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; margin: 0; padding: 10px max(16px, calc((100% - 948px) / 2)) calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-top: 1px solid var(--rule); }
body:has(.live-actions.two) #toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.live .undo { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.btn.big { min-height: 64px; font-size: 19px; border-radius: 14px; }
.btn.goal { background: var(--bib); color: #1d1d1d; }
.live-minor { display: flex; justify-content: center; gap: 24px; margin-top: 10px; }
.chip.hurt { opacity: .75; }
.undo { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); padding: 8px 10px 8px 16px; border-radius: 12px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.undo .btn { color: var(--paper); border-color: rgba(255,255,255,.4); }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; background: var(--card); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; max-width: 640px; margin: 0 auto; box-shadow: 0 -8px 24px rgba(0,0,0,.2); }
.sheet h3 { font-family: var(--display); font-size: 26px; margin: 0 0 12px; line-height: 1.1; }
.sheet-grid { display: grid; gap: 10px; margin-top: 16px; }
.sheet .pills .pill { min-height: 44px; }
.sheet .pill[aria-pressed="false"] { text-decoration: none; }
.sheet-close { width: 100%; margin-top: 14px; }
@media (prefers-reduced-motion: no-preference) { .sheet { animation: sheetUp .18s ease-out; } }
@keyframes sheetUp { from { transform: translateY(24px); } to { transform: none; } }
.sheet.still { animation: none; }

/* ---------- verslag en seizoen ---------- */
.timeline { list-style: none; margin: 4px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 0; }
.tl-min { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.tl-score { font-family: var(--display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.tl-goal.us .tl-txt b { color: var(--grass); }
.tl-sub .tl-txt { color: var(--muted); font-size: 14px; }
.tl-end { background: var(--paper); border-radius: 8px; padding-left: 8px !important; padding-right: 8px !important; }
.tl-end .tl-txt { font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 6px; }
.stats div { background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.stats b { display: block; font-family: var(--display); font-size: 30px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }
.topscorers { margin: 6px 0 0; padding-left: 22px; }
.topscorers li { padding: 4px 0; }
.topscorers li span { display: inline-block; min-width: 140px; font-weight: 600; }
.topscorers li b { font-family: var(--display); font-size: 18px; }
.report-img { display: block; width: 100%; max-width: 420px; margin: 4px auto 0; border-radius: 14px; aspect-ratio: 1080 / 1350; object-fit: contain; background: var(--grass); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.report-img[src] { aspect-ratio: auto; background: none; }

/* ---------- wisselwijze ---------- */
.modes { display: grid; gap: 10px; margin-top: 6px; }
.mode { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; text-align: left; background: var(--card); border: 2px solid var(--rule); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.mode[aria-checked="true"] { border-color: var(--grass); box-shadow: 0 0 0 3px color-mix(in srgb, var(--grass) 18%, transparent); }
.mode .dot { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rule); margin-top: 2px; display: grid; place-items: center; }
.mode[aria-checked="true"] .dot { border-color: var(--grass); }
.mode[aria-checked="true"] .dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--grass); }
.mode b { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.mode span { color: var(--muted); font-size: 14px; }
.tl { margin-top: 8px; user-select: none; -webkit-user-select: none; }
.tl-bar { position: relative; height: 60px; border-radius: 12px; background: repeating-linear-gradient(90deg, var(--grass) 0 12.5%, var(--grass2) 12.5% 25%); cursor: crosshair; touch-action: manipulation; }
.tl-bar .half { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: rgba(255,255,255,.85); }
.tl-bar .to { position: absolute; top: 10px; bottom: 10px; width: 0; border-left: 2px dashed rgba(255,255,255,.55); }
.tl-bar .mk { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--bib); color: #1d1d1d; border: 3px solid #fff; font-family: var(--display); font-weight: 700; font-size: 15px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tl-bar .mk.fixed { background: #fff; color: #17263A; cursor: default; }
.tl-scale { position: relative; height: 18px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.tl-scale span { position: absolute; transform: translateX(-50%); }
.tl-scale span:first-child { transform: none; }
.tl-scale span:last-child { transform: translateX(-100%); }
.fair { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.fair div { background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.fair b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.05; }
.fair span { color: var(--muted); font-size: 13px; }
.fair .warn b { color: var(--A); }
.chip.empty { background: rgba(255,255,255,.18); color: #fff; border: 2px dashed rgba(255,255,255,.85); box-shadow: none; font-family: var(--body); font-weight: 600; font-size: 14px; }
.chip.new { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--bib); }
.bench span.chip { background: var(--paper); color: var(--ink); border: 1.5px dashed var(--rule); box-shadow: none; font-size: 16px; }
.mins { list-style: none; margin: 4px 0 0; padding: 0; }
.mins li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); align-items: center; font-size: 15px; }
.mins li:last-child { border-bottom: 0; }
.mins .st { font-size: 13px; color: var(--muted); }
.mins .st.long { color: var(--A); font-weight: 600; }
.mins .m { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 48px; text-align: right; }

/* ---------- posities ---------- */
.posfield { margin-top: 14px; max-width: 380px; border-radius: 14px; padding: 10px; background: repeating-linear-gradient(180deg, var(--grass) 0 16.6%, var(--grass2) 16.6% 33.3%); display: grid; gap: 8px; }
.posrow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; position: relative; padding-top: 18px; }
.poslbl { position: absolute; top: 0; left: 2px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9); letter-spacing: .02em; }
.poscell { min-height: 56px; border-radius: 10px; border: 2px dashed rgba(255,255,255,.75); background: rgba(255,255,255,.08); color: #fff; font-family: var(--display); font-weight: 700; font-size: 22px; cursor: pointer; display: grid; place-items: center; line-height: 1; padding: 4px; }
.poscell small { font-family: var(--body); font-weight: 600; font-size: 12px; opacity: .9; }
.poscell[aria-pressed="true"] { background: #fff; color: var(--grass); border-style: solid; border-color: #fff; }
.poscell[disabled] { opacity: .35; cursor: not-allowed; }
.posgoal { justify-self: center; min-width: 60%; min-height: 48px; border-radius: 10px; border: 2px dashed rgba(255,255,255,.85); background: rgba(255,255,255,.08); color: #fff; font-weight: 700; cursor: pointer; margin-top: 4px; }
.posgoal[aria-pressed="true"] { background: var(--bib); border-color: var(--bib); color: #1d1d1d; border-style: solid; }
.chip.offpos { position: relative; }
.chip.offpos::after { content: ""; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--bib); border: 2px solid #fff; }

/* ---------- lijst met doorklik ---------- */
.plist li.rowlink { padding: 0; }
.rowbtn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: transparent; border: 0; padding: 12px 2px; text-align: left; cursor: pointer; color: inherit; min-height: 56px; }
.rowbtn > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.rowbtn .nm { font-weight: 600; }
.rowbtn .meta { color: var(--muted); font-size: 14px; }
.rowbtn .chev { font-size: 26px; line-height: 1; color: var(--muted); }
.rowbtn:hover .chev { color: var(--grass); }

/* ---------- stappen en overzichten ---------- */
.wrap { padding-bottom: 120px; }
.stepper { display: flex; gap: 6px; margin-top: 14px; list-style: none; padding: 0; }
.stepper li { flex: 1; }
.stepper button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--rule); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; text-align: left; min-height: 44px; }
.stepper button b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); font-size: 13px; flex: none; }
.stepper button[aria-current="step"] { border-color: var(--grass); color: var(--ink); }
.stepper button[aria-current="step"] b { background: var(--grass); color: #fff; }
.stepper button.done b { background: var(--ink); color: var(--paper); }
.stepper button[disabled] { cursor: default; opacity: .7; }
.summary { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.summary b { color: var(--ink); font-weight: 600; }
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-top: 1px solid var(--rule); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.bottombar .in { max-width: 980px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.bottombar .btn.primary { flex: 1; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cardhead h2 { margin: 0; }
.card.quiet { background: transparent; border-style: dashed; }
.hub { list-style: none; margin: 14px 0 0; padding: 0 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; }
.hub li + li { border-top: 1px solid var(--rule); }
.hub .rowbtn { min-height: 64px; }
.hub .nm { font-size: 17px; }
.hub.danger { margin-top: 24px; }
.hub.danger .nm { color: var(--A); }
.stepper { gap: 4px; }
.stepper li { min-width: 0; }
.stepper button { padding: 8px 6px; gap: 6px; font-size: 13.5px; }
.stepper button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper button b { width: 22px; height: 22px; font-size: 12px; }
#toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

/* ---------- wedstrijden: lijst ---------- */
.mlist { list-style: none; margin: 8px 0 0; padding: 0; }
.mlist li { display: flex; align-items: center; gap: 4px; }
.mlist li + li { border-top: 1px solid var(--rule); }
.mlist .rowbtn { flex: 1; min-width: 0; min-height: 64px; }
.mlist .nm { font-size: 17px; }
.more { border: 0; background: transparent; font-size: 22px; line-height: 1; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; color: var(--muted); flex: none; }
.more:hover { background: var(--paper); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; border-radius: 6px; padding: 2px 7px; margin-left: 8px; vertical-align: 2px; text-transform: uppercase; }
.b-nieuw { background: var(--paper); color: var(--muted); border: 1px solid var(--rule); }
.b-gepland { background: color-mix(in srgb, var(--V) 16%, var(--card)); color: var(--V); }
.b-bezig { background: var(--bib); color: #1d1d1d; }
.b-afgerond { background: color-mix(in srgb, var(--grass) 16%, var(--card)); color: var(--grass); }
.b-afgelast { background: color-mix(in srgb, var(--A) 14%, var(--card)); color: var(--A); }
.livedot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--A); margin-right: 6px; vertical-align: 1px; animation: livepulse 1.6s infinite; }
@keyframes livepulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .livedot { animation: none; } }

/* ---------- wedstrijd als eigen scherm ---------- */
body:has(.modal) { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 30; background: var(--paper); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mwrap { max-width: 980px; margin: 0 auto; padding: 0 16px 130px; }
.mhead { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.mhead.static { position: static; }
.mhead .ttl { min-width: 0; text-align: center; }
.mhead h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 0; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhead .meta { color: var(--muted); font-size: 13px; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--rule); background: var(--card); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.save { font-weight: 600; }
.save.saved { color: var(--grass); }
.save.saving { color: var(--muted); }
.save.error { color: var(--A); }
.save .linkbtn { padding: 0; font-size: 13px; }
.life { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 12px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.life span { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--rule); background: var(--card); }
.life span.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.life span.done { color: var(--ink); }
.life i { font-style: normal; opacity: .5; }
.watch { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1.5px solid var(--V); background: color-mix(in srgb, var(--V) 10%, var(--card)); border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-size: 15px; }
.modal .bottombar { z-index: 35; }
.modal ~ .sheet-bg, .modal .sheet-bg { z-index: 40; }
.modal ~ .sheet, .modal .sheet { z-index: 41; }
#toast { z-index: 60; }
.undo { z-index: 50; }

/* doelpunten aanpassen na de wedstrijd */
.glist { list-style: none; margin: 0; padding: 0; }
.glist li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.glist li:last-child { border-bottom: 0; }
.glist .min { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.glist .who { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.glist .who.them { font-weight: 500; color: var(--muted); }
.glist .st { font-family: var(--display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.glist .acts { grid-column: 2 / 4; display: flex; gap: 8px; }
.gadd { width: 100%; margin-top: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper); margin-bottom: 14px; }
.seg button { border: 0; border-radius: 9px; padding: 10px 6px; background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.sheet .lbl { font-weight: 600; margin: 0 0 8px; }
.sheet .pills { margin-bottom: 14px; }
.gmin { margin-top: 14px; }
.gmin input { max-width: 140px; }

/* ---------- tips en tops ---------- */
:root { --topbg: color-mix(in srgb, var(--grass) 14%, var(--card)); --topink: #1F5E37; --tipbg: color-mix(in srgb, var(--bib) 18%, var(--card)); --tipink: #9A4A08; }
.tt-bucket { border: 1.5px solid var(--rule); border-radius: 12px; padding: 10px 12px 12px; margin-top: 10px; }
.tt-bucket.k-top { border-color: color-mix(in srgb, var(--grass) 50%, var(--rule)); }
.tt-bucket.k-tip { border-color: color-mix(in srgb, var(--bib) 60%, var(--rule)); }
.tt-bhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 34px; }
.tt-bhead b { font-family: var(--display); font-size: 20px; }
.tt-bucket.k-top .tt-bhead b { color: var(--topink); }
.tt-bucket.k-tip .tt-bhead b { color: var(--tipink); }
.tt-add { border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 36px; }
.tt-bucket.k-top .tt-add { background: var(--grass); color: #fff; }
.tt-bucket.k-tip .tt-add { background: var(--bib); color: #1d1d1d; }
.tt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-tag { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.25; text-align: left; }
.tt-tag.k-top { background: var(--topbg); color: var(--topink); }
.tt-tag.k-tip { background: var(--tipbg); color: var(--tipink); }
.tt-tag em { font-style: normal; font-size: 12px; font-weight: 700; opacity: .8; }
.tt-tag.old { opacity: .55; }
.tt-tag.done { background: transparent; border: 1.5px dashed var(--rule); color: var(--muted); text-decoration: line-through; }
.tt-tag.own::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: var(--ic-potlood) center / contain no-repeat; mask: var(--ic-potlood) center / contain no-repeat; }
.tt-h { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 14px 0 6px; }
.tt-pick { border: 1.5px solid var(--rule); background: transparent; border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 38px; text-align: left; }
.tt-pick small { font-weight: 400; color: var(--muted); }
.tt-pick.k-top[aria-pressed="true"] { background: var(--grass); border-color: var(--grass); color: #fff; }
.tt-pick.k-tip[aria-pressed="true"] { background: var(--bib); border-color: var(--bib); color: #1d1d1d; }
.tt-pick[aria-pressed="true"] small { color: inherit; }
.tt-pick[disabled] { opacity: .35; cursor: default; }
.tt-own { display: flex; gap: 8px; }
.tt-own input { flex: 1; min-width: 0; }
.tt-cnt { display: inline-flex; gap: 4px; margin-left: 4px; vertical-align: 1px; }
.tt-dot { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.tt-dot.k-top { background: var(--topbg); color: var(--topink); }
.tt-dot.k-tip { background: var(--tipbg); color: var(--tipink); }
.tt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.tt-row:last-of-type { border-bottom: 0; }
.tt-row .t { font-weight: 600; }
.tt-row .n { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tt-row .n.k-tip, .tt-row b.k-tip { color: var(--tipink); }
.tt-row b.k-top { color: var(--topink); }
.tt-row .w { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.tt-track { grid-column: 1 / -1; display: flex; gap: 2px; height: 6px; }
.tt-track i { display: block; height: 100%; border-radius: 999px; }
.tt-track i.k-tip { background: var(--bib); }
.tt-track i.k-top { background: var(--grass); }
.tt-rest { margin: 8px 0 0; }
.tt-more { width: 100%; display: flex; justify-content: space-between; align-items: center; background: transparent; border: 0; border-top: 1px solid var(--rule); padding: 12px 2px 2px; margin-top: 8px; font-weight: 600; color: var(--grass); cursor: pointer; min-height: 48px; text-align: left; }
.tt-more .chev { font-size: 26px; line-height: 1; }
.tt-head { align-items: center; }
.tt-range { width: auto; min-height: 40px; }
.tt-invite { border: 2px solid var(--grass); }
.tt-hist { list-style: none; padding: 0; margin: 6px 0 0; font-size: 15px; }
.tt-hist li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.tt-sheet.still { animation: none; }
.tt-sheet h3 { margin-bottom: 6px; }

/* spelersscherm: alles wordt meteen opgeslagen */
.pe-auto { margin: 6px 0 0; }

/* ---------- Voetbal.nl-agenda en delen met ouders ---------- */
input[type=url], input[type=time] { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; color: var(--ink); width: 100%; min-height: 44px; }
.btn.withicon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.withicon svg { flex: none; }
.card.quiet.agcard { position: relative; }
.card.quiet.agcard h2 { padding-right: 40px; }
.dismiss { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.dismiss:hover { background: var(--paper); }
.syncbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--grass) 12%, var(--card)); font-size: 14px; color: var(--grass); font-weight: 600; }
.syncbar > span { display: flex; align-items: center; gap: 6px; }
.syncbar .linkbtn { padding: 4px 0; }
/* komende wedstrijden als losse kaartjes */
.listhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.listhead h2 { font-family: var(--display); font-weight: 700; font-size: 24px; margin: 0; line-height: 1.1; }
.mlist.mcards { margin: 12px 0 0; display: grid; gap: 10px; }
.mlist.mcards li { display: block; position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; }
.mlist.mcards li + li { border-top: 1px solid var(--rule); }
.mcards li.islive { border-color: var(--bib); box-shadow: 0 0 0 1px var(--bib); }
.mcards .rowbtn.main { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 16px; min-height: 0; border-radius: 14px; }
.mcards .rowbtn.main:hover { background: color-mix(in srgb, var(--paper) 50%, transparent); }
.mcards .rowbtn.main > .top { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 28px; padding: 0; }
.mcards .withmenu .rowbtn.main > .top { padding-right: 40px; }
.mcards .line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.mcards .when { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.mcards .badge { margin-left: 0; vertical-align: 0; flex: none; }
.mcards .foot { color: var(--muted); font-size: 14px; }
.mcards .more { position: absolute; top: 8px; right: 4px; height: 40px; }
.live:has(+ .dangerzone) { padding-bottom: 0; }
.mcards .foot b.ok { color: var(--grass); font-weight: 600; }
.mcards .teams.score span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mcards .teams.score b { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); min-width: 20px; text-align: right; }
.mcards li.dim { opacity: .75; }
.seasonlist { margin-bottom: 4px; }
.b-verloren { background: var(--paper); color: var(--muted); border: 1px solid var(--rule); }
.b-gelijk { background: color-mix(in srgb, var(--M) 16%, var(--card)); color: var(--ink); }
.b-afsluiten { background: color-mix(in srgb, var(--bib) 18%, var(--card)); color: var(--ink); border: 1px solid var(--bib); }
.dangerzone { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule); }
.dangerzone .btn { width: 100%; }
.dangerzone .small { margin-top: 8px; }
/* speeltijd dit seizoen: één regel per speler */
.infobtn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--card); color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; flex: none; }
.infobtn[aria-expanded=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pt { list-style: none; margin: 8px 0 0; padding: 0; }
.pt li { display: grid; grid-template-columns: minmax(80px, 30%) 1fr 56px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.pt li:last-child { border-bottom: 0; }
.pt .bar { min-width: 0; }
.pt-n, .pt-v { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pt-n b { font-weight: 600; overflow-wrap: anywhere; }
.pt small { font-size: 12.5px; color: var(--muted); }
.pt-v { text-align: right; font-variant-numeric: tabular-nums; }
.teams.big span { font-size: 18px; line-height: 1.25; }
.teams.big span.own { font-weight: 700; }
.teams { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.teams span { font-size: 16px; color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.teams span.own { color: var(--grass); font-weight: 600; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; border-radius: 6px; padding: 2px 7px; text-transform: uppercase; }
.tag.t-thuis { background: var(--grass); color: #fff; }
.tag.t-uit { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tag.t-hand { background: var(--paper); color: var(--muted); border: 1px dashed var(--rule); }
.tag.t-warn { background: color-mix(in srgb, var(--bib) 18%, var(--card)); color: var(--ink); border: 1px solid var(--bib); text-transform: none; letter-spacing: 0; }
.setrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.setrow + .setrow { border-top: 1px solid var(--rule); }
.setrow > span { display: flex; flex-direction: column; }
.setrow .nm { font-weight: 600; }
.setrow .meta { color: var(--muted); font-size: 14px; }
.steps { margin: 6px 0 0; padding-left: 20px; font-size: 15px; }
.steps li { padding: 2px 0; }
.stepline { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
.numstep { display: flex; align-items: center; gap: 6px; }
.numstep button { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--rule); background: var(--card); font-size: 20px; font-weight: 600; cursor: pointer; line-height: 1; color: var(--ink); }
.numstep output { min-width: 64px; text-align: center; font-weight: 600; }
.preview-line { display: flex; flex-direction: column; gap: 2px; border: 1px dashed var(--rule); border-radius: 12px; padding: 10px 12px; }
.sharerow { display: flex; justify-content: flex-end; margin-top: 10px; }
.agsheet .taskh { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hint-inline { color: var(--muted); font-weight: 500; font-size: 14px; }
.agsheet .pills { margin-bottom: 0; }
.pick { border: 1.5px solid var(--rule); background: transparent; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; min-height: 44px; color: var(--ink); }
.pick[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ink { color: var(--ink); }
.imgwrap { border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); }
.imgwrap img { display: block; width: 100%; height: auto; }
.agsheet .seg { margin-bottom: 0; }

/* uitslag doorgeven bij afronden zonder wedstrijdscherm */
.scorepick { display: grid; gap: 10px; margin-top: 10px; }
.scorepick > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.scorepick span { font-weight: 600; overflow-wrap: anywhere; }
.scorepick output { min-width: 40px; font-family: var(--display); font-size: 24px; font-weight: 700; }
/* assists */
.okline { margin: 0 0 6px; color: var(--grass); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.okline .linkbtn { font-weight: 600; }
.glist .as, .plist .as { color: var(--muted); font-weight: 500; font-size: 13px; }
.nostrike .pill[aria-pressed="false"] { text-decoration: none; color: var(--ink); }
.toplists { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; }
.toplists .topscorers li span { min-width: 0; margin-right: 10px; }
/* aanvoerder */
.chip .cap { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--body); font-weight: 700; font-size: 11px; margin-left: 5px; vertical-align: 2px; line-height: 1; }
.chip.keeper .cap, .chip.sel .cap { background: #fff; color: var(--ink); }
.switchrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; text-align: left; background: transparent; border: 0; padding: 6px 0 0; cursor: pointer; color: var(--ink); min-height: 48px; }
.switchrow > span { display: flex; flex-direction: column; gap: 2px; }
.switchrow b { font-weight: 600; font-size: 16px; }
.sw { width: 48px; height: 28px; border-radius: 14px; background: var(--rule); position: relative; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
[aria-checked="true"] > .sw { background: var(--grass); }
[aria-checked="true"] > .sw::after { left: 23px; }
.toplists .topscorers li { display: flex; justify-content: space-between; max-width: 220px; }
/* verzameltijd per wedstrijd */
.gatherrow { display: flex; gap: 12px; align-items: flex-end; }
.gatherrow .f { flex: 1; }
.gatherrow .kick { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 6px 14px; display: flex; flex-direction: column; min-width: 90px; min-height: 44px; }
.gatherrow .kick .small { color: inherit; opacity: .75; }
.gatherrow .kick b { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.small.needed { color: var(--A); font-weight: 600; }

/* ---------- staging ---------- */
.omgeving { background: #F07F1E; color: #1d1d1d; text-align: center; font-weight: 700; font-size: 13px; letter-spacing: .03em; padding: 5px 12px; }

/* ---------- wisselmomenten: onderbrekingen op de tijdlijn (okt 2026) ---------- */
.addrow { margin: 2px 0 10px; }
.addrow label.f { max-width: 190px; min-width: 0; }
.tl-bar { height: 92px; }
.tl-bar .to, .tl-bar .half { top: 0; bottom: 0; }
.tl-bar .mk { top: 28px; }
.tl-bar .mk.slot { width: auto; min-width: 42px; height: 34px; padding: 0 8px; border-radius: 999px; font-family: var(--body); font-size: 13px; }
.tl-bar .mk.slot.ghost { background: var(--grass); color: #fff; border: 2px dashed #fff; }
.tl-bar .mk.slot.fixed { background: #fff; color: #17263A; cursor: default; }
.tl-bar .mk.low { top: 66px; width: 30px; height: 30px; font-size: 14px; border-width: 2px; }
.tl-hint { margin: 8px 0 0; }
.tl-hint .tag { display: inline-block; border: 1.5px dashed var(--muted); border-radius: 999px; padding: 0 6px; font-size: 12px; color: var(--ink); }
.fairline { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 15px; }
.fairline b { font-family: var(--display); font-size: 21px; }
.fairline.warn b { color: var(--A); }
.modepick { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 6px; padding: 12px 14px; border: 2px solid var(--grass); border-radius: 14px; background: var(--card); color: var(--ink); cursor: pointer; text-align: left; min-height: 52px; }
.modepick b { flex: 1; font-family: var(--display); font-size: 22px; line-height: 1.1; }
.modepick .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--grass); display: grid; place-items: center; flex: none; }
.modepick .dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--grass); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two label.f { min-width: 0; }
.two select { width: 100%; min-width: 0; }
.captainf { margin-top: 14px; }
.captainf label.f { max-width: 360px; }

/* ---------- wissels zoals op tv: groen pijltje erin, rood pijltje eruit, en de positie ----------
   Alle regels van één lijstje delen één raster, zodat de kolommen recht onder elkaar staan.
   Is er te weinig ruimte, dan komen erin en eruit onder elkaar te staan. */
.swl { container-type: inline-size; }
.swaps { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, max-content) minmax(56px, 1fr); gap: 6px 0; margin-top: 8px; }
.wsw { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; row-gap: 4px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 7px 10px; font-weight: 600; font-size: 15px; color: var(--ink); min-width: 0; }
.halfway.due .wsw, .banner .wsw { border-color: color-mix(in srgb, var(--bib) 40%, var(--rule)); }
.w-in, .w-out { display: flex; align-items: center; gap: 6px; min-width: 0; padding-right: 12px; }
.w-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-in i, .w-out i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 10px; line-height: 1; flex: none; }
.w-in i { background: #1F9D55; }
.w-out i { background: #D23C3C; }
.w-out { color: var(--muted); }
.w-plek { font-size: 13px; font-weight: 500; font-style: italic; white-space: nowrap; }
.w-pos { font-size: 13px; color: var(--muted); font-weight: 500; text-align: right; min-width: 0; line-height: 1.15; }
.w-x { grid-column: 1 / -1; font-size: 13px; color: var(--muted); font-weight: 500; }
.swaps.check { grid-template-columns: 50px minmax(0, max-content) minmax(0, max-content) minmax(56px, 1fr); gap: 8px 0; }
.checkrow.wsw { width: auto; background: var(--card); padding: 10px 12px; cursor: pointer; text-align: left; font: inherit; font-weight: 600; font-size: 15px; min-height: 48px; border: 1.5px solid var(--rule); }
.checkrow .ck { font-style: normal; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--rule); display: grid; place-items: center; font-size: 15px; }
.checkrow[aria-checked="true"] { border-color: var(--grass); }
.checkrow[aria-checked="true"] .ck { background: var(--grass); border-color: var(--grass); color: #fff; }
.checkrow .w-x { grid-column: 2 / -1; }
@container (max-width: 300px) {
  .swaps { grid-template-columns: minmax(0, 1fr) auto; }
  .wsw .w-in { grid-column: 1; grid-row: 1; }
  .wsw .w-out { grid-column: 1; grid-row: 2; }
  .wsw .w-pos { grid-column: 2; grid-row: 1 / 3; max-width: 84px; }
  .wsw .w-x { grid-column: 1 / -1; grid-row: 3; }
  .swaps.check { grid-template-columns: 50px minmax(0, 1fr) auto; }
  .checkrow .ck { grid-column: 1; grid-row: 1 / 3; }
  .checkrow.wsw .w-in, .checkrow.wsw .w-out { grid-column: 2; }
  .checkrow.wsw .w-pos { grid-column: 3; }
  .checkrow.wsw .w-x { grid-column: 2 / -1; }
}
.halfway.mb { flex-direction: column; align-items: stretch; }
.mb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mb-head .btn { white-space: nowrap; flex: none; }
.banner.brk .swaps { margin-top: 8px; }

/* ---------- vooruitkijken ---------- */
.vk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vk-head h2 { margin: 0; }
.vk-nav { display: flex; align-items: center; gap: 6px; }
.vk-nav .small { white-space: nowrap; }
.iconbtn.sm { width: 40px; height: 40px; }
.iconbtn:disabled { opacity: .3; cursor: default; }
.vk-title { margin: 10px 0 0; }
.vk-acts { display: flex; gap: 8px; margin-top: 12px; }
.vk-acts .btn { flex: 1; }
.vk-pitch { margin-top: 10px; }
.pitch.vooruit { outline: 3px dashed var(--bib); outline-offset: -3px; }
.pitch.vooruit::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 10px, transparent 10px 22px); pointer-events: none; }
.vb-tag { position: absolute; top: 8px; right: 8px; background: var(--bib); color: #1d1d1d; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.chip .ar { position: absolute; top: -7px; left: -7px; font-style: normal; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; font-size: 8px; line-height: 1; border: 2px solid #fff; box-sizing: content-box; font-family: var(--body); }
.chip:has(.ar) { position: relative; }
.chip .ar.in { background: #1F9D55; }
.chip .ar.out { background: #D23C3C; }

/* ---------- scorebord past ook op een smal scherm ---------- */
.sb-title, .sb-clock { white-space: nowrap; }
.sb-clock #lt { font-size: clamp(34px, 11vw, 44px); }
@media (max-width: 340px) { .sb-title { font-size: 19px; } .sb-clock small { font-size: 14px; } }

/* ---------- menu onder je naam ---------- */
.menubtn { display: inline-flex; align-items: center; gap: 4px; max-width: 60vw; font-weight: 600; }
.menubtn .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.withicon.left { justify-content: flex-start; text-align: left; }
.btn .tel { margin-left: auto; font-size: 12px; background: var(--paper); border-radius: 999px; padding: 1px 8px; }

/* ---------- Opstelling tippen ---------- */
.card.tip { position: relative; border: 2px solid var(--grass); background: color-mix(in srgb, var(--grass) 7%, var(--card)); margin-top: 16px; }
.card.tip.done { border-color: var(--bib); background: color-mix(in srgb, var(--bib) 10%, var(--card)); }
.tip-head { display: flex; gap: 12px; align-items: flex-start; padding-right: 30px; }
.tip-head h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.15; }
.tip-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--grass); color: #fff; display: grid; place-items: center; font-size: 24px; }
.done .tip-ico { background: var(--bib); }
.btn.wide { width: 100%; }
.qrbox { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 10px 10px 12px; max-width: 280px; margin: 0 auto; }
.qrbox .qr { display: block; width: 100%; height: auto; }
.qrcap { text-align: center; margin: 4px 0 0; font-size: 14px; color: #17263A; }
.sheet-grid.two { grid-template-columns: 1fr 1fr; margin-top: 14px; }
.tipvoortgang { margin-top: 16px; padding: 12px; border-radius: 12px; background: var(--paper); }
.tipvoortgang p { margin: 0; }
.tipvoortgang p + p { margin-top: 6px; }
/* aanmeldscherm voor wie getipt is */
.getipt { display: flex; gap: 12px; align-items: center; background: color-mix(in srgb, var(--grass) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--grass) 35%, var(--rule)); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; text-align: left; }
.getipt b { display: block; }
.getipt .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--grass); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.pitchlist { text-align: left; margin: 4px 0 10px; padding-left: 20px; }
.pitchlist li { margin: 3px 0; }
.card.prijs { margin-top: 14px; }
.card.prijs h2 { font-size: 22px; margin: 0 0 10px; }
.prijzen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prijzen div { background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.prijzen b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; color: var(--grass); }
.prijzen span { font-size: 13.5px; color: var(--muted); }
.extlink { display: inline-flex; gap: 6px; margin-top: 12px; color: var(--grass); font-weight: 600; text-underline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- op het beginscherm zetten ---------- */
.sheet.install { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.inst-head { display: flex; gap: 14px; align-items: flex-start; }
.inst-head h3 { margin: 0 0 4px; }
.appicon { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.inst-stappen { margin: 12px 0 0; padding-left: 22px; }
.inst-stappen li { margin: 6px 0; }
.ios-deel { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--paper); vertical-align: middle; color: #2a6fd6; }

/* ---------- icoontjes (in plaats van emoji) ---------- */
:root { --ic-potlood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
.ic { display: inline-flex; width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }
.ic.rood { color: var(--A); }
.ic.groen { color: var(--grass); }
.btn.withicon .ic { width: 1.25em; height: 1.25em; }
.pause { display: inline-grid; place-items: center; }
.pause svg { width: 14px; height: 14px; }
.iconbtn svg, .dismiss svg { width: 20px; height: 20px; }
.iconbtn { display: inline-grid; place-items: center; }
.stepper button b svg { width: 14px; height: 14px; }
.checkrow .ck svg { width: 16px; height: 16px; }
.poscell svg { width: 18px; height: 18px; display: block; margin: 0 auto; }
.w-in i svg, .w-out i svg { width: 12px; height: 12px; }
.chip .ar svg { width: 10px; height: 10px; }
.tip-ico svg { width: 26px; height: 26px; }
.pair .arrow .ic { width: 11px; height: 11px; vertical-align: -1px; }
.chip .ic-pleister { width: 0.9em; height: 0.9em; }
/* Tabblad Seizoen: hele seizoen of één fase */
.periodekeuze { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.periode-uitleg { font-size: 13px; color: var(--muted); min-width: 0; }
.periode-lijst { width: auto; min-height: 40px; flex: none; background: var(--card); font-weight: 600; }
.mlist.mcards li.fasekop { background: none; border: 0; border-radius: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 2px 0; }
