v3.26.1
Restructuring - Schedule of Restructuring Charges (Details)
$ in Thousands
12 Months Ended
Jun. 30, 2026
USD ($)
Restructuring Cost and Reserve [Line Items]  
Restructuring charges $ 285,370
Severance and Other Termination Benefits  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges 203,917
Stock-based Compensation  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges 1,432
Lease Consolidation  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges 80,021
Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges $ 53,264
Restructuring Charges, Statement of Income or Comprehensive Income [Extensible Enumeration] Cost of revenues
Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold | Severance and Other Termination Benefits  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges $ 45,185
Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold | Stock-based Compensation  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges 1,432
Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold | Lease Consolidation  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges 6,647
Income Statement Location [Axis]: us-gaap:GeneralAndAdministrativeExpense  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges $ 36,081
Restructuring Charges, Statement of Income or Comprehensive Income [Extensible Enumeration] General and administrative
Income Statement Location [Axis]: us-gaap:GeneralAndAdministrativeExpense | Severance and Other Termination Benefits  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges $ 24,778
Income Statement Location [Axis]: us-gaap:GeneralAndAdministrativeExpense | Stock-based Compensation  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges 0
Income Statement Location [Axis]: us-gaap:GeneralAndAdministrativeExpense | Lease Consolidation  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges 11,303
Income Statement Location [Axis]: us-gaap:ResearchAndDevelopmentExpense  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges $ 144,494
Restructuring Charges, Statement of Income or Comprehensive Income [Extensible Enumeration] Research and development
Income Statement Location [Axis]: us-gaap:ResearchAndDevelopmentExpense | Severance and Other Termination Benefits  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges $ 108,844
Income Statement Location [Axis]: us-gaap:ResearchAndDevelopmentExpense | Stock-based Compensation  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges 0
Income Statement Location [Axis]: us-gaap:ResearchAndDevelopmentExpense | Lease Consolidation  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges 35,650
Income Statement Location [Axis]: us-gaap:SellingAndMarketingExpense  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges $ 51,531
Restructuring Charges, Statement of Income or Comprehensive Income [Extensible Enumeration] Marketing and sales
Income Statement Location [Axis]: us-gaap:SellingAndMarketingExpense | Severance and Other Termination Benefits  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges $ 25,110
Income Statement Location [Axis]: us-gaap:SellingAndMarketingExpense | Stock-based Compensation  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges 0
Income Statement Location [Axis]: us-gaap:SellingAndMarketingExpense | Lease Consolidation  
Restructuring Cost and Reserve [Line Items]  
Restructuring charges $ 26,421