.vad-demo {
  --vad-ink: #f3f6ff;
  --vad-muted: #b8c7e9;
  --vad-track: #293952;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 44rem;
  justify-self: center;
  color: var(--vad-ink);
  color-scheme: dark;
  background: radial-gradient(ellipse at 96% 0%, #20365b 0, transparent 48%), #111e35;
  border-radius: 26px;
  box-shadow: 0 12px 38px #050f202b;
  padding: clamp(18px, 3vw, 34px);
  text-align: left;
  font-family: inherit;
}
.vad-demo *, .vad-demo *::before, .vad-demo *::after {box-sizing: border-box}
.vad-demo :is(p, figure, ul, li, figcaption, header) {margin: 0}
.vad-demo p {font-size: .94rem; line-height: 1.55; color: inherit}
.vad-demo .vad-head {position: static; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 0 15px; background: none; border: 0; border-bottom: 1px solid #899ab838; box-shadow: none}
.vad-demo .vad-identity {display: flex; align-items: center; gap: .5rem}
.vad-demo .vad-identity img {width: 48px; height: 48px; object-fit: contain; border-radius: 50%}
.vad-demo .vad-identity div {display: grid; gap: 2px}
.vad-demo .vad-identity strong {color: var(--vad-ink); font-size: 1.1rem; font-weight: 650}
.vad-demo .vad-identity small {color: var(--vad-muted); font-size: .75rem; line-height: 1.35}
.vad-demo .vad-control {display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .45rem .8rem; border: 0; border-radius: 99px; color: #dfeaff; background: #284169; font-family: inherit; font-size: .8rem; font-weight: 600; line-height: 1.25; cursor: pointer}
.vad-demo .vad-control:hover {background: #354f78}
.vad-demo .vad-control[hidden] {display: none}
.vad-demo .vad-control svg {width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round}
.vad-demo :is(button, a, summary):focus-visible {outline: 3px solid #a8c5ff; outline-offset: 3px}
.vad-demo .vad-content {display: grid; gap: 15px; margin-top: 19px}
.vad-demo .vad-question {display: grid; align-items: center; justify-self: end; position: relative; max-width: 94%; padding: .65rem 1rem; border-radius: 18px 18px 5px 18px; color: #f8faff; background: #2c4770}
.vad-demo .vad-question::before {content: attr(data-mirror); grid-area: 1/1; visibility: hidden}
.vad-demo .vad-question [data-vad-typed] {grid-area: 1/1}
.vad-demo[data-stage=question] [data-vad-typed]::after {content: ''; display: inline-block; width: 2px; height: 1em; vertical-align: -.1em; margin-left: 1px; background: #b8d0ff}
.vad-demo .vad-sr {position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap}
.vad-demo .vad-reply {display: grid; grid-template-columns: 35px minmax(0,1fr); align-items: start; column-gap: 8px}
.vad-demo .vad-face {grid-area: 1/1; width: 35px; height: 35px; object-fit: contain; border-radius: 50%}
.vad-demo .vad-answer,.vad-demo .vad-thinking {grid-area: 1/2; padding-top: 4px}
.vad-demo .vad-thinking {opacity: 0; color: var(--vad-muted); font-size: .88rem}
.vad-demo[data-stage=thinking] .vad-thinking {opacity: 1}
.vad-demo[data-stage=thinking] .vad-thinking span {display: inline-block; animation: vad-pulse 1s ease-in-out infinite alternate}
.vad-demo .vad-chart {padding: clamp(13px,2vw,22px); border-radius: 15px; background: #192943; color: var(--vad-ink)}
.vad-demo .vad-chart figcaption {display: grid; gap: 2px; margin-bottom: 14px}
.vad-demo .vad-chart figcaption strong {font-size: .93rem; font-weight: 650}
.vad-demo .vad-chart figcaption small {font-size: .76rem; color: var(--vad-muted)}
.vad-demo .vad-chart ul {list-style: none; display: grid; gap: 12px; padding: 0}
.vad-demo .vad-chart li {display: grid; gap: 4px; padding: 0}
.vad-demo .vad-chart li>div {display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .8rem; line-height: 1.4}
.vad-demo .vad-chart b {font-variant-numeric: tabular-nums}
.vad-demo .vad-chart b small {color: var(--vad-muted); font-size: inherit; font-weight: 450}
.vad-demo .vad-chart progress {--vad-fill: #8aafff; appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 8px; overflow: hidden; background: var(--vad-track); color: var(--vad-fill)}
.vad-demo .vad-chart li:nth-child(2) progress {--vad-fill: #84ddca}
.vad-demo .vad-chart li:nth-child(3) progress {--vad-fill: #c9adff}
.vad-demo .vad-chart progress::-webkit-progress-bar {background: var(--vad-track)}
.vad-demo .vad-chart progress::-webkit-progress-value {background: var(--vad-fill); border-radius: inherit}
.vad-demo .vad-chart progress::-moz-progress-bar {background: var(--vad-fill); border-radius: inherit}
.vad-demo .vad-followup {border: 0; border-top: 1px solid #899ab838; padding-top: 8px; background: none}
.vad-demo .vad-followup summary {display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 12px; color: #cde0ff; font-size: .85rem; font-weight: 600; cursor: pointer; list-style: none}
.vad-demo .vad-followup summary::-webkit-details-marker {display: none}
.vad-demo .vad-followup summary::after {content: '+'; font-size: 1.15rem}
.vad-demo .vad-followup[open] summary::after {content: '−'}
.vad-demo .vad-followup p {color: var(--vad-muted)}
.vad-demo .vad-followup a {display: inline-flex; align-items: center; min-height: 44px; color: #cde0ff; font-size: .85rem; text-decoration: underline}
.vad-demo:is([data-stage=question],[data-stage=thinking]) .vad-answer,
.vad-demo[data-stage=question] .vad-face,
.vad-demo:is([data-stage=question],[data-stage=thinking],[data-stage=answer]) .vad-chart {opacity: 0}
.vad-demo.vad-paused .vad-thinking span {animation-play-state: paused}
@keyframes vad-pulse {from {opacity: .4} to {opacity: 1}}
@media (prefers-reduced-motion: reduce) {
  .vad-demo .vad-thinking span {animation: none}
}
