/* Родные CS — SOS */
.rh-fab{position:fixed;right:96px;bottom:18px;z-index:9990;display:flex;align-items:center;justify-content:center;height:50px;padding:0 22px;border:0;border-radius:999px;cursor:pointer;
  background:linear-gradient(135deg,#ff5a6e,#e0244a);color:#fff;font:900 16px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:2px;box-shadow:0 10px 28px -8px rgba(224,36,74,.75);transition:transform .15s}
.rh-fab:hover{transform:translateY(-2px)}
.rh-fab::before{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 0 rgba(255,90,110,.55);animation:rhPulse 2.4s ease-out infinite}
@keyframes rhPulse{70%{box-shadow:0 0 0 14px rgba(255,90,110,0)}100%{box-shadow:0 0 0 0 rgba(255,90,110,0)}}
.rh-badge{position:absolute;top:-6px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#ffd257;color:#2a1a00;font:800 12px/22px Arial,sans-serif;letter-spacing:0;font-style:normal;box-shadow:0 0 0 3px #0b0f17}
.rh-badge[hidden]{display:none}
.rh-fab--new{animation:rhShake 2.5s ease-in-out infinite}
@keyframes rhShake{0%,86%,100%{transform:none}89%{transform:rotate(-8deg)}92%{transform:rotate(8deg)}95%{transform:rotate(-5deg)}}
@media (max-width:640px){.rh-fab{right:84px;bottom:12px;height:46px;padding:0 18px;font-size:15px}}
.rh-lock body{overflow:hidden}

.rh-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:16px;background:rgba(3,6,12,.75);backdrop-filter:blur(3px)}
.rh-modal[hidden]{display:none}
.rh-box{width:100%;max-width:460px;border-radius:20px;background:#10151f;border:1px solid #22283a;color:#e7ebf5;
  font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:0 24px 70px rgba(0,0,0,.6);overflow:hidden}
.rh-box *{box-sizing:border-box;font-family:inherit}
.rh-chat{display:flex;flex-direction:column;height:min(640px,calc(100vh - 32px))}
.rh-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #1c2233;background:radial-gradient(100% 160% at 0% 0%,rgba(255,90,110,.22),transparent 60%)}
.rh-head b{font-size:19px;letter-spacing:2px;color:#fff}
.rh-x{flex:0 0 34px;width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.06);color:#c9cfdd;font-size:22px;line-height:1;cursor:pointer}
.rh-guest{padding:30px 18px 34px;text-align:center;font-size:16px;color:#dfe3ee}
.rh-guest b{color:#fff}
.rh-guest[hidden],.rh-main[hidden],.rh-start[hidden],.rh-prev[hidden]{display:none!important}
.rh-main{flex:1;min-height:0;display:flex;flex-direction:column}
.rh-list{flex:1;min-height:0;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;-webkit-overflow-scrolling:touch}
.rh-empty{margin:auto;max-width:260px;text-align:center;color:#8a8fa3;font-size:14px}
.rh-m{position:relative;max-width:82%;padding:8px 12px 18px;border-radius:16px;word-wrap:break-word;overflow-wrap:anywhere}
.rh-m--me{align-self:flex-end;background:linear-gradient(135deg,#e0244a,#b81d3d);color:#fff;border-bottom-right-radius:5px}
.rh-m--adm{align-self:flex-start;background:#1a2132;border:1px solid #262f45;color:#e7ebf5;border-bottom-left-radius:5px}
.rh-m img{display:block;max-width:100%;max-height:260px;border-radius:10px;margin:2px 0 6px;object-fit:cover}
.rh-m__t{font-size:14.5px;line-height:1.4}
.rh-m__time{position:absolute;right:10px;bottom:4px;font-size:10.5px;opacity:.65}
.rh-start{padding:0 14px 6px}
.rh-l{margin:0 0 7px;font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#8a8fa3}
.rh-topics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.rh-topics button{height:36px;border-radius:10px;border:1px solid #22283a;background:#0b0f17;color:#dfe3ee;font-size:13px;font-weight:600;cursor:pointer}
.rh-topics button.on{border-color:#ff5a6e;background:rgba(255,90,110,.14);color:#fff}
.rh-msg{display:none;margin:0 14px 8px;padding:8px 12px;border-radius:10px;font-size:13.5px;background:rgba(240,71,71,.12);border:1px solid rgba(240,71,71,.45);color:#ffd0d0}
.rh-prev{display:flex;align-items:center;gap:10px;margin:0 14px 8px;padding:6px 8px;border-radius:12px;background:#0b0f17;border:1px solid #22283a;font-size:13px;color:#c9cfdd}
.rh-prev img{width:44px;height:44px;border-radius:8px;object-fit:cover}
.rh-prev span{flex:1}
.rh-prev__x{width:28px;height:28px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font-size:18px;cursor:pointer}
.rh-bar{flex:0 0 auto;display:flex;align-items:flex-end;gap:8px;padding:10px 12px 12px;border-top:1px solid #1c2233;background:#0d1119}
.rh-att{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#1a2132;font-size:19px;cursor:pointer}
.rh-att:hover{background:#222b40}
.rh-ta{flex:1;min-width:0;min-height:42px;max-height:140px;resize:none;border:1px solid #22283a;border-radius:12px;background:#0b0f17;color:#fff;padding:10px 12px;font-size:15px;line-height:1.35;outline:none}
.rh-ta:focus{border-color:#ff5a6e}
.rh-send{flex:0 0 42px;width:42px;height:42px;border:0;border-radius:12px;background:linear-gradient(135deg,#ff5a6e,#e0244a);color:#fff;font-size:18px;cursor:pointer}
.rh-send:disabled{opacity:.6}
.rh-send--busy{animation:rhBusy 1s linear infinite}
@keyframes rhBusy{50%{opacity:.4}}
.rh-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
@media (max-width:640px){.rh-modal{padding:0;place-items:end stretch}.rh-chat{height:88vh;max-width:none;border-radius:20px 20px 0 0}}
@media (max-width:420px){.rh-topics{grid-template-columns:repeat(2,1fr)}}
/* приложение: правый нижний угол над нижним меню */
.rh-fab.rh-fab--app{right:14px;bottom:calc(var(--tabbar,64px) + var(--safe-bottom,0px) + 14px);height:44px;padding:0 18px;font-size:14px}
.rh-fab.rh-fab--app.rh-fab--up{bottom:calc(var(--tabbar,64px) + var(--safe-bottom,0px) + 86px)}
