diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/README.md b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/README.md
new file mode 100644
index 000000000..f694d23c4
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/README.md
@@ -0,0 +1,34 @@
+# Shared native dialog focus recovery
+
+Owned production change: only `wwwroot/js/dialog-focus.js`, shared inside this AdminUI consumer. No ModalFrame API, managed wrapper, package, style, authorization or backend change. Existing one-active-overlay and id/generation contracts remain; no nesting framework was extracted.
+
+Actual browser evidence in the Raw workflow exposed focus falling to body when Connect was removed. Disabling a focused mutation control has the same native DOM behavior. An element-only keydown trap cannot then receive Tab/Escape, so a busy dialog could lose keyboard containment and a dismissible read could stop responding to Escape.
+
+## Correction
+
+Current-generation update now reanchors only when focus has left the current connected, non-inert modal, choosing its usable safe initial control or the modal root when busy has disabled every action. An already focused control/root is retained. Deliberate focus inside a different dialog is never stolen.
+
+The original modal-local keydown listener remains in place so handled Escape stops before ancestor shortcuts, exactly as before. A document **capture** listener handles only outside-target gaps before background ancestor shortcuts; events whose targets are inside the modal are ignored by that fallback. This avoids double handling and preserves child-widget stopPropagation behavior. Both listeners are removed on deactivation. Current presentation identity/generation and other-dialog focus checks apply to keyboard handling; no global focusin hook, timer or MutationObserver expansion was added.
+
+The root caller separately keeps its read-only Connect→Refresh node mounted with aria-disabled and server entry guards. This adapter correction is still needed for genuinely disabled mutation controls and removal gaps in any wrapper.
+
+## Meaningful native regressions
+
+`check_dialog_focus_recovery.py` executes the actual production adapter in Chromium over a synthetic local document and recording receiver, with real DOM focus, disabled fieldsets, inert, Tab/Shift+Tab and Escape. It uses no application host, network, operational service or database.
+
+- `red.json`: four of six scenes failed; stale-generation and other-dialog positive controls passed.
+- `red-complete.json`: same four failures with 37 checks, including Escape reaching a background shortcut from the body gap. Busy/removed focus recovery, zero-control Tab/reverse-Tab containment and dismissible-read Escape were missing.
+- `green-final.json`: **9/9 scenes /51 checks passed**, no page errors. The original six scenes plus child-handled Escape, local ancestor-shortcut ordering and deactivation listener cleanup all pass. Native disabling/removal produced the actual body-focus gap; the tests do not set a fabricated component field to simulate it. The separate document-key scene deliberately blurs the current root to reproduce the interval between DOM mutation and a subsequent update.
+- `existing-native-final.json`: **10/10 existing native adapter cases passed**, covering safe entry, focus containment, removed/disabled/hidden/unfocusable trigger fallback, heading/landmark preference, preserved tabindex, and restored pre-existing inert/body state. The established check_native_dialog.py source was executed unchanged except redirecting its JSON destination into this owned evidence directory. Its original OT01 evidence was not overwritten.
+
+Final production JS SHA-256: `7f63bd6c5181d0b70edc2e87e086fab4dfba96adabd7a19737f9b3b4f18296d5`.
+
+An intermediate document-only bubble implementation passed the six direct focus scenarios. Source review identified local ancestor ordering, so the local listener was retained. Parent then identified the outside-body-gap ordering case: `outside-capture-red.json` records two meaningful failures (7/9 scenes), because a body ancestor shortcut acted before the document bubble fallback. The final outside-target capture listener passes both cases while its inside-target skip preserves child/local handling. Intermediate logs are historical, not final source acceptance. No test assertion was relaxed.
+
+Reproduce from the OtOpcUa repository root:
+
+```sh
+python3 infra/tools/ui-consistency/check_dialog_focus_recovery.py --output docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green-final.json
+```
+
+This is native adapter behavior, not manual assistive-technology certification or a complete composed modal/fleet gate. All workers were notified of the exact frozen hash and must verify served bytes in their final source-linked native matrices. Managed tests were not rerun for this JavaScript-only change; final combined consumer tests remain coordinator-owned. The temporary browser contexts close at harness completion, and no host/service/container lifecycle was changed.
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native-final.json b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native-final.json
new file mode 100644
index 000000000..9c68025ac
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native-final.json
@@ -0,0 +1,100 @@
+[
+ {
+ "trigger": true,
+ "heading": false,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": null,
+ "state": "normal",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "trigger": false,
+ "heading": true,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": null,
+ "state": "disabled",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "trigger": false,
+ "heading": true,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": null,
+ "state": "hidden",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "trigger": false,
+ "heading": true,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": null,
+ "state": "unfocusable",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "trigger": false,
+ "heading": true,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": null,
+ "state": "disconnected",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "trigger": false,
+ "heading": true,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": "2",
+ "state": "existing-heading-tabindex",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "first": true,
+ "second": false,
+ "busyCalls": 0,
+ "readyCalls": 1,
+ "firstStillLocked": true,
+ "restored": true,
+ "state": "single-active-and-busy",
+ "passed": true
+ },
+ {
+ "tag": "H2",
+ "insideClosingDialog": false,
+ "text": "Stable page section",
+ "state": "closing-heading-h2",
+ "passed": true
+ },
+ {
+ "tag": "MAIN",
+ "insideClosingDialog": false,
+ "text": "OpenNext",
+ "state": "closing-heading-landmark",
+ "passed": true
+ },
+ {
+ "priorInert": true,
+ "mainInert": false,
+ "priorModalOpen": true,
+ "trigger": true,
+ "state": "restore-existing-inert-body",
+ "passed": true
+ }
+]
\ No newline at end of file
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native-final.log b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native-final.log
new file mode 100644
index 000000000..e7c1ffeaf
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native-final.log
@@ -0,0 +1 @@
+{'cases': 10, 'passed': 10}
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native.json b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native.json
new file mode 100644
index 000000000..9c68025ac
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native.json
@@ -0,0 +1,100 @@
+[
+ {
+ "trigger": true,
+ "heading": false,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": null,
+ "state": "normal",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "trigger": false,
+ "heading": true,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": null,
+ "state": "disabled",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "trigger": false,
+ "heading": true,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": null,
+ "state": "hidden",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "trigger": false,
+ "heading": true,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": null,
+ "state": "unfocusable",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "trigger": false,
+ "heading": true,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": null,
+ "state": "disconnected",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "trigger": false,
+ "heading": true,
+ "inert": false,
+ "bodyLocked": false,
+ "headingTabindexAfterBlur": "2",
+ "state": "existing-heading-tabindex",
+ "initialSafe": true,
+ "nativeTabContained": true,
+ "passed": true
+ },
+ {
+ "first": true,
+ "second": false,
+ "busyCalls": 0,
+ "readyCalls": 1,
+ "firstStillLocked": true,
+ "restored": true,
+ "state": "single-active-and-busy",
+ "passed": true
+ },
+ {
+ "tag": "H2",
+ "insideClosingDialog": false,
+ "text": "Stable page section",
+ "state": "closing-heading-h2",
+ "passed": true
+ },
+ {
+ "tag": "MAIN",
+ "insideClosingDialog": false,
+ "text": "OpenNext",
+ "state": "closing-heading-landmark",
+ "passed": true
+ },
+ {
+ "priorInert": true,
+ "mainInert": false,
+ "priorModalOpen": true,
+ "trigger": true,
+ "state": "restore-existing-inert-body",
+ "passed": true
+ }
+]
\ No newline at end of file
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native.log b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native.log
new file mode 100644
index 000000000..e7c1ffeaf
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/existing-native.log
@@ -0,0 +1 @@
+{'cases': 10, 'passed': 10}
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green-final.json b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green-final.json
new file mode 100644
index 000000000..79c841b4c
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green-final.json
@@ -0,0 +1,320 @@
+{
+ "boundary": "Production JS; real native DOM focus, inert, Tab/Shift+Tab/Escape; synthetic recording receiver; no network/host",
+ "scenes": [
+ {
+ "case": "busy-update",
+ "beforeUpdate": "BODY",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Busy update reanchors native disabled-control focus",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy reverse Tab remains scoped",
+ "passed": true
+ },
+ {
+ "name": "Body-gap Escape precedes ancestor shortcuts",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape dispatches no close",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape does not reach background shortcuts",
+ "passed": true
+ },
+ {
+ "name": "Idle controls remain reachable after recovery",
+ "passed": true
+ },
+ {
+ "name": "Idle Escape invokes current close once",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "removed-control",
+ "beforeUpdate": "removed Save",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Removal update restores safe current focus",
+ "passed": true
+ },
+ {
+ "name": "Escape works after focused control removal",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "document-key-gap",
+ "beforeUpdate": "BODY",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy reverse Tab remains scoped",
+ "passed": true
+ },
+ {
+ "name": "Body-gap Escape precedes ancestor shortcuts",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape dispatches no close",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape does not reach background shortcuts",
+ "passed": true
+ },
+ {
+ "name": "Idle controls remain reachable after recovery",
+ "passed": true
+ },
+ {
+ "name": "Idle Escape invokes current close once",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "stale-generation",
+ "beforeUpdate": "generation2",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Stale update/deactivate cannot change current focus",
+ "passed": true
+ },
+ {
+ "name": "Stale update cannot mark new dialog busy",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 2
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "other-dialog-intent",
+ "beforeUpdate": "other dialog",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Update does not steal deliberate other-dialog focus",
+ "passed": true
+ },
+ {
+ "name": "Other dialog Escape is not intercepted",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": true
+ },
+ {
+ "case": "idle-read",
+ "beforeUpdate": "aria-disabled read",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Read-only pending control retains focus",
+ "passed": true
+ },
+ {
+ "name": "Dismissible read Escape survives body-focus gap",
+ "passed": true
+ },
+ {
+ "name": "Idle body-gap Escape precedes ancestor shortcuts",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "child-handled-escape",
+ "beforeUpdate": "child handled Escape",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Child widget retains handled Escape",
+ "passed": true
+ },
+ {
+ "name": "Child focus remains deliberate",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": true
+ },
+ {
+ "case": "deactivated-cleanup",
+ "beforeUpdate": "deactivated",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Deactivation removes document key interception",
+ "passed": true
+ },
+ {
+ "name": "Existing inert/body state is restored",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": true
+ },
+ {
+ "case": "ancestor-shortcut",
+ "beforeUpdate": "local ancestor shortcut",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Local Escape remains ahead of ancestor shortcuts",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ }
+ ]
+}
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green-final.log b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green-final.log
new file mode 100644
index 000000000..80ec2e266
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green-final.log
@@ -0,0 +1 @@
+{"scenes": 9, "passed": 9, "checks": 51}
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green.json b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green.json
new file mode 100644
index 000000000..f37fbff07
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green.json
@@ -0,0 +1,232 @@
+{
+ "boundary": "Production JS; real native DOM focus, inert, Tab/Shift+Tab/Escape; synthetic recording receiver; no network/host",
+ "scenes": [
+ {
+ "case": "busy-update",
+ "beforeUpdate": "BODY",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Busy update reanchors native disabled-control focus",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy reverse Tab remains scoped",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape dispatches no close",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape does not reach background shortcuts",
+ "passed": true
+ },
+ {
+ "name": "Idle controls remain reachable after recovery",
+ "passed": true
+ },
+ {
+ "name": "Idle Escape invokes current close once",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "removed-control",
+ "beforeUpdate": "removed Save",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Removal update restores safe current focus",
+ "passed": true
+ },
+ {
+ "name": "Escape works after focused control removal",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "document-key-gap",
+ "beforeUpdate": "BODY",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy reverse Tab remains scoped",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape dispatches no close",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape does not reach background shortcuts",
+ "passed": true
+ },
+ {
+ "name": "Idle controls remain reachable after recovery",
+ "passed": true
+ },
+ {
+ "name": "Idle Escape invokes current close once",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "stale-generation",
+ "beforeUpdate": "generation2",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Stale update/deactivate cannot change current focus",
+ "passed": true
+ },
+ {
+ "name": "Stale update cannot mark new dialog busy",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 2
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "other-dialog-intent",
+ "beforeUpdate": "other dialog",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Update does not steal deliberate other-dialog focus",
+ "passed": true
+ },
+ {
+ "name": "Other dialog Escape is not intercepted",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": true
+ },
+ {
+ "case": "idle-read",
+ "beforeUpdate": "aria-disabled read",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Read-only pending control retains focus",
+ "passed": true
+ },
+ {
+ "name": "Dismissible read Escape survives body-focus gap",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ }
+ ]
+}
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green.log b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green.log
new file mode 100644
index 000000000..f9f44a7bf
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/green.log
@@ -0,0 +1 @@
+{"scenes": 6, "passed": 6, "checks": 37}
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/outside-capture-red.json b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/outside-capture-red.json
new file mode 100644
index 000000000..bb96af1da
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/outside-capture-red.json
@@ -0,0 +1,320 @@
+{
+ "boundary": "Production JS; real native DOM focus, inert, Tab/Shift+Tab/Escape; synthetic recording receiver; no network/host",
+ "scenes": [
+ {
+ "case": "busy-update",
+ "beforeUpdate": "BODY",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Busy update reanchors native disabled-control focus",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy reverse Tab remains scoped",
+ "passed": true
+ },
+ {
+ "name": "Body-gap Escape precedes ancestor shortcuts",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape dispatches no close",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape does not reach background shortcuts",
+ "passed": true
+ },
+ {
+ "name": "Idle controls remain reachable after recovery",
+ "passed": true
+ },
+ {
+ "name": "Idle Escape invokes current close once",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "removed-control",
+ "beforeUpdate": "removed Save",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Removal update restores safe current focus",
+ "passed": true
+ },
+ {
+ "name": "Escape works after focused control removal",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "document-key-gap",
+ "beforeUpdate": "BODY",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": true
+ },
+ {
+ "name": "Busy reverse Tab remains scoped",
+ "passed": true
+ },
+ {
+ "name": "Body-gap Escape precedes ancestor shortcuts",
+ "passed": false
+ },
+ {
+ "name": "Busy Escape dispatches no close",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape does not reach background shortcuts",
+ "passed": true
+ },
+ {
+ "name": "Idle controls remain reachable after recovery",
+ "passed": true
+ },
+ {
+ "name": "Idle Escape invokes current close once",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": false
+ },
+ {
+ "case": "stale-generation",
+ "beforeUpdate": "generation2",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Stale update/deactivate cannot change current focus",
+ "passed": true
+ },
+ {
+ "name": "Stale update cannot mark new dialog busy",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 2
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "other-dialog-intent",
+ "beforeUpdate": "other dialog",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Update does not steal deliberate other-dialog focus",
+ "passed": true
+ },
+ {
+ "name": "Other dialog Escape is not intercepted",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": true
+ },
+ {
+ "case": "idle-read",
+ "beforeUpdate": "aria-disabled read",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Read-only pending control retains focus",
+ "passed": true
+ },
+ {
+ "name": "Dismissible read Escape survives body-focus gap",
+ "passed": true
+ },
+ {
+ "name": "Idle body-gap Escape precedes ancestor shortcuts",
+ "passed": false
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": false
+ },
+ {
+ "case": "child-handled-escape",
+ "beforeUpdate": "child handled Escape",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Child widget retains handled Escape",
+ "passed": true
+ },
+ {
+ "name": "Child focus remains deliberate",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": true
+ },
+ {
+ "case": "deactivated-cleanup",
+ "beforeUpdate": "deactivated",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Deactivation removes document key interception",
+ "passed": true
+ },
+ {
+ "name": "Existing inert/body state is restored",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": true
+ },
+ {
+ "case": "ancestor-shortcut",
+ "beforeUpdate": "local ancestor shortcut",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Local Escape remains ahead of ancestor shortcuts",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": true
+ }
+ ]
+}
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/outside-capture-red.log b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/outside-capture-red.log
new file mode 100644
index 000000000..b65e92ae4
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/outside-capture-red.log
@@ -0,0 +1 @@
+{"scenes": 9, "passed": 7, "checks": 51}
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red-complete.json b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red-complete.json
new file mode 100644
index 000000000..8b4e68195
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red-complete.json
@@ -0,0 +1,222 @@
+{
+ "boundary": "Production JS; real native DOM focus, inert, Tab/Shift+Tab/Escape; synthetic recording receiver; no network/host",
+ "scenes": [
+ {
+ "case": "busy-update",
+ "beforeUpdate": "BODY",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Busy update reanchors native disabled-control focus",
+ "passed": false
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy reverse Tab remains scoped",
+ "passed": false
+ },
+ {
+ "name": "Busy Escape dispatches no close",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape does not reach background shortcuts",
+ "passed": false
+ },
+ {
+ "name": "Idle controls remain reachable after recovery",
+ "passed": true
+ },
+ {
+ "name": "Idle Escape invokes current close once",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": false
+ },
+ {
+ "case": "removed-control",
+ "beforeUpdate": "removed Save",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Removal update restores safe current focus",
+ "passed": false
+ },
+ {
+ "name": "Escape works after focused control removal",
+ "passed": false
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": false
+ },
+ {
+ "case": "document-key-gap",
+ "beforeUpdate": "BODY",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy reverse Tab remains scoped",
+ "passed": false
+ },
+ {
+ "name": "Busy Escape dispatches no close",
+ "passed": true
+ },
+ {
+ "name": "Busy Escape does not reach background shortcuts",
+ "passed": false
+ },
+ {
+ "name": "Idle controls remain reachable after recovery",
+ "passed": true
+ },
+ {
+ "name": "Idle Escape invokes current close once",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": false
+ },
+ {
+ "case": "stale-generation",
+ "beforeUpdate": "generation2",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Stale update/deactivate cannot change current focus",
+ "passed": true
+ },
+ {
+ "name": "Stale update cannot mark new dialog busy",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 2
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "other-dialog-intent",
+ "beforeUpdate": "other dialog",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Update does not steal deliberate other-dialog focus",
+ "passed": true
+ },
+ {
+ "name": "Other dialog Escape is not intercepted",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": true
+ },
+ {
+ "case": "idle-read",
+ "beforeUpdate": "aria-disabled read",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Read-only pending control retains focus",
+ "passed": true
+ },
+ {
+ "name": "Dismissible read Escape survives body-focus gap",
+ "passed": false
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": false
+ }
+ ]
+}
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red-complete.log b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red-complete.log
new file mode 100644
index 000000000..a4d8f0899
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red-complete.log
@@ -0,0 +1 @@
+{"scenes": 6, "passed": 2, "checks": 37}
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red.json b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red.json
new file mode 100644
index 000000000..90e8d4a1e
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red.json
@@ -0,0 +1,214 @@
+{
+ "boundary": "Production JS; real native DOM focus, inert, Tab/Shift+Tab/Escape; synthetic recording receiver; no network/host",
+ "scenes": [
+ {
+ "case": "busy-update",
+ "beforeUpdate": "BODY",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Busy update reanchors native disabled-control focus",
+ "passed": false
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy reverse Tab remains scoped",
+ "passed": false
+ },
+ {
+ "name": "Busy Escape dispatches no close",
+ "passed": true
+ },
+ {
+ "name": "Idle controls remain reachable after recovery",
+ "passed": true
+ },
+ {
+ "name": "Idle Escape invokes current close once",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": false
+ },
+ {
+ "case": "removed-control",
+ "beforeUpdate": "removed Save",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Removal update restores safe current focus",
+ "passed": false
+ },
+ {
+ "name": "Escape works after focused control removal",
+ "passed": false
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": false
+ },
+ {
+ "case": "document-key-gap",
+ "beforeUpdate": "BODY",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy native Tab remains scoped with no usable controls",
+ "passed": false
+ },
+ {
+ "name": "Busy reverse Tab remains scoped",
+ "passed": false
+ },
+ {
+ "name": "Busy Escape dispatches no close",
+ "passed": true
+ },
+ {
+ "name": "Idle controls remain reachable after recovery",
+ "passed": true
+ },
+ {
+ "name": "Idle Escape invokes current close once",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 1
+ }
+ ],
+ "passed": false
+ },
+ {
+ "case": "stale-generation",
+ "beforeUpdate": "generation2",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Stale update/deactivate cannot change current focus",
+ "passed": true
+ },
+ {
+ "name": "Stale update cannot mark new dialog busy",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [
+ {
+ "name": "RequestCloseFromDom",
+ "generation": 2
+ }
+ ],
+ "passed": true
+ },
+ {
+ "case": "other-dialog-intent",
+ "beforeUpdate": "other dialog",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Update does not steal deliberate other-dialog focus",
+ "passed": true
+ },
+ {
+ "name": "Other dialog Escape is not intercepted",
+ "passed": true
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": true
+ },
+ {
+ "case": "idle-read",
+ "beforeUpdate": "aria-disabled read",
+ "checks": [
+ {
+ "name": "Safe initial Cancel focus",
+ "passed": true
+ },
+ {
+ "name": "Read-only pending control retains focus",
+ "passed": true
+ },
+ {
+ "name": "Dismissible read Escape survives body-focus gap",
+ "passed": false
+ },
+ {
+ "name": "No page errors",
+ "passed": true
+ }
+ ],
+ "errors": [],
+ "calls": [],
+ "passed": false
+ }
+ ]
+}
diff --git a/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red.log b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red.log
new file mode 100644
index 000000000..b1e065d2d
--- /dev/null
+++ b/docs/ui-consistency/evidence/ot13-dialog-focus-recovery/red.log
@@ -0,0 +1 @@
+{"scenes": 6, "passed": 2, "checks": 35}
diff --git a/infra/tools/ui-consistency/check_dialog_focus_recovery.py b/infra/tools/ui-consistency/check_dialog_focus_recovery.py
new file mode 100644
index 000000000..c25e08ea8
--- /dev/null
+++ b/infra/tools/ui-consistency/check_dialog_focus_recovery.py
@@ -0,0 +1,77 @@
+"""Native Chromium focus regression against actual production dialog-focus.js.
+
+Uses a local synthetic document and recording receiver only; no application server,
+network, database, operational service or package dependency is required.
+"""
+import argparse,json
+from pathlib import Path
+from playwright.sync_api import sync_playwright
+parser=argparse.ArgumentParser();parser.add_argument('--output',type=Path,required=True);args=parser.parse_args()
+source=Path(__file__).resolve().parents[3]/'src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/wwwroot/js/dialog-focus.js'
+html='''Synthetic native focus fixture