Unified visibility logic.