v3.26.1
Convertible Senior Notes and Capped Call Transactions - Narrative (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended 6 Months Ended 12 Months Ended
Apr. 07, 2026
USD ($)
Sep. 25, 2025
shares
Sep. 12, 2025
USD ($)
$ / shares
shares
Jun. 13, 2024
USD ($)
Jun. 03, 2024
USD ($)
$ / shares
shares
Dec. 31, 2020
USD ($)
Aug. 31, 2025
USD ($)
shares
Jun. 30, 2024
USD ($)
d
day
Dec. 31, 2020
day
shares
Jun. 30, 2026
USD ($)
shares
Jun. 30, 2025
USD ($)
Jun. 30, 2026
USD ($)
shares
Jun. 30, 2025
USD ($)
Dec. 31, 2025
USD ($)
shares
Dec. 31, 2020
USD ($)
Oct. 02, 2025
shares
Oct. 01, 2025
shares
Sep. 30, 2025
USD ($)
Dec. 31, 2024
$ / shares
Dec. 31, 2021
USD ($)
$ / shares
Debt Instrument [Line Items]                                        
Senior notes, net of current portion (Note 8)                   $ 383,619   $ 383,619   $ 371,732            
Number of shares of common stock covered by called caps (shares) | shares                 3,000                      
Reduction to additional paid-in-capital related to called caps           $ 46,100                            
Interest expense                   $ 8,490 $ 7,866 16,742 $ 15,344              
Repayments of Convertible Debt                       2,963 0              
Amortization of debt issuance costs and accretion of debt discount                       $ (4,156) (3,727)              
Class of Warrant or Right, Exercise Price of Warrants or Rights | $ / shares         $ 11.25                              
Class of Warrant or Right, Number of Securities Called by Warrants or Rights | shares         649,782         200,000   200,000                
Class of Warrant or Right, Outstanding | shares                   1,054,039   1,054,039                
Class of Warrant or Right, Beneficial Ownership Limitation, Percentage               4.99%                        
Class of Warrant or Right, Beneficial Ownership Limitation, Term of Investor Notice               61 days                        
Class of Warrant or Right, Beneficial Ownership Limitation, Maximum Percentage               9.99%                        
Warrants and Rights Outstanding         $ 5,300         $ 0   $ 0                
Change in the fair value of Warrants                   $ 1,900 $ 3,000 $ 2,999 $ 5,825 $ 13,202            
Temporary Equity, Shares Issued | shares     26,551                                  
Preferred Stock, Ownership Cap                   9.90%   9.90%                
Debt Redemption Rate                   105.00%   105.00%                
Class of Warrant or Right, Exercised | shares             200,000                          
Payments for Repurchase of Warrants             $ 1,300                          
Common stock, authorized (in shares) | shares                   20,000,000   20,000,000   20,000,000   20,000,000 13,333,333,000,000      
Stock Issued During Period, Shares, Conversion of Convertible Securities | shares                       1,547,840                
Share-Settled Warrants                                        
Debt Instrument [Line Items]                                        
Warrants and Rights Outstanding, Term         10 years                              
Cash-Settled Warrants                                        
Debt Instrument [Line Items]                                        
Warrants and Rights Outstanding, Term         10 years                              
Class of Warrant or Right, Number of Securities Called by Warrants or Rights | shares         156,318                              
Class of Warrant or Right, Available Cash         $ 100,000                              
Class of Warrant or Right, Settlement Amount, Annualized Interest Rate               6.00%                        
Convertible Debt                                        
Debt Instrument [Line Items]                                        
Principal Balance                   $ 426,565   $ 426,565   $ 423,954            
Short-Term Debt                   14,946   14,946   20,052            
Debt Issuance Costs, Net                   5,370   5,370   6,215            
Long-Term Debt, Gross                   398,565   398,565   391,784            
Unamortized issuance costs                   (22,630)   (22,630)   (25,955)            
Long-Term Debt                   383,619   383,619   371,732            
2026 Notes                                        
Debt Instrument [Line Items]                                        
Principal Balance     $ 341,100                                  
Debt instrument, repurchase amount       $ 10,300                                
Senior notes, net of current portion (Note 8)                   14,900   14,900                
Repayments of Convertible Debt       $ 4,900                                
Gains (Losses) on Restructuring of Debt                       27,700                
Exchange Closing Date Principal                   341,100   341,100                
Exchange Closing Date, Discount                   1,700   1,700                
Exchange Closing Date, Net                   339,400   339,400                
2026 Notes | Debt Instrument, Redemption, First Lien Convertible Notes                                        
Debt Instrument [Line Items]                                        
Debt Instrument, Redemption, Number Of Days Before Maturity               91 days                        
2026 Notes | Investor                                        
Debt Instrument [Line Items]                                        
Principal Balance         146,000                         $ 146,000    
2026 Notes | Convertible Debt                                        
Debt Instrument [Line Items]                                        
Principal Balance $ 5,200                 14,972   14,972   20,125           $ 517,500
Short-Term Debt                   14,946   14,946   20,052            
Proceeds from debt offering, net of debt issuance costs                             $ 505,300          
Percentage of principal amount paid if repurchase due to fundamental change (percent)           100.00%                            
Threshold trading days in consideration of note conversion | day                 20                      
Threshold consecutive trading days in analysis of conversion price | day                 30                      
Threshold percentage of stock price if converted                 130.00%                      
Debt Instrument, Convertible Business Period           5 years                            
Debt Instrument, Convertible, Measurement Period           5 years                            
Threshold for five day period, product of sale price of common stock and conversion rate of notes                 98.00%                      
Debt Issuance Costs, Net                   $ 26   $ 26   73            
Remaining amortization period for debt discount and debt issuance costs                   4 months 24 days   4 months 24 days                
Convertible debt conversion price (in dollars per share) | $ / shares                                       $ 1,128.39
Debt Instrument, Convertible, Threshold Principal Amount               $ 60,000                        
Long-Term Debt, Gross                   $ 14,946   $ 14,946   20,052            
Unamortized issuance costs                   $ 0   $ 0   0            
Debt Instrument, Interest Rate, Effective Percentage                   0.40%   0.40%                
Debt Instrument, Convertible, Conversion Ratio                       886,200                
Long-Term Debt                   $ 0   $ 0   0            
Repayments of Debt $ 3,000                                      
Capped calls                                        
Debt Instrument [Line Items]                                        
Capped caps initial cap price (in dollars per share) | $ / shares                                     $ 1,583,700,000  
Convertible Senior Notes Due 2029                                        
Debt Instrument [Line Items]                                        
Principal Balance                           50,000            
Convertible Senior Notes Due 2029 | Debt Instrument, Redemption, First Lien Convertible Notes                                        
Debt Instrument [Line Items]                                        
Percentage of principal amount paid if repurchase due to fundamental change (percent)               100.00%                        
Debt Instrument, Redemption Price, Discount Percentage, Basis Points               0.0050                        
Convertible Senior Notes Due 2029 | Investor                                        
Debt Instrument [Line Items]                                        
Principal Balance                                   100,000    
Debt instrument, repurchase amount                           50,000       50,000    
Class of Warrant Or Right, Additional Amount Authorized For Purchase         $ 50,000                              
Convertible Senior Notes Due 2029 | Convertible Debt                                        
Debt Instrument [Line Items]                                        
Principal Balance                   229,641   229,641   221,877       150,000    
Short-Term Debt                   0   0   0            
Debt Issuance Costs, Net                   $ 5,344   $ 5,344   6,142            
Remaining amortization period for debt discount and debt issuance costs                   3 years   3 years                
Debt issuance costs attributable to liability                                   7,600    
Long-Term Debt, Fair Value                                   118,100    
Debt Instrument, Discount, Gross                                   $ 31,900    
Debt Instrument, Covenant, Maximum Amount, Junior In Lien Priority               $ 150,000                        
Debt Instrument, Covenant, Minimum Required Cash Balance               60,000                        
Long-Term Debt, Gross                   $ 201,667   $ 201,667   189,780            
Amortization of debt issuance costs and accretion of debt discount               $ (5,300)                        
Unamortized issuance costs                   $ (22,630)   $ (22,630)   $ (25,955)            
Debt Instrument, Interest Rate, Effective Percentage                   19.13%   19.13%   19.13%            
Debt Instrument, Convertible, Conversion Ratio                       0.8862                
Long-Term Debt                   $ 201,667   $ 201,667   $ 189,780            
Debt Instrument, Convertible, Trading Day Observation Period | day               50                        
Convertible Senior Notes Due 2029 | Convertible Debt | Debt Conversion Terms One                                        
Debt Instrument [Line Items]                                        
Threshold trading days in consideration of note conversion | day               20                        
Threshold consecutive trading days in analysis of conversion price | day               30                        
Threshold percentage of stock price if converted               130.00%                        
Convertible Senior Notes Due 2029 | Convertible Debt | Debt Conversion Terms Two                                        
Debt Instrument [Line Items]                                        
Threshold trading days in consideration of note conversion | d               5                        
Threshold for five day period, product of sale price of common stock and conversion rate of notes               98.00%                        
Convertible Senior Notes Due 2029 | Convertible Debt | Earlier Of The Date of Issuance of Delayed Draw Notes And December 15. 2026                                        
Debt Instrument [Line Items]                                        
Debt instrument stated rate (percent)         10.83%                              
Debt Instrument, Interest Rate, Stated Percentage, Cash         4.17%                              
Debt Instrument, Interest Rate, Stated Percentage, Paid In Kind         6.66%                              
Convertible Senior Notes Due 2029 | Convertible Debt | From Date of Issuance of Delayed Draw Notes And Prior to December 15, 2026                                        
Debt Instrument [Line Items]                                        
Debt instrument stated rate (percent)         11.375%                              
Debt Instrument, Interest Rate, Stated Percentage, Cash         4.375%                              
Debt Instrument, Interest Rate, Stated Percentage, Paid In Kind                   7.00%   7.00%                
Convertible Senior Notes Due 2029 | Convertible Debt | On Or After December 15, 2026                                        
Debt Instrument [Line Items]                                        
Debt instrument stated rate (percent)         13.00%                              
Debt Instrument, Interest Rate, Stated Percentage, Cash         5.00%                              
Debt Instrument, Interest Rate, Stated Percentage, Paid In Kind         8.00%                              
Debt Instrument, Interest Rate, Effective Percentage                   13.28%   13.28%   13.28%            
Convertible Senior Notes Due 2029 | Convertible Debt | Debt Instrument, Redemption, Period Two                                        
Debt Instrument [Line Items]                                        
Debt Instrument, Redemption Price, Percentage of Principal Amount Redeemed               103.25%                        
Convertible Senior Notes Due 2029 | Convertible Debt | Debt Instrument, Redemption, Period Three                                        
Debt Instrument [Line Items]                                        
Debt Instrument, Redemption Price, Percentage of Principal Amount Redeemed               113.00%                        
Convertible Senior Notes Due 2029 | Convertible Debt | Debt Instrument, Redemption, Fundamental Change                                        
Debt Instrument [Line Items]                                        
Percentage of principal amount paid if repurchase due to fundamental change (percent)               100.00%                        
Debt Instrument, Redemption Price, Discount Percentage, Basis Points               0.0050                        
Debt Instrument, Redemption Price, Remaining Future Interest Payments, Percentage               66.00%                        
September 2025 Debt Exchange                                        
Debt Instrument [Line Items]                                        
Principal Balance     $ 115,000                                  
Debt instrument stated rate (percent)     10.00%                                  
Proceeds from Issuance of Secured Debt     $ 45,000                                  
Common stock issued upon vesting of restricted stock units (in shares) | shares   143,192 3,555,596                                  
Temporary Equity, Shares Issued | shares     26,551                                  
Temporary Equity, Par or Stated Value Per Share | $ / shares     $ 0.001                                  
10.0% Second Lien Senior Subordinated Secured Notes due 2029                                        
Debt Instrument [Line Items]                                        
Interest expense                       $ 58,700                
Long-Term Debt                   $ 115,000   115,000                
Exchange Closing Date, Discount                   182,000   182,000                
Debt, Undiscounted                   115,000   115,000                
Debt Interest Maximum                   58,700   58,700                
Redemption Premium                       8,300                
10.0% Second Lien Senior Subordinated Secured Notes due 2029 | Conditional Rate                                        
Debt Instrument [Line Items]                                        
Debt instrument stated rate (percent)     6.00%                                  
10.0% Second Lien Senior Subordinated Secured Notes due 2029 | Convertible Debt                                        
Debt Instrument [Line Items]                                        
Principal Balance                   181,952   181,952   $ 181,952            
Short-Term Debt                   0   0   0            
Debt Issuance Costs, Net                   0   0   0            
Debt Instrument, Covenant, Maximum Amount, Junior In Lien Priority     $ 150,000                                  
Debt Instrument, Covenant, Minimum Required Cash Balance     $ 20,100                                  
Long-Term Debt, Gross                   181,952   181,952   181,952            
Unamortized issuance costs                   0   0   0            
Long-Term Debt                   $ 181,952   $ 181,952   $ 181,952            
10.0% Second Lien Senior Subordinated Secured Notes due 2029 | Convertible Debt | Debt Instrument, Redemption, Period Two                                        
Debt Instrument [Line Items]                                        
Debt Instrument, Redemption Price, Percentage of Principal Amount Redeemed     102.50%                                  
10.0% Second Lien Senior Subordinated Secured Notes due 2029 | Convertible Debt | Debt Instrument, Redemption, Period Three                                        
Debt Instrument [Line Items]                                        
Debt Instrument, Redemption Price, Percentage of Principal Amount Redeemed     100.00%                                  
10.0% Second Lien Senior Subordinated Secured Notes due 2029 | Convertible Debt | Debt Instrument, Redemption, Fundamental Change                                        
Debt Instrument [Line Items]                                        
Percentage of principal amount paid if repurchase due to fundamental change (percent)     105.00%