/*
 * The extraction wizard (#51), in the look of its approved canvas: IBM Plex,
 * pills and warm neutrals. The sheet is served on every page, so every rule is
 * scoped under .wz; it is unlayered, so it outranks Origin, which lives entirely
 * inside @layer. frontend/tools/audit/wizardStylesheet.ts checks the scope and
 * that each font url resolves.
 */

/* Latin subsets as Google Fonts cuts them; other scripts fall back to the system
   font. Propshaft resolves url() against its asset root, and app/assets/fonts is
   a root just as app/assets/stylesheets is. A face downloads only once a .wz
   rule puts it to use. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/ibm-plex/IBMPlexSans-Regular-64251e64.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ibm-plex/IBMPlexSans-Medium-290aaea2.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/ibm-plex/IBMPlexSans-SemiBold-99b2fa32.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/ibm-plex/IBMPlexSans-Bold-8e5326da.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/ibm-plex/IBMPlexMono-Regular-d803141a.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ibm-plex/IBMPlexMono-Medium-3f7bbac1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/ibm-plex/IBMPlexMono-SemiBold-b71798d4.woff2") format("woff2");
}

@keyframes wz-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wz-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes wz-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

/* Tokens */
.wz {
  --wz-ground: #f6f5f1;
  --wz-surface: #ffffff;
  --wz-text: #1d1c1a;
  --wz-text-soft: #3a3934;
  --wz-muted: #55534d;
  --wz-subtle: #6d6b64;
  --wz-line: #dcd9d0;
  --wz-line-strong: #c9c6bc;
  --wz-line-dashed: #b9b5aa;
  --wz-row-line: #f1efe9;
  --wz-divider: #efede7;
  --wz-accent: #c2410c;
  --wz-accent-strong: #9a3412;
  --wz-accent-deep: #7c2d12;
  --wz-accent-soft: #fdf3ec;
  --wz-accent-tint: #fbe3d3;
  --wz-accent-line: #f1c7aa;
  --wz-accent-wash: #fffaf6;
  --wz-accent-seam: #e8d5c7;
  --wz-success: #15803d;
  --wz-success-soft: #e3f1e7;
  --wz-success-strong: #14532d;
  --wz-success-tint: #e7f4eb;
  --wz-success-line: #b7dcc2;
  --wz-success-text: #1f5133;
  --wz-danger: #b91c1c;
  --wz-danger-strong: #991b1b;
  --wz-danger-soft: #fef2f2;
  --wz-danger-line: #f3c4c4;
  --wz-warning: #b45309;
  --wz-warning-soft: #fffbeb;
  --wz-warning-line: #f3d58a;
  --wz-warning-text: #7c4a03;
  --wz-warning-deep: #92400e;
  --wz-info: #1e3a8a;
  --wz-info-soft: #eef2fb;
  --wz-info-line: #c9d6f2;
  --wz-info-track: #d5def3;
  --wz-agency: #1d4ed8;
  --wz-agency-soft: #e8eefc;
  --wz-client-soft: #fdefe6;
  --wz-secondary: #efede7;
  --wz-secondary-hover: #e6e3db;
  --wz-chip-neutral: #e9e7e0;
  --wz-inert: #f1f0eb;
  --wz-inert-text: #a8a59c;
  --wz-track: #e6e3db;
  --wz-disabled-text: #8f8c83;
  --wz-band: #faf9f6;
  --wz-band-line: #ecebe6;
  --wz-ring: #d6d3ca;
  --wz-on-dark-muted: #d6d3ca;
  --wz-highlight: #fde7a8;
  --wz-highlight-text: #5c4400;
  --wz-desk: #e9e7e0;
  --wz-scroll-thumb: #8f8c83;
  --wz-scroll-track: #d6d3ca;
  --wz-backdrop: rgba(29, 28, 26, 0.45);
  --wz-shadow-popup: 0 14px 34px rgba(29, 28, 26, 0.16);
  --wz-shadow-sheet: 0 -10px 30px rgba(29, 28, 26, 0.18);
  --wz-shadow-dialog: 0 20px 50px rgba(29, 28, 26, 0.25);
  --wz-shadow-page: 0 2px 10px rgba(29, 28, 26, 0.12);
  --wz-font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --wz-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wz-font-page: Georgia, "Times New Roman", serif;
  --wz-pill: 999px;
  --wz-gutter: 40px;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--wz-ground);
  color: var(--wz-text);
  font-family: var(--wz-font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
}

/* What Origin's element rules would otherwise put back */
.wz :where(h1, h2, h3, h4, p, ol, ul) {
  margin: 0;
  padding: 0;
  font-family: inherit;
  letter-spacing: inherit;
}
.wz :where(h1, h2, h3, h4) {
  color: inherit;
}
.wz :where(ol) > li {
  padding-left: 0;
  counter-increment: none;
}
.wz :where(ol) > li + li {
  margin-top: 0;
}
.wz :where(ol) > li::before {
  content: none;
}
.wz :where(a) {
  color: var(--wz-accent-strong);
}
.wz :where(a:hover) {
  color: var(--wz-accent-deep);
}
.wz :focus-visible {
  outline: 2px solid var(--wz-text);
  outline-offset: 2px;
}

.wz .wz-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wz .wz-icon {
  display: block;
  flex-shrink: 0;
}
.wz .wz-icon--spin {
  animation: wz-spin 1s linear infinite;
}

.wz .wz-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--wz-pill);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wz .wz-chip--dark {
  background: var(--wz-text-soft);
  color: var(--wz-surface);
}

/* The bars that stay in view while the page scrolls under them: the block at
   the top (the header, with the phone's step strip or the group bar) and the
   footer. Each height is the most its bar takes, and the bars keep their
   content within it. The heights sit on the page's root, whose scroll padding
   stops what the page scrolls into view clear of the bars: a linked question,
   a focused control, and the caret line or the day field Chrome scrolls to in
   a textarea or a date input, which a scroll margin on the control never
   reaches. A control a browser still leaves partly under a bar,
   frontend/browser/keepFocusClearOfBars.ts scrolls clear. */
:root:has(.wz) {
  --wz-header-height: 64px;
  --wz-strip-height: 0px;
  /* Three rows of group titles on two lines at most, as 64em lays out fifteen
     steps, and the line of what is still in analysis. */
  --wz-groupbar-height: 212px;
  /* The row of buttons and a one-line explainer. */
  --wz-footer-height: 96px;
  /* What the footer adds to that: why the action is unavailable, and a group
     step's save status, which wraps under the explainer when they do not fit
     on one line, its Opnieuw proberen a button. */
  --wz-footer-reason-line: 19px;
  --wz-footer-status-line: 25px;
  --wz-footer-reason-height: 0px;
  --wz-footer-status-height: 0px;
  --wz-top-bars-height: calc(var(--wz-header-height) + var(--wz-strip-height));
  --wz-bottom-bar-height: calc(var(--wz-footer-height) + var(--wz-footer-reason-height) + var(--wz-footer-status-height));
  /* 16px, as the day field Chrome scrolls to sits up to 14px inside a date input. */
  --wz-top-clearance: calc(var(--wz-top-bars-height) + 16px);
  --wz-bottom-clearance: calc(var(--wz-bottom-bar-height) + 16px);

  scroll-padding-top: var(--wz-top-clearance);
  scroll-padding-bottom: var(--wz-bottom-clearance);
}
:root:has(.wz .wz-groupbar) {
  --wz-top-bars-height: calc(var(--wz-header-height) + var(--wz-groupbar-height));
}
:root:has(.wz .wz-footer__reason) {
  --wz-footer-reason-height: var(--wz-footer-reason-line);
}
:root:has(.wz .wz-footer__status:not(:empty)) {
  --wz-footer-status-height: var(--wz-footer-status-line);
}
/* A bar's own controls never leave the screen, yet the padding would scroll
   the page by a bar's height each time one takes the focus. Their scroll
   margin moves them, as scrolling sees them, by the clearance into the region
   the padding keeps clear, so the page stays where it is. */
.wz .wz-top * {
  scroll-margin-top: calc(-1 * var(--wz-top-clearance));
  scroll-margin-bottom: var(--wz-top-clearance);
}
.wz .wz-footer * {
  scroll-margin-top: var(--wz-bottom-clearance);
  scroll-margin-bottom: calc(-1 * var(--wz-bottom-clearance));
}

.wz .wz-top {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}

/* Header */
.wz .wz-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--wz-header-height);
  padding: 0 var(--wz-gutter);
  background: var(--wz-surface);
  border-bottom: 1px solid var(--wz-line);
}
.wz .wz-header--internal {
  background: var(--wz-text);
  border-bottom-color: var(--wz-text);
  color: var(--wz-surface);
}
.wz .wz-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.wz .wz-header__logo {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 36px;
  max-width: 160px;
  object-fit: contain;
}
.wz .wz-header__label {
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The recruiter's Voorinvullen leads back to the request it prefills. */
.wz .wz-header__back {
  color: inherit;
  text-decoration: none;
}
.wz .wz-header__back:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.wz .wz-header--internal :focus-visible {
  outline-color: var(--wz-surface);
}
.wz .wz-header__who {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}
.wz .wz-header__company,
.wz .wz-header__contact {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wz .wz-header__company {
  font-weight: 600;
}
.wz .wz-header__contact {
  color: var(--wz-muted);
}
.wz .wz-header--internal .wz-header__contact {
  color: var(--wz-on-dark-muted);
}

/* A staff member previewing the client's link */
.wz .wz-staff-notice {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px var(--wz-gutter);
  background: var(--wz-warning-soft);
  border-bottom: 1px solid var(--wz-warning-line);
  color: var(--wz-warning-text);
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-staff-notice .wz-icon {
  margin-top: 3px;
}

/* Why the agency rejected the dossier, until the client hands it over again (#209) */
.wz .wz-rejection-notice {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px var(--wz-gutter);
  background: var(--wz-warning-soft);
  border-bottom: 1px solid var(--wz-warning-line);
  color: var(--wz-warning-text);
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-rejection-notice .wz-icon {
  margin-top: 3px;
}
.wz .wz-rejection-notice__reason {
  white-space: pre-line;
}

/* Segmented bars: the phone stepper and the phone group bar */
.wz .wz-segments {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 3px;
}
.wz .wz-segment {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--wz-track);
}
.wz .wz-segment--success {
  background: var(--wz-success);
}
.wz .wz-segment--accent {
  background: var(--wz-accent);
}
.wz .wz-segment--busy {
  background: var(--wz-line-strong);
}
.wz .wz-segment--danger {
  background: var(--wz-danger);
}

.wz .wz-phone-steps {
  flex-shrink: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px var(--wz-gutter);
  background: var(--wz-surface);
  border-bottom: 1px solid var(--wz-line);
}
.wz .wz-phone-steps__label {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Group bar */
.wz .wz-groupbar {
  flex-shrink: 0;
}
.wz .wz-groupbar__nav {
  padding: 12px var(--wz-gutter) 10px;
  background: var(--wz-surface);
  border-bottom: 1px solid var(--wz-line);
}
/* 148px holds the longest title word, "Onkostenvergoedingen" in bold as the
   current step, beside its mark, so no title breaks inside a word. */
.wz .wz-groupbar__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px 6px;
  list-style: none;
}
.wz .wz-groupbar__item {
  min-width: 0;
}
.wz .wz-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--wz-subtle);
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
}
.wz .wz-group:hover {
  color: var(--wz-text);
}
.wz .wz-group:hover .wz-group__title {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wz .wz-group__bar {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--wz-track);
}
/* The mark sits inline rather than in a column of its own, so a title word too
   long for the space beside it moves to a full-width line instead of breaking
   where no hyphenation dictionary is at hand. Two lines at most, so the bar
   keeps its height. */
.wz .wz-group__label {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.wz .wz-group__mark {
  display: inline-flex;
  align-items: center;
  min-width: 14px;
  height: 1.3em;
  margin-right: 5px;
  vertical-align: top;
}
.wz .wz-group__number {
  font-family: var(--wz-font-mono);
  font-size: 12px;
}
.wz .wz-group__title {
  overflow-wrap: break-word;
  hyphens: auto;
}
.wz .wz-group--ready {
  color: var(--wz-text);
}
.wz .wz-group--ready .wz-group__bar {
  background: var(--wz-success);
}
.wz .wz-group--ready .wz-group__mark {
  color: var(--wz-success);
}
.wz .wz-group--analysing {
  color: var(--wz-muted);
}
.wz .wz-group--analysing .wz-group__bar {
  background: var(--wz-line-strong);
}
.wz .wz-group--queued .wz-group__mark {
  color: var(--wz-disabled-text);
}
.wz .wz-group--failed {
  color: var(--wz-text);
}
.wz .wz-group--failed .wz-group__bar {
  background: var(--wz-danger);
}
.wz .wz-group--failed .wz-group__mark {
  color: var(--wz-danger);
}
.wz .wz-group--current {
  color: var(--wz-text);
  font-weight: 600;
}
.wz .wz-group--current .wz-group__bar {
  background: var(--wz-accent);
}
.wz .wz-group--current .wz-group__mark {
  color: var(--wz-text);
}
.wz .wz-group--current.wz-group--failed .wz-group__mark {
  color: var(--wz-danger);
}

.wz .wz-groupbar__status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px var(--wz-gutter);
  background: var(--wz-band);
  border-bottom: 1px solid var(--wz-band-line);
  color: var(--wz-muted);
  font-size: 13px;
}
.wz .wz-groupbar__status strong {
  color: var(--wz-text);
  font-weight: 600;
}
.wz .wz-groupbar__summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wz .wz-meter {
  flex-shrink: 0;
  width: 220px;
  height: 6px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 3px;
  background: var(--wz-track);
}
.wz .wz-meter__fill {
  height: 100%;
  background: var(--wz-muted);
}
.wz .wz-groupbar__percent {
  font-family: var(--wz-font-mono);
  font-size: 12px;
}

.wz .wz-groupbar__compact {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px var(--wz-gutter) 10px;
  background: var(--wz-surface);
  border-bottom: 1px solid var(--wz-line);
}
.wz .wz-groupbar__position {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.wz .wz-groupbar__current {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wz .wz-groupbar__step {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--wz-muted);
}
/* One line, its icon before the first word, cut short rather than wrapped. */
.wz .wz-groupbar__remaining {
  overflow: hidden;
  color: var(--wz-muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wz .wz-groupbar__remaining > .wz-icon {
  display: inline-block;
  margin-right: 6px;
  vertical-align: -1px;
}

/* Main column */
.wz .wz-main {
  flex: 1 0 auto;
  padding: 40px var(--wz-gutter) 24px;
}
.wz .wz-main--wide {
  padding-bottom: 32px;
}
.wz .wz-main--group {
  padding-top: 24px;
  padding-bottom: 20px;
}
.wz .wz-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.wz .wz-main--wide .wz-column {
  max-width: 900px;
}

.wz .wz-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wz .wz-eyebrow {
  color: var(--wz-subtle);
  font-family: var(--wz-font-mono);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wz .wz-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.wz .wz-lead {
  max-width: 660px;
  color: var(--wz-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* Footer */
.wz .wz-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  flex-shrink: 0;
  padding: 14px var(--wz-gutter) 12px;
  background: var(--wz-surface);
  border-top: 1px solid var(--wz-line);
}
.wz .wz-footer__row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wz .wz-footer__spacer {
  flex-shrink: 0;
  width: 110px;
}
.wz .wz-footer__reason,
.wz .wz-footer__explainer {
  margin-top: 8px;
  color: var(--wz-subtle);
  font-size: 13px;
  line-height: 1.3;
}
.wz .wz-footer__reason + .wz-footer__explainer {
  margin-top: 2px;
}

/* A group step's save status, at the end of the explainer's line, under the
   action that waits for it. Empty, it takes no room. */
.wz .wz-footer__notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
}
.wz .wz-footer__status {
  margin-left: auto;
  font-size: 13px;
  line-height: 1.3;
}
.wz .wz-footer__status:not(:empty) {
  margin-top: 8px;
}
.wz .wz-footer__reason + .wz-footer__notes > :is(.wz-footer__explainer, .wz-footer__status:not(:empty)) {
  margin-top: 2px;
}
.wz .wz-save-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--wz-muted);
}
.wz .wz-save-status > .wz-icon {
  flex-shrink: 0;
}
/* Saved stands out as a green pill (#270); the negative margin keeps the
   footer from growing when it replaces "Opslaan…". */
.wz .wz-save-status--saved {
  margin-block: -3px;
  padding: 2px 10px 2px 8px;
  border: 1px solid var(--wz-success-line);
  border-radius: 999px;
  background: var(--wz-success-tint);
  color: var(--wz-success-strong);
  font-weight: 600;
}
.wz .wz-save-status--saved > .wz-icon {
  color: var(--wz-success);
}
.wz .wz-save-status--failed,
.wz .wz-save-status--expired,
.wz .wz-save-status--refused,
.wz .wz-save-status--declined {
  color: var(--wz-danger);
  font-weight: 500;
}
.wz .wz-save-status__retry {
  min-height: 24px;
  margin: 0 0 0 4px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--wz-accent-strong);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.wz .wz-save-status__retry:hover {
  color: var(--wz-accent-deep);
}

.wz .wz-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 18px 0 22px;
  border: 0;
  border-radius: var(--wz-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.wz .wz-btn--primary {
  background: var(--wz-accent);
  color: var(--wz-surface);
}
.wz .wz-btn--primary:hover {
  background: var(--wz-accent-strong);
  color: var(--wz-surface);
}
.wz .wz-btn--back {
  gap: 6px;
  padding: 0 18px 0 12px;
  background: var(--wz-secondary);
  color: var(--wz-text);
  font-size: 14px;
  font-weight: 500;
}
.wz .wz-btn--back:hover {
  background: var(--wz-secondary-hover);
  color: var(--wz-text);
}
.wz .wz-btn--secondary {
  padding: 0 22px;
  background: var(--wz-secondary);
  color: var(--wz-text);
}
.wz .wz-btn--secondary:hover {
  background: var(--wz-secondary-hover);
  color: var(--wz-text);
}
.wz .wz-btn:disabled {
  cursor: default;
}
.wz .wz-btn--primary:disabled {
  background: var(--wz-track);
  color: var(--wz-disabled-text);
}
.wz .wz-btn--back:disabled {
  background: var(--wz-inert);
  color: var(--wz-inert-text);
}
.wz .wz-footer .wz-btn--primary {
  flex-shrink: 1;
  min-width: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}
.wz .wz-btn__label--short {
  display: none;
}

/* Stepper */
.wz .wz-stepper {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
}
.wz .wz-step {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--wz-pill);
  color: var(--wz-subtle);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.wz .wz-step__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--wz-line-strong);
  border-radius: 50%;
  font-size: 12px;
}
.wz .wz-step--done {
  color: var(--wz-muted);
}
.wz .wz-step--done .wz-step__mark {
  border-color: transparent;
  background: var(--wz-success-soft);
  color: var(--wz-success);
}
.wz .wz-step--failed {
  color: var(--wz-muted);
}
.wz .wz-step--failed .wz-step__mark {
  border-color: transparent;
  background: var(--wz-danger-soft);
  color: var(--wz-danger);
}
.wz a.wz-step--done:hover,
.wz a.wz-step--failed:hover,
.wz a.wz-step--upcoming:hover {
  background: var(--wz-secondary);
  color: var(--wz-text);
}
.wz .wz-step--current {
  padding: 0 14px 0 7px;
  background: var(--wz-text);
  color: var(--wz-surface);
  font-weight: 600;
}
.wz .wz-step--current .wz-step__mark {
  border-color: transparent;
  background: var(--wz-surface);
  color: var(--wz-text);
}

.wz .wz-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--wz-accent);
  cursor: pointer;
}

.wz .wz-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--wz-line-strong);
  border-radius: 10px;
  background: var(--wz-surface);
  color: var(--wz-subtle);
}
.wz .wz-search:focus-within {
  outline: 2px solid var(--wz-text);
  outline-offset: 2px;
}
.wz .wz-search__input {
  flex-grow: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--wz-text);
  font-family: inherit;
  font-size: 15px;
}
.wz .wz-search__input:focus-visible {
  outline: none;
}
.wz .wz-search__input::placeholder {
  color: var(--wz-subtle);
  opacity: 1;
}
.wz .wz-cao-others__status {
  padding: 2px 10px 6px;
  color: var(--wz-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* The client's first step (#245, Vincent's mockup): the upload and the
   optional CAO, each in a panel with its chip. */
.wz .wz-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--wz-line);
  border-radius: 14px;
  background: var(--wz-surface);
}
.wz .wz-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wz .wz-panel__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.wz .wz-panel__lead,
.wz .wz-panel__hint {
  color: var(--wz-muted);
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-panel__hint {
  font-size: 13px;
}
.wz .wz-chip--recommended {
  background: var(--wz-accent-tint);
  color: var(--wz-accent-strong);
  font-weight: 600;
}
.wz .wz-chip--optional {
  background: var(--wz-secondary);
  color: var(--wz-text-soft);
}
.wz .wz-chip--in-force {
  background: var(--wz-success-soft);
  color: var(--wz-success-strong);
  font-weight: 600;
}
.wz .wz-cao-series {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wz .wz-cao-series__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--wz-line);
  border-radius: 12px;
}
.wz .wz-cao-series__item:has(.wz-radio:checked) {
  border-color: var(--wz-accent);
  background: var(--wz-accent-soft);
}
.wz .wz-cao-series__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.wz .wz-cao-series__row .wz-radio {
  width: 18px;
  height: 18px;
}
.wz .wz-cao-series__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wz .wz-cao-series__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.wz .wz-cao-series__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.wz .wz-cao-series__details {
  color: var(--wz-muted);
  font-size: 13px;
  line-height: 1.5;
}
.wz .wz-link-button.wz-cao-series__toggle {
  align-self: flex-start;
  margin-left: 30px;
  font-size: 13px;
}
.wz .wz-cao-series__older {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 30px;
}
.wz .wz-conditions-summary {
  padding: 12px 16px;
  border: 1px solid var(--wz-line);
  border-radius: 12px;
  background: var(--wz-surface);
  font-size: 14px;
  line-height: 1.5;
}

/* The "Gekozen CAO" card of the prefill check. */
.wz .wz-cao-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--wz-line);
  border-radius: 12px;
  background: var(--wz-surface);
}
.wz .wz-cao-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--wz-secondary);
  color: var(--wz-muted);
}
.wz .wz-cao-card__text {
  flex: 1 1 14em;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wz .wz-cao-card__label {
  color: var(--wz-subtle);
  font-size: 12px;
  line-height: 1.4;
}
.wz .wz-cao-card__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* The prefill check (spec §4.9), in the vocabulary of board 02's file list and
   of board 06's decision box. */
.wz .wz-prefill-files {
  overflow: hidden;
  border: 1px solid var(--wz-line);
  border-radius: 14px;
  background: var(--wz-surface);
}
.wz .wz-prefill-files__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--wz-secondary);
  background: var(--wz-band);
  color: var(--wz-muted);
  font-size: 13px;
  line-height: 1.4;
}
.wz .wz-prefill-files__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.wz .wz-prefill-files__list {
  list-style: none;
}
.wz .wz-prefill-file {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--wz-secondary);
  font-size: 14px;
  line-height: 1.4;
}
.wz .wz-prefill-file:last-child {
  border-bottom: 0;
}
.wz .wz-prefill-file__name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wz .wz-file-type {
  flex-shrink: 0;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--wz-secondary);
  color: var(--wz-muted);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.wz .wz-prefill-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 26px;
  border: 2px solid var(--wz-text);
  border-radius: 16px;
  background: var(--wz-surface);
}
.wz .wz-prefill-check__question {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.wz .wz-prefill-check__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.wz .wz-prefill-check__actions > form {
  display: flex;
}
.wz .wz-prefill-check .wz-btn {
  min-height: 48px;
}

.wz .wz-btn--ghost {
  padding: 0 16px;
  background: transparent;
  color: var(--wz-text);
  font-size: 14px;
  font-weight: 500;
}
.wz .wz-btn--ghost:hover {
  background: var(--wz-secondary);
  color: var(--wz-text);
}
.wz .wz-btn--ghost:disabled {
  background: transparent;
  color: var(--wz-disabled-text);
}
.wz .wz-link-button {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--wz-accent-strong);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}
.wz .wz-link-button:hover {
  color: var(--wz-accent-deep);
}
.wz .wz-link-button:disabled {
  color: var(--wz-disabled-text);
  text-decoration: none;
  cursor: default;
}
.wz .wz-lead .wz-link-button {
  font-weight: inherit;
}

.wz .wz-lead--short {
  display: none;
}

.wz .wz-hints {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.wz .wz-hints__label {
  flex-shrink: 0;
  color: var(--wz-subtle);
}
.wz .wz-hints__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 4px;
  list-style: none;
  color: var(--wz-muted);
}
.wz .wz-hint {
  white-space: nowrap;
}
/* Trailing, so the item that wraps to a new row never starts with a separator. */
.wz .wz-hint:not(:last-child)::after {
  content: ",";
}

/* Its children are laid out as the column's own, with the column's gaps. */
.wz .wz-documents-form {
  display: contents;
}
.wz .wz-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wz .wz-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 144px;
  padding: 16px;
  border: 2px dashed var(--wz-line-dashed);
  border-radius: 14px;
  background: var(--wz-surface);
  text-align: center;
  cursor: pointer;
}
.wz .wz-dropzone:not(.wz-dropzone--disabled):hover,
.wz .wz-dropzone--over {
  border-color: var(--wz-accent);
}
.wz .wz-dropzone--over {
  background: var(--wz-accent-soft);
}
.wz .wz-dropzone--over .wz-dropzone__icon {
  background: var(--wz-surface);
}
.wz .wz-dropzone:has(.wz-dropzone__input:focus-visible) {
  outline: 2px solid var(--wz-text);
  outline-offset: 2px;
}
.wz .wz-dropzone--disabled {
  border-color: var(--wz-line-dashed);
  cursor: default;
  opacity: 0.6;
}
.wz .wz-dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.wz .wz-dropzone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wz-accent-soft);
  color: var(--wz-accent);
}
.wz .wz-dropzone__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.wz .wz-dropzone__hint,
.wz .wz-dropzone__phone-hint {
  color: var(--wz-subtle);
  font-size: 13px;
  line-height: 1.4;
}
.wz .wz-dropzone__title--phone,
.wz .wz-dropzone__phone-hint {
  display: none;
}

.wz .wz-upload-errors {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wz .wz-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--wz-danger);
  font-size: 13px;
  line-height: 1.45;
}
.wz .wz-error .wz-icon {
  margin-top: 2px;
}
.wz .wz-error__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wz .wz-files {
  overflow: hidden;
  border: 1px solid var(--wz-line);
  border-radius: 14px;
  background: var(--wz-surface);
}
.wz .wz-files__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--wz-secondary);
  background: var(--wz-band);
  color: var(--wz-muted);
  font-size: 13px;
  line-height: 1.4;
}
.wz .wz-files__title {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
.wz .wz-files__list {
  list-style: none;
}
.wz .wz-files__empty {
  padding: 16px;
  color: var(--wz-subtle);
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-file {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 4px 6px 4px 16px;
  border-bottom: 1px solid var(--wz-secondary);
}
.wz .wz-file:last-child {
  border-bottom: 0;
}
/* The name with its state beside it; a progress bar or an error goes under both. */
.wz .wz-file__main {
  flex-grow: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name status"
    "detail detail";
  align-items: center;
  column-gap: 12px;
  min-width: 0;
}
.wz .wz-file__name {
  grid-area: name;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.wz .wz-file__status {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--wz-subtle);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
.wz .wz-file--uploading .wz-file__status {
  font-family: var(--wz-font-mono);
  font-size: 12px;
}
.wz .wz-file--uploaded .wz-file__status {
  color: var(--wz-success);
  font-weight: 500;
}
.wz .wz-file__progress {
  grid-area: detail;
  display: block;
  height: 4px;
  margin: 6px 0 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--wz-track);
}
.wz .wz-file__progress-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--wz-accent);
  transition: width 0.2s ease;
}
.wz .wz-file__error {
  grid-area: detail;
  margin: 2px 0 4px;
}
.wz .wz-file__remove-form {
  flex-shrink: 0;
  display: flex;
}
.wz .wz-file__remove {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wz-subtle);
  cursor: pointer;
}
.wz .wz-file__remove:hover {
  background: var(--wz-secondary);
  color: var(--wz-text);
}
.wz .wz-file__remove:disabled {
  background: transparent;
  color: var(--wz-inert-text);
  cursor: default;
}

.wz .wz-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--wz-secondary);
  color: var(--wz-text-soft);
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-note .wz-icon {
  margin-top: 2px;
}

/* 03 Analyse (boards 03, M3) */
.wz .wz-analysis {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wz .wz-analysis .wz-lead {
  max-width: 680px;
}
.wz.wz--embedded {
  min-height: 0;
  margin: 16px 0;
  background: none;
}
.wz .wz-run-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wz .wz-run-progress__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.wz .wz-run-progress__groups {
  color: var(--wz-muted);
  font-size: 14px;
}
.wz .wz-progress {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--wz-line);
  border-radius: 16px;
  background: var(--wz-surface);
}
.wz .wz-progress__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.wz .wz-progress__percent {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.wz .wz-progress__eta {
  color: var(--wz-muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
}
.wz .wz-progress__bar {
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--wz-secondary);
}
.wz .wz-progress__fill {
  height: 100%;
  border-radius: 6px;
  background: var(--wz-accent);
  transition: width 0.25s ease;
}
.wz .wz-phases {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}
.wz .wz-phase {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  font-size: 14px;
  line-height: 1.4;
}
.wz .wz-phase--pending {
  color: var(--wz-subtle);
}
.wz .wz-phase__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.wz .wz-phase--done .wz-phase__mark {
  background: var(--wz-success-soft);
  color: var(--wz-success);
}
.wz .wz-phase--active .wz-phase__mark {
  color: var(--wz-accent);
}
.wz .wz-phase__ring {
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 2px solid var(--wz-ring);
  border-radius: 50%;
}
.wz .wz-phase__label {
  flex-grow: 1;
  min-width: 0;
}
.wz .wz-phase--active .wz-phase__label {
  font-weight: 600;
}
.wz .wz-phase__detail {
  flex-shrink: 0;
  color: var(--wz-subtle);
  font-size: 13px;
}
.wz .wz-progress__documents {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--wz-secondary);
}
.wz .wz-progress__documents-title {
  color: var(--wz-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.wz .wz-doc-progress-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.wz .wz-doc-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px 150px;
  align-items: center;
  gap: 16px;
  min-height: 28px;
  font-size: 14px;
  line-height: 1.4;
}
.wz .wz-doc-progress__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wz .wz-doc-progress__bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--wz-secondary);
}
.wz .wz-doc-progress__fill {
  display: block;
  width: 0;
  height: 100%;
}
/* The server reports no percentage per document, so an analysing one sweeps. */
.wz .wz-doc-progress--analysing .wz-doc-progress__fill {
  width: 40%;
  border-radius: 3px;
  background: var(--wz-accent);
  animation: wz-sweep 1.6s ease-in-out infinite;
}
.wz .wz-doc-progress--ready .wz-doc-progress__fill {
  width: 100%;
  background: var(--wz-success);
}
.wz .wz-doc-progress__state {
  color: var(--wz-muted);
  font-size: 13px;
  text-align: right;
}

/* The box under the panel once group 1 is in, or could not be analysed */
.wz .wz-outcome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid;
  border-radius: 14px;
}
.wz .wz-outcome__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--wz-surface);
}
.wz .wz-outcome__text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
}
.wz .wz-outcome__title {
  font-size: 15px;
  font-weight: 600;
}
.wz .wz-outcome--ready {
  border-color: var(--wz-success-line);
  background: var(--wz-success-tint);
  color: var(--wz-success-text);
}
.wz .wz-outcome--ready .wz-outcome__icon {
  background: var(--wz-success);
}
.wz .wz-outcome--ready .wz-outcome__title {
  color: var(--wz-success-strong);
}
.wz .wz-outcome--warning {
  border-color: var(--wz-warning-line);
  background: var(--wz-warning-soft);
  color: var(--wz-warning-text);
}
.wz .wz-outcome--warning .wz-outcome__icon {
  background: var(--wz-warning);
}

/* 04 Onderdeel (boards 04, 04c, M4): a row per question, label and author on
   the left, the answer in the middle and its sources on the right. A table
   takes the row's whole width under its label. */
.wz .wz-group-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wz .wz-heading--group {
  gap: 8px;
}
.wz .wz-group-step__intro {
  color: var(--wz-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* The 04c box: red once it counts an error, amber when it counts warnings alone, in the colours of .wz-alert and .wz-caution. */
.wz .wz-issues {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-issues > .wz-icon {
  margin-top: 2px;
}
.wz .wz-issues strong {
  color: inherit;
  font-weight: 700;
}
.wz .wz-issues--error {
  border-color: var(--wz-danger-line);
  background: var(--wz-danger-soft);
  color: var(--wz-danger-strong);
}
.wz .wz-issues--error > .wz-icon {
  color: var(--wz-danger);
}
.wz .wz-issues--warning {
  border-color: var(--wz-warning-line);
  background: var(--wz-warning-soft);
  color: var(--wz-warning-text);
}

.wz .wz-questions {
  padding: 4px 20px;
  border: 1px solid var(--wz-line);
  border-radius: 14px;
  background: var(--wz-surface);
}
.wz .wz-questions > * + *,
.wz .wz-family .answer-family__member + .answer-family__member {
  border-top: 1px solid var(--wz-divider);
}
.wz .wz-question {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 190px;
  grid-template-areas: "head answer sources";
  gap: 10px 16px;
  align-items: start;
  padding: 14px 0;
}
.wz .wz-question[hidden] {
  display: none;
}
.wz .wz-question--table {
  grid-template-areas:
    "head head sources"
    "answer answer answer";
}
.wz .wz-question__head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-top: 3px;
}
.wz .wz-question__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.wz .wz-author {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--wz-muted);
  font-size: 12px;
  line-height: 1.4;
}
.wz .wz-question__nvt {
  color: var(--wz-muted);
  font-size: 12px;
  line-height: 1.4;
}
.wz .wz-question__worked-out {
  margin: 6px 0 0;
  color: var(--wz-muted);
  font-size: 12px;
  line-height: 1.4;
}
.wz .wz-author--ai .wz-icon {
  color: var(--wz-text-soft);
}
/* The reader's own change: the client's on their steps, the recruiter's on theirs (board I4). */
.wz :is(.wz-author--client, .wz-author--own) {
  color: var(--wz-accent-strong);
}
.wz :is(.wz-author--client, .wz-author--own) .wz-icon {
  color: var(--wz-accent);
}
.wz .wz-author--agency {
  color: var(--wz-info);
}
.wz .wz-author--agency .wz-icon {
  color: var(--wz-agency);
}
/* A recruiter's toelichting steered it (D31), so it reads as the agency's doing. */
.wz .wz-author--reasked {
  color: var(--wz-info);
}
.wz .wz-author--reasked .wz-icon {
  color: var(--wz-agency);
}
/* A fieldset, so that feedback mode and a re-ask can lock what it holds. */
.wz .wz-question__answer {
  grid-area: answer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.wz .wz-question--table .wz-question__answer {
  gap: 8px;
}
.wz .wz-question__unit-pair {
  display: flex;
  gap: 8px;
}
.wz .wz-question__unit-pair > * {
  flex: 1 1 0;
  min-width: 0;
}

/* A single control, past Origin's 312px wrapper and its icon font chevron. */
.wz .wz-question--single :is(.input__text, .input__date, .input__select) {
  max-width: none;
}
.wz .wz-question--single .input__select::after {
  content: none;
}
.wz .wz-question--single .wz-question__answer :is(input, textarea, select) {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--wz-line-strong);
  border-radius: 8px;
  background-color: var(--wz-surface);
  color: var(--wz-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}
/* A text wraps where an input would cut a sentence off (board 04), and grows
   with it where the browser sizes a field to its text; elsewhere its rows
   follow the text's length. One line stands as high as the inputs. */
.wz .wz-question--single .wz-question__answer textarea {
  field-sizing: content;
  height: auto;
  min-height: 44px;
  padding-block: 10px;
  line-height: 22px;
  resize: none;
}
.wz .wz-group-step select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%208'%3E%3Cpath%20d='M1%201.5l5%205%205-5'%20fill='none'%20stroke='%2355534d'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.wz .wz-question--single.wz-question--error .wz-question__answer :is(input, textarea, select),
.wz .wz-question__answer .cell-control[aria-invalid="true"] {
  border-color: var(--wz-danger);
  box-shadow: 0 0 0 1px var(--wz-danger);
}
.wz .wz-question--single.wz-question--warning .wz-question__answer :is(input, textarea, select) {
  border-color: var(--wz-warning);
  background-color: var(--wz-warning-soft);
}
.wz .wz-question__answer .question-item__caption {
  margin: 0;
  color: var(--wz-muted);
  font-size: 12px;
  line-height: 1.4;
}

.wz .wz-messages {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wz .wz-message {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
}
.wz .wz-message > .wz-icon {
  margin-top: 1px;
}
.wz .wz-message--error {
  color: var(--wz-danger);
}
.wz .wz-message--warning {
  color: var(--wz-warning-deep);
}
.wz .wz-message--restored {
  color: var(--wz-text-soft);
}
.wz .wz-message--conflict {
  color: var(--wz-danger);
  font-weight: 500;
}

/* One pill per document, its name and then its pages as text: the stacked
   popup lists the passages, so a page needs no button of its own (Toby, answer
   5 on #51). */
.wz .wz-question__sources {
  grid-area: sources;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
  padding-top: 5px;
}
.wz .wz-source {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 0 12px 0 10px;
  border: 1px solid var(--wz-line-strong);
  border-radius: var(--wz-pill);
  background: var(--wz-surface);
  color: var(--wz-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.wz .wz-source:hover {
  border-color: var(--wz-text);
}
.wz .wz-source__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wz .wz-source__pages {
  flex-shrink: 0;
  color: var(--wz-muted);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.wz .wz-sources__none {
  padding-top: 6px;
  color: var(--wz-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}
.wz .wz-source--open {
  border-color: var(--wz-text);
}

/* An answer's sources stacked in one popup (board 04a): below its badges where
   the column leaves no room beside the card, beside the card from 80em, and a
   bottom sheet on a phone (M4a). Only the open question's column anchors it, so
   every other row paints exactly as it did.

   Beside its question the popup is page content, so it scrolls under the bars
   (z-index 20) rather than over them, where it would hide the footer's action.
   It is no taller than the room between them, its sources scrolling inside it,
   and useAnswerSources scrolls the page to bring it into that room. */
.wz .wz-question__sources--open {
  position: relative;
}
.wz .wz-sources {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  width: 350px;
  max-width: calc(100vw - 2 * var(--wz-gutter));
  text-align: left;
}
.wz .wz-sources__panel {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: calc(100dvh - var(--wz-top-clearance) - var(--wz-bottom-clearance));
  border: 1px solid var(--wz-line-strong);
  border-radius: 14px;
  background: var(--wz-surface);
  box-shadow: var(--wz-shadow-popup);
}
.wz .wz-sources__handle {
  display: none;
}
.wz .wz-sources__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-bottom: 1px solid var(--wz-divider);
}
.wz .wz-sources__heading {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
/* The popup sits beside its question; only the sheet, covering the page, names it. */
.wz .wz-sources__question {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wz .wz-sources__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.wz .wz-sources__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wz-muted);
  cursor: pointer;
}
.wz .wz-sources__close:hover {
  background: var(--wz-secondary);
  color: var(--wz-text);
}
.wz .wz-sources__status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  color: var(--wz-muted);
  font-size: 13px;
  line-height: 1.45;
}
.wz .wz-sources__status > .wz-icon {
  margin-top: 2px;
}
.wz .wz-sources__status--failed {
  color: var(--wz-danger);
}
.wz .wz-sources__retry {
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--wz-accent-strong);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.wz .wz-sources__retry:hover {
  color: var(--wz-accent-deep);
}
.wz .wz-sources__list {
  display: flex;
  flex-direction: column;
  list-style: none;
}
.wz .wz-source-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--wz-row-line);
}
.wz .wz-source-entry__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wz .wz-source-entry__caption {
  display: flex;
  gap: 0.3em;
  min-width: 0;
  color: var(--wz-text-soft);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.wz .wz-source-entry__document {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wz .wz-source-entry__page {
  flex-shrink: 0;
}
.wz .wz-source-entry--selected .wz-source-entry__caption {
  font-weight: 600;
}
.wz .wz-source-entry__open {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  font-weight: 500;
}
.wz .wz-source-entry__note {
  color: var(--wz-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* The box is a window onto the passage and the lines around it, and scrolls
   over them, sideways too, so nothing highlighted is out of reach (#169).
   sourceCrop.ts sizes each region as a share of the box's width, so the box is
   as tall as its regions, up to the cap, before any raster has loaded. */
.wz .wz-source-crop,
.wz .wz-source-quote {
  position: relative;
  box-sizing: border-box;
  overflow: auto;
  max-height: 256px;
  margin: 0;
  border: 1px solid var(--wz-ring);
  border-radius: 4px;
  background: var(--wz-surface);
}
.wz .wz-source-entry--selected :is(.wz-source-crop, .wz-source-quote) {
  border-color: var(--wz-accent);
}
.wz .wz-source-crop__region {
  position: relative;
  overflow: hidden;
}
.wz .wz-source-crop__page {
  position: absolute;
  top: 0;
  left: 0;
}
.wz .wz-source-crop__raster {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
}
.wz .wz-source-crop__passage {
  position: absolute;
  background: var(--wz-highlight);
  mix-blend-mode: multiply;
}
.wz .wz-source-crop__continued {
  position: sticky;
  left: 0;
  padding: 3px 10px;
  border-block: 1px solid var(--wz-ring);
  background: var(--wz-secondary);
  color: var(--wz-muted);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  line-height: 1.4;
}
.wz .wz-source-quote {
  display: flex;
  min-height: 104px;
  padding: 10px 18px;
}
/* Auto margins centre a short quote, and a long one starts at the box's top, where flex centring would cut it off. */
.wz .wz-source-quote__text {
  margin-block: auto;
  color: var(--wz-text-soft);
  font-family: var(--wz-font-page);
  font-size: 12px;
  line-height: 1.55;
}
.wz .wz-source-quote mark {
  padding: 1px 2px;
  background: var(--wz-highlight);
  color: var(--wz-text);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.wz .wz-sources__footer {
  display: flex;
  justify-content: flex-end;
  padding: 6px 14px 8px;
}
.wz .wz-sources__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 500;
}
.wz .wz-sources__more--all {
  font-weight: 600;
}

/* Tables and cards, in the canvas's look: bordered inputs under mono column
   names, as board 05 draws its table. */
.wz .wz-question__answer .answer-table__scroll {
  overflow-x: auto;
  border: 1px solid var(--wz-line);
  border-radius: 12px;
  background: var(--wz-surface);
}
.wz .wz-question__answer .answer-table {
  border: 0;
  border-collapse: collapse;
  font-size: 14px;
}
.wz .wz-question__answer .answer-table th {
  padding: 10px 6px;
  border-bottom: 1px solid var(--wz-divider);
  background: var(--wz-band);
  color: var(--wz-muted);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wz .wz-question__answer .answer-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--wz-divider);
  vertical-align: middle;
}
.wz .wz-question__answer .answer-table :is(th, td):first-child {
  padding-left: 12px;
}
.wz .wz-question__answer .answer-table :is(th, td):last-child {
  padding-right: 12px;
}
.wz .wz-question__answer .answer-table tbody tr:last-child td {
  border-bottom: 0;
}
.wz .wz-question__answer .answer-table.table-striped tbody tr:nth-child(even) {
  background-color: transparent;
}
/* A toelichting or voorwaarde reads in full under its row, which it belongs to
   rather than follows. */
.wz .wz-question__answer .answer-table tr:has(+ .answer-table__wide-row) td {
  border-bottom: 0;
}
.wz .wz-question__answer .answer-table__wide-row td {
  padding-top: 0;
}
.wz .wz-question__answer .answer-table__wide-field {
  gap: 4px;
}
.wz .wz-question__answer .answer-table__wide-field + .answer-table__wide-field {
  margin-top: 8px;
}
.wz .wz-question__answer .answer-table__wide-label {
  color: var(--wz-muted);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* A width of its own would widen the grid's columns to the text's length. */
.wz .wz-question__answer .answer-table__wide-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--wz-line-strong);
  border-radius: 8px;
  background-color: var(--wz-surface);
  color: var(--wz-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  field-sizing: content;
  resize: none;
}
.wz .wz-question__answer .answer-table__wide-field textarea[aria-invalid="true"] {
  border-color: var(--wz-danger);
  box-shadow: 0 0 0 1px var(--wz-danger);
}
.wz .wz-question__answer .answer-table__required,
.wz .wz-question__answer .answer-card__required {
  color: var(--wz-accent);
}
.wz .wz-question__answer .cell-control {
  box-sizing: border-box;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--wz-line-strong);
  border-radius: 8px;
  background-color: var(--wz-surface);
  color: var(--wz-text);
  font-family: inherit;
  font-size: 14px;
  line-height: normal;
}
.wz .wz-question__answer select.cell-control {
  padding-right: 30px;
  background-position: right 10px center;
}
/* A text cell grows with its lines (#170); one line stands as high as the inputs. */
.wz .wz-question__answer textarea.cell-control {
  height: auto;
  min-height: 38px;
  padding-block: 8px;
  line-height: 20px;
}
.wz .wz-question__answer .answer-amount {
  gap: 6px;
}
.wz .wz-question__answer .answer-table__add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px dashed var(--wz-line-dashed);
  border-radius: 8px;
  background: transparent;
  color: var(--wz-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
}
.wz .wz-question__answer .answer-table__add:hover {
  border-color: var(--wz-text);
  background: transparent;
}
.wz .wz-question__answer > .answer-table__add {
  align-self: flex-start;
}
.wz .wz-question__answer .answer-table__scroll + .answer-table__add {
  margin-top: 8px;
}
.wz .wz-question__answer .answer-table__remove {
  width: 44px;
}
.wz .wz-question__answer :is(.answer-table__remove-btn, .answer-card__remove) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--wz-pill);
  background: transparent;
  color: var(--wz-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.wz .wz-question__answer :is(.answer-table__remove-btn, .answer-card__remove):hover {
  background: var(--wz-secondary);
  color: var(--wz-text);
}

/* #204: a start date the server filled in with the CAO's Looptijd van, muted
   beside its badge until the table is saved, and the legend under the table. */
.wz .wz-question__answer .wz-defaulted-cell {
  white-space: nowrap;
}
/* The grid stretches each control across its column: this one leaves room for the badge. */
.wz .wz-question__answer .wz-defaulted-cell .cell-control {
  min-width: calc(100% - 28px);
  background-color: var(--wz-ground);
  color: var(--wz-subtle);
}
.wz .wz-question__answer :is(.wz-defaulted-cell, .wz-defaults) .wz-author-badge {
  width: 20px;
  height: 20px;
}
.wz .wz-question__answer .wz-defaulted-cell .wz-author-badge {
  vertical-align: middle;
}
.wz .wz-defaults {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.wz .wz-defaults__legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--wz-muted);
  font-size: 13px;
  line-height: 1.4;
}
.wz .wz-defaults__accept {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--wz-line-strong);
  font-size: 13px;
}

/* #217: the statutory minimum wage the push stands in for an empty Salarisschalen table. */
.wz .wage-default {
  display: grid;
  gap: 4px;
  color: var(--wz-muted);
  font-size: 13px;
  line-height: 1.4;
}
.wz .wage-default__legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.wz .wage-default__text {
  margin: 0;
}
.wz .wage-default .wz-author-badge {
  width: 20px;
  height: 20px;
}

.wz .wz-family .answer-family {
  margin: 0;
  padding: 0;
  border: 0;
}
.wz .wz-family .answer-family__member + .answer-family__member {
  margin-top: 0;
}
.wz .wz-question__answer .answer-card {
  padding: 12px 14px;
  border: 1px solid var(--wz-line);
  border-radius: 12px;
  background: var(--wz-surface);
}
.wz .wz-question__answer .answer-card:has(> .answer-card__remove) {
  padding-right: 48px;
}
.wz .wz-question__answer .answer-card__remove {
  top: 8px;
  right: 8px;
}
.wz .wz-question__answer .answer-card__primaries {
  gap: 10px 12px;
}
.wz .wz-question__answer .answer-card__primaries > .answer-card__field {
  flex-basis: 140px;
}
.wz .wz-question__answer .answer-card__qualifiers {
  gap: 10px 12px;
}
.wz .wz-question__answer .answer-card__qualifiers:has(> :not([hidden])) {
  margin-top: 10px;
}
.wz .wz-question__answer .answer-card__label {
  margin-bottom: 4px;
  color: var(--wz-muted);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.wz .wz-question__answer .answer-card__add {
  height: 38px;
  padding: 0 32px 0 10px;
  border: 1px dashed var(--wz-line-dashed);
  border-radius: 8px;
  background-color: transparent;
  color: var(--wz-text);
  font-family: inherit;
  font-size: 13px;
}
.wz .wz-question__answer .answer-card__qualifier-remove {
  color: var(--wz-muted);
}

/* 04d and I4: "Klopt niet" under an answer. The client's pill opens into an
   inline form and then says what was sent; the recruiter's pill toggles, with
   Opnieuw beantwoorden beside it and the toelichting under both. */
.wz .wz-feedback {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.wz .wz-question--single .wz-feedback--internal {
  grid-column: 2 / -1;
}
.wz .wz-feedback__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wz .wz-question--flagged {
  background: var(--wz-accent-wash);
}
.wz .wz-flag,
.wz .wz-reask {
  flex-shrink: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--wz-line-strong);
  border-radius: var(--wz-pill);
  background: var(--wz-surface);
  color: var(--wz-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.wz .wz-flag:hover,
.wz .wz-reask:hover {
  border-color: var(--wz-muted);
}
.wz .wz-flag--on {
  border-color: var(--wz-accent);
  background: var(--wz-accent-soft);
  color: var(--wz-accent-strong);
}
.wz .wz-flag--on:hover {
  border-color: var(--wz-accent-strong);
}
/* The answer being asked again keeps the focus its press gave it, so its own
   button is unavailable without being disabled. */
.wz .wz-reask:is(:disabled, [aria-disabled="true"]) {
  border-color: var(--wz-line);
  background: var(--wz-inert);
  color: var(--wz-inert-text);
  cursor: default;
}
.wz .wz-feedback [aria-disabled="true"] {
  cursor: progress;
}

.wz .wz-flag-form {
  flex: 1 1 420px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 640px;
  height: 44px;
  padding: 3px;
  border: 1px solid var(--wz-accent);
  border-radius: var(--wz-pill);
  background: var(--wz-accent-soft);
}
.wz .wz-flag-form .wz-flag {
  padding: 0 10px 0 12px;
  border: 0;
  background: transparent;
  color: var(--wz-accent-strong);
  font-weight: 600;
}
.wz .wz-flag-form__input {
  flex: 1 1 auto;
  box-sizing: border-box;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--wz-accent-seam);
  border-radius: var(--wz-pill);
  background: var(--wz-surface);
  color: var(--wz-text);
  font-family: inherit;
  font-size: 14px;
}
.wz .wz-flag-form__send {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: var(--wz-pill);
  background: var(--wz-accent);
  color: var(--wz-surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.wz .wz-flag-form__send:hover {
  background: var(--wz-accent-strong);
}
.wz .wz-flag-form__send:disabled {
  background: var(--wz-track);
  color: var(--wz-disabled-text);
  cursor: default;
}

.wz .wz-flag-sent {
  flex: 0 1 auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 640px;
  height: 44px;
  padding: 3px 3px 3px 14px;
  border: 1px solid var(--wz-line-strong);
  border-radius: var(--wz-pill);
  background: var(--wz-surface);
  font-size: 13px;
}
.wz .wz-flag-sent__text {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wz .wz-flag-sent__status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wz-success);
  font-weight: 600;
}
.wz .wz-flag-sent__comment {
  min-width: 0;
  overflow: hidden;
  color: var(--wz-text-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wz .wz-flag-sent__change {
  flex-shrink: 0;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: var(--wz-pill);
  background: var(--wz-secondary);
  color: var(--wz-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.wz .wz-flag-sent__change:hover {
  background: var(--wz-secondary-hover);
}

/* A flag we handled: what we noted, beside the pill that flags the answer again. */
.wz .wz-flag-handled {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 640px;
}
.wz .wz-flag-handled__status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wz-muted);
  font-weight: 600;
}
.wz .wz-flag-handled__note {
  min-width: 0;
  overflow: hidden;
  color: var(--wz-text-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz .wz-flag-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wz .wz-flag-note__label {
  font-size: 13px;
  font-weight: 500;
}
/* It grows with what the recruiter writes, where the browser can; two rows where it cannot. */
.wz .wz-flag-note__text {
  field-sizing: content;
  box-sizing: border-box;
  width: 100%;
  min-height: calc(2lh + 18px);
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--wz-line-strong);
  border-radius: 8px;
  background: var(--wz-surface);
  color: var(--wz-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}
/* Its place is kept while it says nothing, so the answers below do not move as the status comes and goes. */
.wz .wz-flag-note__status {
  min-height: 1.3em;
  font-size: 13px;
  line-height: 1.3;
}
.wz .wz-flag-note__hint {
  color: var(--wz-muted);
}
.wz .wz-feedback__problem {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--wz-danger);
  font-size: 13px;
  line-height: 1.45;
}
.wz .wz-feedback__problem > .wz-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Board I4: a row being asked again keeps its answer, read-only, until the new one is in. */
.wz .wz-reasking {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--wz-text-soft);
  font-size: 13px;
  line-height: 1.45;
}
.wz .wz-reasking > .wz-icon {
  flex-shrink: 0;
}
.wz .wz-question--reasking .wz-question__answer :is(input, textarea, select) {
  background-color: var(--wz-inert);
  color: var(--wz-muted);
  cursor: default;
}

/* Board 04d: while the client gives feedback each answer reads as text, which
   wraps where a control would cut a long value off. The controls stay in the
   form, out of sight, with what they hold; what would change a table is out of
   the way. */
.wz .wz-questions--feedback .wz-question__answer :is(input, textarea, select, .input__text, .input__date, .input__select, .question-item__caption) {
  display: none;
}
.wz .wz-questions--feedback .wz-question__answer :is(.answer-table__add, .answer-table__remove, .answer-card__add, .answer-card__remove, .answer-card__qualifier-remove, .wz-defaults__accept) {
  display: none;
}
.wz .wz-questions--feedback .wz-question__answer .answer-card:has(> .answer-card__remove) {
  padding-right: 14px;
}
/* `break-word` and not `anywhere`: a table then sizes no column below its
   longest word, so a grid scrolls rather than cut "Minimum" in two. */
.wz .wz-question__answer .control-text {
  min-width: 0;
  color: var(--wz-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: break-word;
}
.wz .wz-question__answer .control-text:empty {
  display: none;
}
/* A lone answer's text is a flex line, which only `anywhere` lets shrink below a long word. */
.wz .wz-question--single .control-text {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.wz .wz-feedback-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--wz-info-line);
  border-radius: 12px;
  background: var(--wz-info-soft);
  color: var(--wz-info);
}
.wz .wz-feedback-banner > .wz-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.wz .wz-feedback-banner__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-feedback-banner__title {
  font-size: 15px;
  font-weight: 600;
}
.wz .wz-feedback-done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0 12px;
}
.wz .wz-feedback-done__count {
  flex-grow: 1;
  color: var(--wz-muted);
  font-size: 13px;
}
.wz .wz-feedback-done__finish {
  padding: 0 20px;
  font-size: 14px;
}
.wz .wz-feedback-sent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 16px;
  border: 1px solid var(--wz-success-line);
  border-radius: 12px;
  background: var(--wz-success-tint);
  color: var(--wz-success-strong);
  font-size: 14px;
}
.wz .wz-feedback-sent > .wz-icon {
  flex-shrink: 0;
}
.wz .wz-feedback-sent__text {
  flex-grow: 1;
}
.wz .wz-feedback-sent__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wz-success-strong);
  cursor: pointer;
}
.wz .wz-feedback-sent__close:hover {
  background: var(--wz-success-soft);
}
.wz .wz-feedback-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--wz-accent-strong);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.wz .wz-feedback-link:hover {
  color: var(--wz-accent-deep);
}
.wz .wz-feedback-link > .wz-icon {
  flex-shrink: 0;
}
.wz .wz-feedback-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--wz-muted);
  font-size: 13px;
  line-height: 1.45;
}
.wz .wz-feedback-summary__counts {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wz .wz-feedback-summary__counts > .wz-icon {
  flex-shrink: 0;
}

/* Board 05: the box over a group still in analysis, the box once it is in
   (?ready=1), and the box of a group the analysis could not answer. */
.wz .wz-step-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
}
.wz .wz-step-notice > .wz-icon {
  flex-shrink: 0;
}
.wz .wz-step-notice__text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-step-notice__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.wz .wz-step-notice__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--wz-surface);
}
.wz .wz-step-notice--analysing {
  gap: 14px;
  padding: 16px 18px;
  border-color: var(--wz-info-line);
  background: var(--wz-info-soft);
  color: var(--wz-info);
}
.wz .wz-step-notice__documents {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 180px;
  font-size: 12px;
  line-height: 1.4;
}
.wz .wz-step-notice__track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--wz-info-track);
}
.wz .wz-step-notice__fill {
  display: block;
  height: 6px;
  background: var(--wz-agency);
}
.wz .wz-step-notice--ready {
  border-color: var(--wz-success-line);
  background: var(--wz-success-tint);
  color: var(--wz-success-strong);
}
.wz .wz-step-notice--ready .wz-step-notice__badge {
  background: var(--wz-success);
}
.wz .wz-step-notice--failed {
  border-color: var(--wz-warning-line);
  background: var(--wz-warning-soft);
  color: var(--wz-warning-text);
}
.wz .wz-step-notice--failed .wz-step-notice__badge {
  background: var(--wz-warning);
}

/* While the group is analysed its form is disabled at reduced opacity, as
   board 05 draws it: the labels, and pulsing blocks where the inputs will be. */
.wz .wz-questions--waiting {
  min-width: 0;
  margin: 0;
  opacity: 0.55;
}
.wz .wz-skeleton {
  display: block;
  height: 30px;
  border-radius: 6px;
  background: var(--wz-secondary);
  animation: wz-pulse 1.4s ease-in-out infinite;
}
.wz .wz-skeleton--control {
  height: 44px;
  border-radius: 8px;
}
.wz .wz-skeleton--source {
  width: 110px;
  height: 22px;
  border-radius: var(--wz-pill);
}
.wz .wz-question--single.wz-question--skeleton .wz-question__sources {
  padding-top: 11px;
}
.wz .wz-skeleton-table {
  overflow: hidden;
  border: 1px solid var(--wz-line);
  border-radius: 12px;
  background: var(--wz-surface);
}
.wz .wz-skeleton-table__head,
.wz .wz-skeleton-table__row {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}
.wz .wz-skeleton-table__head {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--wz-divider);
  background: var(--wz-band);
  color: var(--wz-muted);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.wz .wz-skeleton-table__head > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wz .wz-skeleton-table__row {
  height: 56px;
}
.wz .wz-skeleton-table__row + .wz-skeleton-table__row {
  border-top: 1px solid var(--wz-divider);
}
/* Ragged, as board 05's rows are: values of different lengths are on their way. */
.wz .wz-skeleton-table__row > .wz-skeleton:last-child {
  width: 92%;
}
.wz .wz-skeleton-table__row:nth-child(3) > .wz-skeleton:last-child {
  width: 78%;
}
.wz .wz-skeleton-table__row:nth-child(4) > .wz-skeleton:last-child {
  width: 86%;
}
.wz .wz-skeleton-table__row:nth-child(5) > .wz-skeleton:last-child {
  width: 64%;
}

/* 06 Controleren & akkoord (boards 06, 06a, M6) and its receipts. Board 06 sets
   its blocks further apart than the column does. */
.wz .wz-review {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wz .wz-heading--review .wz-lead {
  max-width: 720px;
}

/* The footer's Naar akkoord, whose island wrapper lays out as the button alone. */
.wz .wz-footer__row > [data-island] {
  display: contents;
}
.wz .wz-btn--jump {
  background: var(--wz-secondary);
  color: var(--wz-text);
}
.wz .wz-btn--jump:hover {
  background: var(--wz-secondary-hover);
  color: var(--wz-text);
}

/* Who gave an answer: the author's icon in a round badge, in the legend and on each row. */
.wz .wz-author-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wz-chip-neutral);
  color: var(--wz-text-soft);
}
.wz .wz-author-badge--agency,
.wz .wz-author-badge--reasked {
  background: var(--wz-agency-soft);
  color: var(--wz-agency);
}
.wz .wz-author-badge--client {
  background: var(--wz-client-soft);
  color: var(--wz-accent);
}

.wz .wz-review-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 12px 16px;
  border: 1px solid var(--wz-line);
  border-radius: 12px;
  background: var(--wz-surface);
  color: var(--wz-muted);
  font-size: 13px;
  line-height: 1.4;
  list-style: none;
}
.wz .wz-review-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.wz .wz-review-group,
.wz .wz-review-folds {
  border: 1px solid var(--wz-line);
  border-radius: 14px;
  background: var(--wz-surface);
}
.wz .wz-review-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 8px 20px;
  border-bottom: 1px solid var(--wz-divider);
}
.wz .wz-review-group__title {
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: break-word;
}
/* The space after the number counts towards board 06's ten pixels. */
.wz .wz-review-group__number {
  margin-right: 6px;
  color: var(--wz-subtle);
  font-family: var(--wz-font-mono);
  font-weight: 500;
}
.wz .wz-review-edit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
}

/* #13: the grondslagen matrix at the end of 06, a row per surcharge or leave
   row and a column per basis, in the table look of board 05. */
.wz .wz-bases__lead {
  margin: 0;
  padding: 12px 20px 0;
  color: var(--wz-muted);
  font-size: 14px;
}
.wz .wz-bases__scroll {
  overflow-x: auto;
  padding: 8px 0 4px;
}
.wz .wz-bases__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.wz .wz-bases__table thead th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--wz-divider);
  color: var(--wz-muted);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.wz .wz-bases__table :is(tbody th, td) {
  padding: 8px 12px;
  border-bottom: 1px solid var(--wz-row-line);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}
.wz .wz-bases__table thead th:first-child,
.wz .wz-bases__table tbody th {
  padding-left: 20px;
}
.wz .wz-bases__section th {
  padding-top: 0;
  padding-bottom: 0;
  background: var(--wz-band);
  font-weight: 600;
}
.wz .wz-bases__section th > span {
  margin-right: 8px;
}
.wz .wz-bases__name,
.wz .wz-bases__cell--empty {
  color: var(--wz-muted);
}
/* Jeroen's ticks (#223): ✓ ja, ✗ nee, an empty box when not known. */
.wz .wz-bases__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border: 1px solid var(--wz-divider);
  border-radius: 4px;
  background: #fff;
  color: var(--wz-muted);
  font: inherit;
  font-weight: 600;
  line-height: 1;
}
.wz .wz-bases__tick--ja {
  border-color: var(--wz-success-line);
  background: var(--wz-success-soft);
  color: var(--wz-success);
}
.wz .wz-bases__tick--nee {
  border-color: var(--wz-danger-line);
  background: var(--wz-danger-soft);
  color: var(--wz-danger);
}
/* Design D (!484): three radio dots, each with its word below, the chosen one filled and bold. */
.wz .wz-bases__choice {
  display: inline-flex;
  gap: 10px;
  vertical-align: middle;
}
.wz .wz-bases__option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 24px;
  color: var(--wz-muted);
  font-size: 0.75em;
  line-height: 1.2;
  cursor: pointer;
}
.wz .wz-bases__option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.wz .wz-bases__dot {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 1px solid var(--wz-line);
  border-radius: 50%;
  background: #fff;
}
.wz .wz-bases__option:hover .wz-bases__dot {
  border-color: var(--wz-muted);
}
.wz .wz-bases__option:has(input:focus-visible) {
  outline: 2px solid var(--wz-accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.wz .wz-bases__option--ja {
  --wz-bases-chosen: var(--wz-success);
}
.wz .wz-bases__option--nee {
  --wz-bases-chosen: var(--wz-danger);
}
.wz .wz-bases__option--onbekend {
  --wz-bases-chosen: var(--wz-muted);
}
.wz .wz-bases__option input:checked ~ .wz-bases__dot {
  border-color: #fff;
  background: var(--wz-bases-chosen);
  box-shadow: 0 0 0 1px var(--wz-bases-chosen);
}
.wz .wz-bases__option input:checked ~ .wz-bases__word {
  font-weight: 700;
  color: var(--wz-text);
}
.wz .wz-bases__text {
  display: block;
  margin-bottom: 4px;
  color: var(--wz-muted);
  font-size: 0.875em;
}
.wz .wz-bases__legend {
  margin: 8px 0 0;
  color: var(--wz-muted);
  font-size: 0.875em;
}

/* A row per answer: label, value, the author's badge and the source. A table
   takes the row's whole width under its label, as on board 04. */
.wz .wz-review-answers {
  margin: 0;
}
.wz .wz-review-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 30px 200px;
  grid-template-areas: "label value author source";
  gap: 16px;
  align-items: start;
  padding: 13px 20px;
}
.wz .wz-review-row + .wz-review-row {
  border-top: 1px solid var(--wz-row-line);
}
.wz .wz-review-row--table {
  grid-template-areas:
    "label label author source"
    "value value value value";
  row-gap: 10px;
}
.wz .wz-review-row__label {
  grid-area: label;
  min-width: 0;
  padding-top: 1px;
  color: var(--wz-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: break-word;
}
.wz .wz-review-row__value {
  grid-area: value;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.wz .wz-review-row__value--empty {
  color: var(--wz-subtle);
  font-weight: 400;
}
.wz .wz-review-row--worked-out {
  grid-template-areas:
    "label value author source"
    "label worked author source";
  row-gap: 4px;
}
.wz .wz-review-row__worked-out {
  grid-area: worked;
  min-width: 0;
  margin: 0;
  color: var(--wz-muted);
  font-size: 12px;
  line-height: 1.4;
}
.wz .wz-review-row__author {
  grid-area: author;
  display: flex;
  margin: 0;
}
.wz .wz-review-row__source {
  grid-area: source;
  min-width: 0;
  margin: 0;
  color: var(--wz-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
  overflow-wrap: anywhere;
}
.wz .wz-review-source {
  text-underline-offset: 3px;
}
.wz .wz-review-author {
  display: flex;
  align-items: center;
}

.wz .wz-review-table {
  overflow-x: auto;
  border: 1px solid var(--wz-line);
  border-radius: 10px;
  white-space: normal;
}
.wz .wz-review-table + .wz-review-table {
  margin-top: 10px;
}
.wz .wz-review-table table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
.wz .wz-review-table caption {
  padding: 8px 12px 0;
  font-weight: 600;
  text-align: left;
}
.wz .wz-review-table th {
  padding: 8px 12px;
  border: 0;
  background: var(--wz-band);
  color: var(--wz-muted);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.wz .wz-review-table td {
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid var(--wz-row-line);
  font-weight: 500;
  vertical-align: top;
  white-space: pre-line;
  overflow-wrap: break-word;
}
.wz .wz-review-table tbody:first-child > tr:first-child > td {
  border-top: 0;
}

/* The salary scales' rows as imported, folded under their grid (#223). */
.wz .wz-review-table + .wz-imported-rows {
  margin-top: 12px;
}
.wz .wz-imported-rows__summary {
  display: list-item;
  width: fit-content;
  padding: 4px 0;
  color: var(--wz-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.wz .wz-imported-rows[open] > .wz-imported-rows__summary {
  margin-bottom: 8px;
}

/* Groups 5 and on, each folded behind its number, title and answer count. */
.wz .wz-review-fold + .wz-review-fold {
  border-top: 1px solid var(--wz-row-line);
}
.wz .wz-review-fold__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px;
  list-style: none;
  cursor: pointer;
}
.wz .wz-review-fold__summary::-webkit-details-marker {
  display: none;
}
.wz .wz-review-fold__summary:focus-visible {
  outline-offset: -2px;
}
.wz .wz-review-fold__number {
  flex-shrink: 0;
  width: 22px;
  color: var(--wz-subtle);
  font-family: var(--wz-font-mono);
  font-size: 14px;
}
.wz .wz-review-fold__title {
  flex-grow: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: break-word;
}
.wz .wz-review-fold__count {
  flex-shrink: 0;
  color: var(--wz-muted);
  font-size: 13px;
}
.wz .wz-review-fold__chevron {
  display: flex;
  color: var(--wz-muted);
  transition: transform 0.15s ease;
}
.wz .wz-review-fold[open] .wz-review-fold__chevron {
  transform: rotate(180deg);
}
.wz .wz-review-fold__body {
  border-top: 1px solid var(--wz-divider);
}
.wz .wz-review-fold__edit {
  display: flex;
  justify-content: flex-end;
  padding: 0 12px 4px;
}

/* What changed since the client's approval (#189), above 06's answers: the AI
   summary, then a card per change with the old value struck beside the new. */
.wz .wz-changes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 20px;
  border: 1px solid var(--wz-accent-line);
  border-radius: 14px;
  background: var(--wz-accent-wash);
}
.wz .wz-changes__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.wz .wz-changes__lead {
  margin-top: -6px;
  color: var(--wz-muted);
  font-size: 14px;
  line-height: 1.5;
}
/* A summary that failed or took too long leaves its island empty. */
.wz .wz-changes > [data-island]:empty {
  display: none;
}
.wz .wz-change {
  padding: 12px 16px;
  border: 1px solid var(--wz-line);
  border-radius: 10px;
  background: var(--wz-surface);
}
.wz .wz-change__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin-bottom: 8px;
}
.wz .wz-change__group {
  flex-basis: 100%;
  color: var(--wz-subtle);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wz .wz-change__title {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.wz .wz-change__badge {
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: var(--wz-pill);
  background: var(--wz-chip-neutral);
  color: var(--wz-text-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.wz .wz-change--added .wz-change__badge {
  background: var(--wz-success-soft);
  color: var(--wz-success-strong);
}
.wz .wz-change--removed .wz-change__badge {
  background: var(--wz-danger-soft);
  color: var(--wz-danger-strong);
}
.wz .wz-change__values {
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.wz .wz-change__before {
  padding: 0 3px;
  border-radius: 3px;
  background: var(--wz-danger-soft);
  color: var(--wz-danger-strong);
  text-decoration: line-through;
  text-decoration-color: var(--wz-danger);
}
.wz .wz-change__after {
  padding: 0 3px;
  border-radius: 3px;
  background: var(--wz-success-tint);
  color: var(--wz-success-text);
  font-weight: 500;
  text-decoration: none;
}
.wz .wz-change__before--empty,
.wz .wz-change__after--empty {
  background: transparent;
  color: var(--wz-subtle);
  font-weight: 400;
}
/* A legacy table stands whole on each side, one under the other. */
.wz .wz-change__values > :has(> .wz-review-table) {
  display: block;
  padding: 0;
  background: transparent;
}
.wz .wz-change__values > :has(> .wz-review-table) + :has(> .wz-review-table) {
  margin-top: 10px;
}
.wz .wz-change-row--added {
  background: var(--wz-success-tint);
}
.wz .wz-change-row--removed {
  background: var(--wz-danger-soft);
}
/* The row's tint already says it was added or removed. */
.wz .wz-change-row--added .wz-change__after,
.wz .wz-change-row--removed .wz-change__before {
  padding: 0;
  background: transparent;
}
.wz .wz-review-table .wz-change-row__mark {
  border-top: 1px solid var(--wz-row-line);
  background: transparent;
  color: var(--wz-muted);
  vertical-align: top;
}
.wz .wz-change__unchanged {
  margin-top: 8px;
  color: var(--wz-muted);
  font-size: 13px;
}
.wz .wz-change__documents {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 14px;
  list-style: none;
  overflow-wrap: anywhere;
}

/* The AI summary, never without its marker and its notice. */
.wz .wz-change-summary {
  padding: 12px 16px;
  border: 1px solid var(--wz-info-line);
  border-radius: 10px;
  background: var(--wz-info-soft);
}
.wz .wz-change-summary__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.wz .wz-change-summary__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.wz .wz-change-summary__marker {
  padding: 1px 8px;
  border-radius: var(--wz-pill);
  background: var(--wz-info);
  color: var(--wz-surface);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.wz .wz-change-summary__text {
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.wz .wz-change-summary__notice {
  margin-top: 8px;
  color: var(--wz-info);
  font-size: 13px;
  line-height: 1.45;
}
.wz .wz-change-summary--pending {
  padding: 10px 16px;
  border-style: dashed;
  background: transparent;
  color: var(--wz-muted);
  font-size: 14px;
}

/* Something to heed, in amber: 06a's empty note, why staff cannot decide, a refused decision. */
.wz .wz-caution {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--wz-warning-line);
  border-radius: 10px;
  background: var(--wz-warning-soft);
  color: var(--wz-warning-text);
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-caution > .wz-icon {
  margin-top: 2px;
}

/* A post the server refused, in red: 01 and 02 at the daily cap (spec §5.13). */
.wz .wz-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--wz-danger-line);
  border-radius: 12px;
  background: var(--wz-danger-soft);
  color: var(--wz-danger-strong);
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-alert > .wz-icon {
  margin-top: 1px;
  color: var(--wz-danger);
}

/* What holds up Goedkeuren on 06, in red above Uw gegevens (#179). */
.wz .wz-blockers {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--wz-danger-line);
  border-radius: 12px;
  background: var(--wz-danger-soft);
  color: var(--wz-danger-strong);
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-blockers > .wz-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--wz-danger);
}
.wz .wz-blockers__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.wz .wz-blockers__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
  list-style: disc;
  overflow-wrap: anywhere;
}
.wz .wz-blockers__list a {
  color: inherit;
  font-weight: 600;
}

/* Uw gegevens, boxed in the text colour as board 06 sets it apart. */
.wz .wz-decision {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 26px;
  border: 2px solid var(--wz-text);
  border-radius: 16px;
  background: var(--wz-surface);
}
.wz .wz-decision__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Naar akkoord scrolls the heading up to here, 40px under the header, leaving
   the box's edge in view; the root's padding keeps the first 16px. */
.wz .wz-decision__title {
  scroll-margin-top: 24px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.wz .wz-decision__intro {
  max-width: 700px;
  color: var(--wz-muted);
  font-size: 14px;
  line-height: 1.55;
}
.wz .wz-decision__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.wz .wz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.wz .wz-field__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.wz .wz-field__input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--wz-line-strong);
  border-radius: 8px;
  background: var(--wz-surface);
  color: var(--wz-text);
  font-family: inherit;
  font-size: 15px;
  line-height: normal;
}
.wz .wz-field__input::placeholder {
  color: var(--wz-subtle);
}
.wz .wz-field__input:disabled {
  background: var(--wz-inert);
  color: var(--wz-disabled-text);
}
.wz .wz-field__input[aria-invalid="true"] {
  border-color: var(--wz-danger);
}
/* Three rows that grow with the note: with its wrapped lines where the browser
   sizes a field to its text, otherwise a row per line (the island). */
.wz .wz-field__input--note {
  field-sizing: content;
  height: auto;
  min-height: calc(3lh + 22px);
  padding: 10px 12px;
  line-height: 1.5;
  resize: none;
}
.wz .wz-field__error {
  color: var(--wz-danger);
  font-size: 13px;
  line-height: 1.45;
}
.wz .wz-decision__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.wz .wz-decision__approve,
.wz .wz-decision__reject {
  min-height: 48px;
}
.wz .wz-decision__approve {
  padding: 0 26px;
}
.wz .wz-decision__reject {
  padding: 0 22px;
  border: 1px solid var(--wz-danger);
  background: var(--wz-surface);
  color: var(--wz-danger);
}
.wz .wz-decision__reject:hover {
  background: var(--wz-danger-soft);
  color: var(--wz-danger);
}
.wz .wz-decision__reject:disabled {
  border-color: var(--wz-line);
  background: var(--wz-surface);
  color: var(--wz-disabled-text);
}

/* Board 06a: the question over the dimmed page; on a phone it rises from the bottom (M6). */
.wz .wz-confirm {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--wz-backdrop);
}
.wz .wz-confirm__panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 100%;
  overflow-y: auto;
  padding: 24px 26px 22px;
  border-radius: 16px;
  background: var(--wz-surface);
  box-shadow: var(--wz-shadow-dialog);
}
/* It holds the focus only while its buttons are locked, which needs no ring. */
.wz .wz-confirm__panel:focus-visible {
  outline: none;
}
.wz .wz-confirm__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.wz .wz-confirm__text {
  color: var(--wz-text-soft);
  font-size: 15px;
  line-height: 1.55;
}
.wz .wz-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}
.wz .wz-btn--cancel {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--wz-line-strong);
  background: var(--wz-surface);
  color: var(--wz-text);
  font-weight: 500;
}
.wz .wz-btn--cancel:hover {
  background: var(--wz-secondary);
  color: var(--wz-text);
}
.wz .wz-btn--cancel:disabled {
  border-color: var(--wz-line);
  background: var(--wz-surface);
  color: var(--wz-disabled-text);
}
.wz .wz-btn--danger {
  background: var(--wz-danger);
  color: var(--wz-surface);
}
.wz .wz-btn--danger:hover {
  background: var(--wz-danger-strong);
  color: var(--wz-surface);
}
.wz .wz-btn--danger:disabled {
  background: var(--wz-track);
  color: var(--wz-disabled-text);
}
.wz .wz-confirm__confirm {
  min-height: 48px;
  padding: 0 24px;
}

.wz .wz-receipt {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  border: 2px solid var(--wz-text);
  border-radius: 16px;
  background: var(--wz-surface);
}
.wz .wz-receipt__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--wz-surface);
}
.wz .wz-receipt--approved .wz-receipt__mark {
  background: var(--wz-success);
}
.wz .wz-receipt--rejected .wz-receipt__mark {
  background: var(--wz-danger);
}
.wz .wz-receipt--taken-over .wz-receipt__mark {
  background: var(--wz-agency);
}
.wz .wz-receipt__text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.wz .wz-receipt__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.wz .wz-receipt__message {
  color: var(--wz-muted);
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-receipt__pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
}

/* I5 Afronden (board I5): a row per group, the feedback the analysis keeps,
   and the hand-over, boxed in the text colour as 06 boxes the client's decision. */
.wz .wz-finish {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wz .wz-heading--finish .wz-lead {
  max-width: 720px;
}

.wz .wz-finish-table {
  overflow: hidden;
  border: 1px solid var(--wz-line);
  border-radius: 14px;
  background: var(--wz-surface);
}
.wz .wz-finish-table__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 120px 120px 160px 90px;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-top: 1px solid var(--wz-row-line);
  font-size: 14px;
  line-height: 1.4;
}
.wz .wz-finish-table__row--head {
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 0;
  background: var(--wz-band);
  color: var(--wz-muted);
  font-family: var(--wz-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wz .wz-finish-table__number {
  color: var(--wz-subtle);
}
.wz .wz-finish-table__title {
  min-width: 0;
  font-weight: 500;
  overflow-wrap: break-word;
}
.wz .wz-finish-table__count {
  color: var(--wz-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.wz .wz-finish-table__count--answers {
  color: var(--wz-text);
}
.wz .wz-finish-table__count--flagged {
  color: var(--wz-accent-strong);
  font-weight: 600;
}
/* The column's header names the count here; a phone writes it beside the number. */
.wz .wz-finish-table__unit {
  display: none;
}
.wz .wz-finish-table__edit-cell {
  text-align: right;
}
.wz .wz-finish-table__edit {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 500;
}

.wz .wz-finish-feedback {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--wz-line);
  border-radius: 14px;
  background: var(--wz-surface);
  color: var(--wz-text-soft);
  font-size: 14px;
  line-height: 1.55;
}
.wz .wz-finish-feedback > .wz-icon {
  margin-top: 2px;
  color: var(--wz-accent-strong);
}
.wz .wz-finish-feedback strong {
  color: var(--wz-text);
}

.wz .wz-handover {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  border: 2px solid var(--wz-text);
  border-radius: 16px;
  background: var(--wz-surface);
}
.wz .wz-handover__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* The rule above outranks the browser's own for the concept state's `hidden`. */
.wz .wz-handover__form[hidden] {
  display: none;
}
.wz .wz-handover__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.wz .wz-handover__parties {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-handover__parties dt {
  color: var(--wz-muted);
  font-weight: 400;
}
.wz .wz-handover__parties dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.wz .wz-field__input--message {
  height: auto;
  min-height: calc(3lh + 22px);
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}
/* MailChoiceCheckbox's label, which Origin styles for the portals. The padding
   makes one line 44px to tap, and the box keeps to the first of more lines. */
.wz .wz-handover__mail .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 0;
  color: var(--wz-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}
.wz .wz-handover__mail input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--wz-accent);
  cursor: pointer;
}
.wz .wz-handover__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.wz .wz-handover__actions .wz-btn {
  min-height: 48px;
}
.wz .wz-btn--outline {
  padding: 0 22px;
  border: 1px solid var(--wz-text);
  background: var(--wz-surface);
  color: var(--wz-text);
}
.wz .wz-btn--outline:hover {
  background: var(--wz-secondary);
  color: var(--wz-text);
}
.wz .wz-btn--outline:disabled {
  border-color: var(--wz-line);
  background: var(--wz-surface);
  color: var(--wz-disabled-text);
}
.wz .wz-handover__send {
  padding: 0 24px;
  text-wrap: balance;
}

.wz .wz-handover__outcome {
  display: flex;
  align-items: center;
  gap: 14px;
}
.wz .wz-handover__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wz-secondary);
  color: var(--wz-text);
}
.wz .wz-handover__outcome--sent .wz-handover__mark {
  background: var(--wz-success);
  color: var(--wz-surface);
}
/* No basis of its own, so on a phone it shrinks beside the check rather than wrapping under it. */
.wz .wz-handover__outcome-text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wz .wz-handover__outcome-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.wz .wz-handover__outcome-detail {
  color: var(--wz-muted);
  font-size: 14px;
  line-height: 1.5;
}
.wz .wz-handover__reopen {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

/* The agency's Goedkeuren and Afkeuren (#209): the outcome line and the
   client's decision above the record, the verdict in I5's hand-over box. */
.wz .wz-verdict-outcome,
.wz .wz-client-decision {
  padding: 14px 18px;
  border: 1px solid var(--wz-line);
  border-radius: 14px;
  background: var(--wz-surface);
  font-size: 14px;
  line-height: 1.55;
}
.wz .wz-verdict-outcome {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.wz .wz-verdict-outcome > .wz-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--wz-accent-strong);
}
.wz .wz-client-decision {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: anywhere;
}
/* Beoordelen (#209): the status line, the documents and the action bar. */
.wz .wz-review-status {
  font-size: 14px;
  font-weight: 600;
}
.wz .wz-review-documents,
.wz .wz-review-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wz .wz-review-documents ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wz .wz-review-actions__verdict {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.wz .wz-client-decision--rejected {
  border-color: var(--wz-danger-line);
  background: var(--wz-danger-soft);
}
.wz .wz-client-decision__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.wz .wz-client-decision__note,
.wz .wz-receipt__reason {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.wz .wz-field__hint {
  color: var(--wz-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.wz .wz-verdict-fyi {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.wz .wz-verdict-fyi > legend {
  margin-bottom: 8px;
  padding: 0;
}
.wz .wz-verdict-fyi__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.wz .wz-verdict-fyi__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* 04b Bron in volledig document (board 04b): one document under a bar of its
   own, beside the questions that cite the page. The page holds the screen, the
   document and the panel each scrolling inside it. */
.wz.wz-source {
  height: 100vh;
  height: 100dvh;
}
.wz .wz-source-bar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 24px 0 16px;
  border-bottom: 1px solid var(--wz-line);
  background: var(--wz-surface);
}
.wz .wz-source-bar__back {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 44px;
  padding: 0 16px 0 10px;
  border-radius: var(--wz-pill);
  background: var(--wz-secondary);
  color: var(--wz-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.wz .wz-source-bar__back:hover {
  background: var(--wz-secondary-hover);
  color: var(--wz-text);
}
.wz .wz-source-bar__back .wz-icon {
  flex-shrink: 0;
}
.wz .wz-source-bar__back-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* More documents than fit scroll sideways, never the page. The strip is drawn
   at its first tab; browser/revealCurrentTabs.ts scrolls it to the one open. */
.wz .wz-source-bar__documents {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.wz .wz-source-bar__tabs {
  display: flex;
  gap: 4px;
  list-style: none;
}
.wz .wz-source-bar__tab {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--wz-muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.wz .wz-source-bar__tab:hover {
  background: var(--wz-secondary);
  color: var(--wz-text);
}
.wz .wz-source-bar__tab--current,
.wz .wz-source-bar__tab--current:hover {
  background: var(--wz-text);
  color: var(--wz-surface);
  font-weight: 600;
}
.wz .wz-source-bar__page {
  flex-shrink: 0;
  color: var(--wz-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wz .wz-source-bar__zoom {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}
.wz .wz-source-bar__zoom-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--wz-line);
  border-radius: 8px;
  background: var(--wz-surface);
  color: var(--wz-text);
  cursor: pointer;
}
.wz .wz-source-bar__zoom-button:hover {
  background: var(--wz-band);
}
.wz .wz-source-bar__zoom-button[aria-disabled="true"] {
  background: var(--wz-surface);
  color: var(--wz-disabled-text);
  cursor: default;
}
.wz .wz-source__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}
/* A stretched flex item has a definite height, so the viewer's 100% resolves. */
.wz .wz-source__document {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--wz-desk);
}
.wz .wz-source__document > [data-view] {
  height: 100%;
}
/* The agency pane's light grey is unreadable on the desk. */
.wz .wz-source__document .pdf-pane__empty {
  padding: 14px;
  color: var(--wz-muted);
}
/* The pages sit on the desk as board 04b draws them. A page zoomed wider than
   the pane starts at its left edge, which centring by align-items would push
   out of reach; auto margins centre only a page that fits. */
.wz .wz-source__document .doc-viewer {
  align-items: flex-start;
  background: var(--wz-desk);
  scrollbar-color: var(--wz-scroll-thumb) var(--wz-scroll-track);
  scrollbar-width: thin;
}
.wz .wz-source__document .doc-page {
  margin-inline: auto;
  box-shadow: var(--wz-shadow-page);
}
.wz .wz-source__document .doc-highlight-layer__box.-primary {
  background: var(--wz-highlight);
}
.wz .wz-source__document .doc-highlight-layer__frame {
  position: absolute;
  border-radius: 2px;
  outline: 3px solid var(--wz-accent);
  outline-offset: 4px;
  pointer-events: none;
}
/* Positioned so that it contains its cards' hidden labels: laid out against
   the page instead, those further down the list reach below the screen. */
.wz .wz-source-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 12px;
  width: 360px;
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid var(--wz-line);
  background: var(--wz-surface);
}
.wz .wz-source-panel__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.wz .wz-source-panel__intro,
.wz .wz-source-panel__empty {
  color: var(--wz-muted);
  font-size: 13px;
  line-height: 1.5;
}
.wz .wz-trace {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--wz-line);
  border-radius: 10px;
  background: var(--wz-surface);
}
/* One pixel less padding for the pixel more border, so the text stays in line. */
.wz .wz-trace--opened {
  padding: 11px 13px;
  border: 2px solid var(--wz-accent);
  background: var(--wz-accent-soft);
}
.wz .wz-trace__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.wz .wz-trace__title {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.wz .wz-trace__link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  font-weight: 500;
}
.wz .wz-trace__answers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}
.wz .wz-trace__answer {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
.wz .wz-trace__icon {
  display: flex;
  padding-top: 2px;
  color: var(--wz-text-soft);
}
.wz .wz-trace__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.wz .wz-trace__source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  color: var(--wz-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.wz .wz-trace__here {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--wz-highlight);
  color: var(--wz-highlight-text);
  font-family: var(--wz-font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}
.wz .wz-trace__value {
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.wz .wz-trace__answer--here .wz-trace__value {
  font-weight: 600;
}
/* The answer as it is filled in now closes the list, under a line. */
.wz .wz-trace__answer--changed,
.wz .wz-trace__current {
  padding-top: 8px;
  border-top: 1px solid var(--wz-divider);
}
.wz .wz-trace__current {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--wz-muted);
  font-size: 13px;
  line-height: 1.4;
}
.wz .wz-trace__current-value {
  min-width: 0;
  color: var(--wz-text);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.wz :is(.wz-trace__answer--client, .wz-trace__answer--own) .wz-trace__icon {
  color: var(--wz-accent);
}
.wz :is(.wz-trace__answer--client, .wz-trace__answer--own) .wz-trace__source {
  color: var(--wz-accent-strong);
}
.wz :is(.wz-trace__answer--agency, .wz-trace__answer--reasked) .wz-trace__icon {
  color: var(--wz-agency);
}
.wz :is(.wz-trace__answer--agency, .wz-trace__answer--reasked) .wz-trace__source {
  color: var(--wz-info);
}
.wz .wz-trace__answer--changed .wz-trace__value {
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .wz .wz-icon--spin,
  .wz .wz-skeleton,
  .wz .wz-doc-progress--analysing .wz-doc-progress__fill {
    animation: none;
  }
  .wz .wz-file__progress-fill,
  .wz .wz-progress__fill,
  .wz .wz-review-fold__chevron {
    transition: none;
  }
}

/* Below 72em the labelled stepper no longer fits beside a long action, so only
   the current step keeps its visible label. */
@media (max-width: 71.99em) {
  .wz .wz-step--done,
  .wz .wz-step--upcoming {
    padding: 0 4px;
  }
  .wz .wz-step--done .wz-step__label,
  .wz .wz-step--upcoming .wz-step__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Below 64em the rows of group titles take too much of the screen. */
@media (max-width: 63.99em) {
  .wz {
    --wz-gutter: 24px;
  }
  :root:has(.wz) {
    --wz-groupbar-height: 78px;
    /* An explainer may take two lines at this width. */
    --wz-footer-height: 113px;
  }
  .wz .wz-groupbar__nav,
  .wz .wz-groupbar__status {
    display: none;
  }
  .wz .wz-groupbar__compact {
    display: flex;
  }
  /* 06's label and source columns give way to the answers before a phone's rows take over. */
  .wz .wz-review-row {
    grid-template-columns: 180px minmax(0, 1fr) 30px 150px;
  }
  .wz .wz-source-panel {
    width: 300px;
  }
  .wz .wz-finish-table__row {
    grid-template-columns: 32px minmax(0, 1fr) 96px 96px 136px 80px;
  }
}

/* Phone (boards M1–M6) */
@media (max-width: 47.99em) {
  .wz {
    --wz-gutter: 16px;
  }
  :root:has(.wz) {
    --wz-header-height: 56px;
    --wz-strip-height: 56px;
    --wz-footer-height: 77px;
    /* Centred under the buttons: a reason that may wrap once, and a status
       that may wrap once or stand beside its 44px Opnieuw proberen. */
    --wz-footer-reason-line: 42px;
    --wz-footer-status-line: 52px;
  }
  :root:has(.wz.wz--internal) {
    --wz-header-height: 76px;
  }
  /* Board M1: the label and the client's names side by side, cut short rather
     than wrapped, so the bar keeps its height; the client's own names give way
     first. The recruiter's header puts the client's names under the label. */
  .wz .wz-header {
    gap: 12px;
  }
  .wz .wz-header--client .wz-header__brand {
    flex-shrink: 0;
    max-width: 70%;
  }
  .wz .wz-header--internal {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 4px;
  }
  .wz .wz-header--internal .wz-header__who {
    flex-basis: 100%;
  }
  .wz .wz-header__brand {
    gap: 10px;
  }
  .wz .wz-header__logo {
    height: 30px;
    max-width: 96px;
  }
  .wz .wz-header__label {
    font-size: 15px;
  }
  .wz .wz-header__who {
    font-size: 12px;
    line-height: 1.3;
  }
  .wz .wz-staff-notice,
  .wz .wz-rejection-notice {
    font-size: 13px;
  }
  .wz .wz-phone-steps {
    display: flex;
  }
  .wz .wz-main,
  .wz .wz-main--wide,
  .wz .wz-main--group {
    padding: 20px var(--wz-gutter) 16px;
  }
  .wz .wz-column {
    gap: 14px;
  }
  .wz .wz-eyebrow {
    display: none;
  }
  .wz .wz-title {
    font-size: 26px;
  }
  .wz .wz-lead {
    font-size: 15px;
    line-height: 1.5;
  }
  .wz .wz-footer {
    padding: 12px var(--wz-gutter) 16px;
  }
  .wz .wz-footer__row {
    gap: 10px;
  }
  .wz .wz-stepper,
  .wz .wz-footer__spacer,
  .wz .wz-footer__explainer,
  .wz .wz-btn--back:disabled {
    display: none;
  }
  .wz .wz-btn {
    min-height: 48px;
  }
  .wz .wz-btn--back {
    padding: 0 16px;
    font-size: 15px;
  }
  .wz .wz-footer .wz-btn--primary {
    flex: 1 1 auto;
    padding: 6px 16px;
  }
  .wz .wz-footer__reason {
    text-align: center;
  }
  .wz .wz-footer__notes {
    justify-content: center;
  }
  .wz .wz-footer__status {
    margin-left: 0;
    text-align: center;
  }
  /* One centred run of text, the icon before its first word, so a message
     that wraps keeps its icon beside it. */
  .wz .wz-save-status {
    display: block;
  }
  .wz .wz-save-status--saved {
    display: inline-block;
  }
  .wz .wz-save-status > .wz-icon {
    display: inline-block;
    margin-right: 6px;
    vertical-align: -2px;
  }
  .wz .wz-save-status__retry {
    min-height: 44px;
    margin-left: 6px;
    padding: 0 8px;
  }
  /* With the stepper and explainer gone, a footer with neither a way back nor
     an action (the prefill check) would be an empty bar. */
  .wz .wz-footer:not(:has(a.wz-btn--back, .wz-btn--primary)) {
    display: none;
  }

  .wz .wz-search {
    height: 48px;
    margin: 0 12px;
    padding: 0 12px;
  }
  /* 16px keeps iOS Safari from zooming in on focus. */
  .wz .wz-search__input {
    font-size: 16px;
  }
  .wz .wz-cao-others__status {
    padding: 4px 12px 8px;
  }

  .wz .wz-prefill-check {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px;
  }
  .wz .wz-prefill-check__question {
    font-size: 20px;
  }
  /* Ja on top, as M6 stacks its decision with the approval first. */
  .wz .wz-prefill-check__actions {
    flex-direction: column-reverse;
  }
  .wz .wz-prefill-check .wz-btn {
    flex-grow: 1;
    min-height: 52px;
    font-size: 16px;
  }
  /* Board M2: no hints, the shorter lead, and a picker button for the drop area. */
  .wz .wz-cao-card {
    gap: 10px;
    padding: 10px 6px 10px 12px;
  }
  .wz .wz-cao-card__icon,
  .wz .wz-lead--full,
  .wz .wz-hints,
  .wz .wz-footer .wz-btn--ghost {
    display: none;
  }
  .wz .wz-lead--short {
    display: block;
  }
  .wz .wz-dropzone {
    flex-direction: row;
    gap: 10px;
    min-height: 56px;
    padding: 0 16px;
  }
  .wz .wz-dropzone__icon {
    width: auto;
    height: auto;
    background: none;
  }
  .wz .wz-dropzone__icon .wz-icon {
    width: 20px;
    height: 20px;
  }
  .wz .wz-dropzone__title,
  .wz .wz-dropzone__hint {
    display: none;
  }
  .wz .wz-dropzone__title--phone,
  .wz .wz-dropzone__phone-hint {
    display: block;
  }
  .wz .wz-files__head {
    padding: 10px 12px;
    border-bottom: 0;
  }
  /* M2 heads the list with its count alone. */
  .wz .wz-files__title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .wz .wz-files__empty {
    padding: 14px 12px;
    border-top: 1px solid var(--wz-row-line);
  }
  .wz .wz-file {
    gap: 10px;
    min-height: 56px;
    padding: 4px 4px 4px 12px;
    border-top: 1px solid var(--wz-row-line);
    border-bottom: 0;
  }
  .wz .wz-file__main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "status"
      "detail";
  }
  .wz .wz-file__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wz .wz-file__status {
    font-size: 12px;
  }
  .wz .wz-file__remove {
    color: var(--wz-muted);
  }
  .wz .wz-note {
    gap: 10px;
    padding: 12px 14px;
  }

  .wz .wz-btn__label--long {
    display: none;
  }
  .wz .wz-btn__label--short {
    display: inline;
  }

  /* Board M3: the percentage, the bar and the documents, without the phases. */
  .wz .wz-analysis {
    gap: 14px;
  }
  .wz .wz-progress {
    gap: 14px;
    padding: 18px 16px;
  }
  .wz .wz-progress__percent {
    font-size: 34px;
  }
  .wz .wz-progress__eta {
    font-size: 13px;
  }
  .wz .wz-progress__bar,
  .wz .wz-progress__fill {
    height: 10px;
    border-radius: 5px;
  }
  .wz .wz-phases,
  .wz .wz-progress__documents-title,
  .wz .wz-doc-progress__bar {
    display: none;
  }
  .wz .wz-progress__documents {
    padding-top: 0;
    border-top: 0;
  }
  .wz .wz-doc-progress-list {
    gap: 4px;
  }
  .wz .wz-doc-progress {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 36px;
  }
  .wz .wz-doc-progress__state {
    font-weight: 500;
  }
  .wz .wz-doc-progress--ready .wz-doc-progress__state {
    color: var(--wz-success);
  }
  /* Board M3 has no line under its buttons: on a phone, 03's intro already says
     when Controleren opens. The button keeps the line as its description. */
  .wz:has(.wz-analysis) .wz-footer__reason {
    display: none;
  }
  /* One run of text, as M3 words it: "Onderdeel 1 is klaar. De overige …". */
  .wz .wz-outcome {
    padding: 14px 16px;
  }
  .wz .wz-outcome__icon,
  .wz .wz-outcome__aside {
    display: none;
  }
  .wz .wz-outcome__text {
    display: block;
    line-height: 1.5;
  }
  .wz .wz-outcome__title {
    font-size: 14px;
    font-weight: 700;
  }
  .wz .wz-outcome__title::after {
    content: ". ";
  }

  .wz .wz-step-notice {
    padding: 12px 14px;
    font-size: 14px;
  }
  .wz .wz-step-notice--analysing {
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .wz .wz-step-notice__title {
    font-size: 14px;
  }
  .wz .wz-step-notice__text {
    flex-basis: 0;
    font-size: 13px;
  }
  .wz .wz-step-notice__documents {
    width: 100%;
  }
  .wz .wz-skeleton--control {
    height: 48px;
    border-radius: 10px;
  }
  .wz .wz-question--single.wz-question--skeleton .wz-question__sources {
    padding-top: 0;
  }

  /* Board M4: the answer under its label, the sources under the answer. */
  .wz .wz-questions {
    padding: 0 14px;
  }
  .wz .wz-question,
  .wz .wz-question--table {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "answer"
      "sources";
    gap: 8px;
  }
  .wz .wz-question__head {
    gap: 2px;
    padding-top: 0;
  }
  .wz .wz-question__label {
    font-size: 15px;
    font-weight: 600;
  }
  /* 16px keeps iOS Safari from zooming in on focus. */
  .wz .wz-question--single .wz-question__answer :is(input, select) {
    height: 48px;
    border-radius: 10px;
    font-size: 16px;
  }
  .wz .wz-question--single .wz-question__answer textarea {
    min-height: 48px;
    padding-block: 11px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 24px;
  }
  .wz .wz-question__answer .cell-control {
    font-size: 16px;
  }
  .wz .wz-question__sources {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 0;
  }
  .wz .wz-source {
    gap: 7px;
    min-height: 44px;
    padding: 0 16px 0 14px;
    font-size: 13px;
  }
  .wz .wz-source > .wz-icon {
    width: 13px;
    height: 13px;
  }
  .wz .wz-source__pages {
    font-size: 12px;
  }
  .wz .wz-sources__none {
    padding-top: 0;
    text-align: left;
  }

  /* 04d and I4 under the answer, the inline form's Versturen down to its
     plane, so the comment keeps room beside it. */
  .wz .wz-question--single .wz-feedback--internal {
    grid-column: 1 / -1;
  }
  .wz .wz-flag-form__input,
  .wz .wz-flag-note__text {
    font-size: 16px;
  }
  .wz .wz-flag-form__send {
    padding: 0 11px;
  }
  .wz .wz-flag-form__send-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Board M4a: the sources rise from the bottom over the dimmed page, under
     the question they belong to. */
  .wz .wz-sources {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: auto;
    max-width: none;
    background: var(--wz-backdrop);
    touch-action: none;
  }
  .wz .wz-sources__panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100% - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 16px 20px;
    border: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: var(--wz-shadow-sheet);
  }
  .wz .wz-sources__handle {
    display: block;
    flex-shrink: 0;
    align-self: center;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--wz-ring);
  }
  .wz .wz-sources__header {
    padding: 0;
    border-bottom: 0;
  }
  .wz .wz-sources__question {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    color: var(--wz-muted);
    font-size: 12px;
    line-height: 1.4;
  }
  .wz .wz-sources__title {
    font-size: 16px;
  }
  .wz .wz-sources__close {
    width: 44px;
    height: 44px;
    border-radius: var(--wz-pill);
    background: var(--wz-secondary);
    color: var(--wz-text);
  }
  .wz .wz-sources__status {
    padding: 0 0 8px;
    font-size: 14px;
  }
  .wz .wz-source-entry {
    padding: 0 0 12px;
  }
  .wz .wz-source-entry + .wz-source-entry {
    padding-top: 4px;
  }
  .wz .wz-source-entry__caption {
    font-size: 13px;
  }
  .wz .wz-source-entry__open {
    min-height: 44px;
    font-size: 14px;
  }
  .wz .wz-source-entry__note {
    font-size: 13px;
  }
  .wz .wz-source-crop,
  .wz .wz-source-quote {
    max-height: 40dvh;
  }
  .wz .wz-source-quote__text {
    font-size: 14px;
  }
  .wz .wz-sources__footer {
    padding: 0;
  }
  .wz .wz-sources__more {
    flex-grow: 1;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid var(--wz-text);
    border-radius: var(--wz-pill);
    color: var(--wz-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  /* Every table but the salary grid becomes a card per row, each value beside
     its column's name; the inputs stay where they were, so nothing is lost. */
  .wz .wz-question--cards .answer-table__scroll {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    mask-image: none;
  }
  .wz .wz-question--cards .answer-table,
  .wz .wz-question--cards .answer-table tbody,
  .wz .wz-question--cards .answer-table tr {
    display: block;
  }
  .wz .wz-question--cards .answer-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .wz .wz-question--cards .answer-table tbody tr {
    position: relative;
    padding: 8px 12px;
    border: 1px solid var(--wz-line);
    border-radius: 12px;
    background: var(--wz-surface);
  }
  /* Only the first line shares its height with the remove button. */
  .wz .wz-question--cards .answer-table tbody td:first-child {
    margin-right: 36px;
  }
  .wz .wz-question--cards .answer-table tbody tr + tr {
    margin-top: 8px;
  }
  /* The wide fields close the card of the row above them. */
  .wz .wz-question--cards .answer-table tbody tr:has(+ .answer-table__wide-row) {
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
  }
  .wz .wz-question--cards .answer-table tbody tr.answer-table__wide-row {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-radius: 0 0 12px 12px;
  }
  .wz .wz-question--cards .answer-table tbody tr.answer-table__wide-row td {
    display: block;
    margin-right: 0;
  }
  .wz .wz-question--cards .answer-table td,
  .wz .wz-question--cards .answer-table :is(th, td):is(:first-child, :last-child) {
    display: grid;
    grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    border: 0;
    font-size: 14px;
  }
  .wz .wz-question--cards .answer-table td::before {
    content: attr(data-label);
    color: var(--wz-muted);
    font-family: var(--wz-font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }
  .wz .wz-question--cards .answer-table td[data-required]::before {
    content: attr(data-label) " *";
  }
  /* The badge goes under the column's name, so that the date keeps the width
     the other cards give it. */
  .wz .wz-question--cards .answer-table td.wz-defaulted-cell {
    row-gap: 2px;
    white-space: normal;
  }
  .wz .wz-question--cards .answer-table td.wz-defaulted-cell .wz-author-badge {
    grid-column: 1;
  }
  .wz .wz-question--cards .answer-table td.wz-defaulted-cell .cell-control {
    min-width: 0;
  }
  .wz .wz-question--cards .answer-table.-full-width td > .cell-control {
    field-sizing: fixed;
    width: 100%;
    min-width: 0;
  }
  /* A card's text keeps growing a line at a time, at the card's width. */
  .wz .wz-question--cards .answer-table.-full-width td > textarea.cell-control {
    field-sizing: content;
    max-width: none;
  }
  .wz .wz-question--cards .answer-table td.answer-table__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    display: block;
    width: auto;
    padding: 0;
  }
  .wz .wz-question--cards .answer-table td.answer-table__remove::before {
    content: none;
  }
  /* In feedback mode a card has no remove button, so the rule above, which
     stands one in its corner, has to be outranked, and its first line needs no
     room beside it. */
  .wz .wz-questions--feedback .wz-question--cards .answer-table td.answer-table__remove {
    display: none;
  }
  .wz .wz-questions--feedback .wz-question--cards .answer-table tbody td:first-child {
    margin-right: 0;
  }
  /* An amount's unit and base are words that need their room: the base moves
     to a line of its own before it would clip. */
  .wz .wz-question__answer .answer-amount > select {
    flex-basis: 7em;
  }
  /* Board M6: no legend; each answer's author named beside its source, under the value. */
  .wz .wz-review {
    gap: 14px;
  }
  .wz .wz-review-legend {
    display: none;
  }
  .wz .wz-review-group {
    padding: 4px 14px 2px;
  }
  .wz .wz-review-group__head {
    min-height: 44px;
    padding: 0;
    border-bottom: 0;
  }
  .wz .wz-review-group__number {
    margin-right: 4px;
  }
  .wz .wz-review-edit {
    padding: 0 0 0 8px;
  }
  .wz .wz-review-row,
  .wz .wz-review-row--table {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 12px;
    padding: 12px 0;
  }
  .wz .wz-review-row,
  .wz .wz-review-row + .wz-review-row {
    border-top: 1px solid var(--wz-row-line);
  }
  .wz .wz-review-row__label,
  .wz .wz-review-row__value,
  .wz .wz-review-row__worked-out {
    flex: 1 1 100%;
  }
  .wz .wz-review-row__label {
    padding-top: 0;
    font-size: 13px;
  }
  .wz .wz-review-row__value {
    font-weight: 600;
    line-height: 1.45;
  }
  .wz .wz-review-row__value--empty {
    font-weight: 400;
  }
  .wz .wz-review-row--table .wz-review-row__value {
    margin: 4px 0;
  }
  .wz .wz-review-row__source {
    font-size: 12px;
    text-align: left;
  }
  .wz .wz-review-source {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
  }
  .wz .wz-review-author {
    display: inline-flex;
    gap: 5px;
    color: var(--wz-text-soft);
    font-size: 12px;
    line-height: 1.4;
  }
  .wz .wz-review-author--client {
    color: var(--wz-accent);
  }
  .wz .wz-review-author--agency,
  .wz .wz-review-author--reasked {
    color: var(--wz-agency);
  }
  .wz .wz-review-author .wz-author-badge {
    width: auto;
    height: auto;
    background: none;
    color: inherit;
  }
  .wz .wz-review-author .wz-icon {
    width: 12px;
    height: 12px;
  }
  /* Every table but the salary grid becomes a card per row, each value beside its column's name. */
  .wz .wz-review-row--cards .wz-review-table,
  .wz .wz-change__table {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .wz .wz-review-row--cards .wz-review-table :is(table, tbody, tr),
  .wz .wz-change__table :is(table, tbody, tr) {
    display: block;
  }
  .wz .wz-review-row--cards .wz-review-table thead,
  .wz .wz-change__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .wz .wz-review-row--cards .wz-review-table tr,
  .wz .wz-change__table tr {
    padding: 8px 12px;
    border: 1px solid var(--wz-line);
    border-radius: 10px;
  }
  .wz .wz-review-row--cards .wz-review-table tr + tr,
  .wz .wz-change__table tr + tr {
    margin-top: 8px;
  }
  .wz .wz-review-row--cards .wz-review-table td,
  .wz .wz-review-row--cards .wz-review-table tbody:first-child > tr:first-child > td {
    display: grid;
    grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr);
    gap: 10px;
    padding: 3px 0;
    border: 0;
  }
  .wz .wz-review-row--cards .wz-review-table td::before,
  .wz .wz-change__table td::before {
    content: attr(data-label);
    color: var(--wz-muted);
    font-family: var(--wz-font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.75;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }
  .wz .wz-review-row--cards .wz-review-table td:empty,
  .wz .wz-change__table td:empty {
    display: none;
  }
  /* Flex rather than the cards' grid: a changed cell's old and new value stay side by side. */
  .wz .wz-change__table td {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
    padding: 3px 0;
    border: 0;
  }
  /* The cards' label column: 6.5em of the cell's 14px, not of the label's 11px. */
  .wz .wz-change__table td::before {
    flex: 0 0 91px;
    margin-right: 4px;
  }
  .wz .wz-change__table .wz-change-row__mark {
    display: block;
    padding: 0 0 4px;
    border: 0;
  }
  .wz .wz-changes {
    padding: 14px;
  }
  .wz .wz-change {
    padding: 10px 12px;
  }
  .wz .wz-review-folds {
    padding: 0 14px;
  }
  .wz .wz-review-fold__summary {
    gap: 10px;
    min-height: 48px;
    padding: 0;
  }
  .wz .wz-review-fold__number {
    width: 20px;
  }
  .wz .wz-review-fold__body {
    border-top: 0;
  }
  .wz .wz-review-fold__edit {
    padding: 0 0 4px;
  }

  .wz .wz-decision {
    gap: 14px;
    padding: 18px 16px;
  }
  .wz .wz-decision__title {
    font-size: 20px;
  }
  .wz .wz-decision__intro {
    line-height: 1.5;
  }
  .wz .wz-decision__fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  /* 16px keeps iOS Safari from zooming in on focus. */
  .wz .wz-field__input {
    height: 48px;
    border-radius: 10px;
    font-size: 16px;
  }
  .wz .wz-field__input--note {
    height: auto;
  }
  /* M6 stacks the decision, the approval on top. */
  .wz .wz-decision__actions {
    flex-direction: column-reverse;
    gap: 14px;
  }
  .wz .wz-decision__approve,
  .wz .wz-decision__reject {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }
  .wz .wz-footer .wz-btn--jump {
    flex: 1 1 auto;
    padding: 6px 16px;
  }
  .wz .wz-confirm {
    align-items: flex-end;
    padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .wz .wz-confirm__panel {
    padding: 22px 22px 20px;
  }
  .wz .wz-confirm__actions {
    gap: 10px;
  }
  .wz .wz-confirm__confirm {
    padding: 0 22px;
  }
  /* Board M6's receipt is its words alone. */
  .wz .wz-receipt {
    padding: 18px 16px;
  }
  .wz .wz-receipt__mark {
    display: none;
  }

  /* I5: each group's title and Wijzigen on a line, its counts on the next. The
     line break is the row's ::after, which takes a line of its own. */
  .wz .wz-finish {
    gap: 14px;
  }
  .wz .wz-finish-table__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 6px;
    min-height: 0;
    padding: 2px 4px 10px 14px;
  }
  .wz .wz-finish-table__row--head + .wz-finish-table__row {
    border-top: 0;
  }
  .wz .wz-finish-table__row::after {
    content: "";
    flex-basis: 100%;
    order: 2;
  }
  /* Out of sight but still in the table: display: none would take a cell out,
     and a screen reader would then read each later cell under the wrong column. */
  .wz .wz-finish-table__row--head,
  .wz .wz-finish-table__number,
  .wz .wz-finish-table__count--none {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .wz .wz-finish-table__title {
    flex: 1 1 0;
    order: 1;
    font-size: 15px;
    font-weight: 600;
  }
  .wz .wz-finish-table__edit-cell {
    order: 2;
  }
  .wz .wz-finish-table__edit {
    min-height: 44px;
    padding: 0 10px;
  }
  .wz .wz-finish-table__count {
    order: 3;
    font-size: 13px;
    text-align: left;
  }
  .wz .wz-finish-table__count--answers {
    color: var(--wz-muted);
  }
  .wz .wz-finish-table__unit {
    display: inline;
  }
  /* A dot drawn by CSS joins the cell's accessible name, so the column headers go without. */
  .wz .wz-finish-table__row:not(.wz-finish-table__row--head) > .wz-finish-table__count:not(.wz-finish-table__count--none) ~ .wz-finish-table__count:not(.wz-finish-table__count--none)::before {
    content: "·";
    margin-right: 6px;
  }
  .wz .wz-finish-feedback {
    gap: 10px;
    padding: 12px 14px;
  }
  .wz .wz-verdict-outcome,
  .wz .wz-client-decision {
    padding: 12px 14px;
  }
  .wz .wz-review-actions__verdict {
    flex-direction: column;
  }
  .wz .wz-handover {
    gap: 14px;
    padding: 18px 16px;
  }
  .wz .wz-handover__form {
    gap: 14px;
  }
  .wz .wz-handover__parties {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 6px 12px;
  }
  .wz .wz-field__input--message {
    height: auto;
  }
  /* The hand-over on top, as M6 stacks the client's decision. */
  .wz .wz-handover__actions {
    flex-direction: column-reverse;
  }
  .wz .wz-handover__actions .wz-btn {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }
  .wz .wz-handover__outcome {
    flex-wrap: wrap;
  }
  .wz .wz-handover__outcome-title {
    font-size: 17px;
  }
  .wz .wz-handover__reopen {
    width: 100%;
    min-height: 48px;
  }

  /* 04b: the bar on two rows, the page across the screen, the panel under it.
     The document keeps a height of its own, short of the screen's, so the
     page around it stays within a thumb's reach to scroll on to the panel. */
  .wz.wz-source {
    height: auto;
  }
  .wz .wz-source-bar {
    display: grid;
    grid-template-areas:
      "back page"
      "documents zoom";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    height: auto;
    padding: 10px var(--wz-gutter);
  }
  .wz .wz-source-bar__back {
    grid-area: back;
    justify-self: start;
    max-width: 100%;
  }
  .wz .wz-source-bar__page {
    grid-area: page;
  }
  /* Swiped rather than dragged by a scrollbar; the tab cut short shows there is more. */
  .wz .wz-source-bar__documents {
    grid-area: documents;
    scrollbar-width: none;
  }
  .wz .wz-source-bar__zoom {
    grid-area: zoom;
  }
  .wz .wz-source__body {
    flex-direction: column;
  }
  .wz .wz-source__document {
    flex: none;
    height: 70vh;
    height: 70dvh;
    min-height: 360px;
  }
  .wz .wz-source-panel {
    width: auto;
    padding: 20px var(--wz-gutter) 32px;
    overflow-y: visible;
    border-top: 1px solid var(--wz-line);
    border-left: 0;
  }
  /* The grondslagen matrix, a card per row instead of a column per basis: five
     columns do not fit a phone and must not scroll sideways. Each tick names
     its basis from its data-label, which stands in for the hidden header row. */
  .wz .wz-bases__table thead {
    display: none;
  }
  .wz .wz-bases__table,
  .wz .wz-bases__table tbody,
  .wz .wz-bases__table tr {
    display: block;
  }
  .wz .wz-bases__table tbody tr:not(.wz-bases__section) {
    padding: 10px 0;
    border-bottom: 1px solid var(--wz-row-line);
  }
  .wz .wz-bases__table tbody :is(th, td) {
    display: block;
    border-bottom: 0;
  }
  .wz .wz-bases__table tbody tr:not(.wz-bases__section) th {
    padding: 0 var(--wz-gutter) 6px;
    font-weight: 600;
  }
  .wz .wz-bases__table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 3px var(--wz-gutter);
  }
  .wz .wz-bases__table tbody td::before {
    content: attr(data-label);
    color: var(--wz-muted);
  }
  .wz .wz-bases__table tbody .wz-bases__section th {
    padding: 10px var(--wz-gutter);
  }
}

/* From 48em a row's badge names its author on hover and to a screen reader;
   a phone writes the name beside it (board M6). */
@media (min-width: 48em) {
  .wz .wz-review-author__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* The popup hangs below its question, so a question at the end of the page would
   push the footer, which stays within the page, up from the screen's edge. While
   one is open the page keeps the room it can take under the last question: the
   room between the bars, and no more than three sources and their links need. */
@media (min-width: 48em) {
  .wz .wz-main:has(.wz-sources) {
    padding-bottom: min(calc(100dvh - var(--wz-top-clearance) - var(--wz-bottom-clearance)), 640px);
  }
}

/* From 80em the group pages keep their column at the left of a band wide enough
   for the sources popup beside it (boards 04, 04a). */
@media (min-width: 80em) {
  .wz .wz-main--group .wz-column {
    max-width: 1060px;
    padding-right: 300px;
  }
  .wz .wz-sources {
    top: -8px;
    right: auto;
    left: calc(100% + 20px);
  }
}
