NFC Manager Emergency Recovery Kit
Runtime: 1.3.3
Portable target: supported
Recommended deployment profile: /panel subdirectory (root website isolated)
Portable recovery URL: /recovery/ (Document Root project or public)
Project-root recovery bridge: bundled
Cross-domain security rebind: APP_URL + host-only session cookie + MFA APP_KEY preservation
Different DB: supported
Multi-DB + future module DB restore: supported
Per-source DB mapping: supported (credentials never persisted)
Project-root web hosting adapter: SELF-HEALING native front controller + symlink/gateway fallback
Public asset permission normalization: supported
Master Admin create/update: supported
FTP atomic inbox detection: supported
Browser chunk atomic finalize: supported
Full NFCBACKUP restore: required for emergency recovery
Admin credential plaintext persistence: disabled

Security Profile: WP-260
- .nfcbak extension + MIME + magic/header validation
- AES-256-GCM authenticated frames + final container digest required
- decompression/staging expansion guards
- symlink/path traversal guards
- runtime auto-disables after RECOVERY VERIFIED
- Master Admin create/update is written to security audit without plaintext credentials

Recovery permission standard:
- recovery/ folder: 0755
- public/recovery/ folder: 0755
- normal public/source folders: 0755
- normal files: 0644
- 0777 must not be used

Project-root self-healing web adapter:
- root index.php directly boots public/index.php; no /public rewrite chain is used
- public asset roots use direct symlinks when supported
- conflicting/unsupported asset roots use a traversal-safe PHP asset gateway
- if live HTTP asset probe fails, Runtime automatically forces gateway mode and retries
- build/manifest.json + real Vite asset HTTP health must pass before RECOVERY VERIFIED

HTTP 422 restore detail: visible

Subdirectory /panel adapter:
- detects project root below hosting Document Root
- installs Laravel front controller/rewrite only inside /panel
- preserves the parent/root website unchanged
- target URL may be https://domain.tld/panel

Multi-DB restore contract:
- exactly one database source has role=primary
- future module database providers declare restore.env ENV-key mapping
- each source is restored and health-checked independently
- distinct sources may not target the same physical database
- demo restore requires override credentials for every database source

Domain rebind + QR regeneration:
- APP_URL + mail.app_url are rebound to target origin
- linked QR PNG/SVG is rendered dynamically from the new canonical /c/{token} URL
- no persistent domain-bound QR image cache is trusted
- physical write history is never rewritten; old-origin physical media is reported for manual rewrite
- /panel canonical QR URL length is checked against encoder capacity before RECOVERY VERIFIED
