.vb-dir { position: fixed; right: 18px; bottom: 18px; z-index: 60; font-family: inherit; }
.vb-dir-fab {
  width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 2px rgba(255,255,255,0.2);
  background: #0b0f18;
}
.vb-dir-fab img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb-dir-fab.is-live { box-shadow: 0 16px 40px rgba(92,225,255,0.25), 0 0 0 3px rgba(92,225,255,0.45); }

.vb-dir-panel {
  display: none;
  position: absolute; right: 0; bottom: 88px;
  width: min(380px, calc(100vw - 28px));
  border-radius: 28px;
  background: rgba(10,12,18,0.78);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(22px) saturate(1.45);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.14);
  overflow: hidden;
}
.vb-dir-panel.is-on { display: grid; grid-template-rows: auto 1fr auto; min-height: 520px; max-height: min(78vh, 680px); }

.vb-dir-stage {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 16px 12px;
  background: radial-gradient(circle at 50% 30%, rgba(92,225,255,0.16), transparent 55%), #07090f;
}
.vb-dir-head {
  position: relative;
  width: 168px; height: 168px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(255,255,255,0.2);
}
.vb-dir-head img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb-dir-head canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
.vb-dir-head.is-talk { filter: saturate(1.08) contrast(1.04); }

.vb-dir-meta { text-align: center; padding: 10px 8px 0; width: 100%; }
.vb-dir-meta strong { display: block; letter-spacing: -0.03em; }
.vb-dir-meta span { color: rgba(244,246,251,0.55); font-size: 12px; }

.vb-dir-log {
  overflow: auto; padding: 10px 14px; display: grid; gap: 8px; align-content: start;
}
.vb-bbl {
  max-width: 92%; padding: 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4;
}
.vb-bbl.bot { background: rgba(255,255,255,0.07); }
.vb-bbl.me { background: rgba(92,225,255,0.14); margin-left: auto; }

.vb-dir-form { display: grid; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.vb-dir-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; }
.vb-dir-form input[type=text] {
  width: 100%; border: 1px solid rgba(255,255,255,0.16); background: rgba(0,0,0,0.28);
  border-radius: 14px; padding: 10px 12px; color: #fff;
}
.vb-dir-form button {
  border: 0; border-radius: 14px; padding: 0 12px; cursor: pointer;
  background: #f4f6fb; color: #0a0c10; font-weight: 620;
}
.vb-dir-form .mic { background: rgba(255,255,255,0.1); color: #fff; min-width: 42px; }
.vb-dir-form .mic.is-on { background: #ff6b8a; }
.vb-dir-check { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: rgba(244,246,251,0.55); }
.vb-dir-check input { margin-top: 2px; }
.vb-dir-quota { font-size: 11px; color: rgba(244,246,251,0.4); }
.vb-dir-status { font-size: 11px; color: rgba(92,225,255,0.7); min-height: 14px; }
.vb-dir-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.vb-dir-chips[hidden] { display: none; }
.vb-dir-chips button {
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06);
  color: #f4f6fb; border-radius: 999px; padding: 6px 10px; font-size: 12px; cursor: pointer;
}
.vb-retry {
  border: 0; border-radius: 12px; padding: 6px 10px; cursor: pointer;
  background: rgba(92,225,255,0.18); color: #f4f6fb; font-size: 12px; justify-self: start;
}
.vb-typing { display: flex; gap: 5px; align-items: center; width: 54px; }
.vb-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(244,246,251,0.55);
  animation: vbdot 1s infinite ease-in-out;
}
.vb-typing i:nth-child(2) { animation-delay: 0.15s; }
.vb-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes vbdot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.vb-dir-form button:disabled { opacity: 0.55; cursor: wait; }
.vb-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

@media (max-width: 520px) {
  .vb-dir { right: 10px; bottom: 10px; }
  .vb-dir-panel { bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .vb-dir-head.is-talk { animation: none; }
}
