---
applyTo: "frontend/**/*.{ts,tsx,css,html,json}"
---

# Frontend Instructions

- Keep React components typed, feature-oriented, and consistent with `frontend/src/features`.
- Preserve mobile-first responsive behavior, light/dark themes, accessible controls, and existing CSS variables.
- Keep patient-facing copy calm, plain, and non-diagnostic.
- For UI changes, consider empty, loading, error, and edge states.
- Update or add Vitest coverage when behavior changes.
