.rhi-wrap{--rhi-forest:#063f2a;--rhi-forest2:#0a6a42;--rhi-lime:#c7f36a;--rhi-ink:#17251f;--rhi-muted:#53645a;--rhi-line:#dce8df;--rhi-white:#fff;position:fixed;left:20px;bottom:20px;z-index:99980;font-family:Inter,'DM Sans',system-ui,-apple-system,sans-serif;color:var(--rhi-ink);line-height:1.45}.rhi-wrap *{box-sizing:border-box}.rhi-launch{width:64px;height:64px;border:0;border-radius:22px;background:linear-gradient(145deg,#d9ff88,#a7e34c);color:var(--rhi-forest);display:grid;place-items:center;cursor:pointer;box-shadow:0 18px 50px rgba(3,47,31,.28);position:relative;transition:transform .2s ease,box-shadow .2s ease}.rhi-launch:hover{transform:translateY(-3px);box-shadow:0 22px 60px rgba(3,47,31,.34)}.rhi-launch svg{width:38px;height:38px;position:relative;z-index:2}.rhi-launch-label{position:absolute;right:-4px;top:-5px;background:#fff;color:#063f2a;border:1px solid rgba(6,63,42,.14);box-shadow:0 5px 14px rgba(0,0,0,.12);font-size:10px;line-height:1;font-weight:900;padding:5px 6px;border-radius:999px;letter-spacing:.04em}.rhi-launch-orbit{position:absolute;inset:-6px;border:1px solid rgba(199,243,106,.8);border-radius:26px;animation:rhi-orbit 3s ease-in-out infinite}.rhi-panel{position:absolute;left:0;bottom:78px;width:min(410px,calc(100vw - 28px));height:min(650px,calc(100vh - 120px));background:#fff;border:1px solid rgba(6,63,42,.14);border-radius:26px;box-shadow:0 28px 90px rgba(4,31,24,.28);overflow:hidden;display:grid;grid-template-rows:auto auto 1fr auto auto auto;transform-origin:left bottom}.rhi-panel[hidden]{display:none}.rhi-head{display:grid;grid-template-columns:44px 1fr auto;gap:.75rem;align-items:center;padding:1rem 1rem .85rem;background:linear-gradient(135deg,#052d20,#0a6741);color:#fff}.rhi-avatar{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:var(--rhi-lime);color:var(--rhi-forest);font-weight:950;font-size:1.15rem}.rhi-head strong,.rhi-head span{display:block;overflow-wrap:anywhere}.rhi-head strong{font-size:.98rem}.rhi-head span{font-size:.72rem;color:rgba(255,255,255,.82);margin-top:.12rem}.rhi-close{width:36px;height:36px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;font-size:25px;line-height:1;cursor:pointer}.rhi-trust{font-size:.68rem;color:#355247;background:#eef6e9;padding:.55rem .9rem;border-bottom:1px solid #dbe8d9;display:flex;gap:.45rem;align-items:center}.rhi-trust span{width:7px;height:7px;background:#2f9d57;border-radius:50%;box-shadow:0 0 0 4px rgba(47,157,87,.12);flex:0 0 auto}.rhi-messages{padding:1rem;overflow:auto;background:radial-gradient(circle at 100% 0,rgba(199,243,106,.15),transparent 28%),#f8faf7;scroll-behavior:smooth}.rhi-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 .8rem}.rhi-message.user{align-items:flex-end}.rhi-bubble{max-width:88%;white-space:pre-wrap;overflow-wrap:anywhere;padding:.78rem .9rem;border-radius:16px 16px 16px 5px;background:#fff;border:1px solid #dfe9e1;color:#22352c;font-size:.86rem;box-shadow:0 6px 18px rgba(18,55,38,.05)}.rhi-message.user .rhi-bubble{background:#073f2b;color:#fff;border-color:#073f2b;border-radius:16px 16px 5px 16px}.rhi-actions{max-width:92%;display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}.rhi-actions a{display:inline-flex;align-items:center;min-height:34px;padding:.42rem .7rem;border-radius:999px;text-decoration:none!important;background:#e8f6cf;color:#19492f!important;border:1px solid #cfe7aa;font-size:.72rem;font-weight:800}.rhi-starters{display:flex;gap:.4rem;overflow:auto;padding:.65rem .85rem;border-top:1px solid #e4ece5;background:#fff}.rhi-starters[hidden]{display:none}.rhi-starters button{flex:0 0 auto;border:1px solid #d9e5dc;border-radius:999px;background:#fff;color:#315044;padding:.48rem .68rem;font-size:.7rem;font-weight:750;cursor:pointer}.rhi-form{display:grid;grid-template-columns:1fr 44px;gap:.5rem;align-items:end;padding:.75rem;border-top:1px solid #e3ece5;background:#fff}.rhi-form textarea{width:100%;max-height:120px;min-height:44px;resize:none;border:1px solid #cfdcd2;background:#f9fbf8;color:#17251f;border-radius:15px;padding:.72rem .8rem;font:inherit;font-size:.84rem;line-height:1.4;outline:none}.rhi-form textarea:focus{border-color:#2f9d57;box-shadow:0 0 0 3px rgba(47,157,87,.13)}.rhi-form button{width:44px;height:44px;border:0;border-radius:14px;background:var(--rhi-forest);color:#fff;display:grid;place-items:center;cursor:pointer}.rhi-form button svg{width:20px;height:20px}.rhi-foot{padding:.5rem .85rem .7rem;background:#fff;color:#69786f;font-size:.61rem;line-height:1.35}.rhi-thinking{display:flex;gap:4px;align-items:center;min-width:52px}.rhi-thinking i{width:6px;height:6px;border-radius:50%;background:#6c8175;animation:rhi-dot 1.1s infinite}.rhi-thinking i:nth-child(2){animation-delay:.15s}.rhi-thinking i:nth-child(3){animation-delay:.3s}.rhi-settings-page{max-width:920px}.rhi-settings-status{display:flex;flex-direction:column;gap:.2rem;padding:1rem 1.2rem;border-radius:14px;margin:1rem 0;background:#fff8d9;border:1px solid #eadb91}.rhi-settings-status.ok{background:#e6f6e9;border-color:#b9dfc3}.rhi-settings-form{display:grid;gap:1.1rem;background:#fff;border:1px solid #dbe4dd;border-radius:18px;padding:1.4rem;box-shadow:0 12px 36px rgba(0,0,0,.05)}.rhi-settings-form label{display:grid;gap:.38rem}.rhi-settings-form label>span{font-weight:700}.rhi-settings-form input[type=text],.rhi-settings-form input[type=password],.rhi-settings-form select,.rhi-settings-form textarea{width:100%;max-width:none}.rhi-setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.rhi-checkbox{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:.6rem!important}.rhi-checkbox input{margin:0!important}.rhi-settings-form small{color:#5e6e64}.rhi-wrap button:focus-visible,.rhi-wrap a:focus-visible,.rhi-wrap textarea:focus-visible{outline:3px solid #efb72f;outline-offset:2px}@keyframes rhi-orbit{50%{transform:scale(1.06);opacity:.35}}@keyframes rhi-dot{50%{transform:translateY(-3px);opacity:.4}}@media(max-width:640px){.rhi-wrap{left:12px;bottom:12px}.rhi-launch{width:56px;height:56px;border-radius:19px}.rhi-launch svg{width:33px;height:33px}.rhi-panel{position:fixed;left:10px;right:10px;bottom:78px;width:auto;height:min(620px,calc(100dvh - 98px));border-radius:22px}.rhi-head{padding:.85rem}.rhi-messages{padding:.8rem}.rhi-bubble{max-width:92%;font-size:.83rem}.rhi-setting-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.rhi-wrap *{animation:none!important;transition:none!important}}


/* v1.0.1 AI UI refinements */
.rhi-launch{display:grid;place-items:center;position:relative}.rhi-launch svg{width:34px;height:34px}.rhi-launch-label{font-size:.72rem;font-weight:900;letter-spacing:.08em}
.rhi-head{grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:.75rem!important}.rhi-head>div:nth-child(2){min-width:0}.rhi-head strong{display:block;line-height:1.15}.rhi-head [data-rhi-subtitle]{display:block;margin-top:.2rem;line-height:1.25;word-break:break-word;color:#d5efe0;font-size:.72rem}
.rhi-avatar{display:grid!important;place-items:center;width:42px;height:42px;font-size:0!important}.rhi-avatar svg{width:28px;height:28px;display:block}
.rhi-close{display:grid!important;place-items:center;width:44px;height:44px;padding:0!important;line-height:1!important;border-radius:12px!important;background:rgba(255,255,255,.08);color:#fff;font-size:26px;font-weight:700;transition:background .2s ease,color .2s ease,transform .2s ease}.rhi-close:hover,.rhi-close:focus-visible{background:#d92d20!important;color:#fff!important;transform:translateY(-1px)}
.rhi-close span{line-height:1}.rhi-close{justify-self:end}
.rhi-panel{overflow:hidden}.rhi-head{padding-right:.75rem}.rhi-trust{font-size:.69rem;line-height:1.35}
@media(max-width:640px){.rhi-head{gap:.6rem!important}.rhi-head strong{font-size:.98rem}.rhi-head [data-rhi-subtitle]{font-size:.68rem}.rhi-close{width:42px;height:42px}}

/* v1.1.0 Foundation Admin integration */
.rhi-command-status{display:grid;gap:.25rem;margin:1rem 0;padding:1rem 1.1rem;border:1px solid #eadb91;border-radius:16px;background:#fff8d9;color:#654d0b}.rhi-command-status.ready{border-color:#b9dfc3;background:#e6f6e9;color:#0b5c31}.rhi-command-status strong,.rhi-command-status span{display:block}.rhi-command-status span{font-size:.82rem;line-height:1.55}

/* v1.2.0 modern dimensional robot */
.rhi-launch{width:70px;height:70px;border-radius:25px;background:radial-gradient(circle at 31% 20%,#f2ffc6 0 10%,#c9f46f 38%,#84cb49 70%,#4d9238 100%);border:1px solid rgba(255,255,255,.72);box-shadow:inset 5px 6px 12px rgba(255,255,255,.55),inset -10px -12px 20px rgba(6,63,42,.18),0 22px 58px rgba(3,47,31,.34);transform-style:preserve-3d;animation:rhi-launch-float 4.2s ease-in-out infinite}.rhi-launch:before{content:"";position:absolute;inset:7px;border-radius:19px;border:1px solid rgba(6,63,42,.11);pointer-events:none}.rhi-launch:after{content:"";position:absolute;right:5px;top:5px;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#21c46b;box-shadow:0 0 0 4px rgba(33,196,107,.14),0 0 16px rgba(33,196,107,.9);z-index:4;animation:rhi-status-pulse 2s ease-in-out infinite}.rhi-launch:hover{transform:translateY(-6px) rotateX(5deg) rotateY(-5deg) scale(1.035);box-shadow:inset 5px 6px 12px rgba(255,255,255,.55),inset -10px -12px 20px rgba(6,63,42,.18),0 30px 72px rgba(3,47,31,.42)}.rhi-launch-orbit{inset:-7px;border-radius:29px;border-color:rgba(199,243,106,.9);box-shadow:0 0 26px rgba(199,243,106,.18);animation:rhi-orbit 3s ease-in-out infinite,rhi-orbit-turn 11s linear infinite}.rhi-launch .rhi-robot{width:48px;height:48px;filter:drop-shadow(0 9px 10px rgba(6,63,42,.2));transform:translateZ(22px)}
.rhi-robot{display:block;overflow:visible}.rhi-robot-antenna,.rhi-robot-smile,.rhi-robot-chin{fill:none;stroke:#073f2b;stroke-width:3;stroke-linecap:round}.rhi-robot-signal{fill:#073f2b}.rhi-robot-ear{fill:#4f963a;stroke:#073f2b;stroke-width:2}.rhi-robot-shell{fill:#073f2b}.rhi-robot-face{fill:#eaffb8;stroke:rgba(255,255,255,.8);stroke-width:1.5}.rhi-robot-visor{fill:#082c22}.rhi-robot-eye{fill:#c7f36a;filter:drop-shadow(0 0 4px #c7f36a);transform-box:fill-box;transform-origin:center;animation:rhi-robot-blink 4.8s ease-in-out infinite}.rhi-robot-eye.right{animation-delay:.08s}.rhi-robot-smile{stroke:#4f963a;stroke-width:2.4}.rhi-robot-chin{stroke:#7bc450;stroke-width:2}.rhi-robot-status{fill:#39d982;filter:drop-shadow(0 0 3px #39d982)}
.rhi-avatar{width:48px!important;height:48px!important;border-radius:17px!important;background:radial-gradient(circle at 30% 20%,#efffc5,#a8e054)!important;box-shadow:inset 3px 3px 7px rgba(255,255,255,.55),inset -6px -7px 10px rgba(6,63,42,.15),0 10px 20px rgba(0,0,0,.16)}.rhi-avatar .rhi-robot{width:39px!important;height:39px!important}.rhi-panel:not([hidden]){animation:rhi-panel-in .38s cubic-bezier(.2,.8,.2,1)}.rhi-head{background:radial-gradient(circle at 15% 0,rgba(199,243,106,.18),transparent 35%),linear-gradient(135deg,#04291d,#08714a)}.rhi-form button{transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.rhi-form button:hover{transform:translateY(-2px) rotate(-3deg);background:#0a6a42;box-shadow:0 10px 22px rgba(6,63,42,.22)}
@keyframes rhi-launch-float{50%{transform:translateY(-4px)}}@keyframes rhi-status-pulse{50%{opacity:.55;transform:scale(.82)}}@keyframes rhi-orbit-turn{to{transform:rotate(360deg)}}@keyframes rhi-robot-blink{0%,44%,48%,100%{transform:scaleY(1)}46%{transform:scaleY(.12)}}@keyframes rhi-panel-in{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
@media(max-width:640px){.rhi-launch{width:62px;height:62px;border-radius:22px}.rhi-launch .rhi-robot{width:43px;height:43px}.rhi-launch-orbit{border-radius:26px}.rhi-avatar{width:44px!important;height:44px!important}.rhi-avatar .rhi-robot{width:35px!important;height:35px!important}}
@media(prefers-reduced-motion:reduce){.rhi-launch,.rhi-launch:after,.rhi-launch-orbit,.rhi-robot-eye,.rhi-panel:not([hidden]){animation:none!important}}

/* v1.2.1 launcher alignment: keep the robot optically centred despite theme button/SVG rules */
html body .rhi-wrap button.rhi-launch{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 padding:0!important;
 overflow:visible!important;
 text-align:center!important;
 line-height:0!important;
}
html body .rhi-wrap button.rhi-launch>.rhi-robot{
 position:absolute!important;
 left:50%!important;
 top:50%!important;
 right:auto!important;
 bottom:auto!important;
 display:block!important;
 width:48px!important;
 height:48px!important;
 min-width:0!important;
 max-width:none!important;
 margin:0!important;
 transform:translate(-50%,-50%) translateZ(22px)!important;
 transform-origin:center!important;
}
html body .rhi-avatar{display:grid!important;place-items:center!important;padding:0!important}
html body .rhi-avatar>.rhi-robot{position:static!important;margin:auto!important;transform:none!important}
@media(max-width:640px){html body .rhi-wrap button.rhi-launch>.rhi-robot{width:43px!important;height:43px!important}}
