#varvara-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px 10px 10px;
  border: 1px solid rgba(81,153,255,.45);
  border-radius: 999px;
  background: #0d1a2f;
  color: #eaf2ff;
  font: 600 14px/1.2 Inter, Arial, sans-serif;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
#varvara-fab:hover { transform: translateY(-2px); border-color: #5199ff; }
#varvara-fab .v-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: block; object-fit: cover; border-radius: 50%;
  background: #0a1425;
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 18px rgba(81,153,255,.45);
}
#varvara-panel {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 9999;
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 110px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: #0a1425;
  color: #eaf2ff;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  font-family: Inter, Arial, sans-serif;
}
#varvara-panel.is-open { display: flex; }
.v-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1); background: #0e1b31; }
.v-head .v-avatar { width: 32px; height: 32px; border-radius: 50%; display: block; object-fit: cover; border-radius: 50%; background: #0a1425; font-weight: 800; }
.v-head strong { font-size: 14px; display: block; }
.v-head small { display: block; color: #8ea4c3; font-size: 11px; margin-top: 2px; }
.v-close { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #9fb2cf; font-size: 22px; line-height: 1; cursor: pointer; }
.v-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.v-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.v-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.v-msg.bot { align-self: flex-start; background: #12233d; border: 1px solid rgba(255,255,255,.07); border-bottom-left-radius: 4px; }
.v-msg.user { align-self: flex-end; background: #2463c4; border-bottom-right-radius: 4px; }
.v-msg.typing { color: #8ea4c3; font-style: italic; }
.v-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(255,255,255,.1); background: #0e1b31; }
.v-form input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #07101f; color: #eaf2ff; font: 13px Inter, Arial, sans-serif; outline: none; }
.v-form input:focus { border-color: #5199ff; }
.v-form button { width: 42px; border: 0; border-radius: 10px; background: #5199ff; color: #06101f; font-size: 18px; font-weight: 800; cursor: pointer; }
.v-form button:disabled { opacity: .5; cursor: default; }
.v-note { padding: 0 14px 10px; color: #6f86a6; font-size: 10px; }
@media (max-width: 600px) {
  #varvara-fab { right: 12px; bottom: 12px; }
  #varvara-panel { right: 12px; bottom: 70px; height: min(520px, calc(100vh - 90px)); }
}
