.wb-dialog {
  color: var(--ff-text);
  background: var(--ff-surface);
  width: min(38rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  border: 1px solid var(--ff-control);
  border-radius: .65rem;
  box-shadow: 0 2rem 7rem #0009;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.wb-dialog::backdrop { background: #020a12cf; }
.wb-dialog [hidden] { display: none !important; }
.wb-kop, .wb-voet, .wb-body { padding: 1.1rem clamp(.9rem, 4vw, 1.75rem); }
.wb-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; border-bottom: 1px solid var(--ff-line); }
.wb-kop h2 { font: 700 clamp(1.45rem, 4vw, 2rem)/1.12 var(--ff-sans); margin: .4rem 0 .15rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
.wb-sluit { font: 1.5rem/1 var(--ff-sans); background: var(--ff-field); color: var(--ff-text); min-width: 44px; min-height: 44px; border: 1px solid var(--ff-control); border-radius: var(--ff-radius); cursor: pointer; }
.wb-body { display: grid; gap: 1rem; }
.wb-body p { margin: 0; }
.wb-klus, .wb-fotomelding, .wb-voet > span { font: 400 .88rem/1.45 var(--ff-sans); color: var(--ff-muted); }
.wb-body label, .wb-body h3, .wb-body legend { color: var(--ff-text); font: 700 .94rem/1.45 var(--ff-sans); margin: 0; }
.wb-body .ff-input { display: block; width: 100%; margin-top: .4rem; }
.wb-body textarea { resize: vertical; }
.wb-uren .ff-input { max-width: 10rem; }
.wb-fotorij { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .5rem; }
.wb-bestand { position: relative; }
.wb-bestand input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.wb-bestand:focus-within, .wb-keuze label:focus-within { outline: 3px solid var(--ff-ice); outline-offset: 2px; }
.wb-fotomelding:not(:empty) { padding-top: .4rem; }
.wb-foto { display: block; width: auto; max-width: 100%; max-height: 14rem; border-radius: .35rem; margin-top: .6rem; }
.wb-ondertekenen { margin: 0; padding: 0; border: 0; min-width: 0; }
.wb-ondertekenen legend { padding: 0; }
.wb-keuze { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.wb-keuze label { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 400; }
.wb-keuze input { width: 18px; height: 18px; margin: 0 .45rem 0 0; accent-color: var(--ff-ice); }
.wb-body canvas { display: block; width: 100%; height: auto; touch-action: none; background: #e9f2f6; border-radius: var(--ff-radius); cursor: crosshair; }
.wb-link { color: var(--ff-ice); font: 600 .9rem var(--ff-sans); text-decoration: underline; text-underline-offset: 3px; border: none; background: transparent; padding: .25rem 0; min-height: 44px; cursor: pointer; }
.wb-voet { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid var(--ff-line); }
.wb-melding { margin: 0; color: var(--ff-error); font-size: .9rem; }
.wb-melding:empty { display: none; }
.wb-melding:not(:empty) { flex-basis: 100%; }
@media (max-width: 26rem) {
  .wb-voet .ff-primary { width: 100%; }
}
