v3.26.1
Net Income (Loss) Per Share Attributable to Compass, Inc. - Additional Information (Details)
Jun. 30, 2026
Jan. 09, 2026
0.25% Convertible Senior Notes | Convertible Debt    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Debt instrument, interest rate 0.25% 0.25%