/* Плавающий помощник (18.11.2026): фигурка-кнопка + окно чата. Подключается на страницах Воркспейса. */
#fw-btn{position:fixed;right:20px;bottom:20px;width:56px;height:56px;border-radius:50%;border:none;cursor:pointer;z-index:9999;
  background:linear-gradient(135deg,#22d3ee,#3b82f6);box-shadow:0 8px 24px -6px rgba(34,211,238,.6);
  display:flex;align-items:center;justify-content:center;font-size:26px;animation:fw-breathe 2.6s ease-in-out infinite}
#fw-btn:hover{animation-play-state:paused;transform:scale(1.06)}
#fw-btn .fw-dot{position:absolute;top:-2px;right:-2px;width:12px;height:12px;border-radius:50%;background:#ffd27a;border:2px solid #030b16;display:none}
#fw-btn.fw-new .fw-dot{display:block}
@keyframes fw-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){#fw-btn{animation:none}}

#fw-panel{position:fixed;right:20px;bottom:86px;width:min(340px,calc(100vw - 32px));max-height:min(480px,calc(100vh - 140px));
  background:#0a1830;border:1px solid rgba(125,211,252,.24);border-radius:16px;box-shadow:0 20px 60px -20px rgba(0,0,0,.6);
  display:none;flex-direction:column;overflow:hidden;z-index:9999;font-family:Inter,system-ui,sans-serif}
#fw-panel.fw-open{display:flex}
#fw-head{padding:14px 16px;border-bottom:1px solid rgba(125,211,252,.12);display:flex;align-items:center;justify-content:space-between;color:#e8f1fb;font-weight:600;font-size:14.5px}
#fw-head span.fw-ico{display:inline-flex;align-items:center;gap:8px}
#fw-close{background:none;border:none;color:#94a9bf;font-size:18px;cursor:pointer;line-height:1;padding:2px 6px}
#fw-close:hover{color:#e8f1fb}
#fw-msgs{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.fw-msg{font-size:13.5px;line-height:1.5;max-width:92%;padding:9px 12px;border-radius:12px}
.fw-msg.fw-bot{background:rgba(255,255,255,.06);color:#dce6f2;align-self:flex-start;border:1px solid rgba(125,211,252,.1)}
.fw-msg.fw-user{background:rgba(34,211,238,.14);color:#e8f1fb;align-self:flex-end}
.fw-msg.fw-err{background:rgba(255,120,120,.1);color:#ffb4b4;align-self:flex-start}
#fw-route{display:none;align-self:flex-start;margin-top:-2px}
#fw-route a{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;padding:8px 14px;border-radius:10px;
  background:linear-gradient(90deg,#22d3ee,#3b82f6);color:#021018;text-decoration:none}
.fw-typing{display:inline-flex;gap:4px;align-self:flex-start;padding:9px 12px}
.fw-typing span{width:6px;height:6px;border-radius:50%;background:#7dd3fc;opacity:.5;animation:fw-blink 1.1s infinite}
.fw-typing span:nth-child(2){animation-delay:.15s}.fw-typing span:nth-child(3){animation-delay:.3s}
@keyframes fw-blink{0%,80%,100%{opacity:.35}40%{opacity:1}}
#fw-form{display:flex;gap:8px;padding:12px;border-top:1px solid rgba(125,211,252,.12)}
#fw-input{flex:1;background:rgba(255,255,255,.05);border:1px solid rgba(125,211,252,.18);border-radius:10px;color:#e8f1fb;
  padding:9px 11px;font-size:13.5px;font-family:inherit;resize:none;min-height:38px;max-height:80px}
#fw-input:focus{outline:none;border-color:#22d3ee}
#fw-send{background:linear-gradient(135deg,#22d3ee,#3b82f6);border:none;border-radius:10px;width:38px;color:#021018;cursor:pointer;font-size:16px}
#fw-send:disabled{opacity:.5;cursor:default}
