f9707ebba8
Document mousedown handler clears selection when clicking on any element that is not an entry card, the batch bar, or an open modal/settings menu. Works in tandem with entriesContainer rect-select handler: when clicking inside entriesContainer on empty space the container handler runs first (setting rectState.active=true) so the document handler skips; when clicking outside entriesContainer the document handler fires alone and calls clearSelection().