v3.25.0.1
Convertible Preferred Stock and Stockholders' Equity (Additional information) (Details) - USD ($)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
Jun. 09, 2022
Jun. 30, 2024
Mar. 31, 2024
Apr. 30, 2023
Jan. 31, 2021
Nov. 30, 2016
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2021
Mar. 31, 2020
Jan. 31, 2019
May 02, 2017
May 10, 2016
Convertible preferred stock                          
Preferred stock, par value (in dollars per share)             $ 0.001 $ 0.001          
Shares reserved for issuance             43,288,965 36,044,714          
Issuance of common stock from equity incentive plans, net of issuance costs             $ 295 $ 85          
Pre-Funded Warrants                          
Convertible preferred stock                          
Number of shares to be purchased     3,636,364   257,310   3,893,674            
Purchase price of prefunded warrants     $ 5.499   $ 85.499                
Exercise price of warrants     $ 0.001   $ 0.001                
Terms of exercise         The Pre-Funded Warrants are exercisable at any time after the date of issuance. A holder of Pre-Funded Warrants may not exercise the Pre-Funded Warrant if the holder, together with its affiliates, would beneficially own more than 9.99% of the number of shares of the Company’s common stock outstanding immediately after giving effect to such exercise. A holder of Pre-Funded Warrants may increase or decrease this percentage not in excess of 19.99% by providing at least 61 days’ prior notice to the Company.                
Maximum percentage of common stock ownership together with affiliates allowable after exercise of prefunded warrants         9.99%                
Maximum percentage of common stock ownership after change upon notice.         19.99%                
Employee and Non Employee Stock Option                          
Convertible preferred stock                          
Weighted-average grant date fair value per share of employee options granted             $ 4.89 $ 4.83          
Total intrinsic value of stock options exercised             $ 0 $ 300          
Issuance of common stock from equity incentive plans, net of issuance costs             $ 100            
Granted             4,210,625            
Performance Based Restricted Stock Units PRSU                          
Convertible preferred stock                          
Total fair value of awards vested             $ 1,600            
Performance stock, granted             300,000   1,997,377        
Restricted Stock Units (RSUs)                          
Convertible preferred stock                          
Shares reserved for issuance             6,214,064 3,065,087          
Expected recognition period of unrecognized compensation cost             1 year 8 months 12 days 2 years          
Performance stock, granted             4,451,874            
Unrecognized compensation cost related to unvested restricted shares             $ 31,400 $ 38,300          
Performance-based restricted granted, none of vested Units Outstanding             1,062,607 1,020,617          
Common Stock                          
Convertible preferred stock                          
Conversion of preferred shares to common stock       167,205     30,110            
Non-Voting Class A Preferred Stock | Maximum                          
Convertible preferred stock                          
Number of shares to be issued upon conversion                       14,097,745  
Non-Voting Class A Preferred Stock | Redmile Group, LLC and Affiliates                          
Convertible preferred stock                          
Percentage of common stock ownership upon preferred stock conversion           19.99%              
Terms of conversion             The Class A Preferred were purchased exclusively by entities affiliated with Redmile Group, LLC (collectively, Redmile). The terms of the CoD prohibited Redmile from converting the Class A Preferred into shares of the Company’s common stock if, as a result of conversion, Redmile, together with its affiliates, would own more than 9.99% of the Company’s common stock then issued and outstanding (the Redmile Percentage Limitation), which percentage could change at Redmile’s election upon 61 days’ notice to the Company to (i) any other number less than or equal to 19.99% or (ii) subject to approval of the Company’s stockholders to the extent required in accordance with the NASDAQ Global Market rules, any number in excess of 19.99%. On May 2, 2017, the Company’s stockholders approved the issuance of up to an aggregate of 14,097,745 shares of common stock upon the conversion of the outstanding shares of Class A Preferred. As a result, Redmile has the right to increase the Redmile Percentage Limitation to any percentage in excess of 19.99% at its election.            
Non-Voting Class A Preferred Stock | Redmile Group, LLC and Affiliates | Maximum                          
Convertible preferred stock                          
Percentage of common stock ownership upon preferred stock conversion           9.99%              
Preferred shares converted into common stock percentage of ownership change upon notice           19.99%              
Class A Convertible Preferred Shares                          
Convertible preferred stock                          
Preferred stock, issued shares             2,755,086 2,761,108          
Percentage of common stock ownership upon preferred stock conversion       14.99%                  
Conversion of preferred shares to common stock       33,441     6,022            
Class A Convertible Preferred Shares | Redmile Group, LLC and Affiliates                          
Convertible preferred stock                          
Percentage of common stock ownership upon preferred stock conversion           19.99%              
Stock Option And Incentive Plan 2013 | Employee and Non Employee Stock Option                          
Convertible preferred stock                          
Unrecognized compensation cost related to outstanding options             $ 15,400 $ 23,000          
Expected recognition period of unrecognized compensation cost             1 year 7 months 6 days 1 year 10 months 24 days          
Stock Option And Incentive Plan2022 [Member]                          
Convertible preferred stock                          
Common stock issued 9,500,000 8,000,000,000,000                      
Shares reserved for issuance             11,656,109 8,633,496          
Stock Option And Incentive Plan2022 [Member] | Employee and Non Employee Stock Option                          
Convertible preferred stock                          
Stock options generally vested on anniversary grant date (as a percent) 25.00%                        
General vesting period after first year 3 years                        
Monthly vesting period 4 years                        
Term of stock awards 10 years                        
Stock Option And Incentive Plan2022 [Member] | Restricted Stock Units (RSUs)                          
Convertible preferred stock                          
Annually vesting period 4 years                        
Inducement Plan                          
Convertible preferred stock                          
Shares reserved for issuance             920,688 689,750         500,000
Additional shares reserved for issuance         300,000         470,822 200,000    
November 2016 Placement | Common Stock                          
Convertible preferred stock                          
Common stock issued           7,236,837              
Share issue price (in dollars per share)           $ 2.66              
November 2016 Placement | Non-Voting Class A Preferred Stock                          
Convertible preferred stock                          
Preferred stock, issued shares           2,819,549              
Share issue price (in dollars per share)           $ 13.3              
Preferred stock, par value (in dollars per share)           0.001              
Conversion price           $ 2.66