const FALLBACK = 'bg-gray-500/10 text-gray-400 border-gray-500/20'; export function getCategoryColor(category: string | undefined): string { if (!category) return FALLBACK; const colors: Record = { home: 'bg-blue-500/10 text-blue-400 border-blue-500/20', work: 'bg-purple-500/10 text-purple-400 border-purple-500/20', restaurant: 'bg-orange-500/10 text-orange-400 border-orange-500/20', shop: 'bg-green-500/10 text-green-400 border-green-500/20', other: FALLBACK, }; return colors[category] ?? FALLBACK; }