bool matches(String query) { final normalized = query.trim().toLowerCase(); if (normalized.isEmpty) return true; return searchIndex.contains(normalized); }