Every nested rounded rectangle has a mathematically correct inner radius. Most designers guess it. Most tools ignore it. One formula fixes everything.
Open CalculatorWhen you nest two rounded rectangles, the inner border-radius is not the same as the outer — and it’s not zero either. The centers of both arcs must align on the same axis.
The gap between the two elements is exactly the distance between the arc centers. Subtract it from the outer radius and you get a perfectly concentric, visually harmonious corner. Every time.
This is also the principle behind Apple’s Squircle system — they just never documented it.
Adjust — copy — ship.