Stock-Based Compensation - Narrative (Details) - USD ($)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
Jan. 01, 2022
Oct. 31, 2018
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Jul. 06, 2018
Share-Based Compensation            
Stock-based compensation expense     $ 15,783 $ 35,610 $ 33,665  
Common stock            
Share-Based Compensation            
Issuance of common stock under employee stock purchase plan (in shares)     143,906 26,444 0  
Issuance of common stock upon exercise of stock options (in shares)     42,228 1,933,523 1,037,406  
Executive Officer            
Share-Based Compensation            
Number of options granted (in shares)   193,400        
Options exercise price (in dollars per share)   $ 16.43        
Stock-based compensation, fair value     $ 4,300      
Share-based Payment Arrangement, Option            
Share-Based Compensation            
Aggregate intrinsic value of stock options exercised     $ 100 $ 34,600 $ 5,700  
Weighted average grant-date fair value (per share)     $ 2.98 $ 10.55 $ 4.51  
Number of options granted (in shares)     4,104,403      
Options exercise price (in dollars per share)     $ 2.32      
Issuance of common stock upon exercise of stock options (in shares)     42,228      
Unrecognized compensation cost     $ 6,800      
Unrecognized compensation cost expected to be recognized over a weighted average period     2 years 2 months 12 days      
Market-Based Stock Options            
Share-Based Compensation            
Aggregate intrinsic value of stock options exercised     $ 0      
Number of options granted (in shares)     0 0 0  
Issuance of common stock upon exercise of stock options (in shares)     0 0 0  
Market based and service based vesting            
Share-Based Compensation            
Stock-based compensation expense     $ 100 $ 200 $ 600  
Number of options granted (in shares)   164,400        
Options exercise price (in dollars per share)   $ 16.43        
Performance-based vesting            
Share-Based Compensation            
Stock-based compensation expense     $ 1,100 1,100 $ 0  
Restricted Stock Units (RSUs)            
Share-Based Compensation            
Number of options granted (in shares)         0  
Minimum | Restricted Stock Units (RSUs)            
Share-Based Compensation            
Vesting period     3 years      
Maximum | Restricted Stock Units (RSUs)            
Share-Based Compensation            
Vesting period     4 years      
2018 Equity Incentive Plan            
Share-Based Compensation            
Total number of shares of common stock authorized to issue (in shares)           5,708,931
Annual increase of shares reserved for awards (as a percent)           4.00%
Number of shares remained available for future issuance (in shares)     9,666,433      
Increase in number of authorized shares reserved for issuance (in shares) 3,615,509          
2018 ESPP            
Share-Based Compensation            
Stock-based compensation expense     $ 100 $ 100 $ 0