.vhugo-chat {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.vhugo-chat__header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, rgba(0,0,0,.03), transparent);
}

.vhugo-chat__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
}

.vhugo-chat__controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vhugo-chat__btn {
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.vhugo-chat__btn--ghost { opacity: .85; }

.vhugo-chat__btn--danger {
  border-color: rgba(180,0,0,.45);
  background: rgba(255, 0, 0, 0.06);
}

.vhugo-chat.is-recording .vhugo-chat__header {
  background: linear-gradient(180deg, rgba(255,0,0,.10), transparent);
}

.vhugo-chat__log {
  height: min(64vh, 520px);
  overflow: auto;
  padding: 14px;
  background: #fafafa;
}

.vhugo-turn {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vhugo-turn__label {
  font-size: 12px;
  opacity: .75;
}

.vhugo-turn__bubble {
  display: inline-block;
  max-width: 86%;
  padding: 12px 12px;
  border-radius: 14px;
  line-height: 1.35;
  font-size: 15px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  white-space: normal;
  word-break: break-word;
}

.vhugo-turn--user { align-items: flex-end; }
.vhugo-turn--user .vhugo-turn__bubble { background: #ffffff; }

.vhugo-turn--bot { align-items: flex-start; }
.vhugo-turn--bot .vhugo-turn__bubble { background: #fffdf7; }

.vhugo-chat__composer {
  display: flex;
  gap: 10px;
  padding: 12px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.vhugo-chat__input {
  flex: 1;
  resize: vertical;
  min-height: 44px;
  max-height: 160px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.18);
  font-size: 15px;
  outline: none;
}

.vhugo-chat__input:focus { border-color: rgba(0,0,0,.35); }

.vhugo-chat__send {
  width: 120px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 12px;
  background: #111;
  color: #fff;
}

.vhugo-chat.is-busy .vhugo-chat__send {
  opacity: .65;
  cursor: wait;
}

.vhugo-chat__footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  font-size: 12px;
  opacity: .8;
  border-top: 1px solid rgba(0,0,0,.06);
  background: #fff;
}

@media (max-width: 640px) {
  .vhugo-chat__log { height: min(62vh, 520px); }
  .vhugo-chat__send { width: 92px; }
  .vhugo-turn__bubble { max-width: 92%; font-size: 15px; }
}
