#vv-chat {
  position: fixed;
  inset: auto 22px 22px auto;
  margin: 0;
  width: min(420px, calc(100% - 32px));
  height: min(650px, calc(100dvh - 44px));
  max-height: none;
  max-width: none;
  padding: 0;
  border: 1px solid #b8c2b7;
  border-radius: 20px;
  background: #f5f2e9;
  color: #22362c;
  box-shadow: 0 20px 65px #172e2440;
  font: 15px/1.42 system-ui, sans-serif;
}
#vv-chat[open] { display: flex; flex-direction: column; animation: vv-chat-enter .2s ease-out; }
#vv-chat::backdrop { background: #14251e32; }
#vv-chat * { box-sizing: border-box; }
#vv-chat [hidden] { display: none !important; }
#vv-chat :is(button,a,input,textarea):focus-visible { outline: 2px solid #8d530d; outline-offset: 3px; }
#vv-chat button { cursor: pointer; font: inherit; }
#vv-chat button:disabled { cursor: default; opacity: .65; }
.vv-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px; background: #163d31; color: #fff; }
.vv-chat-avatar { display: grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 50%; background: #e7d5b4; color: #183a2f; font: bold 17px Georgia,serif; }
#vv-chat-title { margin: 0; font: 700 16px/1.25 system-ui,sans-serif; color: inherit; }
.vv-chat-status { margin: 2px 0 0; font-size: 12px; color: #e3eee5; }
.vv-chat-tools { display: flex; margin-left: auto; gap: 4px; }
.vv-chat-tools button { width: 34px; height: 36px; padding: 0; border: 1px solid #ffffff70; border-radius: 8px; background: transparent; color: white; }
#vv-chat .vv-chat-tools button:focus-visible { outline-color: #fff; }
.vv-chat-log { flex: 1 1 8rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px 13px; }
.vv-chat-bubble { align-self: flex-start; max-width: 90%; margin: 0; padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: #fff; border: 1px solid #e0ded4; white-space: pre-wrap; overflow-wrap: anywhere; }
.vv-chat-bubble.user { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: #dceee2; border-color: #c8ded0; }
.vv-chat-controls { display: grid; gap: 8px; padding: 10px 12px 12px; background: #fffcf5; border-top: 1px solid #ded9cc; }
.vv-chat-quick { display: flex; flex-wrap: wrap; gap: 5px; }
.vv-chat-quick button { padding: 5px 9px; border: 1px solid #718d7d; border-radius: 18px; background: #fff; color: #234636; font-size: 12px !important; }
.vv-chat-form { display: flex; gap: 6px; }
.vv-chat-form input, .vv-chat-review textarea { min-width: 0; width: 100%; border: 1px solid #83988a; border-radius: 9px; background: white; color: #20372c; padding: 9px; font: inherit; }
.vv-chat-form button,.vv-chat-final { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid #175140; border-radius: 9px; background: #175140; color: white; font-weight: 700 !important; text-decoration: none; }
.vv-chat-meta { font-size: 12px; margin: 0; color: #405549; }
.vv-chat-meta a,.vv-chat-human { color: #175140; text-decoration: underline; }
#vv-chat .vv-chat-human { border: 0; padding: 4px 0; justify-self: start; background: transparent; font-weight: 650; }
.vv-chat-notice { padding: 0 13px; margin: 5px 0; color: #405549; font-size: 13px; }
.vv-chat-review { margin: 0 12px 8px; max-height: 42%; overflow-y: auto; padding: 9px; border-radius: 9px; border: 1px solid #a8baab; background: #fff; }
.vv-chat-review label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 4px; }
.vv-chat-review textarea { display: block; min-height: 64px; margin-bottom: 6px; resize: vertical; font-size: 13px; }
.vv-chat-final { width: 100%; text-align: center; font-size: 13px; }
@keyframes vv-chat-enter { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 600px) {
  #vv-chat { inset: auto 0 0; width: 100%; height: min(740px, 96dvh); border-radius: 17px 17px 0 0; }
  .vv-chat-controls { padding-bottom: max(12px,env(safe-area-inset-bottom)); }
  .vv-chat-form input,.vv-chat-review textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { #vv-chat[open] { animation: none; } }
