#testingDialog {width:min(950px,96vw);max-height:92dvh;padding:1rem;overflow:hidden;}
#testingDialog[open] {display:flex;flex-direction:column;gap:.6rem;}
#testingDialog h2,#testingDialog p {margin:.35rem 0;}
#testingDialog .compact-dialog-tools,#testingDialog footer {flex:none;}
#testingDialog [data-list] {overflow-y:auto;min-height:8rem;flex:1;overscroll-behavior:contain;}
#testingDialog .bar {display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;}
#testingDialog label {font-size:.9rem;}
#testingDialog select,#testingDialog input {max-width:100%;}
#testingDialog input[data-version] {width:10rem;}
#testingDialog [data-test] {padding:.6rem;border-bottom:1px solid var(--line,#586875);}
#testingDialog summary {cursor:pointer;}
#testingDialog summary strong {font-weight:500;}
#testingDialog textarea {width:100%;box-sizing:border-box;margin:.5rem 0;}
#testingDialog [data-steps],#testingDialog [data-history] p {white-space:pre-wrap;overflow-wrap:anywhere;}
#testingDialog .testing-badge {display:inline-block;margin-left:.7rem;font-size:.85rem;opacity:.9;}
#testingDialog [data-status=fail] .testing-badge {color:#ffaaa9;}
#testingDialog [data-status=pass] .testing-badge {color:#a1dfb0;}
#testingDialog [data-status=later] .testing-badge {color:#edcf8a;}
#testingDialog [aria-pressed=true] {outline:2px solid currentColor;outline-offset:-3px;}
#testingDialog .testing-history {margin-top:.6rem;font-size:.9rem;}
#testingDialog .testing-import input {max-width:12rem;}
@media(max-width:600px){#testingDialog{padding:.7rem;}#testingDialog .compact-dialog-heading{flex-wrap:wrap;}#testingDialog h2{font-size:1.25rem;}#testingDialog button{min-height:2.4rem;padding:.4rem .6rem;}}
/* Keep generic Journal form/dialog spacing out of this compact work panel. */
#testingDialog .compact-dialog-heading {padding:0 0 .45rem;margin:0;gap:.5rem;flex:none;}
#testingDialog .compact-dialog-tools {display:block;padding:0;margin:0;}
#testingDialog .compact-dialog-tools .bar {margin:0 0 .4rem;padding:0;justify-content:flex-start;gap:.4rem;}
#testingDialog .compact-dialog-tools label {display:inline-flex;align-items:center;gap:.35rem;margin:0;}
#testingDialog .compact-dialog-tools input:not([type=checkbox]),#testingDialog .compact-dialog-tools select {width:auto;min-width:0;padding:.45rem .6rem;margin:0;flex:0 1 auto;}
#testingDialog .compact-dialog-tools [data-search] {width:12rem;}
#testingDialog .compact-dialog-tools [data-category] {max-width:13rem;}
#testingDialog .compact-dialog-tools [data-status] {max-width:10rem;}
#testingDialog .compact-dialog-tools [data-tester] {max-width:12rem;}
#testingDialog .compact-dialog-tools input[data-version] {width:9rem;}
#testingDialog .compact-dialog-tools p[role=status] {font-size:.85rem;margin:.2rem 0;}
#testingDialog [data-list] {padding:0;margin:0;}
#testingDialog [data-list] .bar {justify-content:flex-start;margin:.3rem 0;padding:0;}
#testingDialog [data-test]>summary {margin:0;padding:.35rem 0;}
#testingDialog footer {padding:.35rem 0 0;margin:0;justify-content:flex-start;gap:.4rem;}
#testingDialog footer>details {width:100%;}
#testingDialog footer>details>summary {font-size:.85rem;}
#testingDialog footer>small {font-size:.75rem;}
#testingDialog .testing-import {display:inline-flex;align-items:center;gap:.3rem;flex-wrap:wrap;}
@media(max-width:600px){
 #testingDialog .compact-dialog-tools [data-tester]{max-width:9rem;}
 #testingDialog .compact-dialog-tools [data-search]{width:100%;flex-basis:100%;}
 #testingDialog .compact-dialog-tools [data-category],#testingDialog .compact-dialog-tools [data-status]{flex:1;width:40%;}
 #testingDialog .compact-dialog-tools .bar {gap:.35rem;}
 #testingDialog .compact-dialog-tools label {font-size:.8rem;}
 #testingDialog footer>small{display:none;}
}
#testingDialog {padding:.7rem !important;}
@media(max-width:600px){
 #testingDialog .compact-dialog-tools input[data-search]{width:100%;flex:1 0 100%;}
 #testingDialog .compact-dialog-tools select[data-category],#testingDialog .compact-dialog-tools select[data-status]{flex:1;width:40%;max-width:none;}
}
@media(max-width:600px){#testingDialog .compact-dialog-tools .bar>label:has([data-archive]){flex-basis:100%;}}
