v3.26.1
Debt - Additional Information (Details) - USD ($)
3 Months Ended 6 Months Ended
Feb. 25, 2026
Feb. 24, 2026
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2026
Jun. 30, 2025
Sep. 17, 2021
Debt Instrument [Line Items]              
Term loans aggregate principal amount     $ 175,000,000   $ 175,000,000    
Debt instrument, final payment fee or end of term charge     $ (3,500,000)   (3,500,000)    
Loss on extinguishment of debt         $ (829,000) $ 0  
Common Stock              
Debt Instrument [Line Items]              
Warrants issued to purchase shares     3,859,000   3,859,000    
Loan Agreement              
Debt Instrument [Line Items]              
Financial convenants, Minimum cash convenant 20.00%            
Debt instrument, final payment fee percentage 1.00%            
Debt instrument, prepayment fee percentage of outstanding principal amount 50.00%            
Minimum market capitalization amount $ 900,000,000            
Percentage of debt funded to be issued as warrants to purchase common stock 2.50%            
Warrants exercise price $ 33.43            
Warrants expire term 7 years            
Debt issuance costs amortization period   3 years          
Loan Agreement | Common Stock              
Debt Instrument [Line Items]              
Warrants issued to purchase shares 74,782            
Loan Agreement | Term Loan              
Debt Instrument [Line Items]              
Term loans aggregate principal amount $ 175,000,000           $ 200,000,000
Debt instrument, interest rate 9.85%            
Debt instrument, final payment fee or end of term charge $ 3,500,000            
Facility fee 1,800,000            
Loss on extinguishment of debt         $ 800,000    
Deferred debt issuance costs   $ 6,900,000          
Deferred issuance fees   $ 500,000          
Debt issuance costs $ 6,400,000            
Loan Agreement | Term Loan | Minimum              
Debt Instrument [Line Items]              
Debt instrument, principal repayment percentage 2.50%            
Loan Agreement | Term Loan | Prime Rate              
Debt Instrument [Line Items]              
Debt instrument, basis spread on variable rate 3.10%            
Loan Agreement | Term Loan | Payment In Kind PIK Interest Rate              
Debt Instrument [Line Items]              
Debt instrument, interest rate 2.15%            
Loan Agreement | Additional Loan Tranche              
Debt Instrument [Line Items]              
Term loans aggregate principal amount $ 25,000,000            
Loan Agreement | Term Loan Advance Prepayment Prior to Twelfth Month Anniversary of the Fifth Amendment Closing Date              
Debt Instrument [Line Items]              
Debt instrument, final payment fee percentage 2.50%            
Loan Agreement | Term Loan Advance Prepayment on or After the twelfth month anniversary but prior to the twenty-fourth month anniversary of the Fifth Amendment Closing Date              
Debt Instrument [Line Items]              
Debt instrument, final payment fee percentage 2.00%            
Loan Agreement | Term Loan Advance Prepayment on or After the Twenty-fourth Month Anniversary But Prior To Thirty-sixth Month Anniversary Of The Fifth Amendment Closing Date              
Debt Instrument [Line Items]              
Debt instrument, final payment fee percentage 1.50%            
Loan Agreement | Term Loan Advance Prepayment Prior to September, 2027              
Debt Instrument [Line Items]              
Debt instrument, final payment fee percentage 1.25%            
Loan Agreement | Term Loan Advance Prepayment after September 1, 2027 but on or prior to February 1, 2029              
Debt Instrument [Line Items]              
Debt instrument, final payment fee percentage 2.00%            
Loan Agreement | Term Loan Advance Prepayment after February 1, 2029 but on or prior to January 1, 2030              
Debt Instrument [Line Items]              
Debt instrument, final payment fee percentage 3.00%            
Loan Agreement | Term Loan Advance Prepayment after January 1, 2030              
Debt Instrument [Line Items]              
Debt instrument, final payment fee percentage 3.50%            
Loan Agreement | Term Loan Advance              
Debt Instrument [Line Items]              
Debt instrument, final payment fee or end of term charge     $ 3,500,000   3,500,000    
Loan Agreement | Three Months Trailing              
Debt Instrument [Line Items]              
Financial covenants, Projected revenue percentage 15.00%            
Financial convenants, Projected revenue $ 75,000,000            
Trailing Net Product Revenue, Period 3 months            
Loan Agreement | Three Months Trailing | Maximum              
Debt Instrument [Line Items]              
Financial covenants, Projected revenue percentage 50.00%            
Hercules Term Loan              
Debt Instrument [Line Items]              
Term loans aggregate principal amount     175,000,000   175,000,000    
Accrued interest     1,400,000   1,400,000    
Hercules Loan Agreement              
Debt Instrument [Line Items]              
Interest expense     $ 5,300,000 $ 7,200,000 $ 11,800,000 $ 14,300,000  
Minimum Cash Balance Condition One | Three Months Trailing              
Debt Instrument [Line Items]              
Financial covenants, Projected revenue percentage 40.00%            
Financial convenants, Projected revenue $ 65,000,000            
Minimum Cash Balance Condition Two | Three Months Trailing              
Debt Instrument [Line Items]              
Financial covenants, Projected revenue percentage 30.00%            
Financial convenants, Projected revenue $ 85,000,000            
Projected Revenue in 2026 | Three Months Trailing              
Debt Instrument [Line Items]              
Financial covenants, Projected revenue percentage 75.00%            
Projected Revenue in 2027 | Three Months Trailing              
Debt Instrument [Line Items]              
Financial covenants, Projected revenue percentage 70.00%