/* JIP Bouwplaats: app */
html[data-theme="nacht"] {
  --bg: #121926;
  --kaart: #1E2838;
  --tekst: #F5EEDC;
  --tekst-2: #BAC2CF;
  --kop: #FFC72C;
  --lijn: #04070C;
  --schaduw: #04070C;
  --chip-bg: #1E2838;
  --chip-tekst: #FFDE7A;
  --raster: rgba(255, 199, 44, 0.06);
  --veld: #121926;
  --bron-bg: #23365A;
  --bron-tekst: #DCE7F7;
  --zand-kaart: #2B2A22;
  --stap-bg: #24324A;
  color-scheme: dark;
}
:root {
  --bron-bg: var(--lichtblauw);
  --bron-tekst: var(--denim);
  --zand-kaart: var(--zand);
  --stap-bg: #F4F7FC;
  --tab-h: 74px;
}
html, body { height: 100%; }
body { overflow: hidden; background: var(--bg); }

/* ---------- Desktop: telefoonframe met uitleg ---------- */
.desk-uitleg { display: none; }
.toestel { height: 100%; }
.app { position: relative; height: 100%; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); color: var(--tekst); isolation: isolate; }

@media (min-width: 900px) and (min-height: 640px) {
  body {
    display: grid; grid-template-columns: minmax(300px, 460px) auto; justify-content: center; align-items: center; gap: 64px;
    background-color: #FFC72C;
    background-image: linear-gradient(rgba(29,59,110,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(29,59,110,.09) 1px, transparent 1px);
    background-size: 28px 28px; padding: 20px;
  }
  .desk-uitleg { display: block; background: #FFF8E6; color: #1B2433; border: 3px solid #1B2433; border-radius: 26px; box-shadow: 7px 7px 0 #1B2433; overflow: hidden; }
  .du-inhoud { padding: 22px 28px 26px; }
  .du-tag { display: inline-block; background: #1B2433; color: #FFC72C; padding: 4px 10px; border-radius: 5px; }
  .du-kop { font-family: var(--f-kop); font-size: 34px; line-height: 1.05; color: #1D3B6E; margin: 12px 0 10px; }
  .du-kop span { background: #FFC72C; border-radius: 10px; padding: 0 8px; }
  .desk-uitleg h2 { font-family: var(--f-kop); font-size: 20px; color: #1D3B6E; margin: 18px 0 8px; }
  .desk-uitleg p { margin: 0; font-size: 15px; color: #333C4D; }
  .du-lijst { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
  .du-lijst li { counter-increment: s; display: flex; gap: 10px; align-items: center; }
  .du-lijst li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 8px; background: #2F5FA8; color: #fff; font-family: var(--f-kop); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
  .du-lijst a { color: #1D3B6E; font-weight: 700; text-decoration: none; border-bottom: 2px dashed #F3C46A; padding: 4px 0; }
  .du-lijst a:hover { border-bottom-color: #1D3B6E; }
  .du-klein { margin-top: 14px !important; font-size: 13px !important; color: #4A5263 !important; }
  .du-dhps { align-items: flex-start; margin-top: 20px; color: #1B2433; }
  .toestel {
    width: 390px; height: min(844px, calc(100vh - 40px)); border-radius: 50px; padding: 11px; background: #1B2433;
    box-shadow: 10px 10px 0 #1D3B6E, 0 30px 60px rgba(27,36,51,.25);
  }
  .app { height: 100%; border-radius: 40px; }
}

/* ---------- Bovenste lint ---------- */
.app-lint { height: 10px; flex: none; position: relative; z-index: 5; background-size: 28px 28px; }
.app-lint.lint { background-image: repeating-linear-gradient(-45deg, var(--geel) 0 10px, var(--asfalt) 10px 20px); }

/* ---------- Splash ---------- */
.splash {
  position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; color: var(--asfalt);
  background-color: var(--geel);
  background-image: linear-gradient(rgba(29,59,110,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(29,59,110,.09) 1px, transparent 1px);
  background-size: 26px 26px;
  transition: transform .55s var(--uit), opacity .4s;
}
.splash.weg { transform: translateY(-104%); }
.splash.weg::after { opacity: 1; }
.splash::after { content: ''; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px; background-image: repeating-linear-gradient(-45deg, var(--asfalt) 0 13px, var(--geel) 13px 26px); border-top: 2.5px solid var(--asfalt); }
.splash-tekening { position: absolute; color: #1D3B6E; opacity: .4; }
.splash-tekening.a { left: 22px; top: 54px; width: 150px; }
.splash-tekening.b { right: 18px; top: 128px; width: 96px; }
.teken { stroke-dasharray: 1; stroke-dashoffset: 1; animation: teken 1.4s var(--uit) forwards; }
.splash-tekening.b .teken { animation-delay: .25s; }
@keyframes teken { to { stroke-dashoffset: 0; } }
.splash-midden { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 0 28px; position: relative; }
.splash-bord {
  background: var(--zon); border: 3px solid var(--asfalt); border-radius: 34px; box-shadow: 7px 7px 0 var(--asfalt);
  padding: 62px 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative;
  animation: bord-op .7s var(--veer) both .1s;
}
@keyframes bord-op { from { transform: translateY(40px) rotate(-6deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.bout { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--asfalt); }
.bout.lb { left: 14px; top: 14px; } .bout.rb { right: 14px; top: 14px; } .bout.lo { left: 14px; bottom: 14px; } .bout.ro { right: 14px; bottom: 14px; }
.splash-logo { font-size: 118px; }
.splash-helm { animation: helm-val .8s var(--veer) both .55s; }
@keyframes helm-val { 0% { transform: translateX(-50%) translateY(-2.2em) rotate(-30deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: translateX(-50%); } }
.splash-sub { font-family: var(--f-kop); font-weight: 600; font-size: 22px; color: var(--denim); }
.splash-laden { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.splash-tekst { font-family: var(--f-kop); font-weight: 500; font-size: 17px; }
.splash-dhps { padding: 0 0 34px; color: var(--asfalt); }
.splash-dhps .pb { color: #4D3D08; }

/* ---------- Schermen en overgangen ---------- */
.scherm-houder { flex: 1; min-height: 0; position: relative; perspective: 1400px; overflow: hidden; outline: none; }
.scherm { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); backface-visibility: hidden; transform-origin: 50% 50%; }
.scherm-rol { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.scherm.bord-uit { animation: bord-uit .2s ease-in forwards; }
.scherm.bord-in { animation: bord-in .34s var(--veer) both .17s; }
.scherm.bord-uit.terug { animation-name: bord-uit-terug; }
.scherm.bord-in.terug { animation-name: bord-in-terug; }
@keyframes bord-uit { to { transform: rotateY(88deg) scale(.94); filter: brightness(.8); } }
@keyframes bord-in { from { transform: rotateY(-88deg) scale(.94); } to { transform: none; } }
@keyframes bord-uit-terug { to { transform: rotateY(-88deg) scale(.94); filter: brightness(.8); } }
@keyframes bord-in-terug { from { transform: rotateY(88deg) scale(.94); } to { transform: none; } }

.lint-overgang { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; display: none; }
.lint-overgang.loopt { display: block; }
.lo-band {
  position: absolute; top: -20%; bottom: -20%; left: -40%; width: 180%;
  background-image: repeating-linear-gradient(-45deg, var(--geel) 0 26px, var(--asfalt) 26px 52px);
  border-left: 5px solid var(--asfalt); border-right: 5px solid var(--asfalt);
  transform: translateX(-130%) skewX(-14deg);
}
.lint-overgang.loopt .lo-band { animation: lint-veeg .56s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes lint-veeg { 0% { transform: translateX(-130%) skewX(-14deg); } 46%, 54% { transform: translateX(0) skewX(-14deg); } 100% { transform: translateX(130%) skewX(-14deg); } }

/* ---------- Tabbalk ---------- */
.tabbalk {
  flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: var(--kaart); border-top: var(--rand) solid var(--lijn); position: relative; z-index: 6;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px;
  border-radius: 14px; text-decoration: none; color: var(--tekst-2); font-size: 12px; font-weight: 700; border: 2px solid transparent;
  transition: background-color .2s, transform .2s var(--veer); position: relative; -webkit-tap-highlight-color: transparent;
}
.tab[aria-current="page"] { color: var(--asfalt); background: var(--geel); border-color: var(--lijn); font-weight: 800; }
.tab:active { transform: scale(.92); }
.tab .tel { position: absolute; top: 3px; right: calc(50% - 26px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--oranje); color: var(--asfalt); border: 2px solid var(--lijn); font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.tab.stuiter { animation: stuiter .6s var(--veer); }
@keyframes stuiter { 0% { transform: scale(1); } 30% { transform: scale(1.25) translateY(-6px); } 60% { transform: scale(.95); } 100% { transform: scale(1); } }

/* ---------- Gemeenschappelijk ---------- */
.kopbalk { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--geel); color: var(--asfalt); border-bottom: var(--rand) solid var(--lijn); min-height: 64px; }
.kopbalk h1 { margin: 0; font-family: var(--f-kop); font-weight: 700; font-size: 20px; line-height: 1.1; }
.kopbalk .sub { font-size: 13px; font-weight: 700; color: #4D3D08; }
.ikknop { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; border: var(--rand) solid transparent; background: transparent; padding: 0; color: inherit; transition: transform .15s var(--veer), background-color .15s; }
.ikknop.rand { border-color: var(--lijn); background: var(--zon); color: var(--asfalt); }
.ikknop:active { transform: scale(.9); }
.ikknop[aria-pressed="true"] .ic { fill: var(--oranje); }
.scherm-kop { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.scherm-kop h1 { margin: 0; font-family: var(--f-kop); font-weight: 700; font-size: 27px; line-height: 1.1; color: var(--kop); }
.status {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; padding: 4px 9px; font-size: 12px; font-weight: 800; border: 2px solid;
  background: var(--lichtgroen); border-color: var(--groen); color: var(--groen-donker); white-space: nowrap;
}
.status.offline { background: #FFE9CF; border-color: var(--oranje); color: #7A3E00; }
.sectie { padding: 0 16px; margin-top: 22px; }
.sectie-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sectie-kop h2 { margin: 0; font-family: var(--f-kop); font-weight: 600; font-size: 19px; color: var(--kop); }
.sectie-kop a, .linkknop { font-size: 14px; font-weight: 800; color: var(--blauw); background: none; border: 0; padding: 10px 2px; text-decoration: none; min-height: 44px; }
html[data-theme="nacht"] .sectie-kop a, html[data-theme="nacht"] .linkknop { color: #9DBDF0; }
.leeg-tekst { font-size: 14px; color: var(--tekst-2); background: var(--kaart); border: 2px dashed var(--zand-rand); border-radius: 16px; padding: 14px; margin: 0; }
.bron-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bron-bg); color: var(--bron-tekst); text-decoration: none; border: 1.5px solid currentColor; border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 700; min-height: 36px; }

/* ---------- Home ---------- */
.home-kop { padding: 14px 16px 6px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.home-logo { font-size: 46px; padding-top: 16px; background: none; border: 0; color: var(--kop); line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; padding-left: 0; }
html[data-theme="nacht"] .home-logo .jip-logo { color: var(--geel); }
.groet { font-family: var(--f-kop); font-weight: 600; font-size: 24px; color: var(--kop); margin: 6px 16px 12px; line-height: 1.15; }
.groet small { display: block; font-family: var(--f-tekst); font-size: 14px; font-weight: 600; color: var(--tekst-2); margin-top: 2px; }
.zoekbalk { margin: 0 16px; position: relative; }
.zoekveld {
  display: flex; align-items: center; gap: 6px; height: 60px; background: var(--kaart); border: var(--rand) solid var(--lijn); border-radius: 18px; box-shadow: 0 5px 0 var(--schaduw); padding: 0 4px 0 14px;
  transition: box-shadow .15s, transform .15s;
}
.zoekveld:focus-within { transform: translateY(-1px); box-shadow: 0 6px 0 var(--blauw); border-color: var(--blauw); }
.zoekveld input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.zoekveld input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; font-size: 18px; font-weight: 700; padding: 0 4px; outline: none; }
.zoekveld input::placeholder { color: var(--tekst-2); font-weight: 600; }
.zoekveld.mono input { font-family: var(--f-mono); letter-spacing: 1px; font-size: 19px; }
.zoekveld .ikknop { width: 46px; height: 46px; background: var(--zand); color: var(--asfalt); border-radius: 12px; }
.suggesties { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 10; background: var(--kaart); border: var(--rand) solid var(--lijn); border-radius: 18px; box-shadow: 5px 5px 0 var(--schaduw); overflow: hidden; animation: zak .22s var(--uit); }
@keyframes zak { from { transform: translateY(-8px); opacity: 0; } }
.sug { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px; background: none; border: 0; border-bottom: 2px dashed var(--zand-rand); text-align: left; text-decoration: none; color: var(--tekst); }
.sug:last-child { border-bottom: 0; }
.sug:hover, .sug:focus-visible { background: var(--zon); }
html[data-theme="nacht"] .sug:hover { background: #253247; }
.sug .plaat { font-size: 15px; padding: 5px 7px; }
.sug-tekst { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.25; }
.sug-tekst small { display: block; font-weight: 600; color: var(--tekst-2); font-size: 12px; }
.sug.vraag .sug-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--blauw); color: #fff; display: grid; place-items: center; border: 2px solid var(--lijn); flex: none; }

.acties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 16px 0; }
.actie {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 112px; padding: 14px;
  border: var(--rand) solid var(--lijn); border-radius: 22px; box-shadow: 5px 5px 0 var(--schaduw); text-decoration: none; text-align: left;
  font-family: var(--f-kop); font-weight: 600; font-size: 19px; line-height: 1.1; color: var(--asfalt); background: var(--geel);
  transition: transform .14s var(--uit), box-shadow .14s var(--uit); position: relative; overflow: hidden;
}
.actie:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--schaduw); }
.actie .a-ic { width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--lijn); display: grid; place-items: center; background: var(--zon); color: var(--asfalt); }
.actie small { display: block; font-family: var(--f-tekst); font-weight: 700; font-size: 13px; margin-top: 3px; opacity: .85; }
.actie.groot { grid-column: span 2; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 92px; }
.actie > * { position: relative; z-index: 1; }
.actie.groot .a-ic { width: 56px; height: 56px; }
.actie.blauw { background: var(--blauw); color: #fff; }
.actie.wit { background: var(--kaart); color: var(--kop); }
.actie.groot::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background-image: repeating-conic-gradient(#FFDE7A 0deg 12deg, transparent 12deg 24deg); opacity: .8; z-index: 0; }

.kist-teaser { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--tekst); }
.kist-teaser .kt-ic { width: 54px; height: 54px; flex: none; border-radius: 16px; background: var(--oranje); border: 2px solid var(--lijn); display: grid; place-items: center; color: var(--asfalt); }
.kist-teaser b { font-family: var(--f-kop); font-weight: 600; font-size: 17px; color: var(--kop); display: block; }
.kist-teaser small { font-size: 13px; color: var(--tekst-2); font-weight: 600; }
.voortgang { display: block; height: 12px; border-radius: 6px; border: 2px solid var(--lijn); background: var(--zon); overflow: hidden; margin-top: 6px; }
html[data-theme="nacht"] .voortgang { background: #0E141E; }
.voortgang i { display: block; height: 100%; background-image: repeating-linear-gradient(-45deg, var(--geel) 0 6px, var(--oranje) 6px 12px); transition: width .8s var(--uit); }

.code-rij { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.code-rij::-webkit-scrollbar { display: none; }
.mini-code { scroll-snap-align: start; flex: none; width: 150px; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--kaart); border: var(--rand) solid var(--lijn); border-radius: 18px; box-shadow: 4px 4px 0 var(--schaduw); text-decoration: none; color: var(--tekst); min-height: 112px; }
.mini-code .plaat { align-self: flex-start; font-size: 18px; }
.mini-code b { font-size: 14px; line-height: 1.25; font-weight: 800; }
.mini-code small { font-size: 12px; color: var(--tekst-2); font-weight: 700; margin-top: auto; }

/* ---------- Codelijst ---------- */
.filters { flex: none; display: flex; gap: 6px; padding: 12px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }
.resultaat-info { font-size: 13px; font-weight: 700; color: var(--tekst-2); padding: 2px 16px 8px; }
.lijst { list-style: none; margin: 0; padding: 0 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.code-kaart { display: flex; align-items: stretch; gap: 0; text-decoration: none; color: var(--tekst); background: var(--kaart); border: var(--rand) solid var(--lijn); border-radius: 20px; box-shadow: 4px 4px 0 var(--schaduw); overflow: hidden; transition: transform .14s var(--uit), box-shadow .14s; animation: kaart-in .35s var(--uit) both; }
.code-kaart:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--schaduw); }
@keyframes kaart-in { from { transform: translateY(12px); opacity: 0; } }
.ck-plaat { flex: none; width: 92px; display: flex; align-items: center; justify-content: center; background: var(--blauw); border-right: var(--rand) solid var(--lijn); padding: 10px 6px; }
.ck-plaat .plaat { font-size: 17px; padding: 6px 6px; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.ck-tekst { flex: 1; min-width: 0; padding: 11px 12px; display: flex; flex-direction: column; gap: 5px; }
.ck-tekst b { font-family: var(--f-kop); font-weight: 600; font-size: 17px; line-height: 1.15; color: var(--kop); }
.ck-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--tekst-2); }
.ck-pijl { flex: none; display: grid; place-items: center; width: 34px; color: var(--tekst-2); }
mark { background: var(--geel); color: var(--asfalt); border-radius: 4px; padding: 0 2px; }
.geen-resultaat { margin: 10px 16px; padding: 22px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.geen-resultaat h2 { margin: 0; font-family: var(--f-kop); font-size: 21px; color: var(--kop); }
.geen-resultaat p { margin: 0; font-size: 15px; color: var(--tekst-2); }
.pylon-svg { width: 74px; height: auto; }

/* ---------- Werkbon (code-detail) ---------- */
.werkbon-wrap { padding: 14px 14px 120px; }
.werkbon { position: relative; background: var(--kaart); border: var(--rand) solid var(--lijn); border-radius: 22px; box-shadow: 5px 5px 0 var(--schaduw); overflow: hidden; }
.werkbon.dreun { animation: dreun .4s ease-out; }
@keyframes dreun { 0%,100% { transform: none; } 20% { transform: translate(2px, 3px) rotate(.4deg); } 45% { transform: translate(-2px, -1px) rotate(-.3deg); } 70% { transform: translate(1px, 1px); } }
.wb-strook { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; background: var(--asfalt); color: var(--geel); font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.wb-strook span:last-child { color: #E8E2CF; }
.wb-kop { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--blauw); border-bottom: var(--rand) solid var(--lijn); color: #fff; }
.wb-kop .plaat { font-size: 30px; letter-spacing: 2px; padding: 8px 11px; flex: none; max-width: 52%; overflow-wrap: anywhere; }
.wb-kop.lang .plaat { font-size: 22px; }
.wb-kop h1 { margin: 0; font-family: var(--f-kop); font-weight: 600; font-size: 20px; line-height: 1.15; }
.wb-kop .merk { font-size: 13px; font-weight: 700; color: #DCE7F7; margin-top: 3px; }
.wb-velden { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px dashed var(--zand-rand); }
.wb-veld { padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.wb-veld + .wb-veld { border-left: 2px dashed var(--zand-rand); }
.wb-veld .label-mono { font-size: 10.5px; color: var(--tekst-2); }
.wb-veld .waarde { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.stopt-ja { color: var(--rood); } .stopt-nee { color: var(--groen); }
html[data-theme="nacht"] .stopt-ja { color: #FF8A7E; } html[data-theme="nacht"] .stopt-nee { color: #8FD694; }
.wb-blok { padding: 14px; border-bottom: 2px dashed var(--zand-rand); }
.wb-blok:last-child { border-bottom: 0; }
.wb-blok h2 { margin: 0 0 8px; font-family: var(--f-kop); font-weight: 600; font-size: 17px; color: var(--kop); display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.wb-blok p { margin: 0; font-size: 16px; line-height: 1.5; }
.oorzaken { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.oorzaken li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; line-height: 1.4; }
.oorzaken li::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--oranje); border: 1.5px solid var(--lijn); transform: translateY(-1px); }
.stap-teller { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--tekst-2); }
.stappen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stap { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 56px; padding: 8px 10px 8px 8px; text-align: left; background: var(--stap-bg); border: 2px solid var(--lijn); border-radius: 14px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--tekst); transition: background-color .2s, transform .15s var(--veer); }
.stap:active { transform: scale(.98); }
.stap .vak { flex: none; width: 34px; height: 34px; border-radius: 10px; border: var(--rand) solid var(--lijn); background: var(--kaart); display: grid; place-items: center; font-family: var(--f-kop); font-weight: 700; font-size: 15px; color: var(--kop); position: relative; }
.stap .vak .ic { position: absolute; color: #fff; opacity: 0; transform: scale(.3) rotate(-20deg); transition: transform .3s var(--veer), opacity .2s; }
.stap[aria-checked="true"] { background: var(--lichtgroen); }
html[data-theme="nacht"] .stap[aria-checked="true"] { background: #1D3A26; }
.stap[aria-checked="true"] .vak { background: var(--groen); color: transparent; }
.stap[aria-checked="true"] .vak .ic { opacity: 1; transform: none; }
.stap[aria-checked="true"] .st-tekst { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--groen); color: var(--tekst-2); }
.stap-voortgang { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--tekst-2); }
.stap-voortgang .voortgang { flex: 1; margin: 0; }
.praktijk { background: var(--zand-kaart); }
.tip { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.tip + .tip { margin-top: 10px; }
.tip .ic-wrap { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--geel); border: 2px solid var(--lijn); display: grid; place-items: center; color: var(--asfalt); }
.modellen { display: flex; flex-wrap: wrap; gap: 6px; }
.modellen span { font-family: var(--f-mono); font-size: 13px; font-weight: 700; background: var(--bron-bg); color: var(--bron-tekst); border: 1.5px solid currentColor; border-radius: 8px; padding: 3px 8px; }
.bron-regel { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 700; color: var(--tekst-2); flex-wrap: wrap; }
.geverifieerd { display: inline-flex; align-items: center; gap: 4px; color: var(--groen-donker); background: var(--lichtgroen); border: 1.5px solid var(--groen); border-radius: 8px; padding: 1px 7px; font-size: 12px; }
.niet-geverifieerd { display: inline-flex; align-items: center; gap: 4px; color: #7A3E00; background: #FFE9CF; border: 1.5px solid var(--oranje); border-radius: 8px; padding: 1px 7px; font-size: 12px; }
.wb-knoppen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.wb-knoppen .knop { font-size: 16px; min-height: 52px; padding: 8px 10px; }
.wb-knoppen .breed { grid-column: span 2; }
.aftekenen { padding: 14px; background: var(--zon); }
html[data-theme="nacht"] .aftekenen { background: #18202D; }
.aftekenen h2 { margin: 0 0 4px; }
.aftekenen p.klein { font-size: 13px; color: var(--tekst-2); margin: 0 0 10px; }
.paraaf-vak { position: relative; height: 120px; border: 2px dashed var(--lijn); border-radius: 14px; background: var(--kaart); touch-action: none; overflow: hidden; }
.paraaf-vak canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.paraaf-vak .lijntje { position: absolute; left: 18px; right: 18px; bottom: 28px; border-bottom: 2px solid var(--tekst-2); opacity: .5; pointer-events: none; }
.paraaf-vak .hint { position: absolute; left: 18px; bottom: 6px; font-size: 12px; font-weight: 700; color: var(--tekst-2); pointer-events: none; }
.paraaf-vak .x { position: absolute; left: 14px; bottom: 32px; font-family: var(--f-kop); font-size: 22px; color: var(--tekst-2); pointer-events: none; }
.paraaf-acties { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.eerder { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--groen-donker); margin-top: 10px; }
html[data-theme="nacht"] .eerder { color: #8FD694; }

.vast-onder { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px 14px; background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 4; }
.vast-onder .knop { width: 100%; min-height: 58px; font-size: 20px; }

/* Stempel GEFIXT */
.stempel {
  position: absolute; left: 50%; top: 210px; z-index: 6; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-14deg); color: var(--rood);
  border: 5px solid currentColor; border-radius: 14px; padding: 6px 16px 8px; text-align: center;
  font-family: var(--f-kop); font-weight: 700; letter-spacing: 4px; line-height: 1; background: rgba(255,248,230,.72); white-space: nowrap;
  mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,.75) 61%, #000 70%);
}
.stempel b { display: block; font-size: 52px; }
.stempel small { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: 1.5px; margin-top: 4px; }
.stempel.klap { animation: stempel .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stempel { 0% { transform: translate(-50%, -50%) rotate(-24deg) scale(3); opacity: 0; } 55% { transform: translate(-50%, -50%) rotate(-12deg) scale(.9); opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: 1; } }
.stempel.stil { opacity: .9; }

/* Beloning: gereedschapskist vliegt in beeld */
.beloning { position: absolute; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(27,36,51,.55); animation: fade .25s; padding: 20px; }
@keyframes fade { from { opacity: 0; } }
.beloning-kaart { width: 100%; max-width: 330px; max-height: 100%; overflow-y: auto; background: var(--zon); color: var(--asfalt); border: 3px solid var(--asfalt); border-radius: 26px; box-shadow: 7px 7px 0 var(--asfalt); padding: 22px 20px 18px; text-align: center; position: relative; animation: bord-op .55s var(--veer) both; }
.beloning-kaart h2 { margin: 6px 0 4px; font-family: var(--f-kop); font-weight: 700; font-size: 28px; color: var(--denim); }
.beloning-kaart p { margin: 0 0 14px; font-size: 15px; color: #333C4D; }
.beloning-kaart .knop { width: 100%; }
.beloning .kist-svg { width: 190px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.vallend-gereedschap { animation: val-in .7s cubic-bezier(.5,0,.75,0) both .35s, plof .35s var(--veer) 1.05s; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes val-in { from { transform: translateY(-160px) rotate(-30deg); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(0) rotate(0); } }
@keyframes plof { 0% { transform: scale(1, .8); } 100% { transform: scale(1); } }
.kist-deksel-klap { animation: deksel .5s var(--veer) 1.05s; transform-box: fill-box; transform-origin: 0% 100%; }
@keyframes deksel { 30% { transform: rotate(-8deg); } }
.teller-groot { font-family: var(--f-kop); font-weight: 700; font-size: 18px; color: var(--denim); display: inline-flex; align-items: center; gap: 8px; background: var(--geel); border: 2px solid var(--asfalt); border-radius: 12px; padding: 4px 12px; margin-top: 10px; }
.teller-groot .plus { color: var(--groen); }
.nieuwe-badges { display: grid; gap: 8px; margin: 0 0 14px; }
.nieuwe-badge .badge-ic { flex: none; }
.nieuwe-badge { display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 2px solid var(--asfalt); border-radius: 16px; padding: 8px 10px; margin: 0; animation: kaart-in .4s var(--veer) both 1.3s; }
.nieuwe-badge .badge-ic { width: 48px; height: 48px; }
.nieuwe-badge b { display: block; font-family: var(--f-kop); font-weight: 600; font-size: 16px; color: var(--denim); }
.nieuwe-badge small { font-size: 13px; color: #4A5263; font-weight: 600; }
.moer { position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 46; }

/* ---------- Chat ---------- */
.chat-kop .avatar { width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--zon); border: var(--rand) solid var(--asfalt); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.chat-kop .avatar span { font-family: var(--f-kop); font-weight: 700; font-size: 11px; line-height: 1; color: var(--denim); }
.demo-label { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1px; background: var(--asfalt); color: var(--geel); padding: 2px 6px; border-radius: 5px; vertical-align: middle; margin-left: 6px; }
.chat-stroom { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 14px; background-image: linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px); background-size: 24px 24px; }
.bericht { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; animation: bericht-in .3s var(--uit) both; }
@keyframes bericht-in { from { transform: translateY(10px); opacity: 0; } }
.bericht.ik { align-self: flex-end; justify-content: flex-end; max-width: 86%; }
.bel-ik { background: var(--blauw); color: #fff; border: var(--rand) solid var(--lijn); border-radius: 22px 22px 6px 22px; padding: 10px 14px; font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.bel-ik.met-foto { padding: 6px 6px 10px; display: flex; flex-direction: column; gap: 8px; }
.bel-ik.met-foto span { padding: 0 6px; }
.jip-av { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--geel); border: 2px solid var(--lijn); display: grid; place-items: center; }
.bel-jip { flex: 1; min-width: 0; background: var(--kaart); color: var(--tekst); border: var(--rand) solid var(--lijn); box-shadow: 4px 4px 0 var(--schaduw); border-radius: 22px 22px 22px 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; }
.bel-jip p { margin: 0; }
.bel-jip .tag { font-family: var(--f-mono); font-weight: 700; background: var(--geel); color: var(--asfalt); border: 1.5px solid var(--lijn); padding: 0 6px; border-radius: 6px; }
.bel-jip h3 { margin: 0; font-family: var(--f-kop); font-size: 16px; font-weight: 600; color: var(--kop); }
.bel-jip ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bel-jip ol li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; }
.bel-jip ol li .nr { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--blauw); color: #fff; font-family: var(--f-kop); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.bel-jip .bron-chip { align-self: flex-start; }
.bel-jip.waarschuwing { background: #FFF1D6; color: var(--asfalt); }
.typen { display: flex; gap: 8px; align-items: center; }
.typen .bel-jip { flex: none; flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; }
.typen .bel-jip small { font-size: 13px; font-weight: 700; color: var(--tekst-2); }
.snel { display: flex; gap: 8px; flex-wrap: wrap; padding-left: 40px; animation: bericht-in .3s var(--uit) both; }
.snel .chip { min-height: 44px; text-align: left; line-height: 1.25; padding-top: 6px; padding-bottom: 6px; }
[hidden], [data-stroom] { display: none !important; }
.snel .chip.code { font-family: var(--f-mono); font-weight: 700; letter-spacing: 1px; }
.snel .chip.hl { background: var(--geel); color: var(--asfalt); border: var(--rand) solid var(--lijn); }
.chat-info { align-self: center; text-align: center; font-size: 13px; font-weight: 700; color: var(--tekst-2); background: var(--kaart); border: 2px dashed var(--zand-rand); border-radius: 12px; padding: 8px 12px; max-width: 92%; }
.foto-kader { position: relative; border-radius: 15px; overflow: hidden; border: 2px solid var(--lijn); background: #3d3a33; }
.foto-kader img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.scan { position: absolute; inset: 0; pointer-events: none; }
.scan::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 36%; background: linear-gradient(to bottom, transparent, rgba(255,199,44,.55)); border-bottom: 3px solid var(--geel); animation: scan 1.1s ease-in-out 2; }
.scan::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,199,44,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,199,44,.25) 1px, transparent 1px); background-size: 18px 18px; animation: fade .3s; }
.scan .hoek { position: absolute; width: 22px; height: 22px; border: 4px solid var(--geel); }
.scan .hoek.a { left: 8px; top: 8px; border-right: 0; border-bottom: 0; } .scan .hoek.b { right: 8px; top: 8px; border-left: 0; border-bottom: 0; }
.scan .hoek.c { left: 8px; bottom: 8px; border-right: 0; border-top: 0; } .scan .hoek.d { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.scan.klaar::before, .scan.klaar::after { display: none; }
.scan.klaar .hoek { border-color: var(--groen); }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(280%); } }
.composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; background: var(--kaart); border-top: var(--rand) solid var(--lijn); }
.composer .ikknop { border-color: var(--lijn); }
.composer .foto-knop { background: var(--geel); color: var(--asfalt); }
.composer input { flex: 1; min-width: 0; height: 50px; border: var(--rand) solid var(--lijn); border-radius: 15px; background: var(--veld); padding: 0 14px; font-size: 16px; }
.composer input:focus { outline: none; border-color: var(--blauw); box-shadow: 0 0 0 3px rgba(47,95,168,.25); }
.composer .stuur { background: var(--blauw); color: #fff; }

/* ---------- Bottom sheet en dialoog ---------- */
.laag { position: absolute; inset: 0; z-index: 42; pointer-events: none; }
.laag.open { pointer-events: auto; }
.laag .scrim { position: absolute; inset: 0; background: rgba(27,36,51,.5); opacity: 0; transition: opacity .25s; }
.laag.open .scrim { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--zon); color: var(--asfalt); border-top: 3px solid var(--asfalt); border-radius: 26px 26px 0 0; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .35s var(--uit); max-height: 86%; overflow-y: auto; }
html[data-theme="nacht"] .sheet { background: var(--kaart); color: var(--tekst); }
.laag.open .sheet { transform: none; }
.sheet::before { content: ''; display: block; height: 12px; margin: 0 -16px 14px; background-image: repeating-linear-gradient(-45deg, var(--geel) 0 10px, var(--asfalt) 10px 20px); border-radius: 22px 22px 0 0; }
.sheet h2 { margin: 0 0 6px; font-family: var(--f-kop); font-size: 22px; color: var(--kop); }
.sheet p { margin: 0 0 14px; font-size: 15px; color: var(--tekst-2); }
.sheet .knop { width: 100%; margin-top: 10px; }
.sheet-optie { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; margin-top: 10px; background: var(--kaart); color: var(--tekst); border: var(--rand) solid var(--lijn); border-radius: 18px; box-shadow: 4px 4px 0 var(--schaduw); text-align: left; font-family: var(--f-kop); font-weight: 600; font-size: 17px; }
.sheet-optie small { display: block; font-family: var(--f-tekst); font-weight: 600; font-size: 13px; color: var(--tekst-2); }
.sheet-optie .so-ic { width: 44px; height: 44px; flex: none; border-radius: 13px; border: 2px solid var(--lijn); background: var(--geel); color: var(--asfalt); display: grid; place-items: center; }
.sheet-optie:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--schaduw); }

.toast { position: absolute; left: 50%; top: 84px; z-index: 48; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; background: var(--asfalt); color: #fff; border: 2px solid var(--geel); border-radius: 14px; padding: 10px 16px; font-size: 14px; font-weight: 700; transition: transform .3s var(--veer), opacity .2s; max-width: 86%; text-align: center; }
.toast.zichtbaar { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Onboarding ---------- */
.onboarding { position: absolute; inset: 0; z-index: 30; background: var(--zon); color: var(--asfalt); display: flex; flex-direction: column; }
html[data-theme="nacht"] .onboarding { background: var(--bg); color: var(--tekst); }
.ob-top { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 0 16px; }
.ob-pylonen { display: flex; gap: 8px; align-items: flex-end; }
.ob-pylonen svg { width: 22px; height: 26px; transition: transform .3s var(--veer); }
.ob-pylonen svg.aan { transform: translateY(-3px) scale(1.15); }
.ob-pylonen svg path.romp { fill: #D9D2C1; transition: fill .3s; }
.ob-pylonen svg.aan path.romp { fill: var(--oranje); }
.ob-sla { font-weight: 800; font-size: 15px; color: var(--blauw); background: none; border: 0; padding: 12px; min-height: 48px; }
html[data-theme="nacht"] .ob-sla { color: #9DBDF0; }
.ob-stap { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 12px; display: flex; flex-direction: column; animation: bord-in .4s var(--veer) both; }
.ob-bord { align-self: center; margin: 14px 0 22px; position: relative; width: 240px; height: 196px; }
.ob-bord .paal { position: absolute; bottom: 0; width: 16px; height: 96px; background: var(--blauw); border: 2.5px solid var(--asfalt); border-radius: 5px; }
.ob-bord .paal.l { left: 52px; } .ob-bord .paal.r { right: 52px; }
.ob-bord .plank { position: absolute; left: 0; right: 0; top: 0; height: 128px; background: var(--geel); border: 3px solid var(--asfalt); border-radius: 22px; box-shadow: 6px 6px 0 var(--asfalt); display: grid; place-items: center; color: var(--asfalt); }
.ob-bord .plank .ic { width: 64px; height: 64px; }
.ob-bord .plank .bouten { position: absolute; inset: 10px; pointer-events: none; }
.ob-stap h1 { margin: 0 0 8px; font-family: var(--f-kop); font-weight: 700; font-size: 30px; line-height: 1.08; color: var(--kop); }
.ob-stap > p { margin: 0 0 16px; font-size: 16px; color: var(--tekst-2); }
.ob-punten { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ob-punten li { display: flex; gap: 12px; align-items: center; font-size: 15px; font-weight: 700; }
.ob-punten .ic-wrap { width: 42px; height: 42px; flex: none; border-radius: 12px; border: 2px solid var(--lijn); background: var(--geel); display: grid; place-items: center; color: var(--asfalt); }
.merk-keuze { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.merk-keuze .chip { min-height: 56px; justify-content: center; font-size: 17px; }
.ob-onder { flex: none; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.ob-onder .knop { flex: 1; }

/* ---------- Ik / profiel ---------- */
.ik-kop { padding: 14px 16px 0; }
.ik-kop h1 { margin: 0; font-family: var(--f-kop); font-size: 27px; color: var(--kop); }
.kist-paneel { margin: 12px 16px 0; padding: 14px 14px 12px; position: relative; overflow: hidden; background-color: var(--blauw); color: #fff; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; }
.kist-paneel .kp-rij { display: flex; align-items: flex-end; gap: 10px; }
.kist-paneel .kist-svg { width: 168px; height: auto; flex: none; overflow: visible; }
.kist-paneel .kp-tal { flex: 1; min-width: 0; padding-bottom: 8px; }
.kist-paneel .kp-tal b { display: block; font-family: var(--f-kop); font-weight: 700; font-size: 46px; line-height: 1; color: var(--geel); }
.kist-paneel .kp-tal span { font-size: 14px; font-weight: 700; color: #EAF0FA; }
.kist-paneel .voortgang { background: #1D3B6E; }
.kist-paneel .volgende { font-size: 13px; font-weight: 700; color: #EAF0FA; margin-top: 6px; }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 10px; background: var(--kaart); border: 2px solid var(--lijn); border-radius: 18px; text-align: center; font-size: 12px; font-weight: 800; line-height: 1.2; color: var(--tekst); min-height: 116px; transition: transform .15s var(--veer); }
.badge:active { transform: scale(.95); }
.badge .badge-ic { width: 56px; height: 56px; }
.badge.dicht { background: transparent; border-style: dashed; color: var(--tekst-2); }
.badge.dicht .badge-ic { opacity: .35; filter: grayscale(1); }
.badge.nieuw { animation: stuiter .7s var(--veer) 2; }
.badge-ic { display: block; }
.historie { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hist-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--kaart); border: 2px solid var(--lijn); border-radius: 14px; text-decoration: none; color: var(--tekst); min-height: 56px; }
.hist-item .plaat { font-size: 14px; padding: 5px 6px; }
.hist-item .ht { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.25; }
.hist-item .ht small { display: block; font-weight: 600; color: var(--tekst-2); font-size: 12px; }
.hist-item .gefixt-mini { font-family: var(--f-kop); font-weight: 700; font-size: 11px; letter-spacing: 1px; color: var(--rood); border: 2px solid currentColor; border-radius: 6px; padding: 1px 5px; transform: rotate(-8deg); }
html[data-theme="nacht"] .hist-item .gefixt-mini { color: #FF8A7E; }
.instellingen { background: var(--kaart); border: 2px solid var(--lijn); border-radius: 18px; overflow: hidden; }
.inst-rij { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; border-bottom: 2px dashed var(--zand-rand); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: var(--tekst); font-size: 15px; font-weight: 700; }
.inst-rij:last-child { border-bottom: 0; }
.inst-rij .ic-wrap { width: 38px; height: 38px; flex: none; border-radius: 11px; border: 2px solid var(--lijn); background: var(--geel); color: var(--asfalt); display: grid; place-items: center; }
.inst-rij .it { flex: 1; min-width: 0; }
.inst-rij .it small { display: block; font-size: 12px; color: var(--tekst-2); font-weight: 600; }
.segment { display: flex; border: 2px solid var(--lijn); border-radius: 12px; overflow: hidden; flex: none; }
.segment button { min-height: 40px; min-width: 44px; padding: 0 10px; border: 0; background: var(--kaart); font-size: 13px; font-weight: 800; color: var(--tekst); }
.segment button + button { border-left: 2px solid var(--lijn); }
.segment button[aria-pressed="true"] { background: var(--geel); color: var(--asfalt); }
.schakel { width: 56px; height: 32px; flex: none; border-radius: 16px; border: 2px solid var(--lijn); background: #D9D2C1; position: relative; padding: 0; transition: background-color .2s; }
.schakel::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--lijn); transition: transform .25s var(--veer); }
.schakel[aria-checked="true"] { background: var(--groen); }
.schakel[aria-checked="true"]::after { transform: translateX(24px); }
.inst-merken { padding: 12px 14px; border-bottom: 2px dashed var(--zand-rand); }
.inst-merken .rij { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.over { margin: 22px 16px 0; padding: 18px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.over .jip-logo { font-size: 44px; padding-top: 14px; }
html[data-theme="nacht"] .over .jip-logo { color: var(--geel); }
.over p { margin: 0; font-size: 14px; color: var(--tekst-2); }
.over .versie { font-family: var(--f-mono); font-size: 12px; font-weight: 700; background: var(--asfalt); color: var(--geel); border-radius: 6px; padding: 3px 8px; }
.over .dhps { color: var(--tekst); }
.pylon-hoek { display: flex; justify-content: center; padding: 26px 0 30px; }
.pylon-knop { background: none; border: 0; padding: 6px; min-width: 64px; min-height: 64px; -webkit-tap-highlight-color: transparent; }
.pylon-knop svg { width: 52px; height: auto; transform-origin: 85% 95%; transition: transform .2s; display: block; }
.pylon-knop.om svg { animation: pylon-om 2.2s var(--uit) both; }
@keyframes pylon-om { 0% { transform: rotate(0); } 18% { transform: rotate(-12deg); } 40% { transform: rotate(84deg) translateY(2px); } 46% { transform: rotate(76deg); } 52% { transform: rotate(84deg); } 78% { transform: rotate(84deg); } 92% { transform: rotate(-6deg); } 100% { transform: rotate(0); } }
.pylon-tekst { font-size: 12px; font-weight: 700; color: var(--tekst-2); text-align: center; min-height: 18px; }

/* Rustige animaties (instelling) */
html.rustig *, html.rustig *::before, html.rustig *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.rustig .wp-typen .wp-bel { animation: none !important; }
