/* SkillPoint global community-chat launcher */
.sp-community-launcher{position:fixed;right:22px;bottom:22px;z-index:9998;display:inline-flex;align-items:center;gap:10px;padding:12px 17px;border:1px solid rgba(213,170,99,.58);border-radius:999px;background:rgba(31,26,19,.96);color:#f5ead7;text-decoration:none;font:700 13px/1.2 inherit;letter-spacing:.01em;box-shadow:0 8px 28px rgba(0,0,0,.32);backdrop-filter:blur(12px);transition:transform .18s ease,border-color .18s ease,background .18s ease}
.sp-community-launcher:hover{transform:translateY(-2px);border-color:#e3bd7d;background:#382b1b;color:#fff}
.sp-community-launcher:focus-visible{outline:3px solid #e3bd7d;outline-offset:3px}
.sp-community-launcher__icon{width:20px;height:20px;display:grid;place-items:center;color:#e0b56e}
.sp-community-launcher__icon svg{width:20px;height:20px;display:block}
@media(max-width:600px){.sp-community-launcher{right:12px;bottom:12px;padding:11px 14px;font-size:12px}.sp-community-launcher__label{display:inline}}
/* Плавающее окно общего чата */
.sp-community-launcher.is-open{border-color:#e3bd7d;background:#382b1b}
.sp-community-panel{position:fixed;right:22px;bottom:84px;z-index:9999;width:min(400px,calc(100vw - 32px));height:min(620px,calc(100dvh - 120px));display:flex;flex-direction:column;background:#1b1712;border:1px solid rgba(213,170,99,.5);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.5);overflow:hidden}
.sp-community-panel[hidden]{display:none}
.sp-community-panel__head{display:flex;align-items:center;gap:10px;padding:11px 12px 11px 16px;border-bottom:1px solid #3a2f20;color:#f5ead7;font-size:14px}
.sp-community-panel__head b{flex:1}
.sp-community-panel__full,.sp-community-panel__close{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;border:1px solid #4a3c28;background:transparent;color:#e0b56e;font:700 14px/1 inherit;text-decoration:none;cursor:pointer}
.sp-community-panel__full:hover,.sp-community-panel__close:hover{background:#2c241a}
.sp-community-panel__body{flex:1;min-height:0}
.sp-community-panel__body iframe{display:block;width:100%;height:100%;border:0;background:#1b1712}
@media(max-width:600px){
  .sp-community-panel{right:0;left:0;bottom:0;top:0;width:auto;height:auto;border-radius:0;border:0}
  html.sp-chat-open,html.sp-chat-open body{overflow:hidden}
  html.sp-chat-open .sp-community-launcher{display:none}
}

/* Кнопка поддержки + отметка о новых сообщениях */
.sp-support-launcher{bottom:78px}
.sp-badge{min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:#e53935;color:#fff;font-size:12px;line-height:20px;text-align:center;font-weight:700;box-shadow:0 0 0 2px #1f1a13}
.sp-badge[hidden]{display:none}
.sp-support-launcher.has-unread{border-color:#e0b35c;animation:spPulse 1.8s ease-in-out infinite}
@keyframes spPulse{0%,100%{box-shadow:0 8px 28px rgba(0,0,0,.32),0 0 0 0 rgba(224,179,92,.55)}50%{box-shadow:0 8px 28px rgba(0,0,0,.32),0 0 0 9px rgba(224,179,92,0)}}
html.sp-chat-open .sp-support-launcher{display:none}
@media(max-width:600px){.sp-support-launcher{bottom:68px}}

