.vw-root {
  --vw-bg: #07070c;
  --vw-bg-2: #12131d;
  --vw-line: rgba(255, 255, 255, 0.08);
  --vw-line-strong: rgba(255, 255, 255, 0.14);
  --vw-text: rgba(255, 255, 255, 0.96);
  --vw-muted: rgba(255, 255, 255, 0.58);
  --vw-blue: #7edcff;
  --vw-cyan: #4fc3f7;
  --vw-gold: #f1d287;
  --vw-pink: #f28dd8;
  --vw-red: #ff7a7a;
}

.vw-root {
  position: relative;
  display: inline-flex;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  outline: none;
}

.vw-shell {
  position: relative;
  width: min(calc(var(--vw-size) + 88px), 92vw);
  padding: 22px 22px 18px;
  border-radius: 32px;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at top left, rgba(126, 220, 255, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(242, 141, 216, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    linear-gradient(180deg, #0a0b12, #090a10 62%, #06070c);
  border: 1px solid var(--vw-line);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.vw-root:hover .vw-shell,
.vw-root:focus-visible .vw-shell {
  transform: translateY(-2px);
  border-color: rgba(126, 220, 255, 0.18);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(126, 220, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vw-chrome {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), transparent 22%),
    radial-gradient(circle at 50% 42%, rgba(76, 191, 247, 0.08), transparent 28%);
}

.vw-header,
.vw-body {
  position: relative;
  z-index: 1;
}

.vw-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.vw-brand {
  min-width: 0;
}

.vw-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.vw-headline {
  margin-top: 6px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vw-text);
}

.vw-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.vw-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05);
}

.vw-pill-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.vw-stage {
  position: relative;
  display: grid;
  place-items: center;
  margin: 22px 0 18px;
}

.vw-aura {
  position: absolute;
  width: calc(var(--vw-size) + 54px);
  height: calc(var(--vw-size) + 54px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(126, 220, 255, 0.26), transparent 34%),
    radial-gradient(circle at 68% 74%, rgba(242, 141, 216, 0.22), transparent 30%),
    radial-gradient(circle, rgba(94, 98, 255, 0.12), transparent 55%);
  filter: blur(24px);
  opacity: 0.9;
}

.vw-stage-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--vw-size) + 28px);
  height: calc(var(--vw-size) + 28px);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03)),
    rgba(8, 9, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 30px rgba(0,0,0,0.35);
}

.vw-stage-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vw-stage-orb {
  --orb-angle: 0deg;
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from var(--orb-angle), var(--vw-blue), var(--vw-pink), var(--vw-blue));
  opacity: 0.6;
  filter: blur(8px);
  animation: vw-orb-spin 3s linear infinite;
  z-index: -1;
}

.vw-stage-orb::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from var(--orb-angle), transparent, var(--vw-blue), var(--vw-pink), transparent);
  opacity: 0.4;
}

.vw-canvas {
  display: block;
  width: var(--vw-size);
  height: var(--vw-size);
  border-radius: 50%;
}

.vw-body {
  display: grid;
  gap: 14px;
}

.vw-status-rail {
  display: grid;
  gap: 5px;
}

.vw-status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 180ms ease;
}

.vw-helper {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32ch;
}

.vw-transcript {
  min-height: 78px;
  padding: 14px 15px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: padding 280ms ease, min-height 280ms ease;
}

.vw-transcript--collapsed {
  min-height: 0;
  padding: 10px 15px;
  overflow: hidden;
}

.vw-transcript--collapsed .vw-transcript-text,
.vw-transcript--collapsed .vw-transcript-label {
  display: none;
}

.vw-transcript-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.vw-transcript-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vw-transcript--active .vw-transcript-text {
  color: rgba(255,255,255,0.88);
}

.vw-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vw-footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vw-root[data-state="idle"] .vw-pill-dot { background: rgba(255,255,255,0.38); }
.vw-root[data-state="connecting"] .vw-pill-dot { background: #818cf8; }
.vw-root[data-state="listening"] .vw-pill-dot { background: #67e8f9; }
.vw-root[data-state="speaking"] .vw-pill-dot { background: #6ee7b7; }
.vw-root[data-state="thinking"] .vw-pill-dot { background: #a5b4fc; }
.vw-root[data-state="error"] .vw-pill-dot { background: #f87171; }

.vw-status[data-state="idle"] { color: rgba(255,255,255,0.52); }
.vw-status[data-state="connecting"] { color: #a5b4fc; }
.vw-status[data-state="listening"],
.vw-status[data-state="ready"] { color: #67e8f9; }
.vw-status[data-state="speaking"] { color: #6ee7b7; }
.vw-status[data-state="thinking"] { color: #a5b4fc; }
.vw-status[data-state="error"] { color: #f87171; }

.vw-root[data-state="connecting"] .vw-aura,
.vw-root[data-state="listening"] .vw-aura {
  animation: vw-breathe 2.4s ease-in-out infinite;
}

.vw-root[data-state="speaking"] .vw-shell {
  border-color: rgba(242, 141, 216, 0.2);
  box-shadow:
    0 38px 100px rgba(0,0,0,0.52),
    0 0 0 1px rgba(242, 141, 216, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.vw-root[data-state="thinking"] .vw-shell {
  border-color: rgba(241, 210, 135, 0.2);
}



@keyframes vw-breathe {
  0%, 100% { transform: scale(0.98); opacity: 0.78; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes vw-orb-spin {
  from { --orb-angle: 0deg; }
  to { --orb-angle: 360deg; }
}

@media (max-width: 640px) {
  .vw-shell {
    width: min(calc(var(--vw-size) + 36px), 94vw);
    padding: 18px 18px 16px;
    border-radius: 26px;
  }

  .vw-header {
    gap: 10px;
  }

  .vw-headline {
    font-size: 24px;
  }

  .vw-helper {
    font-size: 14px;
  }

  .vw-footer {
    gap: 8px;
  }

  .vw-footer span {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vw-shell,
  .vw-aura,
  .vw-stage-orb {
    transition: none;
    animation: none;
  }
}