.filepicker { details:has(input[type=radio]:checked)>summary, label:has(input[type=radio]:checked) { background-color: lightblue; } .directories { margin-left: 0.7em; } .files>li { list-style-type: none; } .directories+.files { margin-top: 0; } .directories:has(+ .files) { margin-bottom: 0; } max-height: 30em; overflow-y: scroll; }