/* BusiKit (11-11-2026): gedeelde stijl van de losse tools op busimatch.tools (zelfde lichte stijl als BusiTrace en Busi Halftone) */
:root { --bk-ink: #0f172a; --bk-stil: #64748b; --bk-lijn: #e2e8f0; --bk-vlak: #ffffff; --bk-achter: #f1f5f9; --bk-accent: #2563eb; --bk-accent2: #1d4ed8; --bk-zacht: #eff6ff; --bk-zachtlijn: #bfdbfe; --bk-groen: #0f766e; --bk-fout: #dc2626; --bk-waar: #b45309; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bk-achter); color: var(--bk-ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bk-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--bk-vlak); border-bottom: 1px solid var(--bk-lijn); min-height: 52px; }
.bk-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--bk-ink); text-decoration: none; }
.bk-logo img { width: 26px; height: 26px; }
.bk-sp { flex: 1; }
.bk-tknop { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--bk-lijn); border-radius: 9px; background: #fff; color: var(--bk-ink); font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.bk-tknop::-webkit-details-marker { display: none; }
.bk-taal { position: relative; }
.bk-taalmenu { position: absolute; inset-inline-end: 0; top: 40px; background: #fff; border: 1px solid var(--bk-lijn); border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.15); padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 320px; max-width: calc(100vw - 24px); }
.bk-taalmenu a { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 7px; color: var(--bk-ink); text-decoration: none; }
.bk-taalmenu a:hover, .bk-taalmenu a.aan { background: var(--bk-achter); }
.bk-wie { color: var(--bk-stil); font-size: 13px; }

.bk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: calc(100vh - 52px); }
.bk.bk-vol { height: calc(100vh - 52px); min-height: 560px; }
.bk-links { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bk-werk { position: relative; flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; padding: 16px 16px 72px; }
.bk-werk.slepen { outline: 4px dashed var(--bk-accent); outline-offset: -10px; }
.bk-leeg { margin: auto; max-width: 480px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px; background: var(--bk-vlak); border: 2px dashed var(--bk-lijn); border-radius: 18px; }
.bk-leeg h1 { margin: 0; font-size: 26px; }
.bk-leeg p { margin: 0; }
.bk-leegicoon { font-size: 52px; line-height: 1; }
.bk-balk { position: sticky; top: 0; z-index: 4; align-self: flex-start; display: flex; align-items: center; gap: 4px; padding: 4px; margin-bottom: 12px; background: rgba(255,255,255,.96); border: 1px solid var(--bk-lijn); border-radius: 10px; box-shadow: 0 4px 16px rgba(15,23,42,.12); flex-wrap: wrap; }
.bk-zknop { border: 0; background: transparent; padding: 6px 10px; border-radius: 7px; font: inherit; font-weight: 600; color: var(--bk-ink); cursor: pointer; }
.bk-zknop:hover { background: var(--bk-achter); }
.bk-zknop.aan { background: var(--bk-accent); color: #fff; }
.bk-melding { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); background: var(--bk-ink); color: #fff; padding: 8px 14px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90%; text-align: center; z-index: 5; }
.bk-melding.zicht { opacity: 1; }
.bk-melding.fout { background: var(--bk-fout); }

.bk-paneel { background: var(--bk-vlak); border-inline-start: 1px solid var(--bk-lijn); overflow-y: auto; padding: 16px 16px 90px; display: flex; flex-direction: column; gap: 14px; }
.bk-vol .bk-paneel { max-height: calc(100vh - 52px); }
.bk-kop h1 { margin: 0; font-size: 20px; }
.bk-kop p { margin: 4px 0 0; color: var(--bk-stil); }
.bk-blok { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--bk-lijn); }
.bk-blok h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bk-stil); }
.bk-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.bk-rijlabel { flex-direction: row; align-items: center; gap: 8px; }
.bk-schuifkop { display: flex; justify-content: space-between; }
.bk-label input[type=range] { width: 100%; accent-color: var(--bk-accent); }
.bk-label input[type=checkbox] { accent-color: var(--bk-accent); width: 16px; height: 16px; }
.bk-veld { width: 100%; padding: 7px 9px; border: 1px solid var(--bk-lijn); border-radius: 8px; font: inherit; background: #fff; color: var(--bk-ink); }
.bk-klein { margin: 0; color: var(--bk-stil); font-size: 12.5px; }
.bk-waarsch { margin: 0; color: var(--bk-waar); font-size: 12.5px; }
.bk-waarsch:empty { display: none; }
.bk-ok { margin: 0; color: var(--bk-groen); font-weight: 600; font-size: 13px; }
.bk-gratis { margin: 0; padding: 10px 12px; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0; font-size: 13px; }
.bk-hoofdknop { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 0; border-radius: 10px; padding: 11px 18px; background: var(--bk-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.bk-hoofdknop:hover:not(:disabled) { background: var(--bk-accent2); }
.bk-knop { border: 1px solid var(--bk-lijn); border-radius: 9px; padding: 8px 14px; background: #fff; font: inherit; font-weight: 600; color: var(--bk-ink); cursor: pointer; }
.bk-knop:hover:not(:disabled) { background: var(--bk-achter); }
button:disabled { opacity: .5; cursor: not-allowed; }
.bk-volle { width: 100%; }
.bk-rij { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-link { color: var(--bk-accent2); font-weight: 600; text-decoration: none; }

.bk-uitleg { background: var(--bk-vlak); border-top: 1px solid var(--bk-lijn); padding: 40px 16px 120px; }
.bk-uitbinnen { max-width: 1100px; margin: 0 auto; }
.bk-groot { margin: 0; font-size: 28px; }
.bk-lead { margin: 6px 0 24px; color: var(--bk-stil); font-size: 16px; white-space: pre-line; }
.bk-uitraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bk-kaart { padding: 18px; border: 1px solid var(--bk-lijn); border-radius: 14px; background: #fff; }
.bk-kaart h3 { margin: 0 0 8px; font-size: 17px; }
.bk-kaart p { margin: 0; white-space: pre-line; color: #334155; }

/* tabellen (rekentools) */
.bk-tabel { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bk-lijn); border-radius: 12px; overflow: hidden; }
.bk-tabel th, .bk-tabel td { padding: 6px 8px; border-bottom: 1px solid var(--bk-lijn); text-align: start; vertical-align: middle; }
.bk-tabel th { background: var(--bk-achter); font-size: 12px; color: var(--bk-stil); text-transform: uppercase; letter-spacing: .04em; }
.bk-tabel td input, .bk-tabel td select { width: 100%; min-width: 60px; padding: 6px 7px; border: 1px solid var(--bk-lijn); border-radius: 7px; font: inherit; }
.bk-tabel td.getal, .bk-tabel th.getal { text-align: end; white-space: nowrap; }
.bk-kaartjes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 16px; }
.bk-cijfer { padding: 14px; border: 1px solid var(--bk-lijn); border-radius: 12px; background: #fff; }
.bk-cijfer span { display: block; color: var(--bk-stil); font-size: 12.5px; }
.bk-cijfer b { display: block; font-size: 22px; margin-top: 2px; }
.bk-cijfer.goed { border-color: #a7f3d0; background: #ecfdf5; }
.bk-cijfer.let { border-color: #fde68a; background: #fffbeb; }
.bk-cijfer.slecht { border-color: #fecaca; background: #fef2f2; }

#bk-afdruk { display: none; }
@media print {
  body > *:not(#bk-afdruk) { display: none !important; }
  #bk-afdruk { display: block !important; }
  #bk-afdruk img { max-width: 100%; }
}
@media (max-width: 860px) {
  .bk { grid-template-columns: 1fr; }
  .bk.bk-vol { height: auto; min-height: 0; }
  .bk-vol .bk-links { height: 62vh; min-height: 360px; }
  .bk-vol .bk-paneel { max-height: none; }
  .bk-paneel { border-inline-start: 0; border-top: 1px solid var(--bk-lijn); padding-bottom: 24px; }
  .bk-taalmenu { grid-template-columns: 1fr; width: 220px; }
  .bk-wie { display: none; }
}

/* PhotoTeam (prototype, 12-11-2026): eerst de gsm, dan het grote scherm. Eigen voorvoegsel .pt- */
body.pt { --pt-a: #7c3aed; --pt-b: #ec4899; --pt-c: #f59e0b; background: #f6f3ff; }
body.pt-vast { overflow: hidden; }
.pt-groot { padding: 13px 20px; font-size: 16px; border-radius: 12px; width: 100%; box-sizing: border-box; text-align: center; }
.pt-veld { padding: 11px 12px; font-size: 16px; border-radius: 10px; }
.pt-stil { color: var(--bk-stil); }

/* de start */
.pt-held { text-align: center; padding: 34px 16px 26px; color: #fff; background: linear-gradient(135deg, var(--pt-a), var(--pt-b) 60%, var(--pt-c)); }
.pt-logo { font-size: 54px; line-height: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.pt-held h1 { margin: 6px 0 4px; font-size: 38px; letter-spacing: -.02em; }
.pt-lead { margin: 0 auto; max-width: 520px; white-space: pre-line; font-size: 16px; opacity: .96; }
.pt-stappen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 720px; margin: 22px auto 0; }
.pt-stap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 12px; border-radius: 16px; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); font-weight: 600; font-size: 13.5px; }
.pt-stap b { position: absolute; top: -9px; inset-inline-start: 10px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--pt-a); font-size: 13px; line-height: 22px; }
.pt-stapicoon { font-size: 30px; }

.pt-kolom { max-width: 720px; margin: 0 auto; padding: 18px 14px 40px; display: flex; flex-direction: column; gap: 14px; }
.pt-kaart { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid #e9e3fb; box-shadow: 0 6px 22px rgba(124,58,237,.08); }
.pt-kaart h2 { margin: 0; font-size: 18px; }
.pt-midden { align-items: center; text-align: center; }
.pt-kaart .bk-hoofdknop, .pt-trek { background: linear-gradient(135deg, var(--pt-a), var(--pt-b)); }
.pt-kaart .bk-hoofdknop:hover:not(:disabled), .pt-trek:hover:not(:disabled) { background: linear-gradient(135deg, #6d28d9, #db2777); }
.pt-lijst { display: flex; flex-direction: column; gap: 6px; }
.pt-rij { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #faf8ff; border: 1px solid #efe9fd; color: var(--bk-ink); text-decoration: none; }
.pt-rij:hover { background: #f1ebff; }
.pt-rijicoon { font-size: 22px; }
.pt-rijtekst { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pt-rijtekst b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-rijtekst small { color: var(--bk-stil); }
.pt-pijl { font-size: 24px; color: var(--pt-a); }
[dir=rtl] .pt-pijl, [dir=rtl] .pt-terug { transform: scaleX(-1); }

/* het evenement */
.pt-evkop { display: flex; align-items: center; gap: 10px; }
.pt-terug { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: #fff; border: 1px solid #e9e3fb; color: var(--pt-a); font-size: 26px; line-height: 1; text-decoration: none; }
.pt-evnaam h1 { margin: 0; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.pt-evnaam p { margin: 2px 0 0; color: var(--bk-stil); font-size: 13px; }
.pt-status { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--pt-a), var(--pt-b)); box-shadow: 0 10px 26px rgba(124,58,237,.28); }
.pt-teller { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pt-teller b { font-size: 34px; letter-spacing: -.02em; line-height: 1; }
.pt-balk { height: 10px; border-radius: 6px; background: rgba(255,255,255,.28); overflow: hidden; }
.pt-balk i { display: block; height: 100%; border-radius: 6px; background: #fff; transition: width .4s; }
.pt-pil { align-self: flex-start; padding: 3px 10px; border-radius: 99px; background: rgba(0,0,0,.25); font-size: 12.5px; font-weight: 600; animation: pt-pols 1.2s infinite; }
@keyframes pt-pols { 50% { opacity: .55; } }
.pt-info { margin: 0; font-weight: 600; }
.pt-acties { display: flex; flex-direction: column; gap: 8px; }
.pt-acties:empty { display: none; }
.pt-trek { padding: 20px; font-size: 21px; border-radius: 18px; box-shadow: 0 10px 24px rgba(236,72,153,.35); }
.pt-deel summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.pt-deelbinnen { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; }
.pt-qr { width: 190px; height: 190px; border-radius: 12px; border: 1px solid #e9e3fb; image-rendering: pixelated; }
.pt-deelrechts { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.pt-scan { margin: 0; font-weight: 700; font-size: 16px; }
.pt-code { font: 800 26px/1 ui-monospace, Consolas, monospace; letter-spacing: .18em; color: var(--pt-a); }
.pt-privacy { white-space: pre-line; margin-top: 4px; }
.pt-albumkop { margin: 8px 0 0; font-size: 18px; }
.pt-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.pt-leeg { grid-column: 1 / -1; margin: 0; padding: 30px 16px; text-align: center; color: var(--bk-stil); background: #fff; border: 2px dashed #ddd3f8; border-radius: 16px; }
.pt-tegel { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #e9e3fb; cursor: pointer; }
.pt-tegel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.pt-tegel:hover img { transform: scale(1.06); }
.pt-tegel.mijn { outline: 3px solid var(--pt-b); outline-offset: -3px; }
.pt-wie { position: absolute; inset: auto 0 0 0; padding: 14px 6px 4px; font-size: 11px; font-weight: 600; color: #fff; text-align: start; background: linear-gradient(transparent, rgba(0,0,0,.65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* meldingen */
.pt-toast { position: fixed; left: 50%; top: 66px; transform: translateX(-50%); z-index: 2147483600; max-width: 92vw; padding: 10px 16px; border-radius: 12px; background: #0f172a; color: #fff; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pt-toast.zicht { opacity: 1; }
.pt-toast.fout { background: #dc2626; }

/* de camera */
.pt-cam, .pt-kijk { position: fixed; inset: 0; z-index: 2147483000; background: #000; color: #fff; display: flex; flex-direction: column; }
.pt-cambeeld { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.pt-cambeeld video, .pt-cambeeld canvas { width: 100%; height: 100%; object-fit: contain; }
.pt-cambeeld video.spiegel { transform: scaleX(-1); }
.pt-cam.kijk video { display: none; }
.pt-cam.geencam .pt-cambeeld::after { content: '📷'; font-size: 90px; opacity: .35; }
.pt-cam.geencam.kijk .pt-cambeeld::after { content: none; }
.pt-camboven { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.pt-camtel { margin-inline-start: auto; padding: 5px 12px; border-radius: 99px; background: rgba(0,0,0,.5); font-size: 16px; }
.pt-camonder { position: relative; z-index: 2; margin-top: auto; display: flex; align-items: center; justify-content: space-around; gap: 12px; flex-wrap: wrap; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.pt-camknop { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 22px; cursor: pointer; }
.pt-camknop:hover:not(:disabled) { background: rgba(255,255,255,.34); }
.pt-sluiter { width: 78px; height: 78px; padding: 0; border-radius: 50%; border: 5px solid #fff; background: radial-gradient(circle, #fff 58%, transparent 60%); cursor: pointer; transition: transform .1s; }
.pt-sluiter:active { transform: scale(.9); }
.pt-sluiter:hover:not(:disabled) { background: radial-gradient(circle, #fce7f3 58%, transparent 60%); }
.pt-camtekst { flex: 1 1 100%; background: rgba(255,255,255,.95); }
.pt-camrij { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.pt-camgroot { padding: 13px 14px; font-size: 16px; border-radius: 12px; }
.pt-cam .bk-hoofdknop { background: linear-gradient(135deg, var(--pt-a), var(--pt-b)); }

/* een foto groot */
.pt-kijk { align-items: center; justify-content: center; background: rgba(0,0,0,.94); }
.pt-kijk img { max-width: 100%; max-height: calc(100% - 76px); object-fit: contain; margin-bottom: 76px; }
.pt-kijkx { position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 12px; }
.pt-kijkpijl { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; padding: 0; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-size: 32px; cursor: pointer; }
.pt-kijkpijl:hover:not(:disabled) { background: rgba(255,255,255,.28); }
.pt-kijkpijl.links { left: 8px; }
.pt-kijkpijl.rechts { right: 8px; }
.pt-kijkonder { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
.pt-kijkwie { flex: 1; min-width: 120px; font-weight: 600; }

/* de fotomuur */
body.pt-muurlijf { background: #05030d; overflow: hidden; }
body.pt-muurlijf .bk-top, body.pt-muurlijf > footer, body.pt-muurlijf > [id*=voet], body.pt-muurlijf > [class*=voet] { display: none !important; }
.pt-muur { position: fixed; inset: 0; z-index: 2147483000; background: radial-gradient(circle at 50% 40%, #2a1458, #05030d 70%); color: #fff; }
.pt-muurfoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.1s; }
.pt-muurfoto.zicht { opacity: 1; }
.pt-muurtitel { position: absolute; top: 18px; inset-inline-start: 24px; padding: 8px 18px; border-radius: 99px; background: rgba(0,0,0,.5); font-size: clamp(18px, 2.2vw, 34px); font-weight: 800; }
.pt-muurwie { position: absolute; bottom: 22px; inset-inline-start: 24px; padding: 6px 16px; border-radius: 99px; background: rgba(0,0,0,.5); font-size: clamp(15px, 1.6vw, 26px); font-weight: 600; }
.pt-muurwie:empty { display: none; }
.pt-muurhoek { position: absolute; bottom: 18px; inset-inline-end: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border-radius: 18px; background: #fff; color: #0f172a; font-weight: 800; font-size: clamp(13px, 1.2vw, 20px); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.pt-muurhoek canvas { width: clamp(110px, 13vw, 220px); height: auto; image-rendering: pixelated; }
.pt-muurleeg { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(20px, 3vw, 44px); font-weight: 700; opacity: .85; }
.pt-muurleeg[hidden] { display: none; }

/* de poster met de QR-code (afdrukken) */
.pt-poster { text-align: center; font-family: system-ui, sans-serif; padding-top: 18mm; }
.pt-postericoon { font-size: 60pt; line-height: 1; }
.pt-poster h1 { font-size: 40pt; margin: 6mm 0 2mm; }
.pt-postersub { font-size: 20pt; margin: 0 0 8mm; }
.pt-poster img { width: 120mm; height: 120mm; image-rendering: pixelated; }
.pt-postercode { font: 800 26pt ui-monospace, Consolas, monospace; letter-spacing: .2em; margin: 6mm 0 0; }
.pt-postervoet { font-size: 12pt; color: #555; margin-top: 10mm; }

@media (max-width: 560px) {
  .pt-held h1 { font-size: 31px; }
  .pt-stap { font-size: 12px; padding: 14px 4px 10px; }
  .pt-qr { margin: 0 auto; }
  .bk-top > span:not(.bk-sp):not(.bk-wie) { display: none; }
}

.pt-boodschap { white-space: pre-line; line-height: 1.4; }

/* op het beginscherm zetten, album verwijderen */
.pt-install:empty { display: none; }
.pt-install .bk-knop { border-color: #c4b5fd; background: #faf8ff; color: #6d28d9; }
.pt-installtip { margin: 0; padding: 12px 14px; border-radius: 14px; background: #faf8ff; border: 1px dashed #c4b5fd; color: #4c1d95; font-weight: 600; }
.pt-gevaar { color: #b91c1c; }
