- Escape user inputs and attribute names in HTML (XSS prevention)
- Secure JSON in script blocks against </script> injection
- Add JS esc() helper for all innerHTML insertions
- Hoist focus state to module scope so profile close clears it
- Fix driver code extraction to break on non-string values
- Remove dead numpy import from parse_excel
- Clarify auto-detected classification counts in UI
feat: detect reward territories from Excel instead of hardcoding
Reads "per reward field" header in row 4 to find territory columns,
then extracts territory names from row 5. Falls back to default list
if detection fails. Removes REWARDS_FACTORS from config.py.
refactor: split monolith into config, parse_excel, build_network, app