Consolidated Statements of Stockholders' Equity - USD ($)
$ in Thousands
Total
ATM Equity Offering Program [Member]
Follow-on Public Offering [Member]
Private Investment in Public Equity [Member]
Revision of Prior Period, Accounting Standards Update, Adjustment [Member]
Common Stock [Member]
Common Stock [Member]
ATM Equity Offering Program [Member]
Common Stock [Member]
Follow-on Public Offering [Member]
Common Stock [Member]
Private Investment in Public Equity [Member]
Additional Paid-In Capital [Member]
Additional Paid-In Capital [Member]
ATM Equity Offering Program [Member]
Additional Paid-In Capital [Member]
Follow-on Public Offering [Member]
Additional Paid-In Capital [Member]
Private Investment in Public Equity [Member]
Accumulated Other Comprehensive Gain/(Loss) [Member]
Accumulated Deficit [Member]
Accumulated Deficit [Member]
Revision of Prior Period, Accounting Standards Update, Adjustment [Member]
Balance at Dec. 31, 2018 $ 149,122       $ (153) $ 16       $ 275,593       $ (85) $ (126,402) $ (153)
Balance, shares at Dec. 31, 2018           28,823,130                    
Accounting Standards Update [Extensible List] Accounting Standards Update201602 [Member]                              
Issuance of stock, net of issuance costs   $ 3,763 $ 69,709         $ 1     $ 3,763 $ 69,708        
Issuance of stock, net of issuance costs, shares             490,880 6,500,000                
Issuance of common stock under employee stock purchase plan (“ESPP”) $ 413                 413            
Issuance of common stock under employee stock purchase plan ("ESPP"), shares           55,727                    
Unrealized (loss) gain on marketable securities, net of tax 109                         109    
Lapse of repurchase rights related to common stock issued pursuant to early exercises 63                 63            
Lapse of repurchase rights related to common stock issued pursuant to early exercises, shares           182,195                    
Issuance of common stock upon exercise of stock options 452                 452            
Issuance of common stock upon exercise of stock options, shares           281,024                    
Stock-based compensation 5,299                 5,299            
Net loss (94,433)                           (94,433)  
Balance at Dec. 31, 2019 134,344         $ 17       355,291       24 (220,988)  
Balance, shares at Dec. 31, 2019           36,332,956                    
Issuance of stock, net of issuance costs   $ 9,670   $ 32,122         $ 1   9,670   $ 32,121      
Issuance of stock, net of issuance costs, shares   1,160,193         1,160,963   9,586,478              
Issuance of pre-funded warrants, net of issuance costs 87,704                 87,704            
Issuance of common stock under employee stock purchase plan (“ESPP”) 910                 910            
Issuance of common stock under employee stock purchase plan ("ESPP"), shares           243,878                    
Unrealized (loss) gain on marketable securities, net of tax (24)                         (24)    
Lapse of repurchase rights related to common stock issued pursuant to early exercises 11                 11            
Lapse of repurchase rights related to common stock issued pursuant to early exercises, shares           30,874                    
Issuance of common stock upon exercise of stock options 206                 206            
Issuance of common stock upon exercise of stock options, shares           197,544                    
Stock-based compensation 7,110                 7,110            
Net loss (105,314)                           (105,314)  
Balance at Dec. 31, 2020 166,739         $ 18       493,023         (326,302)  
Balance, shares at Dec. 31, 2020           47,552,693                    
Issuance of stock, net of issuance costs   $ 36,595   $ 52,653         $ 1   $ 36,595   $ 52,652      
Issuance of stock, net of issuance costs, shares   3,990,869         3,990,869   5,000,000              
Offering costs related to the sale of common stock and pre-funded warrants (451)                 (451)            
Issuance of common stock under employee stock purchase plan (“ESPP”) 914                 914            
Issuance of common stock under employee stock purchase plan ("ESPP"), shares           183,111                    
Unrealized (loss) gain on marketable securities, net of tax (73)                         (73)    
Issuance of common stock upon exercise of stock options $ 3,360                 3,360            
Issuance of common stock upon exercise of stock options, shares 692,038         692,038                    
Issuance of common stock under Sales Purchase Agreement, net of issuance costs, shares           1,169,591                    
Issuance of common stock under Sales Purchase Agreement, net of issuance costs $ 20,830                 20,830            
Exercise of common stock warrants 49         $ 1       48            
Exercise of common stock warrants, shares           10,459,576                    
Stock-based compensation 10,552                 10,552            
Net loss (75,082)                           (75,082)  
Balance at Dec. 31, 2021 $ 216,086         $ 20       $ 617,523       $ (73) $ (401,384)  
Balance, shares at Dec. 31, 2021           69,047,878