/* QA44: integrated controls. Preserve inherited illustrated landscape and status areas. */
#battle.qa44-integrated .dq-commands .command-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr));gap:3px!important}
#battle.qa44-integrated .dq-commands .command-grid button{min-width:0!important;min-height:0!important;height:100%;padding:3px 3px!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;white-space:normal!important;line-height:1.03!important;font-size:clamp(10px,1.35vw,15px)!important}
#battle.qa44-integrated .dq-commands .command-grid button small{font-size:clamp(7px,.78vw,10px)!important;line-height:1.05;white-space:normal!important;text-align:center}
#battle.qa44-integrated .battlehero.qa44-queued{border-color:#8cd7bb!important;background:#266a5b61!important}
#battle.qa44-integrated .dq-smalltitle .qa44-history{font-size:11px;color:#fde0a8;padding:1px 9px;background:#243950;border:1px solid #a2a9b6;border-radius:4px;float:right}
#qa44-dialog{position:absolute;inset:0;z-index:26;display:flex;justify-content:center;align-items:center;background:#030a1899;color:#fff6df;box-sizing:border-box;padding:8px}
#qa44-dialog .qa44-panel{box-sizing:border-box;min-width:min(340px,89%);width:min(600px,88%);max-height:94%;overflow:auto;display:flex;flex-direction:column;gap:7px;padding:12px 16px;border:2px solid #e7cd96;border-radius:10px;background:linear-gradient(135deg,#182c43,#0b1529);box-shadow:0 10px 36px #000d}
#qa44-dialog h3{font-size:clamp(14px,2.2vw,23px);color:#f9d995;margin:0}
#qa44-dialog p{font-size:clamp(11px,1.6vw,16px);line-height:1.3;margin:0}
#qa44-dialog .qa44-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:auto}
#qa44-dialog button{color:#fff1dd;background:#27435c;border:1px solid #93a5b6;border-radius:5px;font-size:clamp(11px,1.4vw,15px);padding:8px 10px;text-align:center;min-height:32px}
#qa44-dialog button:disabled{opacity:.36}
#qa44-dialog button:not(:disabled):focus-visible,#qa44-dialog button:not(:disabled):hover{outline:1px solid #e8c57e;background:#345777}
#qa44-dialog .qa44-cancel{align-self:flex-end;background:#3a3c4e;min-width:110px}
#qa44-dialog .qa44-all-history{overflow:auto;flex:1;min-height:60px;max-height:170px;border:1px solid #50637b;padding:5px 10px;background:#081222}
#qa44-dialog .qa44-all-history p{padding:4px 0;border-bottom:1px solid #253b51;font-size:clamp(10px,1.3vw,14px)}
@media(max-width:800px),(max-height:450px){
 #battle.qa44-integrated .dq-commands .command-grid button{font-size:11px!important}
 #battle.qa44-integrated .dq-commands .command-grid button small{font-size:8px!important}
 #battle.qa44-integrated .dq-commands .dq-smalltitle{font-size:10px!important}
 #qa44-dialog .qa44-panel{padding:7px 10px;gap:4px;width:min(560px,92%)}
 #qa44-dialog .qa44-choice-list{gap:4px}
 #qa44-dialog button{padding:5px 8px;font-size:11px;min-height:25px}
 #qa44-dialog .qa44-all-history{max-height:110px}
}
