/* Варвара — диалоговое окно на stargrd.ru */
.vv-modal{position:fixed;inset:0;z-index:99990;display:none;align-items:center;justify-content:center;padding:20px}
.vv-modal.is-open{display:flex}
.vv-modal__backdrop{position:absolute;inset:0;background:rgba(12,22,40,.52);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.vv-modal__panel{position:relative;z-index:1;width:min(720px,100%);max-height:min(800px,calc(100dvh - 40px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.72);border-radius:26px;background:rgba(255,255,255,.94);box-shadow:0 32px 90px rgba(15,30,55,.32),inset 0 1px 0 rgba(255,255,255,.9);backdrop-filter:blur(24px) saturate(1.25);-webkit-backdrop-filter:blur(24px) saturate(1.25);animation:vvIn .28s ease both}
@keyframes vvIn{from{opacity:0;transform:translateY(18px) scale(.975)}to{opacity:1;transform:none}}
.vv-head{display:flex;align-items:center;gap:12px;padding:18px 20px;background:linear-gradient(120deg,#c52335,#e04455 60%,#bd1f34);color:#fff;flex:0 0 auto}
.vv-head__ava{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.16);display:grid;place-items:center;border:1px solid rgba(255,255,255,.3);flex:0 0 auto}
.vv-head__ava img{width:34px;height:34px;object-fit:contain;display:block}
.vv-head__info{min-width:0}
.vv-head__name{font-family:Inter,Arial,sans-serif;font-size:17px;font-weight:700;line-height:1.15}
.vv-head__status{font:12px/1.5 Inter,Arial,sans-serif;opacity:.86;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.vv-dot{width:6px;height:6px;border-radius:50%;background:#7dffb2;box-shadow:0 0 9px #7dffb2;display:inline-block}
.vv-head__close{margin-left:auto;width:36px;height:36px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center;transition:.2s;flex:0 0 auto}
.vv-head__close:hover{background:#fff;color:#c52335}
.vv-body{flex:1 1 auto;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;background:rgba(248,250,253,.76);overscroll-behavior:contain}
.vv-msg{display:flex;gap:9px;max-width:88%;animation:vvMsg .25s ease both}
@keyframes vvMsg{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.vv-msg--user{align-self:flex-end;flex-direction:row-reverse}
.vv-msg__ava{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid rgba(26,43,76,.1);flex:0 0 auto;overflow:hidden}
.vv-msg__ava img{width:24px;height:24px;object-fit:contain}
.vv-msg--user .vv-msg__ava{background:#d42a3b;color:#fff;font:600 12px Inter;border-color:#d42a3b}
.vv-bubble{padding:11px 14px;border-radius:15px;background:#fff;border:1px solid rgba(26,43,76,.08);box-shadow:0 3px 12px rgba(26,43,76,.05);color:#1a2b4c;font:14px/1.62 Inter,Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.vv-msg--user .vv-bubble{background:#d42a3b;border-color:#d42a3b;color:#fff;border-bottom-right-radius:4px}
.vv-msg--bot .vv-bubble{border-bottom-left-radius:4px}
.vv-sources{margin-top:8px;padding-top:7px;border-top:1px solid rgba(26,43,76,.08);font:10px/1.5 Inter,Arial,sans-serif;color:#7b8da5}
.vv-typing{display:inline-flex;gap:4px;align-items:center;color:#8a9ab0;font:13px Inter;padding:2px 0}
.vv-typing i{width:4px;height:4px;border-radius:50%;background:#c52335;animation:vvDot 1s infinite}
.vv-typing i:nth-child(2){animation-delay:.15s}.vv-typing i:nth-child(3){animation-delay:.3s}
@keyframes vvDot{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
.vv-cursor{display:inline-block;width:6px;height:1.05em;vertical-align:-2px;background:#c52335;margin-left:2px;animation:vvBlink .7s steps(1) infinite}
@keyframes vvBlink{50%{opacity:0}}
.vv-form{flex:0 0 auto;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.92);border-top:1px solid rgba(26,43,76,.08);display:flex;gap:9px;align-items:flex-end}
.vv-input{flex:1;min-width:0;max-height:120px;min-height:44px;resize:none;padding:11px 13px;border:1px solid #d8e1ed;border-radius:13px;background:#fff;color:#1a2b4c;font:14px/1.45 Inter,Arial,sans-serif;outline:none;transition:.2s}
.vv-input:focus{border-color:#d42a3b;box-shadow:0 0 0 3px rgba(212,42,59,.09)}
.vv-send{width:46px;height:44px;border:0;border-radius:13px;background:#d42a3b;color:#fff;font-size:19px;cursor:pointer;display:grid;place-items:center;flex:0 0 auto;transition:.2s}
.vv-send:hover{background:#b91f31;transform:translateY(-1px)}
.vv-send:disabled{opacity:.45;cursor:default;transform:none}
.vv-note{padding:0 16px 10px;background:rgba(255,255,255,.92);color:#8b9bb0;font:10px/1.4 Inter,Arial,sans-serif;text-align:center}
.vv-hint{font:11px/1.5 Inter,Arial,sans-serif;color:#8a9ab0;text-align:center;padding:2px 4px 4px}
body.vv-locked{overflow:hidden}
@media(max-width:640px){
  .vv-modal{padding:0;align-items:flex-end}
  .vv-modal__panel{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0}
  .vv-head{padding:14px 14px;padding-top:calc(12px + env(safe-area-inset-top))}
  .vv-head__ava{width:40px;height:40px;border-radius:12px}.vv-head__ava img{width:30px;height:30px}
  .vv-head__name{font-size:16px}.vv-head__status{font-size:11px}
  .vv-body{padding:14px;gap:10px}.vv-msg{max-width:94%}.vv-bubble{font-size:14px}
  .vv-form{padding:9px 10px calc(9px + env(safe-area-inset-bottom))}.vv-input{font-size:16px}
  .vv-note{font-size:9px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.vv-modal__panel,.vv-msg{animation:none}.vv-cursor{animation:none}}

/* Авто-кнопка на страницах без своего триггера (форум) */
.vv-auto-fab{position:fixed;right:20px;bottom:20px;z-index:99980;display:inline-flex;align-items:center;gap:8px;padding:7px 14px 7px 7px;border:1px solid rgba(212,42,59,.35);border-radius:999px;background:linear-gradient(120deg,#d42a3b,#e04455);color:#fff;font:700 13px/1 Inter,Arial,sans-serif;box-shadow:0 10px 28px rgba(180,30,50,.28);cursor:pointer;transition:.2s}
.vv-auto-fab:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(180,30,50,.38)}
.vv-auto-fab img{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#fff;border:2px solid rgba(255,255,255,.7)}
@media(max-width:640px){.vv-auto-fab{right:12px;bottom:12px;padding:6px 12px 6px 6px}.vv-auto-fab span{font-size:12px}.vv-auto-fab img{width:30px;height:30px}}
/* Старые встроенные окна Варвары на help/blog не должны дублировать новое */
.inline-chat-window,.chat-overlay,#chatOverlay{display:none!important}
