#dlg:has(#batch-list){max-width:min(46rem,calc(100vw - 1rem));max-height:calc(100dvh - 1rem)}
#dlgform:has(#batch-list){display:flex;flex-direction:column;max-height:calc(100dvh - 1.3rem)}
#dlgbody:has(#batch-list){display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden}
.batch-tools{flex:none}.batch-tools p{margin:0 0 .5rem}
#batch-list{margin-top:.65rem;overflow:auto;overscroll-behavior:contain;min-height:0}
.batch-page{border-top:1px solid var(--line);padding:.6rem .25rem}.batch-page label{font-weight:600}.batch-page details{margin:.25em 0 0 1.5em}
.batch-page summary{cursor:pointer;font-size:.9em}.batch-page p{white-space:pre-wrap;overflow-wrap:anywhere}
#dlg:has(#batch-list) .df{flex:none;border-top:1px solid var(--line)}
@media(max-height:390px){#dlg:has(#batch-list) .dh,#dlg:has(#batch-list) .df{padding:.3rem .6rem}#dlg:has(#batch-list) .dh h2{font-size:1rem;margin:0}.batch-tools p{margin:0}}
