/* Rihana — website relationship assistant */
.rihana-launcher{position:fixed;right:1.25rem;bottom:1.25rem;z-index:880;display:flex;align-items:center;gap:.7rem;padding:.45rem 1rem .45rem .45rem;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:var(--nv-midnight);color:#fff;cursor:pointer;box-shadow:0 18px 40px -14px rgba(6,14,38,.6);font:inherit;text-align:left;text-decoration:none;transition:transform .15s var(--ease)}
.rihana-launcher:hover{transform:translateY(-2px);color:#fff}
.rihana-launcher:focus-visible{box-shadow:0 0 0 3px #fff,0 0 0 5px var(--nv-cyan)}
.rh-fallback{padding:.7rem 1.1rem}
.rh-av{position:relative;width:40px;height:40px;flex-shrink:0}
.rh-av img{width:40px;height:40px;border-radius:50%}
.rh-dot{position:absolute;right:0;bottom:1px;width:11px;height:11px;border-radius:50%;background:#3DDC97;border:2px solid var(--nv-midnight)}
.rh-name{display:grid;line-height:1.15}
.rh-name b{font-size:.95rem}
.rh-name small{font-size:.72rem;color:#9FB0D8}
.rh-unread{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:999px;background:var(--c-error);color:#fff;font-size:.72rem;font-weight:800;display:grid;place-items:center;padding:0 .35rem}
.rihana-panel{position:fixed;right:1.25rem;bottom:5.4rem;z-index:890;width:min(400px,calc(100vw - 1.5rem));height:min(620px,calc(100vh - 7.5rem));background:#fff;border-radius:18px;box-shadow:0 40px 80px -24px rgba(6,14,38,.55),0 0 0 1px rgba(10,22,51,.06);display:none;flex-direction:column;overflow:hidden}
.rihana-panel.open{display:flex;animation:rise .2s var(--ease)}
.rihana-panel.expanded{width:min(640px,calc(100vw - 1.5rem));height:calc(100vh - 7rem)}
.rh-head{display:flex;align-items:center;gap:.7rem;padding:.8rem .7rem .8rem 1rem;background:var(--nv-midnight);color:#fff}
.rh-head .rh-dot{border-color:var(--nv-midnight)}
.rh-id{flex:1;display:grid;line-height:1.2}
.rh-id small{color:#9FB0D8;font-size:.74rem}
.rh-head .icon-btn{color:#C6D2F3;width:32px;height:32px}
.rh-head .icon-btn:hover{background:rgba(255,255,255,.08);color:#fff}
.rh-status:empty{display:none}
.rh-status{padding:.5rem 1rem;border-bottom:1px solid var(--c-border);background:#FFFBF1}
.rh-log{flex:1;overflow:auto;padding:1rem;display:flex;flex-direction:column;gap:.75rem;background:#F6F8FC}
.rh-msg{display:grid;gap:.25rem;max-width:88%}
.rh-msg.user{align-self:flex-end;justify-items:end}
.rh-b{padding:.65rem .85rem;border-radius:14px;font-size:.92rem;line-height:1.5;background:#fff;border:1px solid var(--c-border);border-bottom-left-radius:4px;color:var(--nv-ink)}
.rh-msg.user .rh-b{background:var(--nv-royal);border-color:var(--nv-royal);color:#fff;border-radius:14px;border-bottom-right-radius:4px}
.rh-t{font-size:.68rem;color:var(--c-text-2);padding:0 .3rem}
.rh-links{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.55rem}
.rh-link{display:inline-flex;font-size:.82rem;font-weight:640;padding:.3rem .6rem;border-radius:8px;background:#EEF3FF;color:var(--nv-royal);text-decoration:none}
.rh-link:hover{background:#DFE8FF}
.rh-quick{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.2rem}
.rh-quick button,.rh-suggest button{all:unset;cursor:pointer;font-size:.8rem;font-weight:600;padding:.35rem .65rem;border-radius:999px;border:1px solid var(--nv-line-strong);background:#fff;color:var(--nv-ink-2)}
.rh-quick button:hover,.rh-suggest button:hover{border-color:var(--nv-royal);color:var(--nv-royal)}
.rh-quick button:focus-visible,.rh-suggest button:focus-visible{box-shadow:var(--focus)}
.rh-suggest{display:flex;gap:.35rem;overflow-x:auto;padding:.55rem .8rem;border-top:1px solid var(--c-border);scrollbar-width:none}
.rh-suggest button{white-space:nowrap}
.rh-input{display:flex;gap:.35rem;align-items:center;padding:.55rem .6rem;border-top:1px solid var(--c-border)}
.rh-input input{flex:1;min-height:42px;border:1.5px solid var(--nv-line-strong);border-radius:10px;padding:.5rem .75rem;font:inherit;font-size:.95rem}
.rh-input input:focus{outline:none;border-color:var(--nv-electric)}
.rh-send{all:unset;cursor:pointer;width:42px;height:42px;border-radius:10px;background:var(--nv-royal);color:#fff;display:grid;place-items:center}
.rh-send svg{width:18px;height:18px}
.rh-send:focus-visible{box-shadow:var(--focus)}
.rh-foot{margin:0;padding:.4rem .9rem .7rem;font-size:.7rem;color:var(--c-text-2)}
.rh-foot button{all:unset;cursor:pointer;color:var(--nv-royal);font-weight:650;text-decoration:underline}
.rh-typing .rh-b{display:flex;gap:4px;padding:.8rem}
.rh-typing span{width:7px;height:7px;border-radius:50%;background:var(--nv-slate);animation:rhb 1s infinite}
.rh-typing span:nth-child(2){animation-delay:.15s}.rh-typing span:nth-child(3){animation-delay:.3s}
@keyframes rhb{0%,80%,100%{opacity:.25}40%{opacity:1}}
@media (max-width:640px){
  .rihana-launcher{right:.75rem;bottom:.75rem;padding:.35rem}
  .rihana-launcher .rh-name{display:none}
  .rihana-panel,.rihana-panel.expanded{right:0;left:0;bottom:0;width:100%;height:calc(100dvh - 3.5rem);border-radius:18px 18px 0 0}
  body.app .rihana-launcher{bottom:5rem}
}
body.nav-open .rihana-launcher,body.nav-open .rihana-panel{display:none!important}@media (max-width:640px){.rihana-panel [data-rh=expand]{display:none}}
