.hqa-launch{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid #50535a;border-radius:8px;background:#292c32;color:#f1f2f4;font:600 12px/1.4 system-ui,sans-serif;cursor:pointer}
.hqa-dialog{box-sizing:border-box;width:850px;height:760px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);min-width:320px;min-height:320px;margin:auto;padding:0;border:1px solid #444850;border-radius:15px;background:#191b1f;color:#f1f2f4;font:14px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;color-scheme:dark;resize:both;overflow:hidden}
.hqa-dialog[open]{display:flex;flex-direction:column}
.hqa-dialog::backdrop{background:rgba(0,0,0,.65)}
.hqa-dialog *{box-sizing:border-box}
.hqa-dialog.hqa-max{width:calc(100vw - 24px);height:calc(100dvh - 24px);resize:none}
.hqa-dialog header,.hqa-dialog footer{display:flex;align-items:center;gap:8px;padding:14px 18px;flex-shrink:0}
.hqa-dialog header{border-bottom:1px solid #383c44}
.hqa-dialog footer{border-top:1px solid #383c44;justify-content:flex-end}
.hqa-dialog h2{font:650 17px/1.4 system-ui,sans-serif;margin:0 auto 0 0;color:#f1f2f4}
.hqa-dialog h3{font:650 18px/1.5 system-ui,sans-serif;margin:0 0 12px;color:#f1f2f4}
.hqa-dialog button,.hqa-dialog select{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:40px;height:auto;padding:8px 12px;border:1px solid #4a4f59;border-radius:8px;background:#292d34;color:#f1f2f4;font:inherit;line-height:1.4;cursor:pointer;transition:background-color .12s}
.hqa-dialog select{appearance:auto;max-width:100%;width:auto}
.hqa-dialog button:hover:not(:disabled),.hqa-launch:hover{background:#383d46}
.hqa-dialog button:disabled{opacity:.45;cursor:default}
.hqa-dialog button:focus-visible,.hqa-dialog select:focus-visible,.hqa-dialog summary:focus-visible,.hqa-launch:focus-visible{outline:2px solid #a4bdff;outline-offset:3px}
.hqa-dialog .hqa-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px}
.hqa-dialog .hqa-meta,.hqa-dialog .hqa-limits{font-size:12px;line-height:1.65;color:#b9c1ce;margin:8px 0;overflow-wrap:anywhere}
.hqa-dialog .hqa-filter{display:flex;align-items:center;gap:12px;margin:18px 0 12px;color:#e0e5ed}
.hqa-dialog .hqa-result{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #373b43}
.hqa-dialog .hqa-result>div{flex:1;min-width:0}
.hqa-dialog .hqa-result strong{color:#f1f2f4;font-size:13px}
.hqa-dialog .hqa-result p{margin:6px 0;color:#d7dce6;overflow-wrap:anywhere}
.hqa-dialog small{color:#aeb8c8;overflow-wrap:anywhere}
.hqa-dialog .hqa-result button{flex-shrink:0}
.hqa-dialog .hqa-history{margin-top:22px;color:#c9d0dc}
.hqa-dialog summary{min-height:40px;cursor:pointer}
.hqa-dialog .hqa-history-list{font-size:12px;overflow-wrap:anywhere}
.hqa-dialog .hqa-status{padding:0 18px;margin:8px 0 14px;color:#d1dbed;flex-shrink:0;overflow-wrap:anywhere}
.hqa-highlight{outline:3px solid #5279ff!important;outline-offset:4px!important}
@media(max-width:600px){.hqa-dialog{min-width:0;width:calc(100vw - 16px);height:calc(100dvh - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);resize:none}.hqa-dialog header,.hqa-dialog footer,.hqa-dialog .hqa-body{padding:12px}.hqa-dialog h2{font-size:15px}.hqa-dialog .hqa-result{gap:8px;align-items:flex-start}.hqa-dialog button{min-height:44px}.hqa-dialog .hqa-meta{font-size:11px}}
@media(prefers-reduced-motion:reduce){.hqa-dialog button{transition:none}}
