#robot-actions { position:absolute; left:50%; bottom:10px; transform:translateX(-50%); width:min(500px,calc(100% - 24px)); box-sizing:border-box; padding:8px; border:1px solid #acc6b7; border-radius:18px; background:rgba(255,250,242,.97); box-shadow:0 8px 28px #092b3038; pointer-events:auto; z-index:8; }
#robot-actions[hidden] { display:none; }
.ra-play,.ra-fire { display:grid; gap:7px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.ra-fire { margin-top:7px; }
#robot-actions button,#robot-actions select { min-width:0; min-height:44px; border-radius:10px; border:1px solid #a7bfb3; background:#edf2e8; color:#173c37; font:700 12px var(--font-ui,system-ui); text-align:center; cursor:pointer; touch-action:manipulation; }
#robot-actions button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; }
#robot-actions select { padding:0 5px; }
#robot-actions button.on { color:#fff; background:#167668; border-color:#167668; }
#robot-actions [data-action=fire] { color:#fff; background:#df542e; border-color:#bd3a1c; }
#robot-actions button:disabled { opacity:.5; cursor:default; }
#robot-actions small { font:500 10px var(--font-mono,monospace); }
#robot-actions button:focus-visible,#robot-actions select:focus-visible { outline:3px solid #00a9a0; outline-offset:2px; }
body:not(.bench-mode) .gp-dock { bottom:calc(var(--robot-actions-h,112px) + 20px); }
@media(max-width:899px) {
 #robot-actions { bottom:8px; width:calc(100% - 16px); padding:6px; }
 body:not(.bench-mode) .gp-dock { bottom:calc(var(--drawer-h,56px) + var(--robot-actions-h,108px) + 26px + env(safe-area-inset-bottom)) !important; }
 body.drawer-open #robot-actions { display:none; }
}
@media(max-width:899px) and (max-height:520px) {
 #robot-actions { left:auto; right:8px; transform:none; width:calc(100% - 228px); max-width:500px; }
 body:not(.bench-mode) .gp-dock { bottom:calc(var(--robot-actions-h,108px) + 20px) !important; }
}

.ra-status { margin:6px 0 0; text-align:center; color:#526a60; font:500 10px/1.4 var(--font-ui,system-ui); }
