Leases - Narrative (Details)
$ in Thousands
1 Months Ended 12 Months Ended
Jul. 31, 2019
USD ($)
ft²
Dec. 31, 2021
USD ($)
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Operating Leased Assets [Line Items]        
Lessee-paid construction costs   $ 2,867 $ 2,730 $ 2,209
Operating lease, weighted average discount rate, percent   8.90% 8.90%  
Letter of credit        
Operating Leased Assets [Line Items]        
Long-term restricted cash   $ 1,400 $ 1,400  
65 Grove Street, Watertown,MA        
Operating Leased Assets [Line Items]        
Area of additional office space leased | ft² 25,078      
Lessee-paid construction costs $ 800      
Term of contract 8 years      
Moscow Russia Lease        
Operating Leased Assets [Line Items]        
Lessee-paid construction costs   $ 2,900 $ 2,700 $ 2,100