/* docsign3 "Vrij Tekenen" — één scherm, witte vellen op grijs, zwevende pil-werkbalk. Staff Support-huisstijl. */
@font-face { font-family: "V3 Dancing"; src: url(fonts/DancingScript.ttf); font-display: swap; }
@font-face { font-family: "V3 Great Vibes"; src: url(fonts/GreatVibes.ttf); font-display: swap; }
@font-face { font-family: "V3 Caveat"; src: url(fonts/Caveat.ttf); font-display: swap; }
@font-face { font-family: "V3 Sacramento"; src: url(fonts/Sacramento.ttf); font-display: swap; }
@font-face { font-family: "V3 Pacifico"; src: url(fonts/Pacifico.ttf); font-display: swap; }

:root {
  --canvas: #EEF2F0; --active-pill: rgba(1, 211, 149, .15); --pill-shadow: 0 8px 30px rgba(4, 12, 20, .16), 0 1px 3px rgba(4, 12, 20, .1);
  --rood: #B3374F; --head-h: 58px; --side-w: 330px;
}
html, body { background: var(--canvas); }
body.v3 { min-height: 100vh; display: flex; flex-direction: column; color: var(--body); }
.v3 .ic { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v3-skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--pearl); color: var(--wit); padding: 8px 12px; border-radius: 6px; }
.v3-skip:focus { left: 8px; }

/* ------------------------------------------------------------------ header */
.v3-head { position: sticky; top: 0; z-index: 40; height: var(--head-h); background: var(--wit); border-bottom: 1px solid var(--lijn);
  display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.v3-brand { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 8px; margin-left: -8px; border-radius: 8px; cursor: pointer; color: var(--grijs); text-decoration: none; }
.v3-brand:hover { background: var(--t-neutraal); }
.v3-brand img.logo { height: 44px; display: block; margin: -9px -8px; }
.v3-brand img.merk { height: 28px; display: none; }
.v3-sep { width: 1px; height: 26px; background: var(--lijn); flex: none; }
.v3-title { font: 600 15px var(--kop); color: var(--pearl); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.v3-title-input { font: 600 15px var(--kop); color: var(--pearl); border: 1px solid transparent; border-radius: 6px; padding: 6px 8px; background: transparent; min-width: 0; flex: 1; max-width: 520px; }
.v3-title-input:hover { border-color: var(--lijn); }
.v3-title-input:focus { outline: none; border-color: var(--turquoise); box-shadow: var(--focus); background: var(--wit); }
.v3-head-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.v3-menu { position: absolute; top: calc(var(--head-h) - 6px); left: 12px; width: 260px; background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; box-shadow: var(--pill-shadow); padding: 6px; z-index: 60; }
.v3-menu a, .v3-menu button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: none; font: 600 14px var(--kop); color: var(--pearl); text-decoration: none; cursor: pointer; }
.v3-menu a:hover, .v3-menu button:hover, .v3-menu a:focus-visible, .v3-menu button:focus-visible { background: var(--t-turq); color: var(--blauw); }
.v3-menu .who { padding: 8px 12px 10px; font-size: 12px; color: var(--grijs); border-bottom: 1px solid var(--lijn); margin-bottom: 4px; word-break: break-all; }
.v3-bell { position: relative; }
.v3-bell .count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--turquoise); color: var(--pearl); font: 700 11px/18px var(--kop); text-align: center; padding: 0 4px; }
.v3-notes { position: absolute; right: 12px; top: calc(var(--head-h) - 6px); width: min(360px, calc(100vw - 24px)); background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; box-shadow: var(--pill-shadow); padding: 8px; z-index: 60; max-height: 60vh; overflow: auto; }
.v3-notes a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--body); text-decoration: none; font-size: 14px; }
.v3-notes a.unread { font-weight: 700; }
.v3-notes a:hover { background: var(--t-turq); }
.v3-notes time { display: block; font-size: 12px; color: var(--grijs); font-weight: 400; }

/* ------------------------------------------------------------------ knoppen */
.v3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px var(--kop); border-radius: 999px; padding: 9px 18px;
  min-height: 40px; border: 1px solid transparent; background: var(--wit); color: var(--pearl); cursor: pointer; text-decoration: none; white-space: nowrap; }
.v3-btn.primary { background: var(--groen); color: var(--wit); }
.v3-btn.primary:hover { background: #059a50; color: var(--wit); }
.v3-btn.ghost { background: transparent; color: var(--blauw); }
.v3-btn.ghost:hover { background: var(--t-neutraal); }
.v3-btn.outline { border-color: var(--lijn); }
.v3-btn.outline:hover { border-color: var(--blauw); }
.v3-btn.danger { background: var(--t-roze); color: var(--rood); }
.v3-btn.danger:hover { background: #f6dbe5; }
.v3-btn.small { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.v3-btn.icon { padding: 0; width: 40px; justify-content: center; }
.v3-btn[disabled], .v3-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.v3-link { background: none; border: 0; color: var(--blauw); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px; }
.v3-link.red { color: var(--rood); }

/* ------------------------------------------------------------------ landing / centrale kaarten */
.v3-center { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 48px 20px 40px; }
.v3-center.narrow { max-width: 460px; }
.v3-hello { text-align: center; margin-bottom: 26px; }
.v3-hello h1 { border: 0; padding: 0; margin: 0 0 6px; font-size: 28px; }
.v3-hello p { color: var(--grijs); margin: 0; }
.v3-drop { border: 2px dashed #b9c6c1; border-radius: 18px; background: var(--wit); padding: 54px 24px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--grijs); transition: border-color .15s, background .15s; }
.v3-drop .ic { color: var(--turquoise); margin-bottom: 6px; }
.v3-drop b { font: 700 19px var(--kop); color: var(--pearl); }
.v3-drop:hover, .v3-drop.over, .v3-drop:focus-visible { border-color: var(--turquoise); background: #fbfffd; }
.v3-drop.small { padding: 26px 16px; border-radius: 12px; }
.v3-drop.small b { font-size: 15px; }
.v3-drop.busy { pointer-events: none; opacity: .7; }
.v3-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--grijs); font-size: 13px; margin: 14px 0 0; text-align: center; }
.v3-privacy .ic { color: var(--groen); }
.v3-or { display: flex; align-items: center; gap: 12px; color: var(--grijs); font: 700 11px var(--kop); letter-spacing: .14em; text-transform: uppercase; margin: 30px 0 14px; }
.v3-or::before, .v3-or::after { content: ""; flex: 1; height: 1px; background: var(--lijn); }
.v3-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v3-sample { text-align: left; background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; padding: 16px; cursor: pointer; font: inherit; color: var(--body);
  display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.v3-sample:hover, .v3-sample:focus-visible { border-color: var(--turquoise); box-shadow: var(--schaduw); }
.v3-sample .ic { color: var(--blauw); }
.v3-sample b { font: 700 15px var(--kop); color: var(--pearl); }
.v3-sample span { font-size: 13px; color: var(--grijs); }
.v3-sample .roles { font: 600 12px var(--kop); color: var(--groen); }
.v3-card { background: var(--wit); border: 1px solid var(--lijn); border-radius: 16px; padding: 26px; box-shadow: var(--schaduw); }
.v3-card h1 { border: 0; padding: 0; font-size: 24px; margin-bottom: 6px; }
.v3-label { display: block; font: 600 13px var(--kop); color: var(--blauw); margin: 0 0 6px; }
.v3-input, .v3-select, .v3-textarea { width: 100%; font: 400 15px var(--tekst); color: var(--body); background: var(--wit); border: 1px solid #cfd8d4; border-radius: 10px; padding: 9px 12px; min-height: 42px; }
.v3-input:focus, .v3-select:focus, .v3-textarea:focus { outline: none; border-color: var(--turquoise); box-shadow: var(--focus); }
.v3-textarea { min-height: 80px; resize: vertical; }
.v3-err { color: var(--rood); background: var(--t-roze); border-radius: 8px; padding: 8px 12px; font-size: 14px; margin: 10px 0 0; }
.v3-ok { color: #04773e; background: var(--t-groen); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.v3-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* ------------------------------------------------------------------ lijst Mijn tekenacties */
.v3-list { list-style: none; margin: 0; padding: 0; background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; overflow: hidden; }
.v3-list li + li { border-top: 1px solid var(--lijn); }
.v3-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px 16px; text-decoration: none; color: var(--body); }
.v3-list a:hover { background: var(--t-turq); }
.v3-list b { font: 600 15px var(--kop); color: var(--pearl); }
.v3-list .meta { font-size: 13px; color: var(--grijs); grid-column: 1; }
.v3-list .st { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font-size: 13px; color: var(--grijs); }
.v3-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.v3-list-head h1 { border: 0; padding: 0; margin: 0; font-size: 24px; }
.v3-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.v3-filter button { border: 1px solid var(--lijn); background: var(--wit); border-radius: 999px; padding: 5px 12px; font: 600 13px var(--kop); color: var(--grijs); cursor: pointer; }
.v3-filter button[aria-pressed="true"] { background: var(--active-pill); color: var(--pearl); border-color: transparent; }
.v3-empty { text-align: center; color: var(--grijs); padding: 34px 16px; }

/* statusbadges */
.v3-badge { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--kop); padding: 3px 10px; border-radius: 999px; background: var(--t-neutraal); color: var(--grijs); white-space: nowrap; }
.v3-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.v3-badge.sent, .v3-badge.notified, .v3-badge.opened, .v3-badge.inbehandeling, .v3-badge.nieuw { background: var(--t-turq); color: var(--blauw); }
.v3-badge.completed, .v3-badge.signed, .v3-badge.voltooid { background: var(--t-groen); color: #04773e; }
.v3-badge.declined, .v3-badge.revoked, .v3-badge.cancelled, .v3-badge.geannuleerd { background: var(--t-roze); color: var(--rood); }

/* ------------------------------------------------------------------ werkvlak (editor, voortgang, ondertekenen) */
.v3-work { flex: 1; display: flex; min-height: calc(100vh - var(--head-h)); }
.v3-stage { flex: 1; min-width: 0; padding: 28px 20px 150px; }
.v3-stage .ss-pdf { gap: 22px; }
.v3-stage .ss-pdf-page { box-shadow: 0 1px 3px rgba(4, 12, 20, .08), 0 8px 24px rgba(4, 12, 20, .08); border-radius: 2px; }
.v3-msg { max-width: 860px; margin: 0 auto 18px; background: var(--wit); border-left: 3px solid var(--turquoise); border-radius: 0 10px 10px 0; padding: 12px 16px; font-size: 14px; }
.v3-msg .label { display: block; font: 700 10px var(--kop); letter-spacing: .14em; text-transform: uppercase; color: var(--groen); margin-bottom: 2px; }
.v3-placing .ss-pdf-overlay { cursor: crosshair; }

/* velden op de PDF */
.v3-field { position: absolute; --c: var(--turquoise); border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border-radius: 4px;
  color: var(--pearl); font: 600 11px/1.15 var(--kop); display: flex; align-items: center; justify-content: center; text-align: center; padding: 1px 4px;
  user-select: none; touch-action: none; overflow: visible; }
.v3-field > .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; pointer-events: none; }
.v3-field.tiny > .lbl { display: none; }
.v3-edit .v3-field { cursor: move; }
.v3-field.sel { outline: 2px solid var(--blauw); outline-offset: 2px; z-index: 3; }
.v3-field .h-resize { position: absolute; right: -7px; bottom: -7px; width: 12px; height: 12px; background: var(--wit); border: 2px solid var(--blauw); border-radius: 2px; cursor: nwse-resize; display: none; }
.v3-field .h-del { position: absolute; right: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--rood); color: var(--wit); border: 2px solid var(--wit);
  display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.v3-field.sel .h-resize { display: block; }
.v3-field.sel .h-del { display: inline-flex; }
.v3-field input.lbl-edit { width: 100%; border: 0; background: var(--wit); font: 600 11px var(--kop); padding: 1px 3px; }
/* voortgang */
.v3-field.st-wait { --c: #9AA6A2; color: var(--grijs); background: rgba(92, 102, 99, .07); border-style: dashed; }
.v3-field.st-turn { --c: var(--turquoise); animation: v3pulse 1.6s ease-in-out infinite; }
.v3-field.st-done { --c: var(--groen); background: color-mix(in srgb, var(--groen) 72%, transparent); color: var(--wit); }
.v3-field.st-declined { --c: var(--rood); background: color-mix(in srgb, var(--rood) 16%, transparent); color: var(--rood); }
.v3-field.st-cancelled { --c: #C9D1CE; color: var(--grijs); background: rgba(92,102,99,.05); border-style: dotted; }
/* ondertekenen */
.v3-field.mine { --c: var(--turquoise); cursor: pointer; animation: v3pulse 1.6s ease-in-out infinite; background: rgba(1, 211, 149, .14); }
.v3-field.mine:focus-visible { outline: 3px solid var(--blauw); outline-offset: 2px; }
.v3-field.mine.filled { animation: none; --c: var(--groen); background: rgba(6, 176, 92, .06); }
.v3-field.mine.current { outline: 3px solid var(--blauw); outline-offset: 3px; }
.v3-field.other { --c: #C2CBC8; background: rgba(92, 102, 99, .06); color: var(--grijs); border-style: dashed; }
.v3-field img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.v3-field input[type="text"] { width: 100%; height: 100%; border: 0; background: transparent; font: 13px var(--tekst); color: var(--pearl); padding: 0 3px; }
.v3-field input[type="text"]:focus { outline: none; background: rgba(255, 255, 255, .7); }
.v3-field .v3-cb { width: 100%; height: 100%; display: grid; place-items: center; color: var(--groen); }
.v3-field .val { font: 400 13px var(--tekst); color: var(--pearl); white-space: nowrap; overflow: hidden; }
@keyframes v3pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(1, 211, 149, .45); } 50% { box-shadow: 0 0 0 6px rgba(1, 211, 149, 0); } }
@media (prefers-reduced-motion: reduce) { .v3-field.mine, .v3-field.st-turn { animation: none; } }

/* ------------------------------------------------------------------ zwevende pil */
.v3-dock { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 35; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 10px; }
.v3-with-side .v3-dock { right: var(--side-w); }
.v3-pill { pointer-events: auto; background: var(--wit); border-radius: 999px; box-shadow: var(--pill-shadow); padding: 6px; display: flex; align-items: center; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.v3-pill::-webkit-scrollbar { display: none; }
.v3-pill button, .v3-pill a { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; border-radius: 999px; padding: 9px 14px; font: 600 13px var(--kop); color: var(--blauw); cursor: pointer; white-space: nowrap; text-decoration: none; min-height: 40px; }
.v3-pill button:hover, .v3-pill a:hover { background: var(--t-neutraal); }
.v3-pill button[aria-pressed="true"] { background: var(--active-pill); color: var(--pearl); }
.v3-pill button[disabled] { opacity: .35; cursor: not-allowed; }
.v3-pill .div { width: 1px; height: 24px; background: var(--lijn); margin: 0 4px; flex: none; }
.v3-pill .stat { font: 700 13px var(--kop); color: var(--pearl); padding: 0 12px 0 10px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.v3-pill .stat .ring { width: 22px; height: 22px; }
.v3-pill .primary { background: var(--groen); color: var(--wit); }
.v3-pill .primary:hover { background: #059a50; }
.v3-pill .danger { color: var(--rood); }
.v3-minipill { pointer-events: auto; background: var(--wit); border-radius: 999px; box-shadow: var(--pill-shadow); padding: 4px 6px 4px 14px; display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--kop); color: var(--grijs); max-width: 100%; }
.v3-minipill .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--turquoise)); flex: none; }
.v3-minipill select { border: 0; background: var(--t-neutraal); border-radius: 999px; padding: 6px 28px 6px 10px; font: 600 13px var(--kop); color: var(--pearl); min-height: 32px; max-width: 220px; cursor: pointer; }
.v3-minipill select:focus { outline: none; box-shadow: var(--focus); }
.v3-hint { pointer-events: auto; background: var(--pearl); color: var(--wit); font-size: 13px; border-radius: 999px; padding: 7px 14px; box-shadow: var(--pill-shadow); max-width: calc(100vw - 24px); text-align: center; }

/* ------------------------------------------------------------------ zijpaneel */
.v3-side { width: var(--side-w); flex: none; background: var(--wit); border-left: 1px solid var(--lijn); position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); overflow-y: auto; padding: 18px 16px 28px; }
.v3-side h2 { font-size: 15px; color: var(--pearl); display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.v3-side h2 .n { font: 700 12px var(--kop); background: var(--t-neutraal); color: var(--grijs); border-radius: 999px; padding: 1px 8px; }
.v3-side h3 { font: 700 11px var(--kop); letter-spacing: .14em; text-transform: uppercase; color: var(--groen); margin: 22px 0 8px; }
.v3-side .v3-side-close { display: none; }
.v3-signers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.v3-signer { border: 1px solid var(--lijn); border-radius: 12px; padding: 10px 10px 10px 8px; display: grid; grid-template-columns: 22px 28px 1fr; gap: 4px 8px; align-items: center; background: var(--wit); }
.v3-signer.dragging { opacity: .4; }
.v3-signer.drop-before { box-shadow: 0 -3px 0 var(--turquoise); }
.v3-signer .grip { color: #A9B4B0; cursor: grab; grid-row: 1 / span 2; display: grid; place-items: center; }
.v3-signer .nr { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: var(--wit); font: 700 12px var(--kop); display: grid; place-items: center; grid-row: 1 / span 2; }
.v3-signer .inputs { display: grid; gap: 4px; min-width: 0; }
.v3-signer .inputs input { border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; font: 600 14px var(--kop); color: var(--pearl); width: 100%; background: transparent; min-height: 30px; }
.v3-signer .inputs input.mail { font: 400 13px var(--tekst); color: var(--grijs); }
.v3-signer .inputs input:hover { border-color: var(--lijn); }
.v3-signer .inputs input:focus { outline: none; border-color: var(--turquoise); box-shadow: var(--focus); background: var(--wit); }
.v3-signer .inputs input[aria-invalid="true"] { border-color: var(--roze); background: var(--t-roze); }
.v3-signer .role { font: 700 10px var(--kop); letter-spacing: .1em; text-transform: uppercase; color: var(--grijs); padding-left: 6px; }
.v3-signer .tools { grid-column: 3; display: flex; gap: 2px; justify-content: flex-end; }
.v3-signer .tools button { border: 0; background: none; color: var(--grijs); border-radius: 6px; width: 30px; height: 28px; display: grid; place-items: center; cursor: pointer; }
.v3-signer .tools button:hover { background: var(--t-neutraal); color: var(--blauw); }
.v3-signer .tools button[disabled] { opacity: .3; cursor: default; }
.v3-signer .cnt { font-size: 12px; color: var(--grijs); margin-right: auto; padding-left: 6px; align-self: center; }
.v3-switch { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; cursor: pointer; font-size: 14px; }
.v3-switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: #cfd8d4; position: relative; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.v3-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--wit); transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.v3-switch input:checked { background: var(--turquoise); }
.v3-switch input:checked::after { left: 19px; }
.v3-switch input:focus-visible { box-shadow: var(--focus); }
.v3-side .muted { font-size: 13px; color: var(--grijs); }
.v3-addsigner { width: 100%; margin-top: 10px; border: 1px dashed #b9c6c1; border-radius: 12px; padding: 10px; background: none; font: 600 14px var(--kop); color: var(--blauw); cursor: pointer; }
.v3-addsigner:hover { border-color: var(--turquoise); background: var(--t-turq); }

/* tijdlijn per ondertekenaar (voortgang) */
.v3-tl { list-style: none; margin: 0; padding: 0; }
.v3-tl > li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 0 0 16px; position: relative; }
.v3-tl > li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 2px; background: var(--lijn); }
.v3-tl > li:last-child::before { display: none; }
.v3-tl .nr { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--kop); background: var(--t-neutraal); color: var(--grijs); border: 2px solid var(--wit); box-shadow: 0 0 0 2px var(--c, var(--lijn)); }
.v3-tl li.signed .nr { background: var(--groen); color: var(--wit); box-shadow: 0 0 0 2px var(--groen); }
.v3-tl li.turn .nr { background: var(--turquoise); color: var(--pearl); box-shadow: 0 0 0 2px var(--turquoise); }
.v3-tl li.declined .nr { background: var(--rood); color: var(--wit); box-shadow: 0 0 0 2px var(--rood); }
.v3-tl b { font: 600 14px var(--kop); color: var(--pearl); display: block; }
.v3-tl .mail { font-size: 12px; color: var(--grijs); word-break: break-all; }
.v3-tl .ev { font-size: 12px; color: var(--grijs); margin-top: 3px; }
.v3-tl .ev span { display: block; }
.v3-tl .acts { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.v3-staffbadge { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--kop); background: var(--t-neutraal); color: var(--blauw); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
.v3-staffbadge:hover { background: var(--t-turq); }
.v3-staffbadge.done { background: var(--t-groen); color: #04773e; }
.v3-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; }
.v3-kv dt { color: var(--grijs); }
.v3-kv dd { margin: 0; color: var(--pearl); word-break: break-word; }
.v3-mono { font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; color: var(--grijs); }

/* ------------------------------------------------------------------ modals (zelfde vormtaal als het handtekeningvenster) */
dialog.v3-modal { border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 20px)); max-height: calc(100vh - 24px); box-shadow: 0 24px 70px rgba(4, 12, 20, .32); color: var(--body); }
dialog.v3-modal.wide { width: min(760px, calc(100vw - 20px)); }
dialog.v3-modal::backdrop { background: rgba(4, 12, 20, .45); }
.v3-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.v3-modal-head h2 { margin: 0; font-size: 18px; color: var(--pearl); }
.v3-x { border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--grijs); }
.v3-x:hover { background: var(--t-neutraal); }
.v3-modal-body { padding: 8px 20px 12px; }
.v3-modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px 18px; flex-wrap: wrap; }
.v3-tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--lijn); overflow-x: auto; }
.v3-tabs button { border: 0; background: none; padding: 10px 12px; font: 600 14px var(--kop); color: var(--grijs); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.v3-tabs button[aria-selected="true"] { color: var(--pearl); border-bottom-color: var(--turquoise); }
.v3-draw { position: relative; border: 1px solid var(--lijn); border-radius: 12px; background: #fcfdfc; margin-top: 10px; }
.v3-draw canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.v3-draw-line { position: absolute; left: 8%; right: 8%; bottom: 42px; border-bottom: 1px solid #d5ddda; pointer-events: none; }
.v3-draw-hint { position: absolute; left: 8%; bottom: 18px; font-size: 12px; color: var(--grijs); pointer-events: none; }
.v3-typed-preview { margin-top: 12px; min-height: 84px; border: 1px solid var(--lijn); border-radius: 12px; background: #fcfdfc; display: flex; align-items: center; padding: 0 18px; font-size: 40px; color: var(--blauw); overflow: hidden; white-space: nowrap; }
.v3-fontcards { display: grid; gap: 8px; margin-top: 12px; max-height: 300px; overflow-y: auto; padding: 2px; }
.v3-fontcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid var(--lijn); background: #fcfdfc; border-radius: 12px; padding: 8px 14px; cursor: pointer; text-align: left; min-height: 64px; }
.v3-fontcard[aria-checked="true"] { border-color: var(--turquoise); background: var(--t-turq); }
.v3-fontcard-sample { font-size: 30px; color: var(--blauw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 8px 4px 2px; line-height: 1.3; min-width: 0; }
.v3-fontcard small { color: var(--grijs); font: 600 11px var(--kop); flex: none; }
.v3-upload-preview { display: block; margin: 12px auto 0; max-width: 100%; max-height: 140px; background: repeating-conic-gradient(#f2f4f3 0 25%, #fff 0 50%) 0 0 / 14px 14px; border-radius: 8px; }
.v3-modal .v3-privacy, .v3-finish .v3-privacy { justify-content: flex-start; text-align: left; }
.v3-radios { display: grid; gap: 8px; }
.v3-radios label { display: grid; grid-template-columns: 20px 1fr; gap: 2px 10px; border: 1px solid var(--lijn); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.v3-radios label:has(input:checked) { border-color: var(--turquoise); background: var(--t-turq); }
.v3-radios input { accent-color: var(--groen); margin: 3px 0 0; grid-row: 1 / span 2; width: 16px; height: 16px; }
.v3-radios b { font: 600 14px var(--kop); color: var(--pearl); }
.v3-radios small { color: var(--grijs); font-size: 12px; grid-column: 2; }
.v3-owner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.v3-sendsum { font-size: 13px; color: var(--grijs); background: var(--t-neutraal); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.v3-sendsum ol { margin: 4px 0 0; padding-left: 20px; }
.v3-audit { width: 100%; border-collapse: collapse; font-size: 13px; }
.v3-audit th { text-align: left; font: 700 10px var(--kop); letter-spacing: .1em; text-transform: uppercase; color: var(--wit); background: var(--groen); padding: 7px 8px; position: sticky; top: 0; }
.v3-audit td { border-bottom: 1px solid var(--lijn); padding: 7px 8px; vertical-align: top; }
.v3-audit td:first-child { white-space: nowrap; color: var(--blauw); font-weight: 700; }
.v3-audit-wrap { max-height: 56vh; overflow: auto; border: 1px solid var(--lijn); border-radius: 10px; }

/* ------------------------------------------------------------------ ondertekenaar onderaan */
.v3-finish { max-width: 860px; margin: 26px auto 0; background: var(--wit); border-radius: 16px; border: 1px solid var(--lijn); padding: 18px 20px; box-shadow: var(--schaduw); }
.v3-finish .ss-checkbox { font-size: 14px; }
.v3-finish .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.v3-finish .v3-privacy { justify-content: flex-start; margin-top: 10px; }
.v3-finish.attn { box-shadow: 0 0 0 3px var(--turquoise); }
.v3-nosig { display: flex; gap: 12px; align-items: center; padding: 12px; border: 2px dashed var(--turquoise); border-radius: 12px; background: rgba(1, 211, 149, .06); margin-bottom: 12px; cursor: pointer; }
.v3-nosig img { max-height: 54px; max-width: 220px; }
.v3-done { text-align: center; }
.v3-done .big { width: 84px; height: 84px; border-radius: 50%; background: var(--t-groen); color: var(--groen); display: grid; place-items: center; margin: 0 auto 18px; }
.v3-done h1 { border: 0; padding: 0; }
.v3-done.red .big { background: var(--t-roze); color: var(--rood); }

/* verificatie */
.v3-verify-res { margin-top: 18px; }
.v3-verdict { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; }
.v3-verdict.ok { background: var(--t-groen); }
.v3-verdict.bad { background: var(--t-roze); }
.v3-verdict .mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--wit); }
.v3-verdict.ok .mark { background: var(--groen); }
.v3-verdict.bad .mark { background: var(--rood); }
.v3-verdict b { font: 700 18px var(--kop); color: var(--pearl); display: block; }

/* ------------------------------------------------------------------ voet + toasts */
.v3-foot { display: flex; align-items: center; justify-content: center; gap: 8px 12px; flex-wrap: wrap; padding: 18px 16px 26px; font-size: 12px; color: var(--grijs); }
.v3-foot b { color: var(--blauw); font-family: var(--kop); }
.v3-foot .v3-ver { font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.v3-work ~ .v3-foot, .v3-stage .v3-foot { padding-bottom: 100px; }
.v3-toasts { position: fixed; top: calc(var(--head-h) + 12px); right: 16px; display: grid; gap: 8px; z-index: 90; max-width: min(380px, calc(100vw - 32px)); }
.v3-toast { background: var(--pearl); color: var(--wit); border-left: 4px solid var(--turquoise); padding: 12px 14px; border-radius: 10px; box-shadow: var(--pill-shadow); font-size: 14px; }
.v3-toast.good { border-left-color: var(--groen); background: var(--blauw); }
.v3-toast.bad { border-left-color: var(--roze); }

/* ------------------------------------------------------------------ responsief */
.v3-side-toggle { display: none !important; }
@media (max-width: 960px) {
  .v3-with-side .v3-dock { right: 0; }
  .v3-side { position: fixed; top: var(--head-h); right: 0; bottom: 0; height: auto; width: min(360px, 92vw); z-index: 45; transform: translateX(105%); transition: transform .2s; box-shadow: -10px 0 40px rgba(4,12,20,.18); }
  .v3-side.open { transform: none; }
  .v3-side .v3-side-close { display: grid; position: absolute; right: 8px; top: 8px; }
  .v3-side-toggle { display: inline-flex !important; }
}
@media (max-width: 720px) {
  :root { --head-h: 54px; }
  .v3-head { padding: 0 10px; gap: 8px; }
  .v3-brand img.logo { display: none; }
  .v3-brand img.merk { display: block; }
  .v3-head .hide-sm { display: none !important; }
  .v3-btn { padding: 8px 14px; }
  .v3-samples { grid-template-columns: 1fr; }
  .v3-center { padding: 26px 16px 30px; }
  .v3-drop { padding: 38px 16px; }
  .v3-stage { padding: 14px 8px 150px; }
  .v3-pill button .t, .v3-pill a .t { display: none; }
  .v3-pill button, .v3-pill a { padding: 9px 8px; }
  .v3-pill .primary .t, .v3-pill.keep-labels button .t { display: inline; }
  .v3-pill .stat { padding: 0 6px; }
  .v3-with-side .v3-bell { display: none; }
  .v3-side-toggle { padding: 6px 10px !important; min-height: 36px; }
  .v3-head .v3-badge { padding: 3px 8px; }
  .v3-owner { grid-template-columns: 1fr; }
  .v3-tabs { padding: 0 10px; }
  .v3-tabs button { padding: 10px 9px; font-size: 13px; }
  .v3-fontcard-sample { font-size: 24px; }
  .v3-field { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .v3-side { transition: none; } }
