/* Bladmuziek — rustig indigo, veel wit voor de muziek. Licht en donker thema. */
:root {
  --primair: #4c5fa8; --primair-donker: #2f3b6e; --primair-licht: #eef0fa;
  --achter: #f6f7fb; --vlak: #ffffff; --tekst: #20232e; --zacht: #6b7083; --lijn: #e2e4ee;
  --gevaar: #9b4a7c; --ok: #1f7a5a;
  --schaduw: 0 1px 2px rgb(20 24 50 / .06), 0 4px 14px rgb(20 24 50 / .06);
  --rond: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="licht"]) {
    --primair: #8c9be0; --primair-donker: #c9d1f5; --primair-licht: #262c48;
    --achter: #11131b; --vlak: #1a1d29; --tekst: #e8e9f0; --zacht: #9a9eb2; --lijn: #2c3042; --gevaar: #e2a0c8;
    --schaduw: 0 1px 2px rgb(0 0 0 / .3); color-scheme: dark;
  }
}
:root[data-thema="donker"] {
  --primair: #8c9be0; --primair-donker: #c9d1f5; --primair-licht: #262c48;
  --achter: #11131b; --vlak: #1a1d29; --tekst: #e8e9f0; --zacht: #9a9eb2; --lijn: #2c3042; --gevaar: #e2a0c8;
  --schaduw: 0 1px 2px rgb(0 0 0 / .3); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--achter); color: var(--tekst); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; }
a { color: var(--primair); }
h1 { font-size: 1.5rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 1.4em 0 .5em; color: var(--zacht); font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
.zacht { color: var(--zacht); }
.fout { color: var(--gevaar); }
.laden { display: grid; place-items: center; min-height: 60dvh; font-size: 1.2rem; color: var(--zacht); }

/* ---- omlijsting ---- */
.kop { display: flex; align-items: center; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: var(--primair-donker); color: #fff; }
:root[data-thema="donker"] .kop { background: #1d2340; }
@media (prefers-color-scheme: dark) { :root:not([data-thema="licht"]) .kop { background: #1d2340; } }
.merk { display: flex; gap: 10px; align-items: center; }
.merk b { display: block; line-height: 1.1; }
.merk small { opacity: .75; font-size: .8rem; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgb(255 255 255 / .14); font-size: 1.3rem; }
.offline-label { font-size: .8rem; background: rgb(255 255 255 / .16); padding: 3px 10px; border-radius: 99px; }
.tabs { display: flex; gap: 4px; padding: 0 12px; background: var(--vlak); border-bottom: 1px solid var(--lijn); position: sticky; top: 0; z-index: 5; overflow-x: auto; }
.tabs a { display: flex; gap: 6px; align-items: center; padding: 12px 12px; text-decoration: none; color: var(--zacht); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 500; }
.tabs a.actief { color: var(--primair); border-color: var(--primair); }
.tabs .ic { font-size: 1.05rem; }
main { max-width: 900px; margin: 0 auto; padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
main.smal { max-width: 440px; }
@media (max-width: 600px) {
  /* op de telefoon de tabs onderin, binnen bereik van de duim */
  .tabs { position: fixed; bottom: 0; top: auto; left: 0; right: 0; border-top: 1px solid var(--lijn); border-bottom: 0; justify-content: space-around; padding: 0 0 env(safe-area-inset-bottom); }
  .tabs a { flex-direction: column; gap: 0; font-size: .72rem; padding: 8px 6px; border-bottom: 0; border-top: 3px solid transparent; }
  .tabs a.actief { border-top-color: var(--primair); }
  .tabs .ic { font-size: 1.25rem; }
  main { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .breed-alleen { display: none; }
}

/* ---- knoppen en velden ---- */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--primair); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
:root[data-thema="donker"] .knop:not(.licht) { color: #11131b; }
@media (prefers-color-scheme: dark) { :root:not([data-thema="licht"]) .knop:not(.licht) { color: #11131b; } }
.knop.licht { background: var(--primair-licht); color: var(--primair-donker); }
.knop.gevaar { background: transparent; color: var(--gevaar); box-shadow: inset 0 0 0 1px currentColor; }
.knop.gevaar:not(.licht) { background: var(--gevaar); color: #fff; box-shadow: none; }
.knop:disabled { opacity: .45; cursor: default; }
.knop.breed { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--primair); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link.actief { font-weight: 700; text-decoration: none; }
.link.gevaar { color: var(--gevaar); }
.knoppenrij { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.veld { display: grid; gap: 4px; margin: 12px 0; font-size: .9rem; color: var(--zacht); }
.veld input, .veld select, .veld textarea, input[type=search], select { width: 100%; padding: 11px 12px; border: 1px solid var(--lijn); border-radius: 10px; background: var(--vlak); color: var(--tekst); font-size: 1rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--primair); outline-offset: 2px; }
.balk { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.balk input[type=search] { flex: 1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.chip { border: 1px solid var(--lijn); background: var(--vlak); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.chip.actief { background: var(--primair-licht); border-color: var(--primair); color: var(--primair-donker); font-weight: 600; }
.ic-knop { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 1.25rem; color: inherit; }
.ic-knop:disabled { opacity: .3; }
.ic-knop.klein { min-width: 36px; height: 36px; font-size: .95rem; }
.label { font-size: .8rem; background: var(--primair-licht); color: var(--primair-donker); padding: 2px 10px; border-radius: 99px; }

/* ---- bibliotheek ---- */
.liederen { background: var(--vlak); border-radius: var(--rond); box-shadow: var(--schaduw); overflow: clip; }
.letter { padding: 6px 16px; font-size: .8rem; font-weight: 700; color: var(--primair); background: var(--primair-licht); position: sticky; top: 52px; z-index: 1; }
@media (max-width: 600px) { .letter { top: 0; } }
.rij { display: flex; align-items: center; border-top: 1px solid var(--lijn); }
.letter + .rij, .rij:first-child { border-top: 0; }
.rij .titel { flex: 1; display: grid; padding: 12px 16px; text-decoration: none; color: var(--tekst); min-width: 0; }
.rij .titel span { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rij .titel small { color: var(--zacht); font-size: .8rem; }
.rij .titel:active { background: var(--primair-licht); }
.meer { border: 0; background: none; color: var(--zacht); font-size: 1.4rem; width: 52px; align-self: stretch; cursor: pointer; }
.leeg { padding: 40px 20px; text-align: center; color: var(--zacht); }

/* ---- setlijsten ---- */
.kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.kaart { display: grid; gap: 2px; padding: 14px 16px; background: var(--vlak); border-radius: var(--rond); box-shadow: var(--schaduw); text-decoration: none; color: var(--tekst); border-left: 4px solid var(--primair); }
.kaart small { color: var(--zacht); }
.setlijst { list-style: none; padding: 0; margin: 12px 0; background: var(--vlak); border-radius: var(--rond); box-shadow: var(--schaduw); overflow: hidden; }
.setlijst li { display: flex; align-items: center; border-top: 1px solid var(--lijn); }
.setlijst li:first-child { border-top: 0; }
.setlijst a { flex: 1; display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: var(--tekst); text-decoration: none; min-width: 0; }
.setlijst .nr { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primair-licht); color: var(--primair-donker); font-weight: 700; font-size: .85rem; flex: none; }
.setlijst .acties { display: flex; padding-right: 6px; }
.blok { background: var(--vlak); border-radius: var(--rond); box-shadow: var(--schaduw); padding: 4px 16px 16px; margin-bottom: 14px; }
.blok h2 { margin-top: 14px; }
.simpel, .leden { list-style: none; padding: 0; margin: 10px 0 0; }
.simpel li, .leden li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--lijn); }
.leden .wie { display: grid; flex: 1; min-width: 0; }
.leden .wie small { color: var(--zacht); overflow: hidden; text-overflow: ellipsis; }
.leden select { width: auto; padding: 6px 8px; }
.uitleg { padding-left: 18px; color: var(--zacht); }
.uitleg li { margin: 6px 0; }

/* ---- inloggen ---- */
.inlog { text-align: center; padding-top: 10vh; }
.inlog form { text-align: left; }
.groot-logo { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: var(--primair-donker); color: #fff; font-size: 2.4rem; margin-bottom: 10px; }
.inlog .sub { color: var(--zacht); margin-top: 2px; }
.taalkeuze { margin-top: 24px; color: var(--zacht); }

/* ---- dialoog ---- */
.dialoog { border: 0; border-radius: 16px; padding: 20px; width: min(92vw, 440px); background: var(--vlak); color: var(--tekst); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.dialoog::backdrop { background: rgb(15 18 35 / .45); }
.dialoog h2 { margin: 0 0 8px; color: var(--tekst); font-size: 1.15rem; }
.dialoog .knoppen { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.dialoog .kopieer { width: 100%; padding: 10px; border: 1px solid var(--lijn); border-radius: 8px; background: var(--achter); color: var(--tekst); }
.kiezer { width: min(94vw, 520px); }
.kieslijst { max-height: 55dvh; overflow: auto; margin-top: 8px; border: 1px solid var(--lijn); border-radius: 10px; }
.kies { display: flex; width: 100%; justify-content: space-between; gap: 8px; padding: 11px 12px; border: 0; border-top: 1px solid var(--lijn); background: none; text-align: left; cursor: pointer; }
.kies:first-child { border-top: 0; }
.kies.actief { background: var(--primair-licht); }
.kies b { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--primair); color: #fff; font-size: .8rem; }
.kies small { color: var(--zacht); }

#melding { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: #20232e; color: #fff; padding: 10px 18px; border-radius: 99px; transition: .25s; z-index: 50; max-width: 90vw; text-align: center; }
#melding.zichtbaar { opacity: 1; transform: translate(-50%, 0); }
#melding.fout { background: var(--gevaar); }
@media (max-width: 600px) { #melding { bottom: calc(84px + env(safe-area-inset-bottom)); } body.standaard-open #melding { bottom: 24px; } }

/* ---- muziekstandaard ---- */
body.standaard-open { overflow: hidden; background: #2a2c33; }
.standaard { position: fixed; inset: 0; background: #2a2c33; color: #fff; user-select: none; -webkit-user-select: none; }
.podium { position: absolute; inset: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); touch-action: none; }
.podium .laden { min-height: 100%; color: #c9cbd6; }
.weergave { overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.vel { will-change: transform; }
.vel { width: 100%; height: 100%; display: flex; gap: 6px; align-items: center; justify-content: center; }
.blad { position: relative; background: #fff; box-shadow: 0 2px 12px rgb(0 0 0 / .4); flex: none; }
.blad canvas { position: absolute; inset: 0; display: block; }
.bovenbalk { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 4px; padding: max(6px, env(safe-area-inset-top)) 8px 6px; background: rgb(24 27 40 / .88); backdrop-filter: blur(8px); transition: transform .2s, opacity .2s; z-index: 3; }
.bovenbalk.weg { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.bovenbalk .info { flex: 1; min-width: 0; display: grid; padding: 0 6px; }
.bovenbalk .info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bovenbalk .info small { color: #b9bccb; font-size: .8rem; }
.setpos { font-size: .85rem; color: #b9bccb; padding: 0 2px; }
.gereedschap { position: absolute; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding: 6px 8px; max-width: calc(100vw - 16px); background: rgb(24 27 40 / .94); border-radius: 16px; box-shadow: 0 6px 24px rgb(0 0 0 / .4); z-index: 3; }
.gereedschap[hidden] { display: none; }
.gk { display: grid; justify-items: center; min-width: 48px; padding: 4px 6px; border: 0; border-radius: 10px; background: none; color: #fff; cursor: pointer; }
.gk span { font-size: 1.15rem; line-height: 1.3; }
.gk small { font-size: .65rem; color: #b9bccb; }
.gk.actief { background: #4c5fa8; }
.gk.actief small { color: #fff; }
.kleur { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; }
.kleur i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px rgb(255 255 255 / .25); }
.kleur.actief i { box-shadow: 0 0 0 3px #fff; }
.dikte { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; display: grid; place-items: center; cursor: pointer; }
.dikte i { width: 20px; background: #fff; border-radius: 4px; min-height: 2px; }
.dikte.actief { background: rgb(255 255 255 / .16); }
.scheiding { width: 1px; height: 28px; background: rgb(255 255 255 / .18); margin: 0 4px; }
.gereedschap select { width: auto; padding: 6px 8px; background: #2c3042; color: #fff; border: 0; }
.gereedschap .knop { min-height: 38px; padding: 6px 14px; }
@media (max-width: 700px) {
  /* telefoon: één rij die je opzij kunt schuiven, zodat de muziek zichtbaar blijft */
  .gereedschap { left: 8px; right: 8px; transform: none; max-width: none; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .gereedschap > * { flex: none; }
  .gk small { display: none; } .gk { min-width: 40px; }
}

/* ---- oefenen ---- */
:root { --rol-zwart: rgba(20, 24, 50, .045); }
:root[data-thema="donker"] { --rol-zwart: rgba(255, 255, 255, .04); }
@media (prefers-color-scheme: dark) { :root:not([data-thema="licht"]) { --rol-zwart: rgba(255, 255, 255, .04); } }
body.oefen-open { overflow: hidden; }
.oefen { display: flex; flex-direction: column; height: 100dvh; max-width: 1200px; margin: 0 auto; padding: 0 12px env(safe-area-inset-bottom); }
.oefenkop { display: flex; align-items: center; gap: 6px; padding: max(8px, env(safe-area-inset-top)) 0 6px; }
.oefenkop .ic-knop { text-decoration: none; }
.oefenkop .info { display: grid; min-width: 0; }
.oefenkop .info b { font-size: 1.1rem; }
.oefenkop .info small { color: var(--zacht); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oefenvak { background: var(--vlak); border-radius: var(--rond); box-shadow: var(--schaduw); padding: 6px 12px; display: grid; gap: 2px; }
.rij-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0; }
.rij-l .lbl { width: 120px; color: var(--zacht); font-size: .85rem; }
.rij-l .chips { margin: 0; }
.chip.partij { display: inline-flex; align-items: center; gap: 6px; }
.chip.partij i { width: 10px; height: 10px; border-radius: 50%; }
.chip.klein { padding: 4px 10px; font-size: .85rem; }
.segment { display: inline-flex; border: 1px solid var(--lijn); border-radius: 10px; overflow: hidden; }
.segment button { border: 0; background: var(--vlak); padding: 7px 14px; cursor: pointer; border-left: 1px solid var(--lijn); }
.segment button:first-child { border-left: 0; }
.segment button.actief { background: var(--primair-licht); color: var(--primair-donker); font-weight: 600; }
.stukje { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stukje label { display: inline-flex; gap: 6px; align-items: center; color: var(--zacht); font-size: .9rem; }
.stukje input { width: 72px; padding: 7px 8px; border: 1px solid var(--lijn); border-radius: 8px; background: var(--vlak); color: var(--tekst); }
.rolvak { flex: 1; min-height: 200px; margin: 10px 0 8px; background: var(--vlak); border-radius: var(--rond); box-shadow: var(--schaduw); overflow: hidden; }
.rolvak canvas, .klaviervak canvas { display: block; width: 100%; height: 100%; touch-action: manipulation; }
.bediening { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bediening .speel { min-width: 64px; font-size: 1.2rem; }
.tempo { display: inline-flex; align-items: center; gap: 8px; color: var(--zacht); font-size: .9rem; }
.tempo input { width: 140px; accent-color: var(--primair); }
.vink { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.vink input { width: 18px; height: 18px; accent-color: var(--primair); }
.nu { margin-left: auto; min-width: 8.5em; text-align: right; white-space: nowrap; font-weight: 600; color: var(--primair-donker); font-variant-numeric: tabular-nums; }
.klaviervak { height: clamp(90px, 18dvh, 150px); margin: 8px 0 10px; border-radius: 10px; overflow: hidden; box-shadow: var(--schaduw); }
@media (max-width: 600px) { .rij-l .lbl { width: 100%; } .tempo input { width: 110px; } .nu { margin-left: 0; width: 100%; } }
.waarschuwing { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #fff4c2; color: #5c4a00; font-size: .9rem; }
:root[data-thema="donker"] .waarschuwing { background: #3b3417; color: #f5e3a1; }
@media (prefers-color-scheme: dark) { :root:not([data-thema="licht"]) .waarschuwing { background: #3b3417; color: #f5e3a1; } }
.oefenkop #bewerkKnop { margin-left: auto; }
.oefenkop #bewerkKnop.actief { background: var(--primair); color: #fff; }
.bewerkvak { background: var(--vlak); border-radius: var(--rond); box-shadow: var(--schaduw); padding: 10px 12px; margin-bottom: 8px; }
.bewerkvak[hidden] { display: none; }
.bewerkkop { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-bottom: 6px; }
.bewerkkop .zacht { font-size: .8rem; }
.label.geel { background: #fff0a8; color: #5c4a00; }
.maatregel { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; margin: 4px 0; font-size: .9rem; }
.maatregel span { display: inline-flex; gap: 6px; align-items: center; color: var(--zacht); }
.maatregel i { width: 10px; height: 10px; border-radius: 50%; }
.maatregel input { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; padding: 7px 9px; border: 1px solid var(--lijn); border-radius: 8px; background: var(--vlak); color: var(--tekst); width: 100%; }
.maatregel input.mis { border-color: var(--gevaar); box-shadow: 0 0 0 1px var(--gevaar); }
.bewerkvak .knoppenrij .knop { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.oefenwacht h1 { margin-top: 12px; }
.draaier { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--primair); border-right-color: transparent; border-radius: 50%; animation: draai 0.9s linear infinite; vertical-align: -2px; }
@keyframes draai { to { transform: rotate(360deg) } }
@media (max-width: 600px) { .maatregel { grid-template-columns: 1fr; gap: 2px; } }

/* ---- koren, teksten, luisteren, agenda ---- */
.merk select { background: rgb(255 255 255 / .14); color: #fff; border: 0; border-radius: 8px; padding: 3px 8px; font-size: .85rem; max-width: 52vw; }
.merk select option { color: #20232e; }
.welkom h1 { margin-top: 14px; }
.lijstknoppen { margin: 4px 0 8px; }
.liedtekst { white-space: pre-wrap; font-size: 1.12rem; line-height: 1.65; background: var(--vlak); border-radius: var(--rond); box-shadow: var(--schaduw); padding: 18px 20px; margin: 12px 0; max-width: 680px; }
.tekstblok .liedtekst { box-shadow: none; padding: 0; margin: 4px 0 8px; }
.inhoud { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 14px; }
.inhoud a { color: var(--primair); text-decoration: none; font-size: .92rem; }
.linkknop { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--primair-licht); color: var(--primair-donker); text-decoration: none; font-size: .9rem; font-weight: 500; }
.linkknop.youtube { background: #fde8e8; color: #9b1c1c; }
.linkknop.spotify { background: #e3f6ea; color: #14633a; }
:root[data-thema="donker"] .linkknop.youtube { background: #3a1f22; color: #f3b4b4; }
:root[data-thema="donker"] .linkknop.spotify { background: #17301f; color: #9fe0b8; }
@media (prefers-color-scheme: dark) { :root:not([data-thema="licht"]) .linkknop.youtube { background: #3a1f22; color: #f3b4b4; } :root:not([data-thema="licht"]) .linkknop.spotify { background: #17301f; color: #9fe0b8; } }
.luisterlijst li { flex-wrap: wrap; }
.luisterlijst .links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 12px 10px 56px; }
@media (min-width: 700px) { .luisterlijst .links { padding: 0 12px 0 0; } }
.afspraak { display: flex; gap: 14px; align-items: flex-start; background: var(--vlak); border-radius: var(--rond); box-shadow: var(--schaduw); padding: 12px 14px; margin: 10px 0; border-left: 4px solid var(--primair); }
.afspraak.optreden { border-left-color: #c9761d; }
.afspraak.afgemeld { opacity: .7; }
.afspraak.geweest { opacity: .6; }
.datumblok { display: grid; justify-items: center; min-width: 44px; padding: 4px 0; border-radius: 10px; background: var(--primair-licht); color: var(--primair-donker); }
.datumblok b { font-size: 1.35rem; line-height: 1.1; }
.datumblok small { font-size: .72rem; text-transform: uppercase; }
.afspraakinfo { flex: 1; display: grid; gap: 2px; min-width: 0; }
.afspraakinfo small { color: var(--zacht); }
.afspraakinfo p { margin: 4px 0 0; font-size: .9rem; }
.afmeldlijst { color: var(--zacht); }
.afspraakacties { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.oefenreeks { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.oefenreeks .ic-knop { text-decoration: none; }

/* ---- akkoordenblad en beamer-bediening ---- */
.toonknop { flex-direction: row; width: auto; padding: 0 10px; gap: 4px; font-size: .9rem; white-space: nowrap; }
.dialoog textarea[name=akkoorden] { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .9rem; min-height: 40vh; white-space: pre; }
.beamerbalk { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 0; background: var(--achter); }
.beamerliederen { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.beamerliederen .chip { white-space: nowrap; }
.beamerblokken { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0 40px; }
.beamerblok { text-align: left; padding: 12px 14px; border: 1px solid var(--lijn); border-radius: 12px; background: var(--vlak); color: var(--tekst); font: inherit; font-size: .92rem; line-height: 1.35; cursor: pointer; }
.beamerblok small { display: block; color: var(--zacht); font-weight: 600; margin-bottom: 4px; }
.beamerblok.actief { border-color: var(--primair); box-shadow: 0 0 0 2px var(--primair); }
#zwart.actief { background: #000; color: #fff; }
.setlijst a small.zacht { margin-left: auto; padding-left: 8px; }

/* ---- voorkant (inloggen) ---- */
.voorkant { min-height: 100dvh; display: grid; grid-template-columns: 1.15fr 1fr; }
.held { position: relative; overflow: hidden; color: #fff; padding: clamp(28px, 6vw, 72px); display: flex; align-items: center;
  background:
    repeating-linear-gradient(180deg, transparent 0 46px, rgb(255 255 255 / .07) 46px 48px) 0 50% / 100% 240px no-repeat,
    radial-gradient(120% 90% at 0% 0%, #5a6cc0 0%, transparent 55%),
    radial-gradient(90% 80% at 100% 100%, #b0558a 0%, transparent 55%),
    linear-gradient(160deg, #2f3b6e, #1d2346); }
.held-binnen { position: relative; z-index: 1; max-width: 520px; }
.held-merk { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.held-logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgb(255 255 255 / .14); color: #fff; padding: 8px; }
.held-logo svg { width: 100%; height: 100%; }
.held h1 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; margin: 1.1em 0 .45em; letter-spacing: -.01em; }
.held-tekst { font-size: 1.12rem; opacity: .88; max-width: 34em; margin: 0 0 1.6em; }
.kenmerken { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kenmerken li { display: flex; align-items: center; gap: 14px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); border-radius: 14px; padding: 12px 16px; backdrop-filter: blur(4px); }
.kenmerken b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgb(255 255 255 / .14); font-size: 1.1rem; flex: none; }
.zwevende-noten i { position: absolute; font-style: normal; color: rgb(255 255 255 / .1); font-size: 5rem; animation: zweef 14s ease-in-out infinite; }
.zwevende-noten i:nth-child(1) { right: 8%; top: 12%; }
.zwevende-noten i:nth-child(2) { right: 22%; bottom: 10%; font-size: 7rem; animation-delay: -4s; }
.zwevende-noten i:nth-child(3) { right: 4%; top: 52%; font-size: 3.5rem; animation-delay: -8s; }
.zwevende-noten i:nth-child(4) { left: 6%; bottom: 4%; font-size: 4rem; animation-delay: -2s; }
.zwevende-noten i:nth-child(5) { left: 48%; top: 4%; font-size: 3rem; animation-delay: -10s; }
@keyframes zweef { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-18px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .zwevende-noten i { animation: none; } }
.inlogvak { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px calc(24px + env(safe-area-inset-bottom)); }
.inlogkaart { width: 100%; max-width: 400px; background: var(--vlak); border: 1px solid var(--lijn); border-radius: 20px; padding: 32px 28px; box-shadow: 0 1px 2px rgb(20 24 50 / .05), 0 18px 50px rgb(20 24 50 / .10); }
.inlogkaart h2 { color: var(--tekst); font-size: 1.4rem; margin: 0 0 .35em; }
.inlogkaart .zacht { margin: 0 0 1em; }
.inlogkaart input[type=email] { padding: 13px 14px; font-size: 1.05rem; }
.inlogkaart input[type=email]:focus { outline: 2px solid var(--primair); outline-offset: 1px; }
.knop.groot { min-height: 50px; font-size: 1.05rem; margin-top: 4px; }
.uitnodiging { display: inline-block; background: var(--primair-licht); color: var(--primair-donker); border-radius: 99px; padding: 5px 12px; font-size: .9rem; font-weight: 600; margin: 0 0 14px; }
.mailicoon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--primair-licht); color: var(--primair); font-size: 1.8rem; margin-bottom: 14px; }
.inlogkaart .taalkeuze { margin-top: 20px; text-align: center; }
.voetregel { color: var(--zacht); font-size: .85rem; margin-top: 18px; }
@media (max-width: 820px) {
  .voorkant { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .held { padding: max(28px, env(safe-area-inset-top)) 22px 64px; }
  .held h1 { margin-top: .8em; }
  .kenmerken { display: none; }
  .held-tekst { margin-bottom: 0; font-size: 1rem; }
  .inlogvak { justify-content: flex-start; margin-top: -40px; position: relative; z-index: 2; padding-top: 0; }
  .zwevende-noten i { font-size: 3rem; }
}

/* ---- oefenopnames per partij ---- */
.opnames { display: grid; gap: 8px; margin: 12px 0; }
.opname { display: grid; grid-template-columns: 9em 1fr; align-items: center; gap: 10px; background: var(--vlak); border: 1px solid var(--lijn); border-radius: 12px; padding: 8px 12px; }
.opnamenaam { font-weight: 600; }
.opname audio { width: 100%; height: 36px; }
@media (max-width: 600px) { .opname { grid-template-columns: 1fr; gap: 4px; } }
.luisterlijst .opnames { margin: 6px 0 0; width: 100%; }
.segment.klein button { padding: 5px 10px; font-size: .88rem; }
