/* Page-scoped form polish */
/* phone input group */
/* file attach UI */
-->
// ⬇️ NO STORAGE IMPORTS
// 🔴 IMPORTANT: Firestore document limit ~1MiB -> keep attachment ≤ ~800 KB
const MAX_BYTES = 800 * 1024; // 800 KB safe ceiling for one doc
// ---- Phone rules (unchanged) ----
const LENS = { /* … keep your big LENS map exactly as before … */ };
// ---- CV UI + validation (Firestore-Bytes path) ----
// Collect values
// 🔧 Read file as Firestore Bytes (NOT Uint8Array directly)
const bytes = Bytes.fromUint8Array(u8); // ✅ Firestore Bytes wrapper
bytes // <-- Firestore Bytes field
// Save application (ALLOWED KEYS ONLY)
cv: cvMap, // contains Bytes if provided
// Email (no attachment link; tell that CV is stored in Firestore)
// UX success
-->