See the prompt
Build a small private CRM web app for (not given).
Pipeline stages, in order, comma separated: Lead, Contacted, Proposal, Won, Lost
The app has one collection, "leads", with fields: name (required), company, email, phone, value (a number), stage (one of the stages above), notes, and the date added. The main screen is a board with one column per stage, a count and a total value per column, and a card per lead. A lead can be moved to another stage with a "Move to" select on the card (drag and drop is a nice extra but must not be the only way). Include an "Add lead" form, an edit panel with delete (ask to confirm), a search box that filters by name or company, and an "Export CSV" button.
Access: this is a private tool, and nobody may read or change a lead without being given a role. Everyone signs in with the emailed code. In the data rules (conquer.data.json) set "roles" to exactly ["pending", "viewer", "editor", "admin"], lowest first. "pending" is what anyone without a role counts as: it can read and write nothing. The leads collection has read "viewer" (viewers and above) and write "editor" (editors and above can add, change, move and delete). Show the signed-in person's email and role in the header and hide editing controls from viewers. A person with the role pending (or no role) sees only a short screen saying they have no access yet and to ask the owner to invite them; never show them any lead.
Design: dense but calm business UI, desktop first and usable on a phone (columns scroll sideways), accent colour #7c3aed, clear focus states. Empty state on first use explains how to add the first lead.