Fano–Kondo and the Kondo box regimes crossover in a quantum dot coupled to a quantum box