/* vHospital Chat Widget — premium deep blue */
:root {
  --vh-accent: linear-gradient(135deg, #22d3ee 0%, #2563eb 58%, #312e81 100%);
  --vh-accent-solid: #2563eb;
  --vh-bg: rgba(6, 16, 38, 0.96);
  --vh-panel-bg: linear-gradient(180deg, rgba(9, 22, 52, 0.98), rgba(4, 11, 30, 0.98));
  --vh-surface: rgba(255, 255, 255, 0.08);
  --vh-surface-strong: rgba(255, 255, 255, 0.12);
  --vh-border: rgba(148, 163, 184, 0.16);
  --vh-border-strong: rgba(103, 232, 249, 0.24);
  --vh-text: #f8fafc;
  --vh-text-muted: #94a3b8;
  --vh-user-bg: linear-gradient(135deg, rgba(34, 211, 238, 0.98), rgba(37, 99, 235, 0.98));
  --vh-user-text: #ffffff;
  --vh-bot-bg: rgba(255, 255, 255, 0.08);
  --vh-bot-text: #f8fafc;
  --vh-shadow: 0 30px 90px rgba(2, 6, 23, 0.7), 0 0 0 1px rgba(34, 211, 238, 0.08);
  --vh-glow: 0 18px 45px rgba(14, 165, 233, 0.38);
  --vh-radius: 24px;
  --vh-radius-sm: 18px;
  --vh-z: 2147483647;
  --vh-font: "Manrope", "Segoe UI", sans-serif;
}

#vh-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--vh-z);
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  background: var(--vh-accent);
  cursor: pointer;
  box-shadow: var(--vh-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  outline: none;
  overflow: hidden;
}
#vh-toggle:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 24px 60px rgba(14, 165, 233, 0.44);
  filter: brightness(1.06);
}
#vh-toggle:active {
  transform: scale(0.98);
}
#vh-toggle .vh-toggle-glow {
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.28), transparent 65%);
  animation: vhPulseRing 2.2s ease-in-out infinite;
}
#vh-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.18s ease, transform 0.18s ease;
  position: absolute;
  z-index: 1;
}
#vh-toggle .vh-icon-heart { opacity: 1; transform: scale(1); fill: rgba(251,113,133,1); stroke: none; animation: vhHeartBeat 1.4s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(251,113,133,0.55)); }
#vh-toggle .vh-icon-close { opacity: 0; transform: scale(0.6); }
#vh-toggle.vh-open .vh-icon-heart { opacity: 0; transform: scale(0.6); animation: none; }
#vh-toggle.vh-open .vh-icon-close { opacity: 1; transform: scale(1); }
@keyframes vhHeartBeat {
  0%   { transform: scale(1);    }
  14%  { transform: scale(1.22); }
  28%  { transform: scale(1);    }
  42%  { transform: scale(1.12); }
  70%  { transform: scale(1);    }
  100% { transform: scale(1);    }
}
#vh-share-label {
  position: fixed;
  bottom: 30px;
  right: 88px;
  z-index: 9998;
  background: #ffffff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  font-family: system-ui, sans-serif;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  border: none;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.88) translateX(6px);
  transform-origin: right bottom;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
#vh-share-label::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 4px solid transparent;
  border-top: 9px solid #ffffff;
}
#vh-share-label.vh-share-show {
  opacity: 1;
  transform: scale(1) translateX(0);
}

#vh-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: #6ee7b7;
  border-radius: 50%;
  border: 2px solid #091634;
  display: none;
  z-index: 1;
}
#vh-badge.vh-visible { display: block; }

#vh-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: var(--vh-z);
  width: 392px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100dvh - 112px);
  background: var(--vh-panel-bg);
  border-radius: var(--vh-radius);
  border: 1px solid var(--vh-border);
  box-shadow: var(--vh-shadow);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.86) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s ease;
  font-family: var(--vh-font);
}
#vh-panel.vh-visible {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.vh-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  pointer-events: none;
}
.vh-orb-a {
  width: 140px;
  height: 140px;
  top: -32px;
  left: -36px;
  background: rgba(34, 211, 238, 0.16);
}
.vh-orb-b {
  width: 180px;
  height: 180px;
  top: 70px;
  right: -54px;
  background: rgba(37, 99, 235, 0.16);
}
.vh-orb-c {
  width: 160px;
  height: 160px;
  bottom: -48px;
  left: 32%;
  background: rgba(79, 70, 229, 0.14);
}

#vh-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(17, 52, 126, 0.88), rgba(8, 24, 74, 0.84));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.vh-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.16);
  flex-shrink: 0;
}
.vh-avatar svg {
  width: 20px;
  height: 20px;
  stroke: #e0f2fe;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vh-header-info {
  min-width: 0;
  flex: 1;
}
.vh-header-name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.vh-header-status {
  color: rgba(226, 232, 240, 0.82);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.vh-dot {
  width: 6px;
  height: 6px;
  background: #6ee7b7;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(110, 231, 183, 0.48);
  flex-shrink: 0;
}
.vh-memory-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  background: rgba(103, 232, 249, 0.08);
  color: #dbeafe;
}

#vh-messages {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(7, 17, 40, 0.78), rgba(4, 10, 28, 0.92));
  scroll-behavior: smooth;
}
#vh-messages::-webkit-scrollbar { width: 4px; }
#vh-messages::-webkit-scrollbar-track { background: transparent; }
#vh-messages::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 999px;
}

.vh-msg {
  display: flex;
  flex-direction: column;
  max-width: 84%;
  animation: vhFadeUp 0.24s ease forwards;
}
.vh-msg-bot { align-self: flex-start; }
.vh-msg-user { align-self: flex-end; }

.vh-bubble {
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.62;
  word-break: break-word;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.18);
}
.vh-msg-bot .vh-bubble {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: var(--vh-bot-text);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-left: 3px solid rgba(148, 163, 184, 0.55);
  border-radius: 4px 16px 16px 4px;
  backdrop-filter: blur(20px);
  white-space: pre-wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: vhBotBreathe 5s ease-in-out infinite;
}
.vh-msg-user .vh-bubble {
  background: var(--vh-user-bg);
  color: var(--vh-user-text);
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-bottom-right-radius: 6px;
}
.vh-msg-error .vh-bubble {
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.28);
}
.vh-timestamp {
  font-size: 10px;
  color: var(--vh-text-muted);
  margin-top: 4px;
  padding: 0 2px;
}
.vh-msg-user .vh-timestamp {
  text-align: right;
}

.vh-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 1px;
}
.vh-typing span {
  width: 7px;
  height: 7px;
  background: rgba(125, 211, 252, 0.86);
  border-radius: 50%;
  animation: vhBounce 1.2s infinite ease-in-out;
}
.vh-typing span:nth-child(2) { animation-delay: 0.2s; }
.vh-typing span:nth-child(3) { animation-delay: 0.4s; }

.vh-disclaimer {
  text-align: center;
  font-size: 10.5px;
  color: var(--vh-text-muted);
  padding: 6px 14px 4px;
  line-height: 1.45;
}

#vh-form {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(8, 20, 46, 0.92), rgba(4, 12, 31, 0.98));
}
#vh-input {
  flex: 1;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--vh-radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--vh-text);
  background: rgba(255, 255, 255, 0.06);
  line-height: 1.5;
  max-height: 116px;
  overflow-y: auto;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  backdrop-filter: blur(16px);
}
#vh-input:focus {
  border-color: rgba(103, 232, 249, 0.24);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
  background: rgba(255, 255, 255, 0.08);
}
#vh-input::placeholder {
  color: #94a3b8;
}

#vh-send {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--vh-user-bg);
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
  outline: none;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
}
#vh-send:hover {
  filter: brightness(1.07);
}
#vh-send:active {
  transform: scale(0.96);
}
#vh-send:disabled {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: none;
  cursor: not-allowed;
}
#vh-send svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#vh-mic {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  outline: none;
  color: #94a3b8;
}
#vh-mic:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #e2e8f0;
}
#vh-mic svg {
  width: 17px;
  height: 17px;
}
#vh-mic.vh-mic-active {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  animation: vhMicPulse 1.2s ease-in-out infinite;
}
@keyframes vhMicPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.06); }
}

@keyframes vhFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes vhBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}
@keyframes vhPulseRing {
  0%, 100% { opacity: 0.28; transform: scale(0.96); }
  50% { opacity: 0.5; transform: scale(1.08); }
}

/* ── Visual Intelligence Layer ───────────────────────────────────────────── */

/* 1. Avatar — always-on subtle breathing ring (AI is alive) */
.vh-avatar {
  position: relative;
}
.vh-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  animation: vhAvatarBreath 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes vhAvatarBreath {
  0%, 100% { border-color: rgba(34, 211, 238, 0.10); box-shadow: 0 0 6px rgba(34, 211, 238, 0.06); }
  50%       { border-color: rgba(34, 211, 238, 0.30); box-shadow: 0 0 14px rgba(34, 211, 238, 0.14); }
}

/* 2. Memory chip — pulses when session memory is loaded */
.vh-has-memory .vh-memory-chip {
  animation: vhMemoryPulse 3.6s ease-in-out infinite;
}
@keyframes vhMemoryPulse {
  0%, 100% { border-color: rgba(103, 232, 249, 0.18); background: rgba(103, 232, 249, 0.07); }
  50%       { border-color: rgba(103, 232, 249, 0.38); background: rgba(103, 232, 249, 0.15); }
}

/* 3. Thinking state — avatar ring pulses while AI processes */
.vh-thinking .vh-avatar::after {
  animation: vhAvatarThink 1.1s ease-in-out infinite;
}
@keyframes vhAvatarThink {
  0%, 100% { border-color: rgba(34, 211, 238, 0.15); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
  50%       { border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.10); }
}

/* 4. Thinking state — orbs breathe faster */
.vh-thinking .vh-orb-a {
  animation: vhOrbThink 1.6s ease-in-out infinite;
}
.vh-thinking .vh-orb-b {
  animation: vhOrbThink 2.0s ease-in-out infinite;
}
.vh-thinking .vh-orb-c {
  animation: vhOrbThink 1.8s ease-in-out infinite;
}
@keyframes vhOrbThink {
  0%, 100% { opacity: 0.9;  transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.16); }
}

/* 5. Thinking state — panel border gets a faint cyan tint */
#vh-panel.vh-thinking {
  border-color: rgba(103, 232, 249, 0.22);
  box-shadow: var(--vh-shadow), 0 0 0 1px rgba(34, 211, 238, 0.10);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/* 6. Thinking state — status dot quickens */
.vh-thinking .vh-dot {
  animation: vhDotThink 0.85s ease-in-out infinite;
}
@keyframes vhDotThink {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

/* 7. New bot reply — one-time intelligence scan across the bubble */
.vh-msg-bot .vh-bubble {
  position: relative;
  overflow: hidden;
}
.vh-msg-bot .vh-bubble::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(34, 211, 238, 0.07) 46%,
    rgba(34, 211, 238, 0.11) 50%,
    rgba(34, 211, 238, 0.07) 54%,
    transparent 100%
  );
  transform: translateX(-110%);
  animation: vhBubbleScan 0.9s ease-out forwards;
  pointer-events: none;
}
@keyframes vhBubbleScan {
  0%   { transform: translateX(-110%); opacity: 1; }
  100% { transform: translateX(110%);  opacity: 0; }
}

/* ── ELIA Avatar Stage ──────────────────────────────────────────────────────── */
#vh-avatar-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 4px;
  background: transparent;
  flex-shrink: 0;
}

#vh-avatar-face {
  width: 108px;
  height: 122px;
  filter: drop-shadow(0 4px 18px rgba(34,211,238,0.18));
  transform-origin: center 55%;
  will-change: transform;
  transition: filter 0.35s ease;
}

.elia-speaking #vh-avatar-face {
  filter: drop-shadow(0 4px 26px rgba(34,211,238,0.42)) drop-shadow(0 0 10px rgba(99,102,241,0.3));
}

#vh-voice-toggle {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(103,232,249,0.2);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  padding: 5px;
  cursor: pointer;
  color: var(--vh-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
#vh-voice-toggle:hover {
  background: rgba(34,211,238,0.14);
  color: #22d3ee;
}
#vh-voice-toggle svg {
  width: 14px;
  height: 14px;
  display: block;
}

@media (max-width: 480px) {
  #vh-panel {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    transform-origin: bottom center;
  }

  #vh-toggle {
    bottom: 16px;
    right: 16px;
  }
}

/* ── CurrentStatePanel ───────────────────────────────────────────────────── */
#vh-state-panel {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 16px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
#vh-state-panel.vh-sp-visible {
  display: flex;
}
.vh-sp-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}
.vh-sp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
  flex-shrink: 0;
  animation: vhDotPulse 2.8s ease-in-out infinite;
}
@keyframes vhDotPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.3); }
}
.vh-sp-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.55);
}
.vh-sp-sep { font-size: 10px; color: rgba(148, 163, 184, 0.25); }
.vh-sp-sub { font-size: 10px; color: rgba(148, 163, 184, 0.35); }
.vh-sp-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.vh-sp-field {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.vh-sp-key {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.45);
  font-weight: 500;
  white-space: nowrap;
}
.vh-sp-val {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.82);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* ── Proactive Signal ────────────────────────────────────────────────────── */
#vh-proactive {
  display: none;
  padding: 0 12px 8px;
  flex-shrink: 0;
}
#vh-proactive.vh-pq-visible {
  display: block;
  animation: vhPqFadeIn 0.3s ease forwards;
}
@keyframes vhPqFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vh-pq-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
}
.vh-pq-icon {
  font-size: 13px;
  color: rgba(165, 180, 252, 0.7);
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
.vh-pq-body {
  flex: 1;
  min-width: 0;
}
.vh-pq-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(165, 180, 252, 0.65);
  margin-bottom: 3px;
}
.vh-pq-text {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.5;
}
.vh-pq-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}
.vh-pq-yes {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.15);
  color: rgba(165, 180, 252, 0.9);
  cursor: pointer;
  transition: background 0.15s;
}
.vh-pq-yes:hover { background: rgba(99, 102, 241, 0.28); }
.vh-pq-no {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(148, 163, 184, 0.55);
  cursor: pointer;
  transition: color 0.15s;
}
.vh-pq-no:hover { color: rgba(148, 163, 184, 0.85); }

/* ── Evolution trigger button ────────────────────────────────────────────── */
.vh-sp-evo-btn {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.55);
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.vh-sp-evo-btn:hover,
.vh-sp-evo-btn.vh-sp-evo-active {
  color: rgba(148, 163, 184, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Evolution panel ─────────────────────────────────────────────────────── */
#vh-evolution {
  display: none;
  padding: 0 12px 10px;
  flex-shrink: 0;
}
#vh-evolution.vh-evo-visible {
  display: block;
  animation: vhEvoIn 0.22s ease forwards;
}
@keyframes vhEvoIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vh-evo-inner {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
}
.vh-evo-empty {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.4);
  text-align: center;
  padding: 8px 0;
}
.vh-evo-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.vh-evo-key {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.45);
  white-space: nowrap;
  min-width: 88px;
  padding-top: 1px;
}
.vh-evo-val {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.45;
}
.vh-evo-changes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.vh-evo-change {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.vh-evo-up   { color: rgba(248, 113, 113, 0.85); border-color: rgba(248, 113, 113, 0.2); }
.vh-evo-down { color: rgba(52, 211, 153, 0.85);  border-color: rgba(52, 211, 153, 0.2); }
.vh-evo-flat { color: rgba(148, 163, 184, 0.7);  border-color: rgba(148, 163, 184, 0.15); }

/* ── Bot bubble ambient breathing ────────────────────────────────────────── */
@keyframes vhBotBreathe {
  0%, 100% { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
  50%       { box-shadow: 0 4px 22px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
}
