/* RISC-GTI — panneau transversal DEMO V1 */
#risc-demo-tools{position:fixed;right:14px;bottom:14px;z-index:2147482000;width:min(330px,calc(100vw - 28px));font:13px/1.4 Arial,sans-serif;color:#443b2c}
#risc-demo-tools *{box-sizing:border-box}
.risc-demo-tools-bar{width:100%;min-height:44px;border:1px solid rgba(70,60,42,.18);border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 8px 28px rgba(0,0,0,.18);display:flex;align-items:center;gap:9px;padding:9px 12px;cursor:pointer;color:inherit;font:700 13px Arial,sans-serif;text-align:left}
.risc-demo-tools-dot{width:10px;height:10px;border-radius:50%;background:#b98520;box-shadow:0 0 0 3px rgba(185,133,32,.15);flex:0 0 auto}
#risc-demo-tools[data-state="connected"] .risc-demo-tools-dot{background:#2d8a52;box-shadow:0 0 0 3px rgba(45,138,82,.15)}
#risc-demo-tools[data-state="lost"] .risc-demo-tools-dot{background:#b5413c;box-shadow:0 0 0 3px rgba(181,65,60,.15)}
#risc-demo-tools[data-state="checking"] .risc-demo-tools-dot{background:#b98520;animation:riscDemoPulse 1s infinite alternate}
.risc-demo-tools-title{flex:1}.risc-demo-tools-chevron{font-size:16px;transition:transform .18s ease}
#risc-demo-tools.is-open .risc-demo-tools-chevron{transform:rotate(180deg)}
.risc-demo-tools-panel{display:none;margin-top:7px;padding:13px;border:1px solid rgba(70,60,42,.16);border-radius:14px;background:rgba(255,255,255,.98);box-shadow:0 8px 28px rgba(0,0,0,.18)}
#risc-demo-tools.is-open .risc-demo-tools-panel{display:block}
.risc-demo-tools-grid{display:grid;grid-template-columns:auto 1fr;gap:7px 10px;margin:0 0 12px}.risc-demo-tools-grid dt{font-weight:700}.risc-demo-tools-grid dd{margin:0;min-width:0;overflow-wrap:anywhere}
.risc-demo-tools-actions{display:flex;gap:8px;flex-wrap:wrap}.risc-demo-tools-actions button{flex:1;min-height:38px;border:0;border-radius:10px;padding:8px 10px;font:700 12px Arial,sans-serif;cursor:pointer;background:#5c503b;color:#fff}
.risc-demo-tools-actions button.secondary{background:#ece7de;color:#4d4434}.risc-demo-tools-actions button:disabled{opacity:.55;cursor:wait}
.risc-demo-tools-message{margin-top:10px;font-size:12px;min-height:17px}.risc-demo-tools-message.error{color:#a33430}.risc-demo-tools-message.ok{color:#247044}
@keyframes riscDemoPulse{to{opacity:.4}}
@media(max-width:600px){#risc-demo-tools{right:8px;bottom:8px;width:min(310px,calc(100vw - 16px))}.risc-demo-tools-panel{max-height:60vh;overflow:auto}}
@media(prefers-reduced-motion:reduce){#risc-demo-tools *{animation:none!important;transition:none!important}}

.risc-demo-tools-section{margin:0 0 12px;padding:11px;border:1px solid rgba(70,60,42,.14);border-radius:11px;background:#faf8f3}
.risc-demo-tools-section-title{font-weight:700;margin-bottom:3px}
.risc-demo-loader-current{font-size:12px;color:#6d604b;margin-bottom:9px;overflow-wrap:anywhere}
.risc-demo-loader-actions{display:flex;gap:8px;flex-wrap:wrap}
.risc-demo-loader-actions button{flex:1;min-height:36px;border:0;border-radius:9px;padding:7px 9px;font:700 12px Arial,sans-serif;cursor:pointer;background:#bfa56a;color:#fff}
.risc-demo-loader-actions button.secondary{background:#f4edde;color:#5c503b}
