/* Stone8-kiosk · huisstijl Natuursteenstunter.
   Staand aanraakscherm (1080 × 1920): tekening bovenin, één stap met grote
   tegels eronder, knoppen onderaan. Op een liggend scherm (Mac, laptop) staat
   de kiosk als staand voorbeeld in een kader. */
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin.woff2) format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-ext.woff2) format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --creme: #fffdf4; --wit: #ffffff; --vlak: #f1efe7; --lijn: #e8e7df; --lijn-d: #d2d2d2;
  --inkt: #1d1e25; --zacht: #5e5f66;
  --roze: #e5006f; --roze-d: #bd0660; --roze-l: #fde8f2;
  --petrol: #285251; --petrol-d: #1c3b3a; --petrol-l: #e3ecea;
  --muur: #c9c7bd; --let: #8a5a00; --let-l: #fff5dc; --goed: #1f7a4d; --goed-l: #e5f4ec; --fout: #b42318; --fout-l: #fdecea;
  --schaduw: 0 18px 50px rgba(29, 30, 37, .16);
  --font: "Messina Sans", "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --r: 6px; --r-s: 4px;
  --tik: 64px; /* kleinste aanraakvlak */
  --achter: #22282a; /* achter het voorbeeldkader */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
#kiosk { position: relative; height: 100%; overflow: hidden; background: var(--creme); transform: translateZ(0); }
@media (min-aspect-ratio: 3/4) {
  body { background: var(--achter) !important; }
  #kiosk { position: absolute; left: 50%; top: 50%; width: 1080px; height: 1920px; transform: translate(-50%, -50%) scale(var(--schaal, .5)); border-radius: 36px; box-shadow: 0 0 0 14px #0c0f0e, 0 40px 120px rgba(0,0,0,.45); }
}
body { margin: 0; background: var(--creme); color: var(--inkt); font-family: var(--font); font-size: 18px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
input, textarea, pre { user-select: text; -webkit-user-select: text; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--roze); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
code { font-family: var(--mono); font-size: .85em; }

.app { height: 100%; display: grid; grid-template-rows: auto 1fr; }
.proto { background: var(--inkt); color: var(--creme); font-size: 14px; padding: 8px 24px; display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.proto b { letter-spacing: .02em; }
.proto button { border: 1px solid rgba(255,253,244,.35); background: transparent; color: var(--creme); border-radius: 999px; padding: 4px 14px; font-size: 13px; }

/* Kop */
.kop { background: var(--creme); border-bottom: 1px solid var(--lijn); padding: 18px 40px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; min-width: 0; }
.logo { height: 40px; color: var(--inkt); flex-shrink: 0; border: 0; background: none; padding: 0; display: flex; }
.kop .logo { margin-right: auto; }
.logo svg { height: 100%; width: auto; }
.stappen { order: 3; flex-basis: 100%; display: flex; gap: 6px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.stappen li { flex: 1; min-width: 0; }
.stap-knop { width: 100%; min-height: var(--tik); border: 0; background: transparent; padding: 8px 6px; text-align: left; display: grid; gap: 8px; align-content: center; border-radius: var(--r); }
.stap-balk { height: 6px; border-radius: 6px; background: var(--lijn); }
.stap-knop[data-t="klaar"] .stap-balk { background: var(--petrol); }
.stap-knop[data-t="nu"] .stap-balk { background: var(--roze); }
.stap-naam { font-size: 15px; color: var(--zacht); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stap-naam i { font-style: normal; margin-right: 6px; }
.stap-knop[data-t="nu"] .stap-naam { color: var(--inkt); font-weight: 700; }
.kop-acties { display: flex; gap: 10px; flex-shrink: 0; }

.knop { border: 0; border-radius: 999px; min-height: var(--tik); padding: 0 28px; font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; gap: 10px; justify-content: center; text-decoration: none; }
.knop svg { width: 22px; height: 22px; flex-shrink: 0; }
.knop-hoofd { background: var(--roze); color: var(--wit); }
.knop-hoofd:active { background: var(--roze-d); }
.knop-twee { background: var(--vlak); color: var(--inkt); }
.knop-twee:active { background: var(--lijn); }
.knop-petrol { background: var(--petrol); color: var(--creme); }
.knop-rand { background: transparent; border: 1.5px solid var(--inkt); color: var(--inkt); }
.knop-klein { min-height: 48px; padding: 0 18px; font-size: 16px; }
.knop[disabled] { opacity: .45; cursor: not-allowed; }

/* Werkvlak */
.werk { display: grid; grid-template-rows: minmax(0, 36fr) minmax(0, 64fr); min-height: 0; }
.paneel { background: var(--wit); border-top: 1px solid var(--lijn); border-radius: 22px 22px 0 0; margin-top: -24px; position: relative; z-index: 1; box-shadow: 0 -10px 30px rgba(29,30,37,.06); display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.paneel-inhoud { overflow-y: auto; padding: 36px 40px 28px; display: flex; flex-direction: column; gap: 28px; overscroll-behavior: contain; }
.paneel-inhoud > * { flex-shrink: 0; }
.paneel-voet { border-top: 1px solid var(--lijn); padding: 20px 40px 28px; display: flex; gap: 12px; align-items: center; }
.paneel-voet .knop-hoofd { flex: 1; }
h1.titel { font-size: 36px; line-height: 1.1; margin: 0; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.vraag { margin: 8px 0 0; color: var(--zacht); max-width: 46ch; }
.label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--zacht); font-weight: 700; margin: 0 0 12px; }
.hint { font-size: 15px; color: var(--zacht); margin: 10px 0 0; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--lijn-d); background: var(--wit); border-radius: 999px; min-height: 52px; padding: 0 20px; font-size: 16px; }
.chip[aria-pressed="true"] { background: var(--inkt); border-color: var(--inkt); color: var(--creme); }
.kleur { display: inline-flex; align-items: center; gap: 8px; }
.kleur i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(29,30,37,.25); }
.zoek-rij { position: relative; }
.zoek-rij svg { position: absolute; left: 18px; top: 50%; width: 24px; height: 24px; margin-top: -12px; color: var(--zacht); pointer-events: none; }
.zoek-rij .invoer { padding-left: 54px; padding-right: 160px; }
.scan-tip { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--petrol); background: var(--petrol-l); border-radius: 999px; padding: 6px 12px; display: flex; gap: 6px; align-items: center; pointer-events: none; }
.scan-tip i { width: 14px; height: 10px; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px, currentColor 3px 5px, transparent 5px 6px); }
.scan-tip.uit { color: var(--zacht); background: var(--vlak); }
.stenen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steen { border: 2px solid var(--lijn); background: var(--wit); border-radius: var(--r); padding: 0; text-align: left; overflow: hidden; display: flex; flex-direction: column; }
.steen img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; max-width: 100%; }
.steen span { padding: 10px 12px 12px; display: grid; gap: 2px; }
.steen b { font-size: 15px; line-height: 1.25; font-weight: 600; }
.steen small { color: var(--zacht); font-size: 14px; }
.steen .sku { font-family: var(--mono); font-size: 11px; color: var(--zacht); overflow-wrap: anywhere; }
.steen[aria-pressed="true"] { border-color: var(--roze); box-shadow: 0 0 0 3px var(--roze-l); }
.geen-treffer { padding: 24px; border: 1px dashed var(--lijn-d); border-radius: var(--r); color: var(--zacht); text-align: center; grid-column: 1 / -1; }

.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--vlak); padding: 6px; border-radius: 999px; }
.segment button { border: 0; background: transparent; border-radius: 999px; min-height: var(--tik); padding: 6px 10px; font-size: 17px; display: grid; gap: 0; align-content: center; }
.segment button small { font-size: 14px; color: var(--zacht); }
.segment button[aria-pressed="true"] { background: var(--wit); box-shadow: 0 1px 3px rgba(29,30,37,.18); font-weight: 700; }
.segment.blok { border-radius: 16px; grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.segment.blok button { border-radius: 12px; }

.vormen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vorm { border: 2px solid var(--lijn); background: var(--wit); border-radius: var(--r); padding: 14px 8px 12px; display: grid; gap: 8px; justify-items: center; font-weight: 700; font-size: 16px; }
.vorm svg { width: 64px; height: 64px; }
.vorm[aria-pressed="true"] { border-color: var(--roze); background: var(--roze-l); }

.maten { display: grid; gap: 12px; }
.veld-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.maat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border: 1px solid var(--lijn); border-radius: var(--r); }
.maat-naam { display: grid; }
.maat-naam small { color: var(--zacht); font-size: 14px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: var(--tik); height: var(--tik); border-radius: 50%; border: 0; background: var(--vlak); font-size: 30px; line-height: 1; }
.stepper .waarde { width: auto; min-width: 132px; border-radius: var(--r); border: 2px solid var(--lijn); background: var(--wit); font-size: 22px; font-weight: 700; }
.stepper .waarde small { font-size: 14px; color: var(--zacht); font-weight: 400; margin-left: 4px; }

.schakel { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--tik); padding: 8px 10px 8px 18px; border: 1px solid var(--lijn); border-radius: var(--r); background: var(--wit); width: 100%; text-align: left; }
.schakel span { display: grid; }
.schakel small { color: var(--zacht); font-size: 14px; }
.wip { width: 64px; height: 38px; border-radius: 999px; background: var(--lijn-d); position: relative; flex-shrink: 0; transition: background .15s; }
.wip::after { content: ""; position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: var(--wit); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.schakel[aria-pressed="true"] .wip { background: var(--petrol); }
.schakel[aria-pressed="true"] .wip::after { transform: translateX(26px); }

.bakken { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bak { border: 2px solid var(--lijn); background: var(--wit); border-radius: var(--r); padding: 10px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-align: left; }
.bak img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r-s); background: var(--vlak); }
.bak .geen-beeld { width: 64px; height: 64px; border-radius: var(--r-s); background: var(--vlak); display: grid; place-items: center; color: var(--zacht); font-size: 28px; }
.bak b { display: block; font-size: 16px; }
.bak small { display: block; color: var(--zacht); font-size: 14px; }
.bak[aria-pressed="true"] { border-color: var(--roze); background: var(--roze-l); }

.melding { background: var(--let-l); color: var(--let); border-radius: var(--r); padding: 12px 16px; font-size: 15px; }

/* Podium: tekening en prijs */
.podium { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--vlak); }
.podium::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, var(--lijn-d) 1.2px, transparent 0); background-size: 28px 28px; opacity: .8; }
#tekening { position: absolute; left: 40px; top: 64px; width: calc(100% - 80px); height: calc(100% - 64px - 150px); }
.prijskaart { position: absolute; left: 40px; right: 40px; bottom: 48px; background: var(--wit); border-radius: var(--r); box-shadow: var(--schaduw); padding: 16px 18px 16px 16px; display: flex; align-items: center; gap: 20px; }
.prijskaart img { width: 64px; height: 64px; border-radius: var(--r-s); object-fit: cover; }
.pk-steen { min-width: 0; flex: 1; display: grid; }
.pk-steen b { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-steen small { color: var(--zacht); font-size: 15px; }
.pk-prijs { text-align: right; display: grid; }
.pk-prijs small { color: var(--zacht); font-size: 14px; }
.pk-prijs b { font-size: 34px; letter-spacing: -.02em; line-height: 1.1; }
.legenda { position: absolute; top: 20px; left: 40px; z-index: 1; display: flex; gap: 18px; font-size: 14px; color: var(--zacht); background: rgba(255,253,244,.9); padding: 8px 14px; border-radius: 999px; }
.legenda i { display: inline-block; width: 22px; height: 5px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }

/* Overzicht en meenemen */
.bon { border: 1px solid var(--lijn); border-radius: var(--r); overflow: hidden; }
.bon ul { list-style: none; margin: 0; padding: 0; }
.bon li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--lijn); }
.bon li span { display: grid; min-width: 0; }
.bon li small { color: var(--zacht); font-size: 14px; }
.bon li b { white-space: nowrap; }
.bon li.zacht b { color: var(--zacht); font-weight: 400; font-size: 15px; }
.bon-totaal { display: flex; justify-content: space-between; align-items: end; padding: 16px 18px; background: var(--petrol); color: var(--creme); }
.bon-totaal b { font-size: 32px; }
.bon-totaal small { color: var(--petrol-l); font-size: 14px; display: block; }
.meenemen { display: grid; gap: 12px; }
.optie { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; text-align: left; padding: 16px 18px; border: 1px solid var(--lijn); border-radius: var(--r); background: var(--wit); min-height: 84px; }
.optie .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--roze-l); color: var(--roze); display: grid; place-items: center; }
.optie .ico svg { width: 28px; height: 28px; }
.optie b { display: block; font-size: 18px; }
.optie small { display: block; color: var(--zacht); font-size: 15px; }
.veld { display: grid; gap: 6px; min-width: 0; }
.veld label, .veld .veld-naam { font-size: 15px; color: var(--zacht); }
.invoer { width: 100%; min-height: var(--tik); border: 1.5px solid var(--lijn-d); border-radius: var(--r); padding: 0 18px; background: var(--wit); font-size: 20px; }
.invoer:focus { border-color: var(--inkt); outline: none; }
textarea.invoer { padding: 14px 18px; min-height: 120px; resize: vertical; font-size: 17px; line-height: 1.45; }
.klaar-kaart { background: var(--petrol-l); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; }
.klaar-kaart .code { font-size: 44px; font-weight: 800; letter-spacing: .06em; color: var(--petrol); }
.verstuurd { display: flex; gap: 6px; flex-wrap: wrap; }
.qr-rij { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.qr-rij svg { width: 180px; height: 180px; background: var(--wit); border-radius: var(--r); padding: 10px; border: 1px solid var(--lijn); }

/* Startscherm */
.start { position: fixed; inset: 0; z-index: 30; background: var(--petrol); color: var(--creme); display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.start-tekst { order: 2; padding: 56px 72px 72px; display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 1; background: linear-gradient(transparent, var(--petrol) 48px); }
.start .logo { height: 56px; color: var(--creme); }
.start h1 { font-size: clamp(40px, 8vw, 92px); line-height: 1; letter-spacing: -.035em; font-weight: 800; margin: 0; text-wrap: balance; }
.start h1 em { font-style: normal; color: var(--roze); background: var(--creme); padding: 0 .12em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.start p { font-size: 22px; color: var(--petrol-l); max-width: 36ch; margin: 0; }
.start-knoppen { display: flex; gap: 16px; flex-wrap: wrap; }
.start .knop { min-height: 84px; padding: 0 40px; font-size: 22px; }
.start .knop-twee { background: transparent; border: 1.5px solid var(--creme); color: var(--creme); }
.start-feiten { display: flex; gap: 36px; color: var(--petrol-l); font-size: 16px; flex-wrap: wrap; }
.start-feiten b { display: block; color: var(--creme); font-size: 30px; }
.mozaiek { min-height: 0; align-self: center; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px; transform: rotate(-6deg) scale(1.25); transform-origin: center; align-content: center; }
.mozaiek div { aspect-ratio: 3 / 4; border-radius: var(--r); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.mozaiek div span { position: absolute; left: 10px; bottom: 10px; background: rgba(29,30,37,.7); color: var(--creme); font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.mozaiek div:nth-child(2n) { transform: translateY(-22%); }
@media (prefers-reduced-motion: no-preference) {
  .mozaiek { animation: drijf 40s ease-in-out infinite alternate; }
  @keyframes drijf { to { transform: rotate(-6deg) scale(1.25) translateY(-9%); } }
  .tik-hint { animation: puls 2.4s ease-in-out infinite; }
  @keyframes puls { 50% { opacity: .45; } }
}
.tik-hint { font-size: 16px; color: var(--petrol-l); letter-spacing: .08em; text-transform: uppercase; }

/* Assistent */
.chat { position: fixed; left: 0; right: 0; bottom: 0; height: 74%; z-index: 40; background: var(--wit); border-radius: 22px 22px 0 0; box-shadow: var(--schaduw); display: grid; grid-template-rows: auto auto 1fr auto auto; transform: translateY(105%); transition: transform .3s ease; }
.chat::before { content: ""; position: absolute; top: 10px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 3px; background: var(--lijn-d); }
.chat[data-open="true"] { transform: none; }
.scherm { position: fixed; inset: 0; z-index: 39; background: rgba(29,30,37,.4); }
.chat-kop { display: flex; align-items: center; gap: 14px; padding: 28px 32px 18px; border-bottom: 1px solid var(--lijn); }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--petrol); color: var(--creme); display: grid; place-items: center; flex-shrink: 0; }
.avatar svg { width: 26px; height: 26px; }
.chat-kop div { flex: 1; min-width: 0; display: grid; }
.chat-kop b { font-size: 20px; }
.chat-kop small { color: var(--zacht); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.stip { width: 9px; height: 9px; border-radius: 50%; background: var(--goed); display: inline-block; flex-shrink: 0; }
.stip.uit { background: var(--lijn-d); } .stip.fout { background: var(--fout); }
.sluit { width: var(--tik); height: var(--tik); border-radius: 50%; border: 0; background: var(--vlak); font-size: 28px; line-height: 1; flex-shrink: 0; }
.context { margin: 12px 32px 0; padding: 10px 14px; background: var(--vlak); border-radius: var(--r); font-size: 14px; color: var(--zacht); display: flex; gap: 10px; align-items: center; }
.context b { color: var(--inkt); font-weight: 700; }
.berichten { overflow-y: auto; padding: 20px 32px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }
.bericht { max-width: 80%; display: grid; gap: 8px; }
.bericht.ik { align-self: flex-end; background: var(--inkt); color: var(--creme); padding: 12px 18px; border-radius: 20px 20px 6px 20px; }
.bericht.ai { align-self: flex-start; }
.bericht.ai .tekst { background: var(--vlak); padding: 14px 18px; border-radius: 20px 20px 20px 6px; }
.bericht.ai .tekst p { margin: 0 0 8px; } .bericht.ai .tekst p:last-child { margin: 0; }
.werklog { display: grid; gap: 4px; font-size: 14px; color: var(--zacht); padding-left: 4px; }
.werklog div { display: flex; gap: 8px; align-items: baseline; min-width: 0; flex-wrap: wrap; }
.werklog code { font-size: 13px; color: var(--petrol); overflow-wrap: anywhere; }
.werklog .bezig::after { content: "…"; }
.bronnen { display: flex; gap: 6px; flex-wrap: wrap; }
.bron { font-size: 13px; background: var(--petrol-l); color: var(--inkt); border-radius: 999px; padding: 5px 12px; display: inline-flex; gap: 6px; align-items: center; }
.bron svg { width: 14px; height: 14px; }
.voorstellen { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 32px 12px; }
.voorstellen .chip { min-height: 48px; font-size: 15px; text-align: left; }
.chat-invoer { display: flex; gap: 10px; padding: 16px 32px 32px; border-top: 1px solid var(--lijn); }
.chat-invoer input { flex: 1; min-width: 0; }
.chat-invoer .knop { padding: 0 22px; }

/* Vensters */
.venster-achter { position: fixed; inset: 0; z-index: 95; background: rgba(29,30,37,.5); display: grid; place-items: center; padding: 16px; }
.venster { background: var(--wit); border-radius: 12px; box-shadow: var(--schaduw); padding: 28px; width: min(460px, 100%); display: grid; gap: 18px; max-height: 100%; overflow-y: auto; }
.venster h2 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.venster p { margin: 0; color: var(--zacht); }
.np-waarde { font-size: 44px; font-weight: 700; text-align: right; padding: 8px 18px; border: 2px solid var(--inkt); border-radius: var(--r); min-height: 76px; }
.np-waarde small { font-size: 18px; color: var(--zacht); font-weight: 400; margin-left: 6px; }
.np-waarde.pin { text-align: center; letter-spacing: .4em; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.numpad button { min-height: 72px; border-radius: var(--r); border: 0; background: var(--vlak); font-size: 28px; font-weight: 700; }
.np-acties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aftellen { font-size: 64px; font-weight: 800; color: var(--roze); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 140px; transform: translateX(-50%); z-index: 80; background: var(--inkt); color: var(--creme); padding: 16px 24px; border-radius: 999px; font-size: 18px; box-shadow: var(--schaduw); display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); }
.toast b { color: #ff7ab8; }

/* Beheer */
.beheer { position: fixed; inset: 0; z-index: 60; background: var(--creme); display: grid; grid-template-rows: auto auto 1fr; }
.bh-kop { background: var(--inkt); color: var(--creme); padding: 22px 40px; display: flex; align-items: center; gap: 18px; }
.bh-kop .logo { height: 32px; color: var(--creme); }
.bh-kop div { flex: 1; min-width: 0; display: grid; }
.bh-kop b { font-size: 22px; }
.bh-kop small { color: #b9bac0; font-size: 14px; }
.bh-tabs { display: flex; gap: 4px; padding: 0 40px; background: var(--wit); border-bottom: 1px solid var(--lijn); overflow-x: auto; }
.bh-tabs button { border: 0; background: none; min-height: var(--tik); padding: 0 18px; font-size: 17px; font-weight: 600; color: var(--zacht); border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.bh-tabs button[aria-selected="true"] { color: var(--inkt); border-bottom-color: var(--roze); }
.bh-tabs .teller { background: var(--roze); color: var(--wit); font-size: 12px; border-radius: 999px; padding: 1px 8px; }
.bh-inhoud { overflow-y: auto; padding: 32px 40px 48px; display: grid; gap: 22px; align-content: start; }
.bh-inleiding { margin: 0; color: var(--zacht); max-width: 60ch; }
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--r); display: grid; }
.kaart-kop { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 0; background: none; width: 100%; text-align: left; }
.kaart-kop .ico { width: 52px; height: 52px; border-radius: var(--r); background: var(--vlak); display: grid; place-items: center; flex-shrink: 0; color: var(--inkt); font-weight: 800; font-size: 15px; }
.kaart-kop > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.kaart-kop b { font-size: 19px; }
.kaart-kop small { color: var(--zacht); font-size: 15px; }
.pil { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.pil.ok { background: var(--goed-l); color: var(--goed); }
.pil.nee { background: var(--vlak); color: var(--zacht); }
.pil.fout { background: var(--fout-l); color: var(--fout); }
.pil.let { background: var(--let-l); color: var(--let); }
.kaart-body { border-top: 1px solid var(--lijn); padding: 22px; display: grid; gap: 18px; }
.velden2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vinkjes { display: grid; gap: 8px; }
.vink { display: flex; gap: 14px; align-items: center; min-height: 52px; padding: 6px 14px; border: 1px solid var(--lijn); border-radius: var(--r); background: var(--wit); text-align: left; width: 100%; }
.vink i { width: 26px; height: 26px; border-radius: 4px; border: 2px solid var(--lijn-d); flex-shrink: 0; display: grid; place-items: center; }
.vink[aria-pressed="true"] i { background: var(--petrol); border-color: var(--petrol); }
.vink[aria-pressed="true"] i::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--wit); border-bottom: 3px solid var(--wit); transform: rotate(-45deg) translate(1px, -1px); }
.vink span { display: grid; } .vink small { color: var(--zacht); font-size: 14px; }
.rij { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.resultaat { border-radius: var(--r); padding: 12px 16px; font-size: 15px; display: grid; gap: 4px; }
.resultaat.ok { background: var(--goed-l); color: var(--goed); }
.resultaat.fout { background: var(--fout-l); color: var(--fout); }
.resultaat.bezig { background: var(--vlak); color: var(--zacht); }
.mappen { display: grid; gap: 8px; }
.map { display: flex; gap: 10px; align-items: center; padding: 6px 6px 6px 16px; border: 1px solid var(--lijn); border-radius: var(--r); background: var(--vlak); }
.map code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.map button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--wit); font-size: 22px; }
pre.payload { margin: 0; background: var(--inkt); color: #e9e8e2; border-radius: var(--r); padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.55; overflow: auto; max-height: 420px; white-space: pre; }
.logregel { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--lijn); }
.logregel:last-child { border-bottom: 0; }
.logregel time { color: var(--zacht); font-size: 14px; }
.logregel b { display: block; font-size: 16px; }
.logregel small { color: var(--zacht); font-size: 14px; display: block; overflow-wrap: anywhere; }
.leeg { padding: 28px; text-align: center; color: var(--zacht); }
.uitleg ul { margin: 0; padding-left: 20px; color: var(--zacht); font-size: 16px; display: grid; gap: 6px; }

@media (max-width: 700px) and (max-aspect-ratio: 3/4) {
  body { font-size: 16px; }
  :root { --tik: 52px; }
  .kop { padding: 10px 16px; gap: 8px 12px; }
  .logo { height: 30px; }
  .stap-naam { display: none; }
  .kop-acties .knop span { display: none; }
  .kop-acties .knop { padding: 0 16px; }
  .werk { grid-template-rows: minmax(0, 40fr) minmax(0, 60fr); }
  #tekening { left: 16px; top: 16px; width: calc(100% - 32px); height: calc(100% - 16px - 110px); }
  .prijskaart { left: 16px; right: 16px; bottom: 36px; padding: 10px 12px; gap: 12px; }
  .prijskaart img { width: 44px; height: 44px; }
  .pk-prijs b { font-size: 24px; }
  .pk-steen small, .legenda { display: none; }
  .paneel-inhoud { padding: 20px 16px; gap: 20px; }
  .paneel-voet { padding: 12px 16px; }
  h1.titel { font-size: 26px; }
  .stenen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vormen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bakken { grid-template-columns: 1fr; }
  .stepper .waarde { min-width: 96px; font-size: 18px; }
  .maat { grid-template-columns: 1fr; }
  .zoek-rij .invoer { padding-right: 18px; } .scan-tip { display: none; }
  .start-tekst { padding: 40px 20px; }
  .start .knop { min-height: 64px; font-size: 18px; padding: 0 24px; }
  .mozaiek { grid-template-columns: repeat(3, 1fr); }
  .qr-rij { grid-template-columns: 1fr; }
  .chat-kop, .berichten { padding-left: 16px; padding-right: 16px; }
  .context { margin: 12px 16px 0; } .voorstellen { padding: 0 16px 12px; } .chat-invoer { padding: 12px 16px 20px; }
  .bericht { max-width: 90%; }
  .proto { padding: 8px 16px; }
  .bh-kop, .bh-inhoud { padding-left: 16px; padding-right: 16px; } .bh-tabs { padding: 0 8px; }
  .velden2 { grid-template-columns: 1fr; }
  .logregel { grid-template-columns: 1fr; gap: 4px; }
}

/* Laden en leeg */
.laden { position: fixed; inset: 0; z-index: 90; background: var(--petrol); color: var(--creme); display: grid; place-items: center; text-align: center; padding: 24px; font-size: 22px; }
.laden .logo { height: 56px; color: var(--creme); margin: 0 auto 24px; }
.status-rij { display: grid; gap: 6px; }
.stap-lijst { display: grid; gap: 4px; font-size: 14px; }
.stap-lijst div { display: flex; gap: 10px; align-items: baseline; }
.stap-lijst b { min-width: 170px; }
.ticket-rij { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--lijn); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.ticket-rij:last-child { border-bottom: 0; }
.ticket-rij .code { font-weight: 800; font-size: 18px; color: var(--petrol); }
.ticket-rij small { display: block; color: var(--zacht); font-size: 14px; }
.pil.wacht { background: var(--let-l); color: var(--let); }
@media (max-width: 700px) and (max-aspect-ratio: 3/4) { .ticket-rij { grid-template-columns: 1fr; } }
