{"id":235,"date":"2025-07-08T23:47:57","date_gmt":"2025-07-09T02:47:57","guid":{"rendered":"https:\/\/brunopavani.com\/?page_id=235"},"modified":"2026-11-02T04:58:43","modified_gmt":"2026-11-02T07:58:43","slug":"customer-due-diligence-cdd-system-evoke-2025","status":"publish","type":"page","link":"https:\/\/brunopavani.com\/?page_id=235","title":{"rendered":"Customer Due Diligence (CDD)"},"content":{"rendered":"\n<!-- CDD: cinco imagens hospedadas na Biblioteca de M\u00eddia do WordPress. URLs j\u00e1 preenchidas. -->\n<style>\n@import url('https:\/\/fonts.googleapis.com\/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');\n\n\/* Mesma tipografia, cores e hierarquia do CDD. *\/\n#cdd-final {\n  --rf-text: #f0f2e9;\n  --rf-muted: #adb5aa;\n  --rf-line: #333a33;\n  --rf-green: #c6ef86;\n  --rf-surface: transparent;\n  --rf-frame: transparent;\n  position: relative;\n  left: 50%;\n  transform: translateX(-50%);\n  width: min(1170px, calc(100vw - 72px));\n  max-width: none;\n  margin: 0;\n  padding: 0;\n  background: transparent;\n  color: var(--rf-text);\n  font-family: 'DM Sans', Arial, sans-serif !important;\n  font-size: 16px;\n  line-height: 1.8;\n  text-align: left;\n  overflow-wrap: break-word;\n}\n#cdd-final, #cdd-final * { box-sizing: border-box; }\n\n\/* Mant\u00e9m o t\u00edtulo do WordPress, remove somente os elementos duplicados. *\/\nbody.page-id-235 .bp-case:has(#cdd-final) > .bp-case-cover,\nbody.page-id-235 .bp-case:has(#cdd-final) > .bp-case-header > :is(.bp-eyebrow,.bp-case-summary,.bp-case-facts,.bp-case-impact) { display: none; }\nbody.page-id-235 .bp-case:has(#cdd-final) > .bp-case-header {\n  position: relative; left: 50%; transform: translateX(-50%);\n  width: min(1170px, calc(100vw - 72px)); max-width: none;\n  margin: 0 0 26px; padding: 0;\n}\nbody.page-id-235 .bp-case:has(#cdd-final) > .bp-case-header h1 {\n  width: 100%; max-width: none; margin: 20px 0 0;\n  color: #f0f2e9; font-family: 'Manrope', Arial, sans-serif !important;\n  font-size: clamp(26px, 3.3vw, 42px); line-height: 1.2;\n  font-weight: 500; letter-spacing: -.04em;\n}\n#cdd-final p { color: var(--rf-muted); margin: 0 0 18px; font-size: inherit; line-height: inherit; }\n#cdd-final strong { color: var(--rf-text); font-weight: 600; }\n#cdd-final h2, #cdd-final h3 {\n  color: var(--rf-text); font-family: 'Manrope', Arial, sans-serif !important;\n  font-weight: 500; line-height: 1.18; letter-spacing: -.04em;\n  text-transform: none; text-wrap: pretty; scroll-margin-top: 32px;\n}\n#cdd-final .rf-section { border-top: 1px solid var(--rf-line); padding: 54px 0; margin: 0; }\n#cdd-final .rf-section:last-of-type { padding-bottom: 46px; }\n#cdd-final .rf-section h2 {\n  color: var(--rf-green); font-family: 'DM Sans', Arial, sans-serif !important;\n  font-size: 11px; font-weight: 600; line-height: 1.6;\n  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 20px;\n}\n#cdd-final .rf-section h3 { font-size: clamp(27px, 3vw, 38px); margin: 0 0 24px; }\n#cdd-final .rf-text-accent { color: var(--rf-green); }\n#cdd-final a { color: inherit; text-underline-offset: 4px; }\n#cdd-final a:hover { color: var(--rf-green); }\n#cdd-final a:focus-visible, #cdd-final button:focus-visible, #cdd-final summary:focus-visible {\n  outline: 2px solid var(--rf-green); outline-offset: 5px;\n}\n\n\/* Abertura curta: introdu\u00e7\u00e3o e resultado lado a lado, sem capa adicional. *\/\n#cdd-final .rf-hero { padding: 0 0 38px; border: 0; }\n#cdd-final .rf-hero > p:first-child {\n  display: flex; align-items: center; gap: 10px;\n  color: var(--rf-green); font-size: 10px; line-height: 1.6;\n  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 22px;\n}\n#cdd-final .rf-hero > p:first-child::before {\n  content: ''; display: block; width: 6px; height: 6px;\n  flex: 0 0 6px; border-radius: 50%; background: var(--rf-green);\n}\n#cdd-final .rf-hero > p:first-child strong { color: inherit; font-weight: 500; }\n#cdd-final .rf-hero h2 {\n  color: var(--rf-text); font-family: 'Manrope', Arial, sans-serif !important;\n  font-size: clamp(32px, 4.1vw, 49px); font-weight: 500;\n  line-height: 1.14; letter-spacing: -.045em; text-transform: none;\n  max-width: 1040px; margin: 0 0 28px;\n}\n#cdd-final .rf-hero-grid {\n  display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);\n  gap: 30px 68px; align-items: start;\n}\n#cdd-final .rf-lead-copy p { font-size: 16px; line-height: 1.8; }\n#cdd-final .rf-lead-copy p:last-child { margin-bottom: 0; }\n#cdd-final .rf-metric {\n  margin: 0; border-left: 1px solid #4e6140;\n  padding: 4px 0 8px 28px; color: var(--rf-text);\n}\n#cdd-final .rf-metric strong { display: block; font-weight: 400; }\n#cdd-final .rf-metric-value {\n  display: block; color: var(--rf-green); font-family: 'Manrope', Arial, sans-serif;\n  font-size: clamp(60px, 6.8vw, 88px); line-height: 1.1; letter-spacing: -.075em;\n}\n#cdd-final .rf-metric-label {\n  display: block; max-width: 240px; color: var(--rf-text);\n  font-size: 17px; line-height: 1.5; letter-spacing: -.01em; margin-top: 12px;\n}\n#cdd-final .rf-facts {\n  display: grid; grid-template-columns: 1fr 1fr 1.8fr 1fr;\n  gap: 20px 28px; border-top: 1px solid var(--rf-line);\n  margin: 28px 0 0; padding-top: 23px; font-size: 12px; line-height: 1.7;\n}\n#cdd-final .rf-fact { display: block; min-width: 0; color: var(--rf-text); }\n#cdd-final .rf-fact strong {\n  display: block; color: var(--rf-muted); font-size: 9px; line-height: 1.5;\n  font-weight: 500; text-transform: uppercase; letter-spacing: .11em; margin-bottom: 8px;\n}\n\n\/* Texto validado em uma composi\u00e7\u00e3o editorial de duas colunas. *\/\n#cdd-final .rf-editorial-grid {\n  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);\n  column-gap: 70px; align-items: start;\n}\n#cdd-final .rf-section-heading h3 { max-width: 440px; }\n#cdd-final .rf-section-body p:last-child { margin-bottom: 0; }\n#cdd-final .rf-context .rf-section-body > p:last-child {\n  border-left: 2px solid var(--rf-green); padding: 10px 0 10px 20px;\n  margin-top: 26px; color: var(--rf-text); font-size: 15px;\n}\n#cdd-final .rf-context .rf-section-body > p:last-child strong { color: var(--rf-green); }\n\n\/* As tr\u00eas decis\u00f5es mant\u00eam todo o texto e suas imagens originais. *\/\n#cdd-final .rf-decisions-section { padding-bottom: 8px; }\n#cdd-final .rf-design-decision {\n  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);\n  gap: 0 70px; border: 0; padding: 12px 0 40px; margin: 0;\n}\n#cdd-final .rf-design-decision + .rf-design-decision {\n  border-top: 1px solid var(--rf-line); padding-top: 40px;\n}\n#cdd-final .rf-design-decision > h3 { max-width: 410px; }\n#cdd-final .rf-design-decision > h3::before {\n  content: attr(data-rf-step); display: block; color: var(--rf-green);\n  font-family: 'DM Sans', Arial, sans-serif; font-size: 11px;\n  font-weight: 500; line-height: 1.6; letter-spacing: .12em; margin-bottom: 16px;\n}\n#cdd-final .rf-decision-copy { min-width: 0; }\n#cdd-final .rf-decision-copy p:last-child { margin-bottom: 0; }\n\n\/* Moldura das imagens segue o mesmo verde escuro do CDD. *\/\n#cdd-final .rf-image,\n#cdd-final .rf-image.rf-form,\n#cdd-final .rf-image.rf-review {\n  grid-column: 1 \/ -1; position: relative; left: auto; transform: none;\n  width: 100%; max-width: none; margin: 28px 0 0;\n  padding: 18px; background: var(--rf-frame);\n  border: 1px solid #374432; border-radius: 6px;\n}\n#cdd-final .rf-image a { display: block; line-height: 0; }\n#cdd-final .rf-image img {\n  display: block; width: 100%; height: auto;\n  border: 0; border-radius: 3px;\n}\n#cdd-final .rf-image-open {\n  display: block; width: 100%; border: 0; padding: 0;\n  border-radius: 3px; background: transparent; cursor: zoom-in;\n  line-height: 0; font: inherit; color: inherit; appearance: none;\n}\n#cdd-final .rf-image-open:hover { outline: 1px solid var(--rf-green); outline-offset: 3px; }\n#cdd-final figcaption {\n  max-width: none; color: #bac7b2; font-size: 12px; line-height: 1.6;\n  margin-top: 14px; padding: 0;\n}\n\n\/* N\u00famero proveniente das oito sess\u00f5es j\u00e1 descritas no texto. *\/\n#cdd-final .rf-validation-number {\n  display: block; color: var(--rf-green); font-family: 'Manrope', Arial, sans-serif;\n  font-size: 96px; font-weight: 400; line-height: 1.1;\n  letter-spacing: -.07em; margin-top: 24px;\n}\n#cdd-final .rf-validation { background: var(--rf-surface); padding: 40px; border: 1px solid var(--rf-line); }\n#cdd-final .rf-prototype-section { border-top: 0; }\n#cdd-final .rf-prototype-intro {\n  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 70px;\n}\n#cdd-final .rf-prototype-copy p:last-child { margin-bottom: 0; }\n\n\/* Prot\u00f3tipo original, com uma entrada visual mais evidente. *\/\n#cdd-final .rf-demo {\n  width: 100%; max-width: none; margin: 30px 0 18px;\n  background: var(--rf-surface); border: 1px solid #52643d;\n  border-radius: 5px; overflow: hidden;\n}\n#cdd-final .rf-demo summary {\n  display: flex; align-items: center; gap: 14px;\n  list-style: none; cursor: pointer; margin: 0; padding: 19px 24px;\n  color: #182113; background: var(--rf-green);\n  font-family: 'DM Sans', Arial, sans-serif; font-size: 15px; line-height: 1.5; font-weight: 600;\n}\n#cdd-final .rf-demo summary::-webkit-details-marker { display: none; }\n#cdd-final .rf-demo summary::marker { content: ''; }\n#cdd-final .rf-demo summary::after { content: '\u2197'; margin-left: auto; font-size: 23px; line-height: 1; }\n#cdd-final .rf-demo[open] summary::after { content: '\u2212'; }\n#cdd-final .rf-demo summary:hover { background: #d4f4a4; }\n#cdd-final .rf-toolbar { padding: 14px 18px; display: flex; justify-content: flex-end; }\n#cdd-final .rf-demo button, #cdd-final .rf-lightbox-toolbar button {\n  font: inherit; font-size: 12px; line-height: 1.4; min-height: 44px;\n  border: 1px solid #526047; border-radius: 4px;\n  background: transparent; color: var(--rf-text); padding: 10px 14px; cursor: pointer;\n}\n#cdd-final .rf-demo button:hover, #cdd-final .rf-lightbox-toolbar button:hover {\n  border-color: var(--rf-green); color: var(--rf-green);\n}\n#cdd-final .rf-demo iframe { display: block; width: 100%; height: 650px; border: 0; background: #f8f8fb; }\n#cdd-final .rf-status { font-size: 12px; padding: 0 22px; }\n#cdd-final .rf-status:empty { display: none; }\n#cdd-final .rf-demo:fullscreen {\n  position: fixed; inset: 0; display: block;\n  width: 100vw; height: 100dvh; max-width: none; max-height: none;\n  margin: 0; padding: 0; border: 0; border-radius: 0;\n  overflow: hidden; background: #000;\n}\n#cdd-final .rf-demo:fullscreen > summary { display: none; }\n#cdd-final .rf-demo:fullscreen .rf-toolbar {\n  position: absolute; inset: 0 0 auto;\n  display: flex; align-items: center; justify-content: flex-end;\n  height: 64px; padding: 10px 16px; margin: 0;\n  background: #000; z-index: 2;\n}\n#cdd-final .rf-demo:fullscreen iframe {\n  position: absolute; top: 64px; left: 0;\n  display: block; width: 100%; height: calc(100% - 64px) !important;\n  min-height: 0; max-height: none; margin: 0; padding: 0; border: 0;\n}\n#cdd-final .rf-disclosure { color: var(--rf-muted); font-size: 12px; line-height: 1.7; }\n#cdd-final .rf-impact .rf-section-body p:last-child {\n  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rf-line); color: var(--rf-text);\n}\n\n\/* Amplia\u00e7\u00e3o e zoom existentes. *\/\n#cdd-final .rf-lightbox {\n  width: min(1440px, calc(100vw - 32px)); height: fit-content;\n  max-width: none; max-height: calc(100dvh - 32px); padding: 0;\n  border: 1px solid var(--rf-line); border-radius: 6px;\n  background: #0d1012; color: var(--rf-text);\n  overflow: hidden; overscroll-behavior: contain;\n}\n#cdd-final .rf-lightbox[open] { display: flex; flex-direction: column; }\n#cdd-final .rf-lightbox::backdrop { background: rgba(0,0,0,.9); }\n#cdd-final .rf-lightbox-toolbar {\n  display: flex; justify-content: flex-end; align-items: center; gap: 10px;\n  padding: 12px 16px; border-bottom: 1px solid var(--rf-line); flex: none;\n}\n#cdd-final .rf-lightbox-view {\n  flex: 0 1 auto; min-height: 0; padding: 16px; overflow: auto;\n  overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; scrollbar-gutter: stable;\n}\n#cdd-final .rf-lightbox-view img {\n  display: block; margin: auto; width: auto; height: auto;\n  max-width: 100%; max-height: calc(100dvh - 124px); border: 0; border-radius: 3px;\n}\n#cdd-final .rf-lightbox:has(.rf-zoomed) { height: calc(100dvh - 32px); }\n#cdd-final .rf-lightbox-view.rf-zoomed { flex: 1 1 0%; }\n#cdd-final .rf-lightbox-view.rf-zoomed img { width: auto; height: auto; max-width: none; max-height: none; }\n\n@media (max-width: 850px) {\n  #cdd-final .rf-hero-grid { gap: 28px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }\n  #cdd-final .rf-facts { grid-template-columns: 1fr 1fr; }\n  #cdd-final .rf-editorial-grid, #cdd-final .rf-design-decision, #cdd-final .rf-prototype-intro { column-gap: 32px; }\n  #cdd-final .rf-validation { padding: 28px; }\n}\n@media (max-width: 700px) {\n  #cdd-final { width: calc(100vw - 36px); font-size: 16px; line-height: 1.75; }\n  body.page-id-235 .bp-case:has(#cdd-final) > .bp-case-header { width: calc(100vw - 36px); margin-bottom: 22px; }\n  body.page-id-235 .bp-case:has(#cdd-final) > .bp-case-header h1 { font-size: 27px; }\n  #cdd-final .rf-hero > p:first-child { font-size: 9px; letter-spacing: .07em; margin-bottom: 18px; }\n  #cdd-final .rf-hero h2 { font-size: 34px; margin-bottom: 23px; }\n  #cdd-final .rf-hero-grid, #cdd-final .rf-editorial-grid,\n  #cdd-final .rf-design-decision, #cdd-final .rf-prototype-intro { grid-template-columns: minmax(0, 1fr); gap: 22px; }\n  #cdd-final .rf-metric { margin-top: 0; padding: 0 0 0 20px; }\n  #cdd-final .rf-metric-value { font-size: 64px; }\n  #cdd-final .rf-metric-label { max-width: none; font-size: 15px; margin-top: 6px; }\n  #cdd-final .rf-facts { gap: 20px; margin-top: 24px; padding-top: 22px; }\n  #cdd-final .rf-section { padding: 34px 0; }\n  #cdd-final .rf-hero { padding: 0 0 30px; }\n  #cdd-final .rf-section h2 { font-size: 10px; margin-bottom: 14px; }\n  #cdd-final .rf-section .rf-section-heading h3,\n  #cdd-final .rf-design-decision > h3 { font-size: 29px; margin-bottom: 0; }\n  #cdd-final .rf-hero h2 { font-size: 34px; }\n  #cdd-final .rf-design-decision { padding: 8px 0 30px; }\n  #cdd-final .rf-design-decision + .rf-design-decision { padding-top: 30px; }\n  #cdd-final .rf-image, #cdd-final .rf-image.rf-form, #cdd-final .rf-image.rf-review {\n    margin-top: 0; padding: 9px; border-radius: 4px;\n  }\n  #cdd-final figcaption { font-size: 11px; margin-top: 10px; }\n  #cdd-final .rf-validation { padding: 24px 20px; }\n  #cdd-final .rf-validation-number { font-size: 72px; margin-top: 18px; }\n  #cdd-final .rf-demo { margin-top: 24px; }\n  #cdd-final .rf-demo summary { padding: 17px 18px; font-size: 14px; }\n  #cdd-final .rf-demo iframe { height: 560px; }\n  #cdd-final .rf-lightbox { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }\n  #cdd-final .rf-lightbox:has(.rf-zoomed) { height: calc(100dvh - 16px); }\n  #cdd-final .rf-lightbox-view { padding: 8px; }\n  #cdd-final .rf-lightbox-view img { max-height: calc(100dvh - 108px); }\n  #cdd-final .rf-lightbox-view.rf-zoomed img { max-height: none; }\n  #cdd-final .rf-lightbox-toolbar { padding: 8px; }\n}\n@media print {\n  #cdd-final .rf-demo, #cdd-final .rf-lightbox { display: none !important; }\n  #cdd-final { position: static; transform: none; width: 100%; background: white; color: #111; }\n  #cdd-final p, #cdd-final strong, #cdd-final h2, #cdd-final h3 { color: #111; }\n  #cdd-final .rf-editorial-grid, #cdd-final .rf-design-decision { display: block; }\n}\n\n#cdd-final ul{margin:18px 0 0;padding-left:21px;color:var(--rf-muted)}\n#cdd-final li{margin-bottom:10px;padding-left:4px}\n#cdd-final .rf-understanding .rf-design-decision{padding-bottom:32px}\n#cdd-final .rf-design-decision>h3:not([data-rf-step])::before{display:none}\n#cdd-final .rf-result-note{font-size:12px;line-height:1.7;max-width:340px}\n#cdd-final .rf-decision-copy>p:last-child>strong:only-child{display:block;border-left:2px solid var(--rf-green);padding-left:18px;color:var(--rf-green);font-weight:500}\n#cdd-final .rf-image+.rf-image{margin-top:22px}\n#cdd-final .rf-case-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;list-style:none;padding:24px 0;margin:0;border-top:1px solid var(--rf-line)}#cdd-final .rf-case-stages li{padding:0;margin:0;line-height:1.6}#cdd-final .rf-case-stages span{display:block;color:var(--rf-green);font-size:11px;margin-bottom:12px}#cdd-final .rf-case-stages strong{display:block;font-size:14px;font-weight:500}#cdd-final .rf-case-stages small{display:block;color:var(--rf-muted);font-size:11px;margin-top:10px}@media(max-width:700px){#cdd-final .rf-case-stages{grid-template-columns:1fr 1fr;gap:24px}}\n\n<\/style>\n<div id=\"cdd-final\" lang=\"en\"><section class=\"rf-section rf-hero\"><p><strong>Evoke \u00b7 Enterprise Product Design \u00b7 2025<\/strong><\/p><h2>Making complex <span class=\"rf-text-accent\">compliance workflows<\/span> easier to manage<\/h2><div class=\"rf-hero-grid\"><div class=\"rf-lead-copy\"><p>Customer Due Diligence requires compliance teams to review customer information, evaluate risk signals, and document decisions.<\/p>\n<p>I led the UX and UI design of a four-stage workflow that coordinated analyst review with company-built AIs. Between stages, those AIs checked internal databases, documents and internet sources to surface inconsistencies and potential fraud indicators.<\/p>\n<p>The experience allowed analysts to work on other available tasks while processing continued, keeping each case traceable through to the final recommendation.<\/p><\/div><p class=\"rf-metric\"><strong><span class=\"rf-metric-value\">~30%<\/span><span class=\"rf-metric-label\"> reduction in average case handling time<\/span><\/strong><\/p><\/div><p class=\"rf-facts\"><span class=\"rf-fact\"><strong>My role:<\/strong>Lead UX\/UI Designer<\/span><span class=\"rf-fact\"><strong>Timeline:<\/strong>Approximately six months, 2025<\/span><span class=\"rf-fact\"><strong>Partners:<\/strong>Compliance Operations, Business and Engineering<\/span><span class=\"rf-fact\"><strong>Tools:<\/strong>Figma, Miro, OutSystems<\/span><\/p><\/section><section class=\"rf-section rf-context\"><div class=\"rf-editorial-grid\"><div class=\"rf-section-heading\"><h2>01. The Challenge<\/h2><h3>Complex workflows with limited visibility<\/h3><\/div><div class=\"rf-section-body\"><p>CDD agents had to navigate multiple sources of information, interpret risk signals, and coordinate with other teams before completing a case.<\/p>\n<p>Ownership was not always clear, workflow steps varied, and important decisions were difficult to trace. The time spent navigating between systems added unnecessary effort to an already demanding process.<\/p>\n<p>The challenge was to create a consistent experience that supported both the people making decisions and the compliance requirements behind those decisions.<\/p>\n<p>Three priorities guided the redesign:<\/p>\n<ul><li>Make ownership and next actions immediately understandable.<\/li><li>Bring relevant customer information and evidence closer to the decision.<\/li><li>Integrate validation and traceability into the everyday workflow.<\/li><\/ul><\/div><\/div><\/section><section class=\"rf-section rf-understanding\"><h2>02. Understanding and Exploring the Workflow<\/h2><div class=\"rf-design-decision\"><h3>Designing around real operational responsibilities<\/h3><div class=\"rf-decision-copy\"><p>I worked with Compliance Operations and business stakeholders to understand how cases moved between agents, reviewers, and administrative roles.<\/p>\n<p>Rather than treating each screen independently, I focused on the complete lifecycle of a case: assignment, review, decision, and completion.<\/p>\n<p>This helped identify where navigation, unclear ownership, and inconsistent actions were creating unnecessary work.<\/p><p>The queue was a shared worklist across cases and stages. It was not a four-screen menu: each stage could include several review states, edits and supporting information.<\/p><\/div><\/div><div class=\"rf-design-decision\"><h3>Coordinating human review with intermediate AI checks<\/h3><div class=\"rf-decision-copy\"><p>The AIs were part of the product workflow. Built by the company, they processed information between stages and checked internal databases, documents and the internet for inconsistencies and potential fraud indicators.<\/p><p>Completing a stage finished and removed that stage\u2019s review task. Intermediate processing then prepared the next stage. The analyst did not need to monitor a separate AI queue or wait on that case: they could pick up another available task. When processing finished, the next-stage task became available automatically.<\/p><p><strong>A task finishing and a case finishing were different events. A case left the queue completely only after the final investigation and recommendation.<\/strong><\/p><\/div><\/div><ol class=\"rf-case-stages\" aria-label=\"Four CDD stages\"><li><span>01<\/span><strong>False-positive check<\/strong><small>Intermediate company-AI checks prepare the next stage<\/small><\/li><li><span>02<\/span><strong>Customer information<\/strong><small>Intermediate company-AI checks prepare the next stage<\/small><\/li><li><span>03<\/span><strong>Address information<\/strong><small>Intermediate company-AI checks prepare the final review<\/small><\/li><li><span>04<\/span><strong>Investigation &#038; recommendation<\/strong><small>Final recommendation completes the case<\/small><\/li><\/ol><\/section><section class=\"rf-section rf-decisions-section\"><h2>03. Design Decisions<\/h2><div class=\"rf-design-decision\"><h3 data-rf-step=\"01\">Making ownership and progress explicit<\/h3><div class=\"rf-decision-copy\"><p>I reorganized the experience around a task-based workflow.<\/p>\n<p>Each case makes its status, assigned owner, and available actions clear. Task states such as assigned, in progress, and completed give agents a consistent understanding of where work stands.<\/p>\n<p>Actions including claiming, releasing, resuming, and completing tasks reflect the actual responsibilities within the operation.<\/p>\n<p>This reduced ambiguity during reviews and handoffs, particularly when a case needed to be reassigned or returned for more information.<\/p><p>Current task communicated which part of the process needed attention. Finishing removed that task from the worklist; the next stage appeared automatically after the intermediate check completed. Earlier-stage information remained accessible for consultation without reopening completed tasks.<\/p><\/div><figure class=\"rf-image\"><button type=\"button\" class=\"rf-image-open\" data-rf-image aria-haspopup=\"dialog\" aria-controls=\"cdd-image-dialog\" aria-label=\"Enlarge queue screen\"><img src=\"https:\/\/brunopavani.com\/wp-content\/uploads\/2026\/11\/cdd-01-fila-de-tarefas.png\" alt=\"Current task identifies each case\u2019s stage. Only available review tasks are shown; intermediate AI processing happens in the background. Portfolio reconstruction.\" loading=\"lazy\" decoding=\"async\"><\/button><figcaption>Current task identifies each case\u2019s stage. Only available review tasks are shown; intermediate AI processing happens in the background. Portfolio reconstruction.<\/figcaption><\/figure><\/div><div class=\"rf-design-decision\"><h3 data-rf-step=\"02\">Bringing evidence closer to decisions<\/h3><div class=\"rf-decision-copy\"><p>Compliance agents need to evaluate information before they can act. When that information is scattered, the interface becomes an obstacle.<\/p>\n<p>I structured review screens to bring customer identity information, risk signals, and supporting evidence into a more coherent working context.<\/p>\n<p>Consistent placement of information and structured rationale fields helped agents focus on the decision instead of navigating between disconnected views.<\/p>\n<p>The objective was not to show everything at once, but to make the right information available when it was needed.<\/p><\/div><figure class=\"rf-image\"><button type=\"button\" class=\"rf-image-open\" data-rf-image aria-haspopup=\"dialog\" aria-controls=\"cdd-image-dialog\" aria-label=\"Enlarge decision screen\"><img src=\"https:\/\/brunopavani.com\/wp-content\/uploads\/2026\/11\/cdd-02-analise-falso-positivo.png\" alt=\"Stage 1 \u2014 false-positive review. Current task identifies the review in progress. Portfolio reconstruction.\" loading=\"lazy\" decoding=\"async\"><\/button><figcaption>Stage 1 \u2014 false-positive review. Current task identifies the review in progress. Portfolio reconstruction.<\/figcaption><\/figure><figure class=\"rf-image\"><button type=\"button\" class=\"rf-image-open\" data-rf-image aria-haspopup=\"dialog\" aria-controls=\"cdd-image-dialog\" aria-label=\"Enlarge identity screen\"><img src=\"https:\/\/brunopavani.com\/wp-content\/uploads\/2026\/11\/cdd-03-informacoes-cliente.png\" alt=\"Stage 2 \u2014 customer information. Data returned from the checks is presented with its source for analyst review. Portfolio reconstruction.\" loading=\"lazy\" decoding=\"async\"><\/button><figcaption>Stage 2 \u2014 customer information. Data returned from the checks is presented with its source for analyst review. Portfolio reconstruction.<\/figcaption><\/figure><\/div><div class=\"rf-design-decision\"><h3 data-rf-step=\"03\">Turning compliance requirements into usable controls<\/h3><div class=\"rf-decision-copy\"><p>Validation was a fundamental part of the experience.<\/p>\n<p>I translated operational requirements into mandatory fields, state-aware actions, and clear error feedback.<\/p>\n<p>These interaction patterns help prevent incomplete submissions and invalid workflow transitions while providing understandable recovery paths when something needs to be corrected.<\/p>\n<p>By making the correct next action more apparent, the interface supports both efficiency and process compliance.<\/p><\/div><figure class=\"rf-image\"><button type=\"button\" class=\"rf-image-open\" data-rf-image aria-haspopup=\"dialog\" aria-controls=\"cdd-image-dialog\" aria-label=\"Enlarge address screen\"><img src=\"https:\/\/brunopavani.com\/wp-content\/uploads\/2026\/11\/cdd-04-verificacao-endereco.png\" alt=\"Stage 3 \u2014 address information. Source comparison and editing are based on the original address-review screens. Portfolio reconstruction.\" loading=\"lazy\" decoding=\"async\"><\/button><figcaption>Stage 3 \u2014 address information. Source comparison and editing are based on the original address-review screens. Portfolio reconstruction.<\/figcaption><\/figure><\/div><div class=\"rf-design-decision\"><h3 data-rf-step=\"04\">Making every decision traceable<\/h3><div class=\"rf-decision-copy\"><p>A compliance workflow must explain not only the final outcome, but how that outcome was reached.<\/p>\n<p>The redesigned experience connects task progression, recorded actions, and decision rationale to a consistent case history.<\/p>\n<p>This improves accountability during daily operations and makes information easier to retrieve during reviews and audits.<\/p><p>The final stage brought together Accounts, Payment, Company, Risk, Background, Associates, Received Documents and Safer Gambling. The profile summary and officer recommendation concluded that review and completed the case.<\/p><\/div><figure class=\"rf-image\"><button type=\"button\" class=\"rf-image-open\" data-rf-image aria-haspopup=\"dialog\" aria-controls=\"cdd-image-dialog\" aria-label=\"Enlarge recommendation screen\"><img src=\"https:\/\/brunopavani.com\/wp-content\/uploads\/2026\/11\/cdd-05-investigacao-recomendacao.png\" alt=\"Stage 4 contains multiple investigation sections, the profile summary and the final recommendation. Completing the recommendation removes the case entirely. Portfolio reconstruction.\" loading=\"lazy\" decoding=\"async\"><\/button><figcaption>Stage 4 contains multiple investigation sections, the profile summary and the final recommendation. Completing the recommendation removes the case entirely. Portfolio reconstruction.<\/figcaption><\/figure><\/div><\/section><section class=\"rf-section rf-validation\"><div class=\"rf-editorial-grid\"><div class=\"rf-section-heading\"><h2>04. Delivery and Reusable Patterns<\/h2><h3>Building for consistency beyond one workflow<\/h3><\/div><div class=\"rf-section-body\"><p>I worked closely with Compliance Operations, business stakeholders, and Engineering throughout delivery.<\/p>\n<p>The final layouts and screens were reviewed and approved with the relevant stakeholders, with implementation shaped around OutSystems capabilities and constraints.<\/p>\n<p>I established consistent patterns for navigation, task states, actions, evidence, notes, validation, and history.<\/p>\n<p>These patterns gave the CDD system a more coherent experience while providing a foundation for related operational processes, including KYC updates and AML alerts.<\/p>\n<p>The aim was to build something maintainable and reusable, rather than treating every new compliance workflow as a separate interface.<\/p><\/div><\/div><\/section><section class=\"rf-section rf-prototype-section\"><div class=\"rf-prototype-intro\"><div class=\"rf-section-heading\"><h2>05. Explore the Experience<\/h2><h3>Explore the reconstructed CDD workflow<\/h3><\/div><div class=\"rf-prototype-copy\"><p>Work through the four stages of a case: false-positive check, customer information, address information, and investigation with the final recommendation.<\/p><p>Finish a stage task and pick up another available task. The next stage becomes available automatically when the simulated background check finishes. Earlier-stage information can be consulted without reopening completed tasks. The final recommendation removes the case entirely.<\/p><p>The fourth stage includes eight investigation sections and multiple review states. AI processing, its timing and the example data are simulated; the prototype does not query company systems or internet sources.<\/p><\/div><\/div><details class=\"rf-demo\" data-rf-demo><summary>Explore the interactive CDD prototype<\/summary><div class=\"rf-toolbar\"><button type=\"button\" data-rf-fullscreen>Full screen \u2197<\/button><\/div><p class=\"rf-status\" role=\"status\" data-rf-status><\/p><iframe title=\"CDD \u2014 interactive portfolio prototype\" sandbox=\"allow-scripts\" loading=\"lazy\" srcdoc=\"&lt;!doctype html&gt;\n&lt;html lang=&quot;en&quot;&gt;&lt;head&gt;&lt;meta charset=&quot;utf-8&quot;&gt;&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1&quot;&gt;&lt;meta name=&quot;color-scheme&quot; content=&quot;light&quot;&gt;&lt;title&gt;Evoke \u00b7 Customer Due Diligence \u2014 Portfolio prototype&lt;\/title&gt;&lt;style&gt;\n:root{--purple:#7c70e5;--purple-deep:#373266;--purple-hover:#675ad0;--purple-soft:#f2f0ff;--teal:#03ccb8;--teal-soft:#e5fffc;--ink:#2d2d2e;--sub:#6f7180;--muted:#9596a3;--line:#e8e8ed;--canvas:#f8f8fb;--white:#fff;--success:#0b8165;--danger:#bc4f58;--warning:#a57726;--shadow:0 2px 8px rgba(34,29,78,.025);--radius:12px}\n*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#e7e6ed;color:var(--ink);font-family:&quot;Century Gothic&quot;,Inter,&quot;Segoe UI&quot;,Arial,sans-serif;font-size:13px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c1bafe;outline-offset:1px}button:disabled{opacity:.5;cursor:not-allowed}.app{max-width:1760px;margin:0 auto;background:var(--canvas);min-height:100vh;box-shadow:0 18px 100px #38334b12}.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;background:var(--purple-deep);color:white;padding:0 40px;gap:24px}.brand{font-size:29px;line-height:1;font-weight:800;letter-spacing:-2px;color:white}.brand .dot{color:var(--teal)}.top-centre{font-size:12px;opacity:.68;letter-spacing:.14em;text-transform:uppercase;font-weight:750}.top-right{display:flex;gap:16px;align-items:center}.top-right .case{border:1px solid #716a9e;padding:8px 12px;border-radius:7px;font-size:11px;color:#ecebfc}.avatar{border-radius:50%;height:33px;width:33px;background:#a89efa;color:#312c62;display:grid;place-items:center;font-size:12px;font-weight:800}.shell{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:900px}.side{background:#fff;border-right:1px solid var(--line);padding:34px 18px 20px;display:flex;flex-direction:column;gap:0}.side-label{font-size:10px;color:#9694a4;letter-spacing:1.1px;font-weight:800;padding:0 15px;text-transform:uppercase}.side-product{font-size:18px;font-weight:800;letter-spacing:-.6px;padding:8px 15px 28px}.side-product span{font-size:11px;font-weight:400;display:block;margin-top:5px;color:#9b9aaa;letter-spacing:0}.navbtn{width:100%;display:flex;align-items:center;gap:13px;padding:13px 14px;margin:3px 0;border-radius:9px;border:0;background:transparent;color:#777682;text-align:left;font-size:13px;font-weight:650;transition:background .14s}.navbtn svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;flex-shrink:0}.navbtn.active{background:var(--purple-soft);color:#6256c7}.navbtn:hover:not(.active){background:#f9f8ff}.side-divider{height:1px;background:var(--line);margin:21px 14px}.side-info{margin-top:auto;padding:17px 13px;background:#f9f8ff;border:1px solid #ece9ff;border-radius:10px}.side-info strong{font-size:12px;display:block;color:#53479c}.side-info p{color:#848096;font-size:11px;line-height:1.55;margin:9px 0 0}.workspace{min-width:0;padding:33px clamp(24px,3.2vw,55px) 60px}.crumb{color:#a09eae;font-size:11px;margin-bottom:26px}.crumb b{color:#7066bf;font-weight:700}.pagehead{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;margin-bottom:26px}.eyebrow{font-size:10px;font-weight:850;letter-spacing:.16em;text-transform:uppercase;color:var(--purple);margin-bottom:10px}.pagehead h1{font-size:30px;line-height:1.15;font-weight:800;letter-spacing:-1.25px;margin:0 0 9px}.pagehead p{font-size:13px;color:var(--sub);line-height:1.55;margin:0;max-width:610px}.head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.role-select label{display:block;font-size:10px;color:#88869a;font-weight:800;text-transform:uppercase;letter-spacing:.1em;margin-bottom:7px}.role-select select{min-width:210px;font-weight:750;color:#3e3a50}.select,input,textarea,select{background:#fff;border:1px solid #dedee8;border-radius:8px;padding:11px 12px;color:var(--ink)}input::placeholder,textarea::placeholder{color:#aaa9b5}.btn{border:1px solid #dcdbe8;border-radius:8px;background:white;color:#524d69;font-size:12px;font-weight:760;min-height:39px;padding:10px 15px;display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:nowrap;transition:transform .15s,border-color .15s,background .15s}.btn:hover{border-color:#b5aff0;background:#faf9ff}.btn:active{transform:translateY(1px)}.btn.primary{color:white;background:var(--purple);border-color:var(--purple)}.btn.primary:hover{background:var(--purple-hover)}.btn.subtle{color:#655ac1;background:var(--purple-soft);border-color:transparent}.btn.danger{color:var(--danger);background:white;border-color:#f0cbcb}.btn.link{border:0;padding:6px;background:none;min-height:auto;color:var(--purple)}.btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.notice{border-radius:var(--radius);background:#f0edff;border:1px solid #e5e1fe;padding:19px 23px;display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:23px}.notice strong{font-size:14px;color:#453a9c;display:block;margin-bottom:6px}.notice p{margin:0;font-size:12px;line-height:1.5;color:#706b91}.notice .spark{font-size:22px;color:#8273e9}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.card-header{padding:21px 24px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px}.card-header h2{font-size:16px;letter-spacing:-.4px;margin:0;font-weight:790}.card-header .helper{font-size:11px;color:#9b98aa}.work-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(275px,.8fr);gap:22px;align-items:start}.tabs{padding:0 22px;display:flex;gap:25px;border-bottom:1px solid var(--line);overflow-x:auto}.tab{position:relative;white-space:nowrap;padding:13px 0 15px;border:none;background:transparent;color:#92909c;font-size:11px;font-weight:760}.tab.current{color:#6054c5}.tab.current:after{content:&quot;&quot;;position:absolute;bottom:0;left:0;right:0;height:2px;border-radius:2px;background:var(--purple)}.tab-count{border-radius:4px;background:#f1f0f5;color:#89869b;padding:3px 6px;margin-left:6px;font-size:10px}.tab.current .tab-count{color:#6152c1;background:#efecff}.filters{display:flex;gap:11px;align-items:center;padding:17px 22px}.searchbox{flex:1;position:relative;min-width:100px}.searchbox svg{width:16px;position:absolute;left:13px;top:13px;fill:none;stroke:#a6a3b3;stroke-width:2}.searchbox input{width:100%;padding-left:39px;font-size:12px;min-height:42px}.filters select{font-size:11px;padding:12px 12px;min-height:42px}.table-scroller{overflow-x:auto}.data-table{border-collapse:collapse;width:100%;min-width:610px;text-align:left}.data-table th{background:#fbfbfd;border-top:1px solid #f1f0f4;border-bottom:1px solid var(--line);padding:14px 19px;font-size:10px;color:#9896a2;font-weight:800;white-space:nowrap}.data-table td{border-bottom:1px solid #f1f0f5;padding:17px 19px;font-size:11px;color:#6d6b78;vertical-align:middle}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fdfcff}.record-title{display:block;color:#343340;font-size:12px;font-weight:750;white-space:nowrap;margin-bottom:5px}.id{color:#786ee2;font-weight:750;font-size:11px}.small{font-size:10px;color:#9695a4}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:7px 10px;font-size:10px;font-weight:800;white-space:nowrap}.pill:before{content:&quot;&quot;;width:6px;height:6px;border-radius:50%;background:currentColor}.pill.progress{background:#f0edff;color:#6859ce}.pill.approved{background:#e6f8f1;color:#0c8465}.pill.rejected{background:#ffefef;color:#b7585b}.pill.draft{background:#f0f0f3;color:#7b7c87}.table-footer{padding:16px 22px;display:flex;justify-content:space-between;align-items:center;color:#9694a3;font-size:11px;border-top:1px solid var(--line)}.icon-arrow{font-size:15px;color:#695bd0}.timeline{padding:4px 24px 10px}.event{display:flex;gap:13px;position:relative;padding-bottom:26px}.event:before{content:&quot;&quot;;position:absolute;top:18px;bottom:0;left:7px;width:1px;background:#e4e3ed}.event:last-child:before{display:none}.event .bullet{position:relative;z-index:1;margin-top:3px;width:15px;height:15px;background:white;border:3px solid var(--purple);border-radius:50%;flex:0 0 15px}.event.done .bullet{border-color:#03b8a6}.event.muted .bullet{border-color:#d5d3e2}.event h4{margin:0 0 5px;font-size:11px;font-weight:800;color:#3e3b4c}.event p{margin:0;color:#93919e;font-size:10px;line-height:1.5}.sidehint{background:#f9f8ff;padding:16px 17px;font-size:11px;line-height:1.65;color:#797392;border-top:1px solid #eeeaff}.statline{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:12px 0;font-size:11px}.statline:last-child{border:0}.statline .text{color:#94919e}.statline strong{color:#484451}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,.45fr);gap:22px;align-items:start}.details-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.steps{display:flex;align-items:center;gap:0;overflow-x:auto;padding:23px 22px}.step{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:10px;color:#9694a1;font-weight:760}.step-number{border-radius:50%;background:#ecebf1;color:#8b8995;width:25px;height:25px;display:grid;place-items:center;font-size:10px}.step.done{color:#0b846d}.step.done .step-number{color:#0b846d;background:#e3f8f2}.step.current{color:#6156c8}.step.current .step-number{background:#7c70e5;color:white}.step-join{height:1px;background:#e9e8ef;width:clamp(10px,2vw,32px);margin:0 9px;flex-shrink:0}.detail-section{padding:21px 24px;border-top:1px solid var(--line)}.detail-section h3{font-size:13px;margin:0 0 17px;letter-spacing:-.1px}.kv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 24px}.kv label{display:block;font-size:10px;color:#9795a2;margin-bottom:7px}.kv strong{display:block;font-size:12px;color:#403e48;line-height:1.45;font-weight:700}.detail-switch{border-bottom:1px solid var(--line);display:flex;gap:21px;padding:0 24px}.detail-tab{background:none;border:none;padding:16px 0;color:#9794a2;font-size:12px;font-weight:750;position:relative}.detail-tab.active{color:#6a5ed1}.detail-tab.active:after{content:&quot;&quot;;position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--purple)}.decision-body{padding:21px 24px}.decision-body label{display:block;font-size:11px;font-weight:750;color:#4e4a5d;margin:20px 0 8px}.decision-body textarea{width:100%;min-height:112px;resize:vertical;font-size:12px;line-height:1.5}.decision-body .buttons{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}.reassurance{margin-top:17px;font-size:10px;line-height:1.6;color:#9996a6}.note{background:#f6f4ff;border:1px solid #e8e3ff;border-radius:8px;padding:13px 15px;color:#706a92;font-size:11px;line-height:1.55}.intro-wrap{max-width:1030px}.flow-steps{display:flex;gap:0;align-items:center;margin-bottom:22px}.flow-step{display:flex;align-items:center;gap:9px;color:#9894a4;font-size:11px;font-weight:700;white-space:nowrap}.flow-step i{font-style:normal;background:#eeeef3;color:#898795;border-radius:50%;display:grid;place-items:center;width:28px;height:28px;font-weight:800}.flow-step.done i{background:#e3f8f2;color:#0a8069}.flow-step.current{color:#6359c4}.flow-step.current i{background:var(--purple);color:white}.flow-line{height:1px;background:#e4e2ec;flex:1;min-width:9px;margin:0 9px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px 24px}.field{display:flex;flex-direction:column;gap:9px;min-width:0}.field.wide{grid-column:1\/-1}.field label{font-size:11px;font-weight:740;color:#53505c}.field input,.field textarea,.field select{width:100%;font-size:12px;min-height:43px}.field textarea{min-height:97px;resize:vertical}.req{color:var(--purple)}.form-help{font-size:10px;color:#9794a5;line-height:1.55}.form-actions{padding:21px 24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.form-actions .right{display:flex;gap:9px}.compact{max-width:1190px}.statsbar{display:grid;grid-template-columns:repeat(3,1fr);gap:19px;margin-bottom:23px}.stat{border:1px solid var(--line);border-radius:var(--radius);background:white;padding:20px 23px}.stat .k{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#9b98a5;font-weight:800}.stat .v{font-size:22px;letter-spacing:-.7px;font-weight:800;margin-top:7px}.stat .hint{font-size:11px;color:#85828f;margin-top:6px}.tokens{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;padding:22px}.token{border:1px solid var(--line);border-radius:9px;overflow:hidden}.token .swatch{height:78px}.token .spec{padding:12px}.token .name{font-size:11px;font-weight:700}.token .hex{font-size:10px;color:#92909d;margin-top:6px}.pattern-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:24px}.foot{margin-top:26px;color:#aaa8b6;font-size:10px;line-height:1.6;display:flex;align-items:center;gap:9px}.foot b{color:#7e75c5}.empty{padding:45px 20px;text-align:center;color:#9a98a6;font-size:12px}.empty strong{display:block;color:#5a5666;margin-bottom:6px}.modal-backdrop{position:fixed;inset:0;background:#26223d92;display:grid;place-items:center;z-index:100;padding:20px}.modal{width:min(440px,100%);border-radius:16px;background:white;box-shadow:0 20px 80px #15112d30;padding:27px}.modal h2{font-size:20px;margin:0 0 8px;letter-spacing:-.6px}.modal p{font-size:12px;line-height:1.6;color:#777483}.modal textarea{width:100%;height:100px;resize:vertical;margin-top:15px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.toast{position:fixed;z-index:120;bottom:24px;right:24px;background:#373266;color:white;padding:15px 20px;border-radius:10px;box-shadow:0 20px 50px #24203840;max-width:360px;font-size:12px;line-height:1.5;opacity:0;pointer-events:none;transform:translateY(12px);transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translateY(0)}.mobilebar{display:none}\n@media(max-width:1180px){.shell{grid-template-columns:220px minmax(0,1fr)}.work-grid,.detail-grid{grid-template-columns:minmax(0,1fr)}.workspace{padding:26px 28px}.side{padding:25px 12px}.side-info{margin-top:25px}}@media(max-width:820px){.topbar{padding:0 20px;height:64px}.top-centre,.case{display:none!important}.shell{display:block}.side{padding:10px 15px;flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);gap:6px}.side-label,.side-product,.side-divider,.side-info{display:none}.navbtn{min-width:max-content;margin:0;padding:10px 13px}.workspace{padding:22px 18px}.pagehead{flex-direction:column}.pagehead h1{font-size:26px}.statsbar{grid-template-columns:1fr 1fr}.tokens{grid-template-columns:1fr 1fr}}@media(max-width:540px){.filters{flex-wrap:wrap}.searchbox{flex-basis:100%}.pagehead h1{font-size:24px}.kv-grid,.form-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}.statsbar{grid-template-columns:1fr}.role-select select{width:100%}.notice{align-items:flex-start;padding:17px}.top-right{gap:10px}.steps{padding:18px}.step span:last-child{max-width:90px;white-space:normal}.token .swatch{height:58px}}\n\n\/* RTH presentation refinement: source-consistent styles, clearer hierarchy, no concept annotations *\/\nbody{background:#f8f8fb;font-size:14px}\n.app{max-width:1560px;box-shadow:none;min-height:740px}\n.topbar{height:69px;padding:0 36px}\n.top-centre{font-size:11px;opacity:.74;letter-spacing:.12em}\n.top-context{font-size:11px;color:#dcd9f2;letter-spacing:.025em;opacity:.86}\n.brand{font-size:30px}\n.shell{grid-template-columns:222px minmax(0,1fr);min-height:760px}\n.side{padding:30px 15px 20px}\n.side-product{padding-bottom:36px;font-size:17px}\n.navbtn{margin:4px 0;padding:15px 15px;font-size:13px}\n.workspace{padding:32px 38px 44px}\n.crumb{margin-bottom:22px;font-size:11px}\n.pagehead{margin-bottom:24px}\n.pagehead h1{font-size:32px;letter-spacing:-.04em}\n.pagehead p{font-size:13px}\n.card{border-radius:11px;border-color:#e4e4ec;box-shadow:0 8px 24px rgba(48,43,90,.035)}\n.card-header h2{font-size:16px}\n.work-grid{grid-template-columns:minmax(0,1.85fr) minmax(285px,.8fr);gap:20px}\n.notice{margin-bottom:21px;padding:16px 21px}\n.notice strong{font-size:13px}\n.notice p{font-size:12px}\n.data-table th{font-size:10px}\n.data-table td{font-size:12px}\n.record-title{font-size:12px}\n.tab{font-size:11px}\n.timeline{padding-top:10px}\n.demo-foot{display:flex;align-items:center;gap:7px;color:#9b99a6;padding-top:14px;font-size:10px;font-weight:500;letter-spacing:0}\n.demo-dot{height:6px;width:6px;border-radius:50%;background:#8b84da;display:inline-block}\n#roleSelect{background:white}\n@media(max-width:1180px){.work-grid,.detail-grid{grid-template-columns:1fr}.workspace{padding:25px}}\n@media(max-width:820px){.topbar{padding:0 18px}.top-context{display:none}.shell{display:block}.side{display:flex;flex-direction:row;overflow-x:auto;padding:9px;border-right:0;border-bottom:1px solid var(--line);gap:5px}.navbtn{width:auto;min-width:max-content;margin:0}.workspace{padding:18px 16px}.pagehead h1{font-size:26px}}\n@media(min-width:821px) and (max-width:1380px){.data-table{min-width:590px}}\n@media(max-width:540px){.notice{flex-direction:column;align-items:stretch}.notice .btn{align-self:flex-start}.top-centre{font-size:10px;letter-spacing:.03em}.pagehead{gap:14px}.role-select,.role-select select{width:100%}.data-table td{padding:14px 13px}}\n\n\n\/* Workflow shell: replaces the module sidebar. Stage definitions come from the confirmed CDD process. *\/\n.shell.workflow-shell{display:block;min-height:calc(100dvh - 69px)}\n.workflow-shell .workspace{width:100%;max-width:none;padding:26px clamp(18px,3vw,48px) 36px}\n.workflow-header{padding:22px clamp(18px,3vw,48px);background:#fff;border-bottom:1px solid var(--line)}\n.workflow-case-row{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}\n.workflow-case-heading{font-size:14px;font-weight:700;color:#4d4560}\n.workflow-case-subtitle{font-size:11px;line-height:1.6;color:#948a9e;margin:5px 0 0}\n.workflow-progress{display:flex;align-items:stretch;gap:8px;list-style:none;margin:22px 0 0;padding:0;overflow:auto}\n.workflow-progress li{position:relative;flex:1;min-width:160px;border:1px solid #e8e4f0;border-radius:8px;background:#fff;padding:14px 15px}\n.workflow-progress .is-current{background:#f3f0ff;border-color:#c2b7ef}\n.workflow-progress .is-complete{background:#f4fbf8;border-color:#d4ece3}\n.workflow-progress .is-processing{background:#f4f2ff;border-color:#b9a9ed}\n.workflow-progress .stage-index{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#eeebf6;color:#8c7ca9;font-size:10px;margin-bottom:9px}\n.workflow-progress .is-current .stage-index{background:#7c70e5;color:#fff}\n.workflow-progress .is-complete .stage-index{background:#dff5eb;color:#218269}\n.workflow-progress .stage-title{display:block;font-size:12px;line-height:1.5;color:#665a7a;font-weight:650}\n.workflow-progress .stage-state{display:block;font-size:10px;line-height:1.5;color:#9c90aa;margin-top:4px}\n.system-findings{border:1px solid #e0d8f4;background:#f8f6ff;border-radius:10px;margin-bottom:22px;overflow:hidden}\n.system-findings .findings-header{padding:15px 20px;border-bottom:1px solid #e9e2f5;display:flex;align-items:center;justify-content:space-between;gap:16px}\n.system-findings h2{font-size:13px;margin:0;color:#675486}\n.system-findings .findings-body{padding:18px 20px;font-size:12px;line-height:1.8;color:#867298}\n.workflow-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}\n.workflow-actions .workflow-context{font-size:11px;line-height:1.6;color:#968aa3}\n@media(max-width:700px){.workflow-header{padding:18px}.workflow-progress{gap:7px;margin-top:18px}.workflow-progress li{min-width:155px;padding:12px}.workflow-shell .workspace{padding:20px 16px 30px}}\n\n.workflow-shell .workspace{padding:26px clamp(18px,3vw,48px) 38px}.queue-explanation{display:flex;justify-content:space-between;align-items:start;gap:35px;background:#f1eeff;border:1px solid #e2dcf9;border-radius:10px;padding:19px 22px;margin-bottom:24px}.queue-explanation strong{font-size:13px;color:#675386;min-width:230px}.queue-explanation&gt;span{font-size:11px;line-height:1.8;color:#8b7b9c;max-width:650px}.background-list{padding:0 20px}.background-job{padding:20px 0;border-bottom:1px solid var(--line)}.background-job:last-child{border:0}.job-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.job-heading strong{font-size:12px;color:#5e4f72}.job-state{font-size:10px;color:#8a69ba;background:#f1ebff;padding:5px 8px;border-radius:5px}.background-job&gt;p{font-size:11px;line-height:1.7;color:#92819f;margin:9px 0 12px}.job-sources{display:flex;gap:5px;flex-wrap:wrap}.job-sources span{font-size:9px;background:#f6f4fa;color:#9d8dac;padding:5px 7px;border-radius:4px}.background-job .job-note{font-size:10px}.background-job .btn{font-size:10px;padding:9px 11px}.address-columns{display:grid;grid-template-columns:1fr 1fr;gap:0}.address-source{padding:26px}.address-source+.address-source{border-left:1px solid var(--line)}.address-source h3{font-size:17px;line-height:1.5;color:#5f526f;letter-spacing:-.3px}.address-details{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:23px 0}.address-details dt{font-size:10px;color:#a08fa9;margin-bottom:7px}.address-details dd{font-size:12px;color:#74617f;margin:0;line-height:1.6}.investigation-card{margin-bottom:24px}.investigation-section{border-bottom:1px solid var(--line)}.investigation-section:last-child{border-bottom:0}.investigation-section&gt;summary{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:19px 24px;cursor:pointer;list-style:none;font-size:12px;font-weight:600;color:#665270}.investigation-section&gt;summary::-webkit-details-marker{display:none}.investigation-section&gt;summary::after{content:'\u2304';color:#8b70d0;font-size:17px}.investigation-section[open]&gt;summary::after{content:'\u2303'}.review-state,.reviewed-state{margin-left:auto;font-size:9px;font-weight:500;background:#faf3e4;color:#9b7d3d;border-radius:5px;padding:5px 8px}.reviewed-state{background:#eaf7f0;color:#398166}.investigation-content{padding:2px 24px 23px}.review-description{font-size:11px;line-height:1.8;color:#9b89a6;margin:0 0 18px}.review-data{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding-bottom:22px}.review-data span{display:block;font-size:10px;line-height:1.6;color:#a38dac;margin-bottom:7px}.review-data strong{font-size:12px;line-height:1.7;color:#745a80;font-weight:500;overflow-wrap:anywhere}.investigation-content&gt;.btn{font-size:10px}.document-samples{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}.document-samples span{padding:13px 20px;border:1px solid var(--line);border-radius:5px;color:#82708e;font-size:12px}.workflow-case-heading .case-id{font-size:11px;color:#a18bac;font-weight:400}.workflow-header .btn{font-size:11px}.workflow-progress li{max-width:none}.workflow-progress .stage-title{font-size:11px}.workflow-progress .stage-state{font-size:9px}.system-findings{margin-bottom:22px}.system-findings .findings-body{font-size:11px;padding:14px 20px}.system-findings .findings-header{padding:12px 20px}.work-grid{grid-template-columns:minmax(0,2.1fr) minmax(285px,1fr)}.workflow-shell .stage-footer:empty{display:none}\n@media(max-width:1180px){.work-grid{grid-template-columns:minmax(0,1fr)}.review-data{grid-template-columns:repeat(2,minmax(0,1fr))}}\n@media(max-width:700px){.queue-explanation{flex-direction:column;gap:9px;padding:17px}.queue-explanation strong{min-width:0}.address-columns{grid-template-columns:1fr}.address-source{padding:21px}.address-source+.address-source{border-left:0;border-top:1px solid var(--line)}.review-data{grid-template-columns:1fr 1fr}.workflow-progress .stage-title{font-size:11px}.workflow-case-row{align-items:flex-start}.workflow-case-heading{font-size:13px}.investigation-section&gt;summary{padding:18px}.investigation-content{padding:0 18px 20px}.system-findings .findings-header{flex-wrap:wrap}.system-findings .findings-body{font-size:11px}}\n.case-history-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:18px;margin-top:17px;border-top:1px solid var(--line)}.case-history-nav&gt;span{font-size:10px;color:#9a8aa6;margin-right:6px}.case-history-nav .btn{font-size:10px;padding:9px 12px;min-height:38px}.case-history-nav [aria-pressed=true]{background:#f1ecff;color:#7461be;border-color:#bcaee6}.historical-notice{display:flex;flex-direction:column;gap:7px;border:1px solid #ddd5ef;background:#f5f1ff;border-radius:8px;padding:17px 21px;margin-bottom:23px}.historical-notice strong{font-size:13px;color:#76608e}.historical-notice&gt;span{font-size:11px;line-height:1.7;color:#9a86ab}.history-mode input:disabled,.history-mode select:disabled{opacity:1;color:#6b5c7a;background:#f8f6fc}.history-mode button:disabled{opacity:.45}.workflow-case-subtitle strong{color:#716180;font-weight:600}\n\n\/* The same component styling as the RTH portfolio reconstruction. *\/\nhtml,body{width:100%;min-width:0}body{background:#f8f8fb}.app{width:100%;max-width:none;min-height:100dvh;margin:0}.shell{min-height:calc(100dvh - 69px)}.workspace{min-width:0}.side-product{font-size:17px}.topbar .brand{text-decoration:none}.top-context{font-size:11px;color:#d8d5ef}.topbar .demo-tag{font-size:10px;color:#d8d5ef;white-space:nowrap}.pill.customer{background:#e7f9fb;color:#247d90}.pill.information{background:#faf4e7;color:#8b6e32}.pill.available{background:#f0eff5;color:#757180}.pill.closed{background:#e6f8f1;color:#0c8465}.table-scroll{width:100%;overflow:auto}.data-table.tasks{min-width:740px}.data-table.tasks td{padding:17px 18px}.data-table.tasks th{padding:14px 18px}.customer-cell strong{font-size:12px;color:#423e50;display:block;margin-bottom:5px}.customer-cell span{font-size:10px;color:#9a96a5}.row-action{white-space:nowrap}.task-subtitle{font-size:11px;color:#8e899b;line-height:1.6;margin:6px 0 0}.breadcrumbs{font-size:10px;color:#9b98a6;margin-bottom:20px}.breadcrumbs b{color:#8175cc;font-weight:600}.context-list{padding:8px 22px 18px}.context-item{padding:13px 0;border-bottom:1px solid var(--line);font-size:11px;line-height:1.6}.context-item:last-child{border:0}.context-item span{display:block;color:#95909f;font-size:10px;margin-bottom:4px}.context-item strong{font-weight:600;color:#4b4658}.review-nav{list-style:none;padding:10px 22px 17px;margin:0}.review-nav li{display:flex;gap:12px;align-items:start;padding:10px 0;color:#8b8798;font-size:11px}.review-nav b{display:grid;place-items:center;width:21px;height:21px;flex:0 0 21px;border-radius:50%;background:#f2efff;color:#786cce;font-size:10px}.case-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 22px;background:#f1eeff;border:1px solid #e3ddff;border-radius:11px;margin-bottom:22px}.case-strip .case-person{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.case-strip strong{font-size:13px;color:#4e467c}.case-strip .case-id{color:#8176b4;font-size:11px}.case-strip .ownership{font-size:11px;color:#877e9d;text-align:right}.case-strip .ownership b{color:#64578c;font-weight:600}.case-strip .ownership span{display:block;margin-top:4px}.review-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.review-actions .btn{font-size:11px}.metric-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.metric-tile{background:white;border:1px solid var(--line);border-radius:11px;padding:16px 20px}.metric-tile .caption{font-size:10px;color:#9791a3;margin-bottom:7px}.metric-tile strong{font-size:22px;color:#4a425e;letter-spacing:-.6px}.metric-tile small{font-size:10px;color:#9a95a5;display:block;margin-top:5px}.metric-tile.teal{background:#f0fcf9;border-color:#d8f4eb}.metric-tile.teal strong{color:#12856d}.criteria-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:24px;gap:26px 30px}.criterion-title{font-size:11px;color:#817b8d;line-height:1.6;display:block;margin-bottom:8px}.criterion-answer{display:flex;gap:9px;align-items:center;font-size:12px;color:#585065}.answer{font-size:10px;font-weight:700;border-radius:4px;padding:4px 7px;background:#fff1ee;color:#bd6356}.answer.no{background:#efedff;color:#7261c8}.criterion-detail{font-size:10px;color:#99919f;margin:7px 0 0}.decision-actions{border-top:1px solid var(--line);padding:17px 24px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.decision-actions .buttons{display:flex;gap:10px;flex-wrap:wrap}.decision-note{font-size:11px;color:#98919e;line-height:1.6}.deposit-filters{padding:16px 22px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.deposit-filters label{font-size:10px;color:#8b8397;display:flex;align-items:center;gap:8px}.deposit-filters select{font-size:11px;min-height:39px}.result-strip{font-size:11px;padding:14px 22px;color:#6e638c;border-top:1px solid var(--line);background:#fbfaff}.stage-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:22px;flex-wrap:wrap}.stage-footer .btn{font-size:11px}.source-section{padding:21px 24px;border-top:1px solid var(--line)}.source-section:first-child{border-top:0}.source-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.source-heading h3{font-size:13px;font-weight:700;letter-spacing:-.2px;margin:0;color:#554c67}.source-heading button{background:transparent;border:0;color:#8172d2;font-size:11px;cursor:pointer}.source-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.source-option{display:block;border:1px solid #e8e5ee;border-radius:8px;padding:15px;min-width:0;line-height:1.6}.source-option.selected{background:#f7f5ff;border-color:#b9aeef}.source-option input{accent-color:#7c70e5;margin:0 8px 0 0;vertical-align:middle}.source-name{font-size:10px;color:#92899f;display:block;margin-bottom:7px}.source-value{font-size:12px;color:#544a63;overflow-wrap:anywhere}.source-more{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.source-more label{font-size:10px;color:#9a92a3;display:block;margin-bottom:8px}.source-more strong{font-size:12px;color:#61566f;font-weight:600}.form-section{padding:23px 24px}.form-section+.form-section{border-top:1px solid var(--line)}.form-section .form-grid{grid-template-columns:1fr 1fr}.form-section .field label{font-size:11px;color:#6b5f7a}.form-section .field input,.form-section .field select,.form-section .field textarea{width:100%;min-height:43px}.form-section .field textarea{min-height:100px}.profile-guidance{font-size:11px;line-height:1.8;color:#90859b;margin:0 0 19px;max-width:850px}.required-note{font-size:10px;color:#99909f;margin:0 0 15px}.validation-message{font-size:11px;line-height:1.6;color:#b24d63;padding:12px 24px;background:#fff4f5;border-top:1px solid #f6dde2}.validation-message:empty{display:none}.demo-footer{font-size:10px;color:#a39aaf;line-height:1.7;margin:25px 0 0;display:flex;align-items:center;justify-content:space-between;gap:16px}.demo-footer button{font-size:10px;background:transparent;border:0;color:#8677bb;cursor:pointer;white-space:nowrap}.sample-dot{display:inline-block;width:5px;height:5px;background:#a390ed;border-radius:50%;margin-right:7px}.info-note{padding:16px 22px;font-size:11px;line-height:1.7;color:#978ba7;background:#fbfaff;border-top:1px solid var(--line)}.modal p{line-height:1.7}.modal input{width:100%;min-height:43px;margin-top:12px}.modal label{display:block;font-size:11px;color:#82778e;margin-top:14px}.modal select{width:100%;margin-top:8px}.toast{max-width:420px}.btn-link{padding:0;border:0;background:none;color:#8171cd;font-size:11px;cursor:pointer}.source-options .source-option:has(input:focus-visible){outline:2px solid #c1bafe;outline-offset:2px}\n@media(max-width:1180px){.criteria-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.case-strip{align-items:flex-start}.source-options{grid-template-columns:repeat(2,minmax(0,1fr))}}\n@media(max-width:820px){.topbar .demo-tag{font-size:9px}.case-strip{flex-direction:column;gap:12px}.case-strip .ownership{text-align:left}.case-strip .ownership span{display:inline;margin-left:12px}.metric-row{gap:10px}.metric-tile{padding:14px}.metric-tile strong{font-size:19px}.source-options{grid-template-columns:1fr}.side-product{display:none}.source-more{gap:12px}.top-centre{display:none}.criteria-grid{padding:20px}}\n@media(max-width:540px){.metric-row{grid-template-columns:1fr}.metric-tile{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.metric-tile .caption{margin:0;min-width:85px}.metric-tile small{margin:0}.criteria-grid{grid-template-columns:1fr;gap:22px}.form-section .form-grid{grid-template-columns:1fr}.source-more{grid-template-columns:1fr}.decision-actions{padding:17px}.source-section,.form-section{padding:20px 17px}.demo-footer{align-items:flex-start}.case-strip{padding:17px}.case-strip .case-person{gap:10px}.stage-footer{align-items:stretch}.topbar{padding:0 18px}.topbar .brand{font-size:26px}.source-heading{align-items:flex-start}.form-actions .right{flex-wrap:wrap}.metric-row{margin-bottom:18px}}\n.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.table-scroll{position:relative}.side nav{display:grid;gap:3px}.modal{border:0;max-height:calc(100dvh - 40px);overflow:auto}.modal::backdrop{background:#26223d92}@media(max-width:820px){.side nav{display:flex;gap:5px}.side nav .navbtn{flex-shrink:0}}\n.filters .searchbox{position:relative;display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent}.filters .searchbox&gt;span{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:18px;color:#a49caf;line-height:1;pointer-events:none}.filters .searchbox&gt;input{width:100%;min-width:0;padding-left:38px}.side-info{font-size:10px;line-height:1.7}\n&lt;\/style&gt;&lt;\/head&gt;\n&lt;body&gt;\n&lt;main class=&quot;app&quot;&gt;\n &lt;header class=&quot;topbar&quot;&gt;&lt;div class=&quot;brand&quot;&gt;evoke&lt;span class=&quot;dot&quot;&gt;.&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;top-centre&quot;&gt;COMPLIANCE OPERATIONS \/ CUSTOMER DUE DILIGENCE&lt;\/div&gt;&lt;div class=&quot;top-right&quot;&gt;&lt;span class=&quot;demo-tag&quot;&gt;Portfolio reconstruction&lt;\/span&gt;&lt;\/div&gt;&lt;\/header&gt;\n &lt;div class=&quot;shell workflow-shell&quot;&gt;&lt;div id=&quot;caseWorkflow&quot;&gt;&lt;\/div&gt;&lt;section class=&quot;workspace&quot; id=&quot;workspace&quot; aria-label=&quot;CDD demonstration&quot;&gt;&lt;\/section&gt;&lt;\/div&gt;\n&lt;\/main&gt;\n&lt;div class=&quot;toast&quot; id=&quot;toast&quot; role=&quot;status&quot; aria-live=&quot;polite&quot;&gt;&lt;\/div&gt;\n&lt;dialog id=&quot;demo-dialog&quot; class=&quot;modal&quot; aria-labelledby=&quot;modal-title&quot;&gt;&lt;\/dialog&gt;\n&lt;script&gt;\n(()=&gt;{\n const $=s=&gt;document.querySelector(s),ws=$('#workspace');\n const escape=s=&gt;String(s).replace(\/[&amp;&lt;&gt;&quot;']\/g,c=&gt;({'&amp;':'&amp;amp;','&lt;':'&amp;lt;','&gt;':'&amp;gt;','&quot;':'&amp;quot;',&quot;'&quot;:'&amp;#39;'}[c]));\n const icons={queue:'&lt;rect x=&quot;3&quot; y=&quot;3&quot; width=&quot;7&quot; height=&quot;7&quot; rx=&quot;1&quot;\/&gt;&lt;rect x=&quot;14&quot; y=&quot;3&quot; width=&quot;7&quot; height=&quot;7&quot; rx=&quot;1&quot;\/&gt;&lt;rect x=&quot;3&quot; y=&quot;14&quot; width=&quot;7&quot; height=&quot;7&quot; rx=&quot;1&quot;\/&gt;&lt;rect x=&quot;14&quot; y=&quot;14&quot; width=&quot;7&quot; height=&quot;7&quot; rx=&quot;1&quot;\/&gt;',decision:'&lt;path d=&quot;M9 12l2 2 4-4&quot;\/&gt;&lt;path d=&quot;M12 3l8 4v5c0 5-8 9-8 9S4 17 4 12V7z&quot;\/&gt;',identity:'&lt;circle cx=&quot;12&quot; cy=&quot;8&quot; r=&quot;4&quot;\/&gt;&lt;path d=&quot;M4 21v-3a8 8 0 0116 0v3&quot;\/&gt;',recommendation:'&lt;path d=&quot;M7 3h8l4 4v14H5V3zM14 3v5h5M8 12h8M8 16h8&quot;\/&gt;'};\n const views=[['queue','Task list'],['decision','False-positive review'],['identity','Customer information'],['recommendation','Summary &amp; recommendation']];\n const initial=[\n {id:'12345AB',name:'Amos Tesen',type:'False Positive Check',view:'decision',owner:'',done:false},\n {id:'12345CD',name:'Oliver William',type:'False Positive Check',view:'decision',owner:'John Smith',done:false},\n {id:'12345EF',name:'Thomas G. Charlie',type:'Customer Information',view:'identity',owner:'',done:false},\n {id:'12345IJ',name:'George Thomas',type:'More Info \/ Sum \/ Rec',view:'recommendation',owner:'',done:false},\n {id:'12345KL',name:'William Jacob',type:'More Info \/ Sum \/ Rec',view:'recommendation',owner:'',done:false},\n {id:'12345MN',name:'Adrian J. Thomas',type:'False Positive Check',view:'decision',owner:'',done:false},\n {id:'12345OP',name:'William W. Wilson',type:'False Positive Check',view:'decision',owner:'',done:false}\n ];\n let cases=initial.map(x=&gt;({...x})),selected='12345AB',view='queue',search='',typeFilter='All task types',classification='',chosenName='Amos Smith Tesen',customNames=[],customEmails=[],customPhones=[],toastTimer;\n const form={moh:'',affordability:'',summary:'',recommendationStatus:'',source:'',recommendation:''};\n const nav=document.createElement('nav');\n nav.innerHTML=views.map(([key,title])=&gt;'&lt;button type=&quot;button&quot; class=&quot;navbtn&quot; data-view=&quot;'+key+'&quot;&gt;&lt;svg viewBox=&quot;0 0 24 24&quot; aria-hidden=&quot;true&quot;&gt;'+icons[key]+'&lt;\/svg&gt;'+title+'&lt;\/button&gt;').join('');\n const btn=(text,cls='',attrs='')=&gt;'&lt;button type=&quot;button&quot; class=&quot;btn '+cls+'&quot; '+attrs+'&gt;'+text+'&lt;\/button&gt;';\n const current=()=&gt;cases.find(c=&gt;c.id===selected)||cases[0];\n const customerEmail=(suffix='')=&gt;current().id==='12345AB'?'amostesen'+suffix+'@email.com':current().name.toLowerCase().replace(\/[^a-z]\/g,'')+suffix+'@example.com';\n const kind=c=&gt;c.view==='identity'?'customer':c.view==='recommendation'?'information':'progress';\n function pill(text,cls='progress'){return '&lt;span class=&quot;pill '+cls+'&quot;&gt;'+escape(text)+'&lt;\/span&gt;'}\n function heading(title,subtitle,label){return '&lt;div class=&quot;breadcrumbs&quot;&gt;Evoke Internal Products \/ &lt;b&gt;Customer Due Diligence&lt;\/b&gt; \/ '+escape(title)+'&lt;\/div&gt;&lt;div class=&quot;pagehead&quot;&gt;&lt;div&gt;&lt;div class=&quot;eyebrow&quot;&gt;'+label+'&lt;\/div&gt;&lt;h1&gt;'+title+'&lt;\/h1&gt;&lt;p&gt;'+subtitle+'&lt;\/p&gt;&lt;\/div&gt;&lt;\/div&gt;'}\n function footer(){return '&lt;div class=&quot;demo-footer&quot;&gt;&lt;span&gt;&lt;i class=&quot;sample-dot&quot;&gt;&lt;\/i&gt;Visual reconstruction \u00b7 Sample data \u00b7 No actions are sent to Evoke systems&lt;\/span&gt;&lt;button type=&quot;button&quot; data-reset&gt;Reset demo&lt;\/button&gt;&lt;\/div&gt;'}\n function notice(){const c=current();const taskType=view==='identity'?'Customer Information':view==='recommendation'?'More Info \/ Sum \/ Rec':c.type;return '&lt;div class=&quot;case-strip&quot;&gt;&lt;div class=&quot;case-person&quot;&gt;'+pill(taskType,kind({view}))+'&lt;div&gt;&lt;strong&gt;'+escape(c.name)+'&lt;\/strong&gt;&lt;span class=&quot;case-id&quot;&gt; ('+c.id+')&lt;\/span&gt;&lt;p class=&quot;task-subtitle&quot;&gt;Source: EDD \u00b7 Deposit of \u00a310,000.00 in a day&lt;\/p&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;ownership&quot;&gt;Assigned to &lt;b&gt;'+escape(c.owner||'Unassigned')+'&lt;\/b&gt;&lt;span&gt;Created 31 Jan 2025, 07:45&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;'}\n function metrics(){return '&lt;div class=&quot;metric-row&quot;&gt;&lt;div class=&quot;metric-tile&quot;&gt;&lt;div class=&quot;caption&quot;&gt;MOH score&lt;\/div&gt;&lt;strong&gt;2&lt;\/strong&gt;&lt;small&gt;Customer-level signal&lt;\/small&gt;&lt;\/div&gt;&lt;div class=&quot;metric-tile teal&quot;&gt;&lt;div class=&quot;caption&quot;&gt;Net loss&lt;\/div&gt;&lt;strong&gt;\u00a3130.00&lt;\/strong&gt;&lt;small&gt;Review context&lt;\/small&gt;&lt;\/div&gt;&lt;div class=&quot;metric-tile&quot;&gt;&lt;div class=&quot;caption&quot;&gt;Trigger deposit&lt;\/div&gt;&lt;strong&gt;\u00a320,423.00&lt;\/strong&gt;&lt;small&gt;Compared with usual deposits&lt;\/small&gt;&lt;\/div&gt;&lt;\/div&gt;'}\n function queueRows(){const list=cases.filter(c=&gt;(typeFilter==='All task types'||c.type===typeFilter)&amp;&amp;(c.name+' '+c.id+' '+c.type).toLowerCase().includes(search.toLowerCase()));return list.length?list.map(c=&gt;'&lt;tr&gt;&lt;td&gt;'+pill(c.type,kind(c))+'&lt;\/td&gt;&lt;td class=&quot;customer-cell&quot;&gt;&lt;strong&gt;'+escape(c.name)+'&lt;\/strong&gt;&lt;span&gt;'+c.id+'&lt;\/span&gt;&lt;\/td&gt;&lt;td&gt;EDD&lt;\/td&gt;&lt;td&gt;Deposit of \u00a310,000.00 in a day&lt;\/td&gt;&lt;td&gt;31 Jan 2025&lt;br&gt;&lt;span class=&quot;small&quot;&gt;07:45&lt;\/span&gt;&lt;\/td&gt;&lt;td class=&quot;row-action&quot;&gt;'+(c.done?btn('View completed','','data-open=&quot;'+c.id+'&quot;'):btn(c.owner?'Continue':'Claim task',c.owner?'subtle':'','data-open=&quot;'+c.id+'&quot;'))+'&lt;\/td&gt;&lt;\/tr&gt;').join(''):'&lt;tr&gt;&lt;td colspan=&quot;6&quot;&gt;&lt;div class=&quot;empty&quot;&gt;&lt;strong&gt;No tasks match your search&lt;\/strong&gt;Try another customer or task type.&lt;\/div&gt;&lt;\/td&gt;&lt;\/tr&gt;'}\n function queue(){return heading('Task list','Find a case, take ownership and continue the review.','TASK-BASED WORKSPACE')+'&lt;div class=&quot;work-grid&quot;&gt;&lt;div class=&quot;card&quot;&gt;&lt;div class=&quot;card-header&quot;&gt;&lt;h2&gt;CDD tasks&lt;\/h2&gt;&lt;span class=&quot;helper&quot;&gt;Status and ownership&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;filters&quot;&gt;&lt;div class=&quot;searchbox&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;\u2315&lt;\/span&gt;&lt;input id=&quot;taskSearch&quot; aria-label=&quot;Search tasks&quot; placeholder=&quot;Search customer, ID or task&quot; value=&quot;'+escape(search)+'&quot;&gt;&lt;\/div&gt;&lt;select id=&quot;taskType&quot; aria-label=&quot;Filter by task type&quot;&gt;'+['All task types','False Positive Check','Customer Information','More Info \/ Sum \/ Rec'].map(t=&gt;'&lt;option'+(t===typeFilter?' selected':'')+'&gt;'+t+'&lt;\/option&gt;').join('')+'&lt;\/select&gt;&lt;\/div&gt;&lt;div class=&quot;table-scroll&quot;&gt;&lt;table class=&quot;data-table tasks&quot;&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;TASK STATUS&lt;\/th&gt;&lt;th&gt;CUSTOMER&lt;\/th&gt;&lt;th&gt;SOURCE&lt;\/th&gt;&lt;th&gt;CASE TRIGGER REASON&lt;\/th&gt;&lt;th&gt;CREATED ON&lt;\/th&gt;&lt;th&gt;&lt;span class=&quot;sr-only&quot;&gt;Action&lt;\/span&gt;&lt;\/th&gt;&lt;\/tr&gt;&lt;\/thead&gt;&lt;tbody id=&quot;tasksBody&quot;&gt;'+queueRows()+'&lt;\/tbody&gt;&lt;\/table&gt;&lt;\/div&gt;&lt;div class=&quot;table-footer&quot;&gt;&lt;span&gt;7 sample tasks from the original CDD queue&lt;\/span&gt;&lt;span&gt;SAMPLE DATA&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div&gt;&lt;div class=&quot;card&quot;&gt;&lt;div class=&quot;card-header&quot;&gt;&lt;h2&gt;Case context&lt;\/h2&gt;&lt;\/div&gt;&lt;div class=&quot;context-list&quot;&gt;&lt;div class=&quot;context-item&quot;&gt;&lt;span&gt;Customer&lt;\/span&gt;&lt;strong&gt;Amos Tesen \u00b7 12345AB&lt;\/strong&gt;&lt;\/div&gt;&lt;div class=&quot;context-item&quot;&gt;&lt;span&gt;Source&lt;\/span&gt;&lt;strong&gt;EDD&lt;\/strong&gt;&lt;\/div&gt;&lt;div class=&quot;context-item&quot;&gt;&lt;span&gt;Trigger reason&lt;\/span&gt;&lt;strong&gt;Deposit of \u00a310,000.00 in a day&lt;\/strong&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;card&quot; style=&quot;margin-top:20px&quot;&gt;&lt;div class=&quot;card-header&quot;&gt;&lt;h2&gt;Review views&lt;\/h2&gt;&lt;\/div&gt;&lt;ol class=&quot;review-nav&quot;&gt;&lt;li&gt;&lt;b&gt;1&lt;\/b&gt;False-positive review&lt;\/li&gt;&lt;li&gt;&lt;b&gt;2&lt;\/b&gt;Customer information&lt;\/li&gt;&lt;li&gt;&lt;b&gt;3&lt;\/b&gt;Summary &amp; recommendation&lt;\/li&gt;&lt;\/ol&gt;&lt;div class=&quot;sidehint&quot;&gt;The prototype demonstrates selected CDD views. It does not reproduce a live compliance workflow.&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;'}\n const criteria=[['Deposit greater than usual?','YES','Usual deposit \u00a320\u2013\u00a350 \u00b7 Trigger \u00a320,423'],['Followed by a substantially smaller deposit?','YES','Following deposit \u00a320'],['Net loss significantly below the threshold?','YES','Net loss \u00a3130 \u00b7 Threshold \u00a310,000'],['Rounded number?','NO','Trigger deposit \u00a320,423'],['Further deposits below the declined deposit?','YES','Following deposit \u00a320'],['Net loss near the threshold?','NO','Net loss \u00a3130 \u00b7 Threshold \u00a310,000']];\n const deposits=[['Instant Bank Transfer','Completed','20.00'],['Credit Card','Completed','20,423.00'],['Instant Bank Transfer','Declined','20.00'],['Credit Card','Completed','20.00'],['Instant Bank Transfer','Completed','20.00'],['Credit Card','Completed','20,423.00']];\n let depositMethod='All methods',depositState='All statuses';\n function depositRows(){const filtered=deposits.filter(r=&gt;(depositMethod==='All methods'||r[0]===depositMethod)&amp;&amp;(depositState==='All statuses'||r[1]===depositState));return filtered.length?filtered.map(r=&gt;'&lt;tr&gt;&lt;td&gt;31 Jan 2025, 07:45&lt;\/td&gt;&lt;td&gt;'+r[0]+'&lt;\/td&gt;&lt;td&gt;'+pill(r[1],r[1]==='Completed'?'approved':'rejected')+'&lt;\/td&gt;&lt;td&gt;GBP&lt;\/td&gt;&lt;td style=&quot;text-align:right&quot;&gt;'+r[2]+'&lt;\/td&gt;&lt;\/tr&gt;').join(''):'&lt;tr&gt;&lt;td colspan=&quot;5&quot;&gt;&lt;div class=&quot;empty&quot;&gt;No matching transactions&lt;\/div&gt;&lt;\/td&gt;&lt;\/tr&gt;'}\n function decision(){return heading('False-positive review','Compare the analyzed criteria with the supporting deposit activity.','EVIDENCE &amp; CLASSIFICATION')+notice()+metrics()+'&lt;div class=&quot;card&quot; style=&quot;margin-bottom:22px&quot;&gt;&lt;div class=&quot;card-header&quot;&gt;&lt;h2&gt;Criteria analyzed&lt;\/h2&gt;&lt;span class=&quot;helper&quot;&gt;Signals from the original design&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;criteria-grid&quot;&gt;'+criteria.map(r=&gt;'&lt;div&gt;&lt;span class=&quot;criterion-title&quot;&gt;'+r[0]+'&lt;\/span&gt;&lt;div class=&quot;criterion-answer&quot;&gt;&lt;span class=&quot;answer '+(r[1]==='NO'?'no':'')+'&quot;&gt;'+r[1]+'&lt;\/span&gt;&lt;\/div&gt;&lt;p class=&quot;criterion-detail&quot;&gt;'+r[2]+'&lt;\/p&gt;&lt;\/div&gt;').join('')+'&lt;\/div&gt;&lt;div class=&quot;decision-actions&quot;&gt;&lt;span class=&quot;decision-note&quot;&gt;'+(classification?'Demo classification: &lt;strong&gt;'+escape(classification)+'&lt;\/strong&gt;':'Review the evidence before choosing a classification.')+'&lt;\/span&gt;&lt;div class=&quot;buttons&quot;&gt;'+btn('False positive','','data-classify=&quot;False positive&quot;')+btn('Positive','primary','data-classify=&quot;Positive&quot;')+'&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;card&quot;&gt;&lt;div class=&quot;card-header&quot;&gt;&lt;h2&gt;Deposit information&lt;\/h2&gt;&lt;span class=&quot;helper&quot;&gt;Sample transaction details&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;deposit-filters&quot;&gt;&lt;label&gt;Method &lt;select id=&quot;depositMethod&quot;&gt;'+['All methods','Instant Bank Transfer','Credit Card'].map(m=&gt;'&lt;option'+(m===depositMethod?' selected':'')+'&gt;'+m+'&lt;\/option&gt;').join('')+'&lt;\/select&gt;&lt;\/label&gt;&lt;label&gt;Status &lt;select id=&quot;depositState&quot;&gt;'+['All statuses','Completed','Declined'].map(m=&gt;'&lt;option'+(m===depositState?' selected':'')+'&gt;'+m+'&lt;\/option&gt;').join('')+'&lt;\/select&gt;&lt;\/label&gt;&lt;\/div&gt;&lt;div class=&quot;table-scroll&quot;&gt;&lt;table class=&quot;data-table&quot;&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;DATE&lt;\/th&gt;&lt;th&gt;METHOD&lt;\/th&gt;&lt;th&gt;STATUS&lt;\/th&gt;&lt;th&gt;CURRENCY&lt;\/th&gt;&lt;th style=&quot;text-align:right&quot;&gt;AMOUNT&lt;\/th&gt;&lt;\/tr&gt;&lt;\/thead&gt;&lt;tbody id=&quot;depositsBody&quot;&gt;'+depositRows()+'&lt;\/tbody&gt;&lt;\/table&gt;&lt;\/div&gt;&lt;div class=&quot;table-footer&quot;&gt;&lt;span&gt;Selected sample transactions \u00b7 GBP&lt;\/span&gt;&lt;span&gt;ILLUSTRATIVE SUBSET&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;stage-footer&quot;&gt;'+btn('\u2190 Task list','','data-view=&quot;queue&quot;')+btn('Customer information \u2192','primary','data-view=&quot;identity&quot;')+'&lt;\/div&gt;'}\n function sourceOption(source,value,radio=false){const selectedOption=radio&amp;&amp;chosenName===value;return '&lt;label class=&quot;source-option'+(selectedOption?' selected':'')+'&quot;&gt;&lt;span class=&quot;source-name&quot;&gt;'+escape(source)+'&lt;\/span&gt;&lt;span class=&quot;source-value&quot;&gt;'+(radio?'&lt;input type=&quot;radio&quot; name=&quot;customerName&quot; value=&quot;'+escape(value)+'&quot;'+(selectedOption?' checked':'')+'&gt;':'')+escape(value)+'&lt;\/span&gt;&lt;\/label&gt;'}\n function identity(){return heading('Customer information','Review available values alongside the source they came from.','INFORMATION RECONCILIATION')+notice()+'&lt;div class=&quot;card&quot;&gt;&lt;div class=&quot;card-header&quot;&gt;&lt;h2&gt;Customer records&lt;\/h2&gt;&lt;span class=&quot;helper&quot;&gt;Compare information from different sources&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;source-section&quot;&gt;&lt;div class=&quot;source-heading&quot;&gt;&lt;h3&gt;Full name&lt;\/h3&gt;&lt;button type=&quot;button&quot; data-add=&quot;Name&quot;&gt;+ Add a new option&lt;\/button&gt;&lt;\/div&gt;&lt;div class=&quot;source-options&quot;&gt;'+sourceOption('From: OpenBet',current().name,true)+sourceOption('From: Retriver (Online)',current().id==='12345AB'?'Amos Smith Tesen':current().name,true)+customNames.map(n=&gt;sourceOption('Added in this demo',n,true)).join('')+'&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;source-section&quot;&gt;&lt;div class=&quot;source-heading&quot;&gt;&lt;h3&gt;Email address&lt;\/h3&gt;&lt;button type=&quot;button&quot; data-add=&quot;Email&quot;&gt;+ Add a new option&lt;\/button&gt;&lt;\/div&gt;&lt;div class=&quot;source-options&quot;&gt;'+sourceOption('From: OpenBet',customerEmail())+sourceOption('From: Retriver (Online)',customerEmail('2'))+sourceOption('From: Retriver (Online) 2',customerEmail('3'))+customEmails.map(n=&gt;sourceOption('Added in this demo',n)).join('')+'&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;source-section&quot;&gt;&lt;div class=&quot;source-heading&quot;&gt;&lt;h3&gt;Telephone number&lt;\/h3&gt;&lt;button type=&quot;button&quot; data-add=&quot;Telephone&quot;&gt;+ Add a new option&lt;\/button&gt;&lt;\/div&gt;&lt;div class=&quot;source-options&quot;&gt;'+sourceOption('From: OpenBet','+44 20 7123 4567')+sourceOption('From: Retriver (Online)','+44 20 7123 4567')+customPhones.map(n=&gt;sourceOption('Added in this demo',n)).join('')+'&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;source-section&quot;&gt;&lt;div class=&quot;source-heading&quot;&gt;&lt;h3&gt;More information&lt;\/h3&gt;&lt;\/div&gt;&lt;div class=&quot;source-more&quot;&gt;&lt;div&gt;&lt;label&gt;Country&lt;\/label&gt;&lt;strong&gt;United Kingdom&lt;\/strong&gt;&lt;\/div&gt;&lt;div&gt;&lt;label&gt;Date of birth&lt;\/label&gt;&lt;strong&gt;31 March 1989&lt;\/strong&gt;&lt;\/div&gt;&lt;div&gt;&lt;label&gt;Age shown in the design&lt;\/label&gt;&lt;strong&gt;36&lt;\/strong&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;form-actions&quot;&gt;'+btn('Save information','','data-save-identity')+'&lt;div class=&quot;right&quot;&gt;'+btn('Finish task','primary','data-finish-identity')+'&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;stage-footer&quot;&gt;'+btn('\u2190 False-positive review','','data-view=&quot;decision&quot;')+btn('Summary &amp; recommendation \u2192','primary','data-view=&quot;recommendation&quot;')+'&lt;\/div&gt;'}\n const input=(key,placeholder='',type='text')=&gt;'&lt;input id=&quot;'+key+'&quot; data-field=&quot;'+key+'&quot; type=&quot;'+type+'&quot; placeholder=&quot;'+placeholder+'&quot; value=&quot;'+escape(form[key])+'&quot;&gt;';\n const area=(key,placeholder)=&gt;'&lt;textarea id=&quot;'+key+'&quot; data-field=&quot;'+key+'&quot; placeholder=&quot;'+placeholder+'&quot;&gt;'+escape(form[key])+'&lt;\/textarea&gt;';\n const statusSelect=key=&gt;'&lt;select id=&quot;'+key+'&quot; data-field=&quot;'+key+'&quot;&gt;'+['Select status','Further information required','Review complete'].map((s,i)=&gt;'&lt;option value=&quot;'+(i?s:'')+'&quot;'+(form[key]===(i?s:'')?' selected':'')+'&gt;'+s+'&lt;\/option&gt;').join('')+'&lt;\/select&gt;';\n function recommendation(){return heading('Summary &amp; recommendation','Bring the findings together and record the recommended next action.','REVIEW CONCLUSION')+notice()+metrics()+'&lt;div class=&quot;card&quot; style=&quot;margin-bottom:22px&quot;&gt;&lt;div class=&quot;card-header&quot;&gt;&lt;h2&gt;Profile summary&lt;\/h2&gt;&lt;span class=&quot;helper&quot;&gt;Structured review context&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;form-section&quot;&gt;&lt;p class=&quot;profile-guidance&quot;&gt;Include financial activity and source of funds, lifestyle and dependants, safer gambling concerns, and relevant risk findings.&lt;\/p&gt;&lt;div class=&quot;form-grid&quot;&gt;&lt;div class=&quot;field&quot;&gt;&lt;label for=&quot;moh&quot;&gt;Highest MOH score in the last 3 months&lt;\/label&gt;'+input('moh','Enter score','number')+'&lt;\/div&gt;&lt;div class=&quot;field&quot;&gt;&lt;label for=&quot;affordability&quot;&gt;Affordability status&lt;\/label&gt;'+statusSelect('affordability')+'&lt;\/div&gt;&lt;div class=&quot;field wide&quot;&gt;&lt;label for=&quot;summary&quot;&gt;Summary&lt;\/label&gt;'+area('summary','Summarise the review findings')+'&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;card&quot;&gt;&lt;div class=&quot;card-header&quot;&gt;&lt;h2&gt;CDD officer recommendation&lt;\/h2&gt;&lt;span class=&quot;helper&quot;&gt;Recommended next action&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;form-section&quot;&gt;&lt;p class=&quot;required-note&quot;&gt;Analyse the findings from the profile and recommend the next action. Status, information source and recommendation are required to finish this demonstration.&lt;\/p&gt;&lt;div class=&quot;form-grid&quot;&gt;&lt;div class=&quot;field&quot;&gt;&lt;label for=&quot;recommendationStatus&quot;&gt;Affordability status &lt;span class=&quot;req&quot;&gt;*&lt;\/span&gt;&lt;\/label&gt;'+statusSelect('recommendationStatus')+'&lt;\/div&gt;&lt;div class=&quot;field&quot;&gt;&lt;label for=&quot;source&quot;&gt;Affordability information source &lt;span class=&quot;req&quot;&gt;*&lt;\/span&gt;&lt;\/label&gt;'+input('source','Record the supporting source')+'&lt;\/div&gt;&lt;div class=&quot;field wide&quot;&gt;&lt;label for=&quot;recommendation&quot;&gt;Recommendation &lt;span class=&quot;req&quot;&gt;*&lt;\/span&gt;&lt;\/label&gt;'+area('recommendation','Record the rationale and recommended next action')+'&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;validation-message&quot; role=&quot;alert&quot; id=&quot;validation&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-actions&quot;&gt;'+btn('Save information','','data-save-recommendation')+'&lt;div class=&quot;right&quot;&gt;'+btn('Finish task','primary','data-finish-recommendation')+'&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;info-note&quot;&gt;The fields follow the original CDD design. Status options and validation interactions are illustrative for this portfolio reconstruction.&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;stage-footer&quot;&gt;'+btn('\u2190 Customer information','','data-view=&quot;identity&quot;')+btn('Back to task list','','data-view=&quot;queue&quot;')+'&lt;\/div&gt;'}\n function render(){nav.querySelectorAll('[data-view]').forEach(b=&gt;b.classList.toggle('active',b.dataset.view===view));ws.innerHTML=({queue,decision,identity,recommendation}[view]||queue)()+footer();}\n function go(next){view=next;render();window.scrollTo({top:0,behavior:'instant'});}\n function toast(message){const box=$('#toast');clearTimeout(toastTimer);box.textContent=message;box.classList.add('show');toastTimer=setTimeout(()=&gt;box.classList.remove('show'),4000)}\n const dialog=$('#demo-dialog');\n let modalAction=null;\n function openDialog(title,copy,fields,confirmText,action){modalAction=action;dialog.innerHTML='&lt;div class=&quot;eyebrow&quot;&gt;PORTFOLIO DEMONSTRATION&lt;\/div&gt;&lt;h2 id=&quot;modal-title&quot;&gt;'+title+'&lt;\/h2&gt;&lt;p&gt;'+copy+'&lt;\/p&gt;'+fields+'&lt;div class=&quot;modal-actions&quot;&gt;'+btn('Cancel','','data-modal-cancel')+btn(confirmText,'primary','data-modal-confirm')+'&lt;\/div&gt;';dialog.showModal();}\n document.addEventListener('click',event=&gt;{const button=event.target.closest('button');if(!button)return;const d=button.dataset;\n  if(d.view){go(d.view)}\n  else if(d.open){const changed=selected!==d.open;selected=d.open;if(changed){classification='';Object.keys(form).forEach(k=&gt;form[k]='')}const c=current();if(!c.done)c.owner='John Smith';chosenName=c.id==='12345AB'?'Amos Smith Tesen':c.name;customNames=[];customEmails=[];customPhones=[];go(c.view);toast('Task opened in this demonstration only.')}\n  else if(d.classify){const value=d.classify;openDialog('Classify as '+escape(value.toLowerCase())+'?','This updates only the local prototype. It does not classify a real customer case.','','Confirm in demo',()=&gt;{classification=value;dialog.close();render();toast('Demo classification: '+value+'. No real case was changed.')})}\n  else if(d.add){const kind=d.add;openDialog('Add '+kind.toLowerCase()+' option','Add a sample value to compare with the available records.','&lt;label for=&quot;newValue&quot;&gt;'+kind+' value&lt;\/label&gt;&lt;input id=&quot;newValue&quot; type=&quot;'+(kind==='Email'?'email':'text')+'&quot; autocomplete=&quot;off&quot;&gt;','Add option',()=&gt;{const field=$('#newValue');if(!field.value.trim()||!field.reportValidity())return;({Name:customNames,Email:customEmails,Telephone:customPhones}[kind]).push(field.value.trim());dialog.close();render();toast('Option added to this preview only.')})}\n  else if('saveIdentity'in d){toast('Selected name saved in this preview: '+chosenName)}\n  else if('finishIdentity'in d){if(current().view==='identity')current().done=true;toast('Customer information task marked complete in this preview.');go('recommendation')}\n  else if('saveRecommendation'in d){toast('Review information saved in this preview only. Reloading resets the demonstration.')}\n  else if('finishRecommendation'in d){const missing=[['recommendationStatus','Select an affordability status.'],['source','Add the supporting information source.'],['recommendation','Enter a recommendation.']].find(([key])=&gt;!form[key].trim());if(missing){$('#validation').textContent=missing[1];document.getElementById(missing[0]).focus();return}openDialog('Finish this demonstration task?','The recommendation will be marked complete in this preview. No information is submitted to Evoke.','','Finish demo task',()=&gt;{current().done=true;dialog.close();go('queue');toast('Task completed in this demo only.')})}\n  else if('modalCancel'in d){dialog.close()}\n  else if('modalConfirm'in d){modalAction?.()}\n  else if('reset'in d){depositMethod='All methods';depositState='All statuses';cases=initial.map(x=&gt;({...x}));selected='12345AB';search='';typeFilter='All task types';classification='';chosenName='Amos Smith Tesen';customNames=[];customEmails=[];customPhones=[];Object.keys(form).forEach(k=&gt;form[k]='');go('queue');toast('Demonstration reset.')}\n });\n document.addEventListener('input',event=&gt;{const t=event.target;if(t.dataset.field)form[t.dataset.field]=t.value;if(t.id==='taskSearch'){search=t.value;$('#tasksBody').innerHTML=queueRows()}});\n document.addEventListener('change',event=&gt;{const t=event.target;if(t.dataset.field)form[t.dataset.field]=t.value;if(t.name==='customerName'){chosenName=t.value;render()}if(t.id==='taskType'){typeFilter=t.value;$('#tasksBody').innerHTML=queueRows()}if(t.id==='depositMethod'){depositMethod=t.value;$('#depositsBody').innerHTML=depositRows()}if(t.id==='depositState'){depositState=t.value;$('#depositsBody').innerHTML=depositRows()}});\n const initialView=location.hash.slice(1);if(views.some(v=&gt;v[0]===initialView))view=initialView;\n\/* Runs inside the prototype closure; reuses only its presentation components. *\/\nconst STAGES=[\n {key:'decision',title:'False-positive check',task:'False Positive Check',ai:'Customer-data checks'},\n {key:'identity',title:'Customer information',task:'Customer Information',ai:'Customer-data checks'},\n {key:'address',title:'Address information',task:'Address Information',ai:'Address checks'},\n {key:'recommendation',title:'Investigation &amp; recommendation',task:'More Info \/ Sum \/ Rec',ai:'Investigation checks'}\n];\nlet activeFilter='All review stages',generation=0,inspectedStage=null;\nconst timers=new Map();\nfunction freshDraft(){return {form:{moh:'',affordability:'',summary:'',recommendationStatus:'',source:'',recommendation:''},classification:'',chosenName:'',names:[],emails:[],phones:[],address:'Flat 99 Shaw House, London E99 2LP',reviewed:[]}}\nfunction initialiseWorkflow(){\n generation++;timers.forEach(t=&gt;clearTimeout(t));timers.clear();\n cases=initial.map(c=&gt;({...c,stage:c.view==='decision'?0:c.view==='identity'?1:3,phase:'ready',draft:freshDraft(),history:{},checksCompleted:c.view!=='decision'}));\n cases.splice(3,0,{id:'12345GH',name:'James Wilson',stage:2,view:'address',type:'Address Information',owner:'',done:false,phase:'ready',draft:freshDraft(),history:{},checksCompleted:true});\n const processing=cases.find(c=&gt;c.id==='12345KL');processing.phase='processing';processing.stage=3;processing.owner='';processing.checksCompleted=false;\n cases.forEach(c=&gt;{for(let i=0;i&lt;c.stage;i++){c.history[i]=freshDraft();c.history[i].chosenName=c.id==='12345AB'?'Amos Smith Tesen':c.name}});\n selected='12345AB';view='queue';search='';activeFilter='All review stages';inspectedStage=null;\n Object.keys(form).forEach(k=&gt;form[k]='');customNames=[];customEmails=[];customPhones=[];classification='';chosenName='Amos Smith Tesen';\n scheduleAi(processing.id);\n}\nfunction storeDraft(){const c=current();if(!c||view==='queue'||inspectedStage!==null)return;c.draft.form={...form};c.draft.classification=classification;c.draft.chosenName=chosenName;c.draft.names=[...customNames];c.draft.emails=[...customEmails];c.draft.phones=[...customPhones]}\nfunction loadDraft(c,draft=c.draft){Object.assign(form,draft.form);classification=draft.classification;chosenName=draft.chosenName||(c.id==='12345AB'?'Amos Smith Tesen':c.name);customNames=[...draft.names];customEmails=[...draft.emails];customPhones=[...draft.phones]}\nfunction workflowProgress(){const c=current();return '&lt;div class=&quot;workflow-header&quot;&gt;&lt;div class=&quot;workflow-case-row&quot;&gt;&lt;div&gt;&lt;div class=&quot;workflow-case-heading&quot;&gt;'+escape(c.name)+' &lt;span class=&quot;case-id&quot;&gt;\u00b7 '+c.id+'&lt;\/span&gt;&lt;\/div&gt;&lt;p class=&quot;workflow-case-subtitle&quot;&gt;Current task: &lt;strong&gt;'+STAGES[c.stage].task+'&lt;\/strong&gt;&lt;\/p&gt;&lt;\/div&gt;'+btn('\u2190 Task queue','','data-queue')+'&lt;\/div&gt;'+(c.stage&gt;0?'&lt;nav class=&quot;case-history-nav&quot; aria-label=&quot;Review information from earlier stages&quot;&gt;&lt;span&gt;Earlier information&lt;\/span&gt;'+STAGES.slice(0,c.stage).map((s,i)=&gt;btn(s.title,'','data-history=&quot;'+i+'&quot; aria-pressed=&quot;'+(inspectedStage===i)+'&quot;')).join('')+(inspectedStage!==null?btn('Return to current task','primary','data-current-task'):'')+'&lt;\/nav&gt;':'')+'&lt;\/div&gt;'}\nfunction queueTaskRows(){const ready=cases.filter(c=&gt;c.phase==='ready'&amp;&amp;(activeFilter==='All review stages'||STAGES[c.stage].title===activeFilter)&amp;&amp;(c.name+' '+c.id+' '+STAGES[c.stage].task).toLowerCase().includes(search.toLowerCase()));return ready.length?ready.map(c=&gt;'&lt;tr data-task-key=&quot;'+c.id+':'+c.stage+'&quot;&gt;&lt;td&gt;'+pill(STAGES[c.stage].task,c.stage===1?'customer':c.stage===3?'information':'progress')+'&lt;\/td&gt;&lt;td class=&quot;customer-cell&quot;&gt;&lt;strong&gt;'+escape(c.name)+'&lt;\/strong&gt;&lt;span&gt;'+c.id+'&lt;\/span&gt;&lt;\/td&gt;&lt;td&gt;EDD&lt;\/td&gt;&lt;td&gt;Deposit of \u00a310,000.00 in a day&lt;\/td&gt;&lt;td&gt;31 Jan 2025&lt;br&gt;&lt;span class=&quot;small&quot;&gt;07:45&lt;\/span&gt;&lt;\/td&gt;&lt;td&gt;'+btn(c.owner?'Continue':'Claim task',c.owner?'subtle':'','data-open=&quot;'+c.id+'&quot;')+'&lt;\/td&gt;&lt;\/tr&gt;').join(''):'&lt;tr&gt;&lt;td colspan=&quot;6&quot;&gt;&lt;div class=&quot;empty&quot;&gt;&lt;strong&gt;No review tasks match&lt;\/strong&gt;Try another customer or stage filter.&lt;\/div&gt;&lt;\/td&gt;&lt;\/tr&gt;'}\nfunction queue(){const n=cases.filter(c=&gt;c.phase==='ready').length;return heading('Task queue','Current task shows where each case is in the process. Claim an available task to continue.','REVIEW WORKSPACE')+'&lt;div class=&quot;card&quot;&gt;&lt;div class=&quot;card-header&quot;&gt;&lt;h2&gt;Available tasks&lt;\/h2&gt;&lt;span class=&quot;helper&quot; id=&quot;readyCount&quot;&gt;'+n+' ready for review&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;filters&quot;&gt;&lt;div class=&quot;searchbox&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;\u2315&lt;\/span&gt;&lt;input id=&quot;workflowSearch&quot; aria-label=&quot;Search tasks&quot; placeholder=&quot;Search customer, ID or current task&quot; value=&quot;'+escape(search)+'&quot;&gt;&lt;\/div&gt;&lt;select id=&quot;workflowFilter&quot; aria-label=&quot;Filter review stage&quot;&gt;'+['All review stages',...STAGES.map(s=&gt;s.title)].map(s=&gt;'&lt;option'+(s===activeFilter?' selected':'')+'&gt;'+s+'&lt;\/option&gt;').join('')+'&lt;\/select&gt;&lt;\/div&gt;&lt;div class=&quot;table-scroll&quot;&gt;&lt;table class=&quot;data-table tasks&quot;&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;CURRENT TASK&lt;\/th&gt;&lt;th&gt;CUSTOMER&lt;\/th&gt;&lt;th&gt;SOURCE&lt;\/th&gt;&lt;th&gt;TRIGGER REASON&lt;\/th&gt;&lt;th&gt;CREATED ON&lt;\/th&gt;&lt;th&gt;ACTION&lt;\/th&gt;&lt;\/tr&gt;&lt;\/thead&gt;&lt;tbody id=&quot;tasksBody&quot;&gt;'+queueTaskRows()+'&lt;\/tbody&gt;&lt;\/table&gt;&lt;\/div&gt;&lt;div class=&quot;table-footer&quot;&gt;&lt;span&gt;Showing tasks available for review&lt;\/span&gt;&lt;span&gt;New tasks appear automatically when ready&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;'}\nfunction address(){const c=current();return heading('Address information','Review the returned address details and resolve differences before finishing this stage.','STAGE 3 \/ ADDRESS REVIEW')+notice()+'&lt;div class=&quot;card&quot;&gt;&lt;div class=&quot;card-header&quot;&gt;&lt;h2&gt;Address source comparison&lt;\/h2&gt;&lt;span class=&quot;helper&quot;&gt;Based on the original CDD address screen&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;address-columns&quot;&gt;'+['OpenBet','Retriver (Online)'].map(source=&gt;'&lt;div class=&quot;address-source&quot;&gt;&lt;span class=&quot;source-name&quot;&gt;From: '+source+'&lt;\/span&gt;&lt;h3&gt;'+escape((inspectedStage===2?c.history[2]:c.draft).address)+'&lt;\/h3&gt;&lt;dl class=&quot;address-details&quot;&gt;&lt;div&gt;&lt;dt&gt;Dates of residence&lt;\/dt&gt;&lt;dd&gt;31 March 1989 \u2013 Present&lt;\/dd&gt;&lt;\/div&gt;&lt;div&gt;&lt;dt&gt;Estimated property value&lt;\/dt&gt;&lt;dd&gt;\u00a3999,999 \u00b7 sample value&lt;\/dd&gt;&lt;\/div&gt;&lt;div&gt;&lt;dt&gt;Estimated rental value&lt;\/dt&gt;&lt;dd&gt;\u00a39,999 \u00b7 sample value&lt;\/dd&gt;&lt;\/div&gt;&lt;div&gt;&lt;dt&gt;Residence image&lt;\/dt&gt;&lt;dd&gt;Referenced in the original design&lt;\/dd&gt;&lt;\/div&gt;&lt;\/dl&gt;'+btn('Edit address','','data-edit-address')+'&lt;\/div&gt;').join('')+'&lt;\/div&gt;&lt;div class=&quot;form-actions&quot;&gt;'+btn('Save information','','data-save-address')+'&lt;div class=&quot;right&quot;&gt;'+btn('Finish address task','primary','data-finish-address')+'&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;'}\nconst reviewSections=[\n ['Accounts','Client ID, account number, link method, status and account activity.','&lt;div class=&quot;review-data&quot;&gt;&lt;div&gt;&lt;span&gt;Client ID&lt;\/span&gt;&lt;strong&gt;4894015400&lt;\/strong&gt;&lt;\/div&gt;&lt;div&gt;&lt;span&gt;Account number&lt;\/span&gt;&lt;strong&gt;210951440954000&lt;\/strong&gt;&lt;\/div&gt;&lt;div&gt;&lt;span&gt;Link method&lt;\/span&gt;&lt;strong&gt;Manual&lt;\/strong&gt;&lt;\/div&gt;&lt;div&gt;&lt;span&gt;Status&lt;\/span&gt;&lt;strong&gt;Active&lt;\/strong&gt;&lt;\/div&gt;&lt;\/div&gt;'],\n ['Payment','Registered payment methods and results.','&lt;div class=&quot;table-scroll&quot;&gt;&lt;table class=&quot;data-table&quot;&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;PAYMENT METHOD&lt;\/th&gt;&lt;th&gt;ACCOUNT \/ CARD&lt;\/th&gt;&lt;th&gt;RESULT&lt;\/th&gt;&lt;\/tr&gt;&lt;\/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Bank card&lt;\/td&gt;&lt;td&gt;44628XX XXXX 3359&lt;\/td&gt;&lt;td&gt;Passed&lt;\/td&gt;&lt;\/tr&gt;&lt;tr&gt;&lt;td&gt;E-wallet&lt;\/td&gt;&lt;td&gt;Visa 3359&lt;\/td&gt;&lt;td&gt;Not applicable&lt;\/td&gt;&lt;\/tr&gt;&lt;tr&gt;&lt;td&gt;E-wallet&lt;\/td&gt;&lt;td&gt;Visa 3342&lt;\/td&gt;&lt;td&gt;Not applicable&lt;\/td&gt;&lt;\/tr&gt;&lt;\/tbody&gt;&lt;\/table&gt;&lt;\/div&gt;'],\n ['Company','Company information is reviewed within the same investigation stage.','&lt;p class=&quot;review-description&quot;&gt;This section is present in the original flow. Review the returned company findings and record any relevant observations in the profile summary.&lt;\/p&gt;'],\n ['Risk','County Court Judgments, IVA, bankruptcy and supporting details.','&lt;div class=&quot;review-data&quot;&gt;&lt;div&gt;&lt;span&gt;County Court Judgment&lt;\/span&gt;&lt;strong&gt;Active \u00b7 example finding&lt;\/strong&gt;&lt;\/div&gt;&lt;div&gt;&lt;span&gt;Amount&lt;\/span&gt;&lt;strong&gt;999.99 \u00b7 sample value&lt;\/strong&gt;&lt;\/div&gt;&lt;div&gt;&lt;span&gt;IVA&lt;\/span&gt;&lt;strong&gt;None found presently&lt;\/strong&gt;&lt;\/div&gt;&lt;div&gt;&lt;span&gt;Bankruptcy&lt;\/span&gt;&lt;strong&gt;None found presently&lt;\/strong&gt;&lt;\/div&gt;&lt;\/div&gt;'],\n ['Background','Background findings are reviewed alongside the other returned information.','&lt;p class=&quot;review-description&quot;&gt;Review returned background findings and record relevant observations in the profile summary.&lt;\/p&gt;'],\n ['Associates','Associated records form part of the wider case review.','&lt;p class=&quot;review-description&quot;&gt;Review associated records together with the wider case evidence.&lt;\/p&gt;'],\n ['Received Documents','Supporting documents supplied for the case.','&lt;div class=&quot;document-samples&quot;&gt;&lt;span&gt;\u25a4 File 1&lt;\/span&gt;&lt;span&gt;\u25a4 File 2&lt;\/span&gt;&lt;span&gt;\u25a4 File 3&lt;\/span&gt;&lt;span&gt;\u25a4 File 4&lt;\/span&gt;&lt;\/div&gt;&lt;p class=&quot;review-description&quot;&gt;Supporting document references for the review.&lt;\/p&gt;'],\n ['Safer Gambling','MOH score and player-report context.','&lt;div class=&quot;review-data&quot;&gt;&lt;div&gt;&lt;span&gt;MOH score&lt;\/span&gt;&lt;strong&gt;2 \u00b7 illustrative value&lt;\/strong&gt;&lt;\/div&gt;&lt;div&gt;&lt;span&gt;Player report summary&lt;\/span&gt;&lt;strong&gt;Review deposits, losses and activity&lt;\/strong&gt;&lt;\/div&gt;&lt;\/div&gt;']\n];\nfunction investigation(){const template=document.createElement('div');template.innerHTML=recommendation();template.querySelectorAll('.breadcrumbs,.pagehead,.case-strip,.metric-row,.stage-footer,.demo-footer').forEach(n=&gt;n.remove());const sections='&lt;div class=&quot;card investigation-card&quot;&gt;&lt;div class=&quot;card-header&quot;&gt;&lt;h2&gt;Investigation details&lt;\/h2&gt;&lt;span class=&quot;helper&quot;&gt;Multiple review states inside stage 4&lt;\/span&gt;&lt;\/div&gt;'+reviewSections.map(([title,description,details],i)=&gt;'&lt;details class=&quot;investigation-section&quot;'+(i===0?' open':'')+'&gt;&lt;summary&gt;&lt;span&gt;'+title+'&lt;\/span&gt;'+(current().draft.reviewed.includes(title)?'&lt;span class=&quot;reviewed-state&quot;&gt;Reviewed&lt;\/span&gt;':'&lt;span class=&quot;review-state&quot;&gt;Review&lt;\/span&gt;')+'&lt;\/summary&gt;&lt;div class=&quot;investigation-content&quot;&gt;&lt;p class=&quot;review-description&quot;&gt;'+description+'&lt;\/p&gt;'+details+btn(current().draft.reviewed.includes(title)?'Reviewed':'Mark reviewed','','data-mark-reviewed=&quot;'+title+'&quot;')+'&lt;\/div&gt;&lt;\/details&gt;').join('')+'&lt;\/div&gt;';return heading('Investigation &amp; recommendation','Review the returned information, write the profile summary and record the final recommendation.','STAGE 4 \/ FINAL REVIEW')+notice()+metrics()+sections+template.innerHTML}\nfunction render(){\n const c=current();const header=document.getElementById('caseWorkflow');header.innerHTML=view==='queue'?'':workflowProgress();\n ws.classList.toggle('history-mode',inspectedStage!==null);\n const historyNotice=inspectedStage!==null?'&lt;div class=&quot;historical-notice&quot; role=&quot;status&quot;&gt;&lt;strong&gt;Earlier information \u00b7 '+STAGES[inspectedStage].title+'&lt;\/strong&gt;&lt;span&gt;Read-only record from the completed stage. Current task remains '+STAGES[c.stage].task+'.&lt;\/span&gt;&lt;\/div&gt;':'';\n ws.innerHTML=(view==='queue'?queue():historyNotice+({decision,identity,address,recommendation:investigation}[view]||queue)())+footer();\n ws.querySelectorAll('[data-view]').forEach(b=&gt;{if(b.dataset.view!=='queue')b.remove();else{b.removeAttribute('data-view');b.setAttribute('data-queue','');b.textContent='\u2190 Task queue'}});\n if(inspectedStage!==null){\n  const badge=ws.querySelector('.case-strip .pill');if(badge)badge.textContent=STAGES[inspectedStage].task;\n  ws.querySelectorAll('.form-actions,.decision-actions .buttons,.stage-footer').forEach(n=&gt;n.remove());\n  ws.querySelectorAll('input,textarea').forEach(input=&gt;{if(['radio','checkbox'].includes(input.type))input.disabled=true;else input.readOnly=true});\n  ws.querySelectorAll('select,button:not([data-queue])').forEach(control=&gt;control.disabled=true);\n }\n}\nfunction go(next){storeDraft();if(next==='queue'){if(inspectedStage!==null)loadDraft(current());inspectedStage=null;view='queue';render();window.scrollTo({top:0,behavior:'instant'});return}returnToCurrentTask()}\nfunction openCase(id){storeDraft();const c=cases.find(c=&gt;c.id===id);if(!c||c.phase!=='ready')return;selected=c.id;inspectedStage=null;c.owner='John Smith';c.type=STAGES[c.stage].task;c.view=STAGES[c.stage].key;loadDraft(c);view=c.view;render();window.scrollTo({top:0,behavior:'instant'})}\nfunction inspectHistory(stage){const c=current();if(!Number.isInteger(stage)||stage&lt;0||stage&gt;=c.stage||!c.history[stage])return;storeDraft();inspectedStage=stage;loadDraft(c,c.history[stage]);view=STAGES[stage].key;render();window.scrollTo({top:0,behavior:'instant'})}\nfunction returnToCurrentTask(){const c=current();if(inspectedStage===null)storeDraft();inspectedStage=null;loadDraft(c);view=STAGES[c.stage].key;render();window.scrollTo({top:0,behavior:'instant'})}\nfunction scheduleAi(id){const run=generation;clearTimeout(timers.get(id));timers.set(id,setTimeout(()=&gt;{if(run===generation)completeAi(id)},4500))}\nfunction completeAi(id){const c=cases.find(c=&gt;c.id===id);if(!c||c.phase!=='processing')return;clearTimeout(timers.get(id));timers.delete(id);c.phase='ready';c.checksCompleted=true;c.type=STAGES[c.stage].task;c.view=STAGES[c.stage].key;if(view==='queue'){const body=document.getElementById('tasksBody');if(body)body.innerHTML=queueTaskRows();const counter=document.getElementById('readyCount');if(counter)counter.textContent=cases.filter(c=&gt;c.phase==='ready').length+' ready for review'}toast('A new review task is available for '+c.name+'.')}\nfunction finishStage(){\n if(inspectedStage!==null)return;\n storeDraft();const c=current();c.history[c.stage]=JSON.parse(JSON.stringify(c.draft));\n if(c.stage===3){c.phase='complete';c.done=true;c.owner='';view='queue';render();toast(c.name+': final recommendation recorded. Case completed.');return}\n c.stage++;c.phase='processing';c.owner='';c.checksCompleted=false;c.type=STAGES[c.stage].task;c.view=STAGES[c.stage].key;view='queue';render();scheduleAi(c.id);toast('Task completed. You can continue with another available task.');\n}\n\ndocument.addEventListener('click',event=&gt;{\n const b=event.target.closest('button');if(!b)return;const d=b.dataset;let handled=true;\n if(inspectedStage!==null&amp;&amp;!('queue'in d)&amp;&amp;!('history'in d)&amp;&amp;!('currentTask'in d)&amp;&amp;!('reset'in d)){event.preventDefault();event.stopImmediatePropagation();return}\n if('queue'in d){go('queue')}\n else if(d.open){openCase(d.open)}\n else if('currentTask'in d){returnToCurrentTask()}\n else if('history'in d){inspectHistory(Number(d.history))}\n else if(d.classify){const value=d.classify;openDialog('Finish this review task?','This task will be completed. You can continue with another available task.','','Finish stage',()=&gt;{classification=value;dialog.close();finishStage()})}\n else if('finishIdentity'in d){finishStage()}\n else if('finishAddress'in d){finishStage()}\n else if('saveAddress'in d){toast('Address information saved in this preview.')}\n else if('editAddress'in d){openDialog('Edit address','This changes the sample address for this case only.','&lt;label for=&quot;newAddress&quot;&gt;Address details&lt;\/label&gt;&lt;input id=&quot;newAddress&quot; value=&quot;'+escape(current().draft.address)+'&quot;&gt;','Save address',()=&gt;{const value=document.getElementById('newAddress').value.trim();if(!value)return;current().draft.address=value;dialog.close();render()})}\n else if(d.markReviewed){storeDraft();const c=current();if(!c.draft.reviewed.includes(d.markReviewed))c.draft.reviewed.push(d.markReviewed);b.textContent='Reviewed';const tag=b.closest('details').querySelector('.review-state');if(tag){tag.className='reviewed-state';tag.textContent='Reviewed'}}\n else if('finishRecommendation'in d){const missing=[['recommendationStatus','Select an affordability status.'],['source','Add the supporting information source.'],['recommendation','Enter the final recommendation.']].find(([key])=&gt;!form[key].trim());if(missing){document.getElementById('validation').textContent=missing[1];document.getElementById(missing[0]).focus();return}openDialog('Complete this case?','The final stage and recommendation will be completed. This case will leave the queue entirely in the demonstration.','','Complete case',()=&gt;{dialog.close();finishStage()})}\n else if('reset'in d){initialiseWorkflow();render();toast('Case workflow demonstration reset.')}\n else handled=false;\n if(handled){event.preventDefault();event.stopImmediatePropagation()}\n},true);\ndocument.addEventListener('input',event=&gt;{if(event.target.id==='workflowSearch'){search=event.target.value;document.getElementById('tasksBody').innerHTML=queueTaskRows()}});\ndocument.addEventListener('change',event=&gt;{if(event.target.id==='workflowFilter'){activeFilter=event.target.value;document.getElementById('tasksBody').innerHTML=queueTaskRows()}});\ninitialiseWorkflow();\n\n render();\n})();\n&lt;\/script&gt;&lt;\/body&gt;&lt;\/html&gt;\n\"><\/iframe><\/details><p class=\"rf-disclosure\">Visual reconstruction based on the original CDD screens. Images are captured from this prototype, not from the production application. All changes remain in the preview.<\/p><\/section><section class=\"rf-section rf-impact\"><div class=\"rf-editorial-grid\"><div class=\"rf-section-heading\"><h2>06. Impact &amp; Reflection<\/h2><h3>Improving efficiency without removing necessary controls<\/h3><p class=\"rf-result-note\">Approximate outcome reported within the measured rollout scope.<\/p><\/div><div class=\"rf-section-body\"><p>Following rollout within the measured operational scope, the redesigned workflow achieved an approximately <strong>30% reduction in average case handling time<\/strong>.<\/p>\n<p>The changes also helped reduce rework and escalations, improve accountability through explicit ownership, and support audit reviews through consistent decision records.<\/p>\n<p>The interaction framework established through CDD became a baseline for adjacent compliance workflows.<\/p>\n<p>This project reinforced an important principle in enterprise UX: improving efficiency does not always mean removing steps.<\/p>\n<p>In regulated operations, the greater opportunity is often to make necessary steps easier to understand, easier to complete correctly, and easier to trace afterward.<\/p>\n<p>That understanding shaped how I approached task ownership, information architecture, validation, and decision history throughout the project.<\/p><\/div><\/div><\/section><dialog id=\"cdd-image-dialog\" class=\"rf-lightbox\" aria-label=\"Enlarged CDD design\"><div class=\"rf-lightbox-toolbar\"><button type=\"button\" data-rf-zoom aria-pressed=\"false\">Zoom in<\/button><button type=\"button\" data-rf-close autofocus>Close \u00d7<\/button><\/div><div class=\"rf-lightbox-view\" data-rf-view tabindex=\"0\" aria-label=\"Image viewing area\"><img data-rf-large alt=\"\" decoding=\"async\"><\/div><\/dialog><\/div>\n<script>(()=>{const root=document.getElementById('cdd-final');if(!root||root.dataset.ready)return;root.dataset.ready='true';const panel=root.querySelector('[data-rf-demo]'),button=root.querySelector('[data-rf-fullscreen]'),status=root.querySelector('[data-rf-status]');button.addEventListener('click',async()=>{try{if(document.fullscreenElement===panel){await document.exitFullscreen()}else if(panel.requestFullscreen){await panel.requestFullscreen()}else{status.textContent='Full screen is unavailable in this browser.'}}catch{status.textContent='Full screen is unavailable in this browser.'}});panel.addEventListener('fullscreenchange',()=>{button.textContent=document.fullscreenElement===panel?'Exit full screen \u2199':'Full screen \u2197'})})();<\/script>\n<script>(()=>{const root=document.getElementById('cdd-final');if(!root||root.dataset.lightboxReady)return;root.dataset.lightboxReady='true';const dialog=root.querySelector('.rf-lightbox'),image=dialog.querySelector('[data-rf-large]'),view=dialog.querySelector('[data-rf-view]'),zoom=dialog.querySelector('[data-rf-zoom]');let opener=null,oldOverflow='';const reset=()=>{view.classList.remove('rf-zoomed');zoom.textContent='Zoom in';zoom.setAttribute('aria-pressed','false');view.scrollTop=0;view.scrollLeft=0};root.addEventListener('click',event=>{const button=event.target.closest('[data-rf-image]');if(!button||!root.contains(button))return;const source=button.querySelector('img');opener=button;image.src=source.currentSrc||source.src;image.alt=source.alt;reset();oldOverflow=document.documentElement.style.overflow;dialog.showModal();document.documentElement.style.overflow='hidden'});dialog.querySelector('[data-rf-close]').addEventListener('click',()=>dialog.close());dialog.addEventListener('click',event=>{if(event.target===dialog||event.target===view)dialog.close()});zoom.addEventListener('click',()=>{const active=view.classList.toggle('rf-zoomed');zoom.textContent=active?'Fit to screen':'Zoom in';zoom.setAttribute('aria-pressed',String(active));view.scrollTop=0;view.scrollLeft=0});dialog.addEventListener('close',()=>{document.documentElement.style.overflow=oldOverflow;reset();if(opener?.isConnected)opener.focus({preventScroll:true})})})();<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Evoke \u00b7 Enterprise Product Design \u00b7 2025 Making complex compliance workflows easier to manage Customer Due Diligence requires compliance teams to review customer information, evaluate risk signals, and document decisions. I led the UX and UI design of a four-stage workflow that coordinated analyst review with company-built AIs. Between stages, those AIs checked internal databases, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-235","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/brunopavani.com\/index.php?rest_route=\/wp\/v2\/pages\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brunopavani.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/brunopavani.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/brunopavani.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/brunopavani.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=235"}],"version-history":[{"count":21,"href":"https:\/\/brunopavani.com\/index.php?rest_route=\/wp\/v2\/pages\/235\/revisions"}],"predecessor-version":[{"id":578,"href":"https:\/\/brunopavani.com\/index.php?rest_route=\/wp\/v2\/pages\/235\/revisions\/578"}],"wp:attachment":[{"href":"https:\/\/brunopavani.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}