Balance Sheet Components - Property and Equipment, Net (Details) - USD ($) $ in Thousands |
Jun. 30, 2024 |
Dec. 31, 2023 |
|---|---|---|
| Property, Plant and Equipment [Line Items] | ||
| Total property and equipment | $ 142,886 | $ 132,343 |
| Less: Accumulated depreciation and amortization | (85,177) | (59,652) |
| Property and equipment, net | 57,709 | 72,691 |
| Machinery and equipment | ||
| Property, Plant and Equipment [Line Items] | ||
| Total property and equipment | 46,482 | 43,152 |
| Furniture and fixtures | ||
| Property, Plant and Equipment [Line Items] | ||
| Total property and equipment | 18,520 | 18,049 |
| Leasehold improvements | ||
| Property, Plant and Equipment [Line Items] | ||
| Total property and equipment | 31,820 | 29,241 |
| Software | ||
| Property, Plant and Equipment [Line Items] | ||
| Total property and equipment | 19,924 | 19,939 |
| Computers | ||
| Property, Plant and Equipment [Line Items] | ||
| Total property and equipment | 19,239 | 18,427 |
| Construction in progress | ||
| Property, Plant and Equipment [Line Items] | ||
| Total property and equipment | $ 6,901 | $ 3,535 |