/* v3.0.2 device-local testing; scoped to the dialog and both theme modes. */
.bwa-device-qa{box-sizing:border-box;width:min(610px,calc(100vw - 20px));max-height:min(86dvh,800px);overflow:auto;border:1px solid #b1becb;border-radius:17px;padding:24px;background:#fff;color:#162a40;font:15px/1.5 system-ui,-apple-system,sans-serif;box-shadow:0 20px 65px #0008}
.bwa-device-qa::backdrop{background:rgba(0,0,0,.63)}
.bwa-device-qa *{box-sizing:border-box}
.bwa-device-qa h2{font:750 22px/1.25 system-ui,sans-serif;margin:0 34px 12px 0;color:inherit}
.bwa-device-qa p{margin:10px 0 14px;color:inherit}
.bwa-device-qa button{min-height:44px;cursor:pointer;border-radius:9px;padding:8px 12px;font:700 14px system-ui,sans-serif}
.bwa-device-qa button:focus-visible{outline:3px solid #19abf0;outline-offset:3px}
.bwa-device-qa button:disabled{opacity:.58;cursor:wait}
.bwa-device-qa-close{position:absolute;right:13px;top:8px;border:0;background:transparent;color:inherit;font-size:25px!important;min-width:44px}
.bwa-device-qa-actions{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}
.bwa-device-qa-actions button{border:1px solid #7290ae;background:#fff;color:#142b45}
#bwa-device-qa-run{background:#ffd052;color:#162335;border-color:#ba8e2b}
#bwa-device-qa-results{list-style:none;padding:0;margin:13px 0;display:grid;gap:9px}
#bwa-device-qa-results li{display:grid;gap:4px;border:1px solid #b9c7d6;border-left:4px solid #4b6f91;border-radius:9px;padding:10px 12px;background:#f5f8fc;color:#17283c;overflow-wrap:anywhere}
#bwa-device-qa-results li.bwa-device-qa-pass{border-left-color:#168450}
#bwa-device-qa-results li.bwa-device-qa-warn{border-left-color:#b5681e}
#bwa-device-qa-report{width:100%;height:140px;white-space:pre-wrap;font:12px/1.4 ui-monospace,monospace;color:inherit;background:transparent;border:1px solid #8799a9;border-radius:9px;padding:9px}
.bwa-device-qa small{display:block;opacity:.82}
@media (prefers-color-scheme:dark){:root:not([data-bwa-update-theme=light]) .bwa-device-qa{background:#132338;color:#f1f6fc;border-color:#627c98}:root:not([data-bwa-update-theme=light]) #bwa-device-qa-results li{background:#1a304b;color:#f1f6fc;border-color:#607691}:root:not([data-bwa-update-theme=light]) .bwa-device-qa-actions button:not(#bwa-device-qa-run){background:#263f60;color:#fff;border-color:#7694b7}}
:root[data-bwa-update-theme=dark] .bwa-device-qa{background:#132338;color:#f1f6fc;border-color:#627c98}
:root[data-bwa-update-theme=dark] #bwa-device-qa-results li{background:#1a304b;color:#f1f6fc;border-color:#607691}
:root[data-bwa-update-theme=dark] .bwa-device-qa-actions button:not(#bwa-device-qa-run){background:#263f60;color:#fff;border-color:#7694b7}
:root[data-bwa-update-theme=light] .bwa-device-qa{background:#fff;color:#162a40}
:root[data-bwa-update-theme=light] #bwa-device-qa-results li{background:#f5f8fc;color:#17283c}
@media(max-width:480px){.bwa-device-qa{padding:18px 15px;max-height:88dvh}.bwa-device-qa-actions button{flex:1}}
