.vd-demo {
  --vd-bg: #0a0a0c;
  --vd-surface: #111114;
  --vd-surface-2: #17171b;
  --vd-line: rgba(255, 255, 255, 0.12);
  --vd-line-strong: rgba(255, 255, 255, 0.24);
  --vd-text: #f2f2f3;
  --vd-muted: #96969e;
  --vd-dim: #696970;
  --vd-ok: #b9a7f5;
  color: var(--vd-text);
  background: var(--vd-bg);
  font-family: 'Geist', system-ui, sans-serif;
  isolation: isolate;
}

/* 2026-08 product-proof theatre: broad input → compute → cited response */
.vd-query-demo { min-height: 520px; }
.vd-query-shell {
  height: calc(100% - 40px);
  padding: 0;
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(280px, 1.16fr) minmax(250px, .9fr);
  overflow: hidden;
  background: #08090b;
}
.vd-query-intake,
.vd-query-compute,
.vd-query-response { min-width: 0; min-height: 0; }
.vd-query-intake { padding: 22px 20px 18px; border-right: 1px solid var(--vd-line); overflow: auto; }
.vd-query-heading > span,
.vd-query-compute-head { color: #a78bfa; font: 650 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.vd-query-heading strong { max-width: 270px; margin: 48px 0 13px; display: block; color: #f5f6f7; font-size: clamp(22px, 2.4vw, 36px); font-weight: 480; line-height: .98; letter-spacing: -.045em; }
.vd-query-heading p { max-width: 290px; margin: 0 0 24px; color: #878c93; font-size: 10px; line-height: 1.5; }
.vd-query-form textarea { min-height: 78px; border-radius: 4px; background: #0b0d10; font-size: 10px; }
.vd-query-context { grid-template-columns: 1.05fr .8fr 1fr; }
.vd-query-context input { height: 29px; border-radius: 3px; }
.vd-presets button { border-radius: 4px; }
.vd-query-actions { margin-top: 13px; }
.vd-query-compute { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; border-right: 1px solid var(--vd-line); overflow: hidden; background: #090b0e; }
.vd-query-compute::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 55px rgba(0,0,0,.42); }
.vd-query-compute-head { position: relative; z-index: 2; padding: 18px 18px 0; display: flex; justify-content: space-between; gap: 12px; }
.vd-query-compute-head b { color: #8f969e; font: inherit; }
.vd-query-compute > img { width: 100%; height: 100%; min-height: 180px; display: block; object-fit: cover; opacity: .9; transform: scale(1.015); transition: transform 600ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease-out; }
.vd-query-demo:has(.vd-query-stages .is-active) .vd-query-compute > img { transform: scale(1.055); opacity: 1; }
.vd-query-stages { position: relative; z-index: 2; margin: 0 18px; display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--vd-line); background: rgba(8,9,11,.9); }
.vd-query-stages li { min-height: 34px; padding: 0 9px; display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; border-bottom: 1px solid var(--vd-line); color: #70757c; font-size: 7px; }
.vd-query-stages li:last-child { border-bottom: 0; }
.vd-query-stages li small { color: #555b62; font: 600 6px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.vd-query-stages i { border-radius: 2px; }
.vd-query-stages li.is-active { color: #fff; background: rgba(167,139,250,.035); }
.vd-query-stages li.is-active i { border-color: #a78bfa; background: #a78bfa; box-shadow: 0 0 12px rgba(167,139,250,.55); }
.vd-query-stages li.is-done { color: #c8d2bc; }
.vd-query-compute > .vd-demo-status { position: relative; z-index: 2; min-height: 38px; margin: 0; padding: 9px 18px; }
.vd-query-response { margin: 0; display: flex; flex-direction: column; border: 0; border-radius: 0; background: #0a0b0d; }
.vd-response-head { min-height: 45px; padding-inline: 15px; }
.vd-response-head > span { color: #a78bfa; letter-spacing: .1em; }
.vd-response-empty { margin: auto 24px; }
.vd-response-empty b { display: block; color: #eceff2; font-size: 20px; font-weight: 480; letter-spacing: -.03em; }
.vd-response-empty p { max-width: 260px; margin: 10px 0 0; color: #737980; font-size: 10px; line-height: 1.55; }
.vd-response-content { padding: 28px 22px 18px; overflow: auto; animation: vd-response-in 180ms ease-out both; }
@keyframes vd-response-in { from { opacity: 0; transform: translateY(7px); } }
.vd-response-answer { margin: 0; color: #f0f2f4; font-size: clamp(16px, 1.6vw, 23px); font-weight: 460; line-height: 1.2; letter-spacing: -.035em; }
.vd-response-citations { margin: 22px 0 17px; display: flex; flex-wrap: wrap; gap: 6px; }
.vd-response-citations span { padding: 5px 7px; border: 1px solid var(--vd-line); border-radius: 3px; color: #aeb5bd; font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.vd-response-content details { border-top: 1px solid var(--vd-line); }
.vd-response-content summary { padding: 12px 0; color: #858b92; cursor: pointer; font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.vd-query-response pre { max-height: 210px; padding: 12px 0 0; font-size: 7px; }

/* Report cover: real Vedika mark, North Indian chart art, layered page motion */
.vd-report-shell { background: #090a0c; }
.vd-paper-stack { top: 18px; left: 9%; width: 50%; height: 77%; perspective: 900px; }
.vd-paper { border-radius: 7px; overflow: hidden; transform-origin: 50% 88%; }
.vd-paper-back { transform: translate(17px, 8px) rotate(3deg); opacity: .58; background: #bcbcb9; }
.vd-paper-back--two { transform: translate(31px, 14px) rotate(7deg); opacity: .32; background: #969696; }
.vd-paper-front { padding: 0; transform: rotate(-2deg); animation: vd-report-breathe 7s ease-in-out infinite alternate; }
@keyframes vd-report-breathe { to { transform: translateY(-3px) rotate(-1deg); } }
.vd-report-cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vd-report-cover-copy { position: absolute; inset: 0; padding: 10% 9%; color: #13171a; }
.vd-report-cover-copy > span { display: flex; align-items: center; gap: 5px; color: #32383d; font: 700 5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; }
.vd-report-cover-copy > span img { width: 14px; height: 14px; }
.vd-report-cover-copy strong { margin-top: 10%; font: 520 clamp(12px, 1.4vw, 19px)/1.02 'Geist', system-ui, sans-serif; letter-spacing: -.045em; }
.vd-report-cover-copy small { position: absolute; left: 9%; right: 9%; bottom: 5%; color: #4d5358; font-size: 5px; }
.vd-report-form { top: 23px; width: 38%; border-radius: 6px; }
.vd-preview-page:first-child { position: relative; padding: 0; overflow: hidden; background: #efeee8; }
.vd-preview-cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vd-preview-cover-copy { position: absolute; inset: 0; padding: 10% 9%; }
.vd-preview-cover-copy p { margin: 0; display: flex; align-items: center; gap: 8px; color: #353a3f; font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.vd-preview-cover-copy p img { width: 28px; height: 28px; }
.vd-preview-cover-copy h3 { margin-top: 11%; font-family: 'Geist', system-ui, sans-serif; font-size: 38px; font-weight: 500; }
.vd-preview-cover-copy small { position: absolute; left: 9%; bottom: 5%; color: #5c6268; font: 600 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 900px) {
  .vd-query-demo { height: 520px; }
  .vd-query-shell { display: block; overflow-y: auto; }
  .vd-query-intake, .vd-query-compute, .vd-query-response { min-height: 430px; border-right: 0; border-bottom: 1px solid var(--vd-line); }
  .vd-query-heading strong { margin-top: 30px; font-size: 30px; }
  .vd-query-compute > img { min-height: 245px; }
  .vd-query-response { min-height: 360px; }
  .vd-paper-stack { left: 5%; width: 51%; }
  .vd-report-form { width: 41%; }
}
@media (max-width: 420px) {
  .vd-query-demo { height: 500px; }
  .vd-query-intake, .vd-query-compute { min-height: 455px; }
  .vd-query-response { min-height: 350px; }
  .vd-query-heading strong { font-size: 28px; }
  .vd-query-form textarea { min-height: 88px; }
  .vd-paper-stack { top: 20px; left: 7%; width: 49%; height: 58%; }
  .vd-report-form { top: 20px; right: 10px; width: 43%; }
  .vd-report-cover-copy strong { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-vedika-motion="full"]) .vd-paper-front,
  html:not([data-vedika-motion="full"]) .vd-response-content { animation: none !important; }
}


.vd-demo *,
.vd-report-modal * { box-sizing: border-box; }
.vd-demo [hidden],
.vd-report-modal[hidden],
.vd-report-modal [hidden] { display: none !important; }
.vd-demo button,
.vd-demo textarea,
.vd-demo select,
.vd-demo input,
.vd-report-modal button { font: inherit; }
.vd-demo button,
.vd-report-modal button { cursor: pointer; }
.vd-demo button:disabled,
.vd-report-modal button:disabled { cursor: default; opacity: 0.38; }
.vd-demo :is(button, textarea, select, input):focus-visible,
.vd-report-modal button:focus-visible,
.vd-report-dialog:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.vd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Recorded product tours, with the real interactive demo one click away */
.vd-showcase {
  position: absolute;
  z-index: 20;
  inset: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #08080b;
}

.vd-showcase video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #08080b;
}

.vd-showcase-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4,4,6,.28), transparent 22%, transparent 65%, rgba(4,4,6,.86));
}

.vd-showcase > header {
  position: absolute;
  top: 10px;
  left: 11px;
  right: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vd-showcase > header > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.72);
  font: 650 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}

.vd-showcase > header i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167,139,250,.58);
}

.vd-showcase [data-showcase-play] {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(8,8,11,.58);
  backdrop-filter: blur(8px);
  font-size: 9px;
}

.vd-showcase > footer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 10px;
}

.vd-showcase > footer > div { min-width: 0; }
.vd-showcase > footer strong,
.vd-showcase > footer span { display: block; }
.vd-showcase > footer strong { font-size: 12px; font-weight: 620; letter-spacing: -.015em; }
.vd-showcase > footer > div > span { margin-top: 4px; overflow: hidden; color: rgba(255,255,255,.58); font-size: 8px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }

.vd-showcase [data-showcase-try],
.vd-showcase-back {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 8px;
  color: #111;
  background: linear-gradient(#fff,#cbcbce);
  font-size: 8px;
  font-weight: 700;
}

.vd-showcase-back {
  position: absolute;
  z-index: 19;
  top: 7px;
  right: 7px;
  min-height: 26px;
  border-color: rgba(255,255,255,.25);
  color: #f0f0f2;
  background: rgba(10,10,13,.82);
  backdrop-filter: blur(7px);
}

.vd-voice-demo > .vd-showcase-back {
  bottom: auto;
  width: auto;
  height: auto;
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  white-space: nowrap;
}

.vd-windowbar {
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--vd-line);
  background: #101013;
}

.vd-windowbar > span {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #3b3b41;
}

.vd-windowbar code {
  min-width: 0;
  margin-left: 5px;
  overflow: hidden;
  color: #9a9aa2;
  font: 500 8px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vd-windowbar b {
  margin-left: auto;
  flex: none;
  color: #b7b7bd;
  font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.09em;
}

.vd-primary {
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  color: #101012;
  background: linear-gradient(180deg, #fff, #c9c9cd);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 9px !important;
  font-weight: 650 !important;
  transition: transform 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.vd-primary:hover:not(:disabled) { transform: translateY(-1px); }
.vd-primary:active:not(:disabled) { transform: translateY(0); }

.vd-text-button {
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid var(--vd-line);
  border-radius: 8px;
  color: var(--vd-muted);
  background: transparent;
  font-size: 9px !important;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}

.vd-text-button:hover { color: var(--vd-text); border-color: var(--vd-line-strong); }

/* Query demo */
.vd-query-shell {
  height: calc(100% - 40px);
  padding: 15px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #36363c transparent;
}

.vd-field-label {
  margin: 0 0 7px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--vd-muted);
  font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vd-field-label span { color: var(--vd-dim); font-weight: 500; }

.vd-query-form textarea {
  width: 100%;
  min-height: 56px;
  resize: none;
  padding: 10px 11px;
  border: 1px solid var(--vd-line);
  border-radius: 9px;
  color: var(--vd-text);
  background: #0d0d10;
  font-size: 11px;
  line-height: 1.45;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

.vd-query-form textarea:hover { border-color: var(--vd-line-strong); }
.vd-query-form textarea:focus { border-color: rgba(255, 255, 255, 0.38); background: #101013; }

.vd-query-context {
  margin-top: 7px;
  display: grid;
  grid-template-columns: 1fr .82fr .9fr;
  gap: 5px;
}

.vd-query-context label { min-width: 0; }
.vd-query-context span {
  display: block;
  margin: 0 0 4px;
  color: #707078;
  font: 600 6px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vd-query-context input {
  width: 100%;
  height: 26px;
  min-width: 0;
  padding: 0 6px;
  border: 1px solid var(--vd-line);
  border-radius: 6px;
  color: #c9c9cf;
  background: #0d0d10;
  font: 500 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.vd-query-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.vd-query-actions .vd-query-run { flex: 1; }

.vd-presets {
  margin-top: 8px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.vd-presets::-webkit-scrollbar { display: none; }
.vd-presets button {
  min-height: 24px;
  padding: 0 8px;
  flex: none;
  border: 1px solid var(--vd-line);
  border-radius: 99px;
  color: #9c9ca4;
  background: transparent;
  font-size: 8px;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}

.vd-presets button:hover { color: #fff; border-color: var(--vd-line-strong); }

.vd-query-stages {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 9px;
  list-style: none;
}

.vd-query-stages li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #66666d;
  font: 500 7px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  transition: color 160ms ease-out;
}

.vd-query-stages i {
  width: 6px;
  height: 6px;
  flex: none;
  border: 1px solid #56565d;
  border-radius: 50%;
  transition: border-color 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out;
}

.vd-query-stages li.is-active { color: #f0f0f2; }
.vd-query-stages li.is-active i { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.vd-query-stages li.is-done { color: #9fbaa6; }
.vd-query-stages li.is-done i { border-color: var(--vd-ok); background: var(--vd-ok); }

.vd-demo .vd-demo-status {
  margin: 10px 0 0;
  color: var(--vd-dim);
  font: 500 7px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.vd-query-response {
  margin-top: 10px;
  border: 1px solid var(--vd-line);
  border-radius: 9px;
  overflow: hidden;
  background: #0d0d10;
}

.vd-response-head {
  min-height: 31px;
  padding: 5px 8px 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--vd-line);
}

.vd-response-head > span {
  color: var(--vd-ok);
  font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.vd-response-head > span i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--vd-ok);
}

.vd-response-head > div { display: flex; gap: 3px; }
.vd-response-head button {
  min-height: 20px;
  padding: 0 5px;
  border: 0;
  color: #8b8b93;
  background: transparent;
  font-size: 7px;
  transition: color 160ms ease-out;
}

.vd-response-head button:hover { color: #fff; }
.vd-query-response pre {
  max-height: 145px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  color: #c9c9cd;
  background: transparent;
  font: 7px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: #39393f transparent;
}

/* Voice demo */
.vd-voice-demo { background: #08080a; }
.vd-voice-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.55) brightness(0.64) contrast(1.08);
  transform: scale(1.02);
}

.vd-voice-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 4, 6, 0.1) 16%, rgba(5, 5, 7, 0.28) 44%, rgba(5, 5, 7, 0.98) 86%);
}

.vd-voice-topline {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  right: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

.vd-voice-status {
  min-height: 23px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  color: #fff;
  background: rgba(8, 8, 10, 0.42);
  backdrop-filter: blur(8px);
}

.vd-voice-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #aaaab0;
  transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
}

.vd-voice-demo.is-playing .vd-voice-status i {
  background: var(--vd-ok);
  box-shadow: 0 0 9px rgba(167, 139, 250, 0.78);
}

.vd-voice-panel {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
}

.vd-voice-personas { margin:0 0 9px; display:flex; gap:6px; }
.vd-voice-personas button { min-height:27px; padding:0 9px; border:1px solid rgba(255,255,255,.18); border-radius:999px; color:rgba(255,255,255,.62); background:rgba(8,8,10,.62); font:600 8px/1 'Geist',sans-serif; cursor:pointer; transition:border-color 160ms ease-out,color 160ms ease-out,background-color 160ms ease-out; }
.vd-voice-personas button:hover,.vd-voice-personas button:focus-visible { color:#fff; border-color:rgba(255,255,255,.48); }
.vd-voice-personas button[aria-pressed="true"] { color:#0b0b0d; border-color:#f1f1f3; background:#f1f1f3; }

.vd-demo .vd-voice-kicker {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.5);
  font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}

.vd-transcript {
  min-height: 48px;
  color: rgba(255, 255, 255, 0.39);
  font-size: 11px;
  line-height: 1.45;
}

.vd-transcript span { transition: color 160ms ease-out; }
.vd-transcript span::after { content: ' '; }
.vd-transcript span.is-current { color: #fff; }

.vd-wave {
  height: 25px;
  margin: 10px 0 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.vd-wave i {
  width: 2px;
  height: var(--vd-wave);
  flex: 1;
  max-width: 3px;
  border-radius: 2px;
  opacity: 0.26;
  background: #fff;
  transform: scaleY(0.58);
  transform-origin: center;
}

.vd-voice-demo.is-playing .vd-wave i {
  animation: vd-voice-wave 560ms ease-in-out infinite alternate;
  animation-delay: var(--vd-delay);
  opacity: 0.82;
}

@keyframes vd-voice-wave { to { transform: scaleY(1); opacity: 1; } }

.vd-voice-controls {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.vd-play {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #111;
  background: linear-gradient(180deg, #fff, #c9c9cd);
  font-size: 9px;
}

.vd-play span { display: block; transform: translateX(1px); }
.vd-scrubber-label { min-width: 0; display: block; }
.vd-scrubber {
  width: 100%;
  height: 3px;
  display: block;
  margin: 0;
  accent-color: #fff;
  cursor: pointer;
}

.vd-time {
  min-width: 59px;
  color: #b9b9bf;
  font: 500 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: right;
}

.vd-demo .vd-audio-note {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font: 500 7px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.vd-audio { display: none; }

/* Report demo */
.vd-report-shell {
  position: relative;
  height: calc(100% - 40px);
  padding: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 28% 30%, #222228, #0b0b0d 68%);
}

.vd-paper-stack {
  position: absolute;
  top: 15px;
  left: 17px;
  width: 48%;
  height: 58%;
}

.vd-paper {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(15, 15, 18, 0.15);
  color: #171719;
  background: #f0eee9;
  box-shadow: 0 17px 35px rgba(0, 0, 0, 0.42);
}

.vd-paper-back { transform: translate(12px, 8px) rotate(5deg); opacity: 0.55; }
.vd-paper-front { padding: 12px; transform: rotate(-4deg); }
.vd-paper-front > span {
  color: #56565d;
  font: 650 5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.09em;
}

.vd-paper-front strong {
  display: block;
  margin-top: 7px;
  font: 500 12px/1.12 Georgia, serif;
}

.vd-paper-front small {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: #77777d;
  font: 600 5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  letter-spacing: 0.06em;
}

.vd-chart-wheel {
  position: relative;
  width: 66px;
  height: 66px;
  margin: 11px auto 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.58;
  background: repeating-conic-gradient(from 0deg, transparent 0 29deg, currentColor 30deg 31deg);
}

.vd-chart-wheel::after {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.vd-report-form {
  position: absolute;
  z-index: 2;
  top: 21px;
  right: 14px;
  width: 42%;
  padding: 10px;
  border: 1px solid var(--vd-line);
  border-radius: 10px;
  background: rgba(14, 14, 17, 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.vd-report-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--vd-muted);
  font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vd-report-form select {
  width: 100%;
  height: 27px;
  margin-top: 4px;
  padding: 0 6px;
  border: 1px solid var(--vd-line);
  border-radius: 6px;
  color: var(--vd-text);
  background: #121216;
  font-size: 7px;
}

.vd-report-form .vd-primary { width: 100%; margin-top: 1px; }
.vd-report-progress {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  bottom: 53px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.vd-report-progress i {
  display: block;
  width: 28%;
  height: 100%;
  background: #fff;
  transition: width 340ms ease-out;
}

.vd-report-progress.is-midway i { width: 66%; }
.vd-report-progress.is-complete i { width: 100%; }

.vd-report-result {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: 14px;
  bottom: 39px;
  min-height: 72px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--vd-line-strong);
  border-radius: 10px;
  background: rgba(12, 12, 15, 0.95);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.54);
}

.vd-report-result > div { min-width: 0; }
.vd-report-result span {
  display: block;
  color: var(--vd-ok);
  font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.vd-report-result span i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--vd-ok);
}

.vd-report-result code {
  max-width: 100%;
  display: block;
  margin: 6px 0 4px;
  overflow: hidden;
  color: #fff;
  font: 500 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vd-report-result small {
  display: block;
  color: var(--vd-dim);
  font: 500 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.vd-report-shell > .vd-demo-status {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 13px;
  margin: 0;
}

/* Report preview dialog */
body.vd-modal-open { overflow: hidden; }
.vd-report-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(4, 4, 5, 0.82);
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  color: inherit;
}
.vd-report-modal:not([open]) { display:none; }
.vd-report-modal::backdrop { background:rgba(4,4,5,.82); backdrop-filter:blur(12px); }

.vd-report-dialog {
  width: min(870px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  color: #f2f2f3;
  background: #111114;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72);
}

.vd-report-dialog > header,
.vd-report-dialog > footer {
  min-height: 68px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vd-report-dialog > footer { border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 0; }
.vd-report-dialog header span {
  color: #8e8e96;
  font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}

.vd-report-dialog header h2 {
  margin: 5px 0 0;
  font: 500 18px/1.1 'Geist', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.vd-report-dialog [data-report-close] {
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.vd-preview-stage {
  min-height: 0;
  padding: 28px;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #09090b;
}

.vd-preview-page {
  width: min(430px, 100%);
  min-height: 550px;
  padding: 52px 48px 40px;
  color: #19191b;
  background: #f1efe9;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.48);
  animation: vd-page-in 180ms ease-out both;
}

@keyframes vd-page-in { from { opacity: 0; transform: translateY(5px); } }
.vd-preview-page > p {
  margin: 0 0 24px;
  color: #66666b;
  font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.13em;
}

.vd-preview-page h3 {
  margin: 0;
  font: 500 34px/1.06 Georgia, serif;
  letter-spacing: -0.035em;
}

.vd-preview-page .vd-chart-wheel { width: 160px; height: 160px; margin-top: 70px; }
.vd-preview-page .vd-chart-wheel::after { inset: 38px; }
.vd-preview-page > small {
  display: block;
  margin-top: 65px;
  color: #747479;
  font: 500 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.vd-preview-page dl { margin: 58px 0 0; border-top: 1px solid #b9b7b2; }
.vd-preview-page dl > div { padding: 15px 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; border-bottom: 1px solid #c9c6c0; }
.vd-preview-page dt { color: #6a696d; font: 600 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.vd-preview-page dd { margin: 0; font: 500 13px/1.4 'Geist', system-ui, sans-serif; }
.vd-preview-page ul { margin: 52px 0 0; padding: 0; list-style: none; }
.vd-preview-page li { padding: 15px 0; border-bottom: 1px solid #c9c6c0; font: 500 13px/1.5 'Geist', system-ui, sans-serif; }

.vd-page-controls { display: flex; align-items: center; gap: 10px; }
.vd-page-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: transparent;
}

.vd-page-controls output { min-width: 38px; color: #a1a1a8; font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.vd-download {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 9px;
  color: #111;
  background: linear-gradient(180deg, #fff, #c9c9cd);
  font-size: 11px !important;
  font-weight: 650 !important;
}

@media (max-width: 1120px) and (min-width: 901px) {
  .vd-query-shell { padding: 11px; }
  .vd-query-form textarea { min-height: 48px; font-size: 10px; }
  .vd-presets { display: none; }
  .vd-query-stages { margin-top: 9px; }
  .vd-transcript { font-size: 10px; }
  .vd-wave { margin-top: 7px; }
  .vd-report-form { width: 45%; }
}

@media (max-width: 900px) {
  .vd-demo { height: 420px; min-height: 0; aspect-ratio: auto; }
  .vd-query-response pre { max-height: 190px; }
  .vd-voice-art { object-position: center 35%; }
  .vd-report-dialog { max-height: calc(100dvh - 24px); }
  .vd-report-modal { padding: 12px; }
  .vd-preview-stage { padding: 18px; }
  .vd-preview-page { min-height: 480px; padding: 40px 32px 30px; }
  .vd-preview-page h3 { font-size: 28px; }
  .vd-preview-page .vd-chart-wheel { width: 130px; height: 130px; margin-top: 52px; }
  .vd-preview-page .vd-chart-wheel::after { inset: 31px; }
}

@media (max-width: 420px) {
  .vd-demo { height: 390px; min-height: 0; }
  .vd-query-shell { padding: 12px; }
  .vd-query-stages { grid-template-columns: 1fr; }
  .vd-query-stages li:nth-child(2),
  .vd-query-stages li:nth-child(3) { display: none; }
  .vd-voice-topline > span:last-child { display: none; }
  .vd-voice-panel { left: 13px; right: 13px; bottom: 12px; }
  .vd-paper-stack { width: 46%; height: 55%; }
  .vd-report-form { width: 46%; right: 11px; }
  .vd-report-result { left: 11px; right: 11px; }
  .vd-report-dialog > header,
  .vd-report-dialog > footer { padding: 11px 13px; }
  .vd-report-dialog header h2 { font-size: 15px; }
  .vd-preview-page { min-height: 430px; padding: 34px 26px 26px; }
  .vd-preview-page h3 { font-size: 25px; }
  .vd-preview-page .vd-chart-wheel { width: 110px; height: 110px; margin-top: 42px; }
  .vd-preview-page .vd-chart-wheel::after { inset: 26px; }
  .vd-download { padding: 0 10px; font-size: 9px !important; }
  .vd-showcase > footer > div > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-vedika-motion="full"]) .vd-demo *,
  html:not([data-vedika-motion="full"]) .vd-report-modal * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
html:not([data-vedika-motion="full"]) .vd-wave i { animation: none !important; }
}
+
/* Late override keeps the product theatre above legacy demo rules. */
.vd-query-demo { min-height: 520px; }
.vd-query-shell { height: calc(100% - 40px); padding: 0; display: grid; grid-template-columns: minmax(220px, .82fr) minmax(280px, 1.16fr) minmax(250px, .9fr); overflow: hidden; background: #08090b; }
.vd-query-intake,.vd-query-compute,.vd-query-response { min-width: 0; min-height: 0; }
.vd-query-intake { padding: 22px 20px 18px; border-right: 1px solid var(--vd-line); overflow: auto; }
.vd-query-heading > span,.vd-query-compute-head { color: #a78bfa; font: 650 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .12em; }
.vd-query-heading strong { max-width: 270px; margin: 48px 0 13px; display: block; color: #f5f6f7; font-size: clamp(22px,2.4vw,36px); font-weight: 480; line-height: .98; letter-spacing: -.045em; }
.vd-query-heading p { max-width: 290px; margin: 0 0 24px; color: #878c93; font-size: 10px; line-height: 1.5; }
.vd-query-form textarea { min-height: 78px; border-radius: 4px; background: #0b0d10; font-size: 10px; }
.vd-query-context { grid-template-columns: 1.05fr .8fr 1fr; }
.vd-query-context input { height: 29px; border-radius: 3px; }
.vd-presets button { border-radius: 4px; }
.vd-query-actions { margin-top: 13px; }
.vd-query-compute { position: relative; display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; border-right: 1px solid var(--vd-line); overflow: hidden; background: #090b0e; }
.vd-query-compute::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 55px rgba(0,0,0,.42); }
.vd-query-compute-head { position: relative; z-index: 2; padding: 18px 18px 0; display: flex; justify-content: space-between; gap: 12px; }
.vd-query-compute-head b { color: #8f969e; font: inherit; }
.vd-query-compute > img { width: 100%; height: 100%; min-height: 180px; display: block; object-fit: cover; opacity: .9; transform: scale(1.015); transition: transform 600ms cubic-bezier(.2,.8,.2,1),opacity 180ms ease-out; }
.vd-query-demo:has(.vd-query-stages .is-active) .vd-query-compute > img { transform: scale(1.055); opacity: 1; }
.vd-query-stages { position: relative; z-index: 2; margin: 0 18px; display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--vd-line); background: rgba(8,9,11,.9); }
.vd-query-stages li { min-height: 34px; padding: 0 9px; display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; border-bottom: 1px solid var(--vd-line); color: #70757c; font-size: 7px; }
.vd-query-stages li:last-child { border-bottom: 0; }
.vd-query-stages li small { color: #555b62; font: 600 6px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; text-transform: uppercase; }
.vd-query-stages i { border-radius: 2px; }
.vd-query-stages li.is-active { color: #fff; background: rgba(167,139,250,.035); }
.vd-query-stages li.is-active i { border-color: #a78bfa; background: #a78bfa; box-shadow: 0 0 12px rgba(167,139,250,.55); }
.vd-query-stages li.is-done { color: #c8d2bc; }
.vd-query-compute > .vd-demo-status { position: relative; z-index: 2; min-height: 38px; margin: 0; padding: 9px 18px; }
.vd-query-response { margin: 0; display: flex; flex-direction: column; border: 0; border-radius: 0; background: #0a0b0d; }
.vd-response-head { min-height: 45px; padding-inline: 15px; }
.vd-response-head > span { color: #a78bfa; letter-spacing: .1em; }
.vd-response-empty { margin: auto 24px; }
.vd-response-empty b { display: block; color: #eceff2; font-size: 20px; font-weight: 480; letter-spacing: -.03em; }
.vd-response-empty p { max-width: 260px; margin: 10px 0 0; color: #737980; font-size: 10px; line-height: 1.55; }
.vd-response-content { padding: 28px 22px 18px; overflow: auto; animation: vd-response-in 180ms ease-out both; }
@keyframes vd-response-in { from { opacity: 0; transform: translateY(7px); } }
.vd-response-answer { margin: 0; color: #f0f2f4; font-size: clamp(16px,1.6vw,23px); font-weight: 460; line-height: 1.2; letter-spacing: -.035em; }
.vd-response-citations { margin: 22px 0 17px; display: flex; flex-wrap: wrap; gap: 6px; }
.vd-response-citations span { padding: 5px 7px; border: 1px solid var(--vd-line); border-radius: 3px; color: #aeb5bd; font: 600 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.vd-response-content details { border-top: 1px solid var(--vd-line); }
.vd-response-content summary { padding: 12px 0; color: #858b92; cursor: pointer; font: 600 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; text-transform: uppercase; }
.vd-query-response pre { max-height: 210px; padding: 12px 0 0; font-size: 7px; }
.vd-report-shell { background: #090a0c; }
.vd-paper-stack { top: 18px; left: 9%; width: 50%; height: 77%; perspective: 900px; }
.vd-paper { border-radius: 7px; overflow: hidden; transform-origin: 50% 88%; }
.vd-paper-back { transform: translate(17px,8px) rotate(3deg); opacity: .58; background: #bcbcb9; }
.vd-paper-back--two { transform: translate(31px,14px) rotate(7deg); opacity: .32; background: #969696; }
.vd-paper-front { padding: 0; transform: rotate(-2deg); animation: vd-report-breathe 7s ease-in-out infinite alternate; }
@keyframes vd-report-breathe { to { transform: translateY(-3px) rotate(-1deg); } }
.vd-report-cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vd-report-cover-copy { position: absolute; inset: 0; padding: 10% 9%; color: #13171a; }
.vd-report-cover-copy > span { display: flex; align-items: center; gap: 5px; color: #32383d; font: 700 5px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .11em; }
.vd-report-cover-copy > span img { width: 14px; height: 14px; }
.vd-report-cover-copy strong { margin-top: 10%; font: 520 clamp(12px,1.4vw,19px)/1.02 'Geist',system-ui,sans-serif; letter-spacing: -.045em; }
.vd-report-cover-copy small { position: absolute; left: 9%; right: 9%; bottom: 5%; color: #4d5358; font-size: 5px; }
.vd-report-form { top: 23px; width: 38%; border-radius: 6px; }
.vd-preview-page:first-child { position: relative; padding: 0; overflow: hidden; background: #efeee8; }
.vd-preview-cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vd-preview-cover-copy { position: absolute; inset: 0; padding: 10% 9%; }
.vd-preview-cover-copy p { margin: 0; display: flex; align-items: center; gap: 8px; color: #353a3f; font: 700 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .12em; }
.vd-preview-cover-copy p img { width: 28px; height: 28px; }
.vd-preview-cover-copy h3 { margin-top: 11%; font-family: 'Geist',system-ui,sans-serif; font-size: 38px; font-weight: 500; }
.vd-preview-cover-copy small { position: absolute; left: 9%; bottom: 5%; color: #5c6268; font: 600 8px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; }
@media (max-width:900px) { .vd-query-demo{height:520px}.vd-query-shell{display:block;overflow-y:auto}.vd-query-intake,.vd-query-compute,.vd-query-response{min-height:430px;border-right:0;border-bottom:1px solid var(--vd-line)}.vd-query-heading strong{margin-top:30px;font-size:30px}.vd-query-compute>img{min-height:245px}.vd-query-response{min-height:360px}.vd-paper-stack{left:5%;width:51%}.vd-report-form{width:41%} }
@media (max-width:420px) { .vd-query-demo{height:500px}.vd-query-intake,.vd-query-compute{min-height:455px}.vd-query-response{min-height:350px}.vd-query-heading strong{font-size:28px}.vd-query-form textarea{min-height:88px}.vd-paper-stack{top:20px;left:7%;width:49%;height:58%}.vd-report-form{top:20px;right:10px;width:43%}.vd-report-cover-copy strong{font-size:10px} }
@media (prefers-reduced-motion:reduce) { html:not([data-vedika-motion="full"]) .vd-paper-front,html:not([data-vedika-motion="full"]) .vd-response-content{animation:none!important} }

.vd-demo[data-demo-mode="try"] {
  position: fixed !important;
  z-index: 10020 !important;
  inset: max(18px, 4dvh) max(18px, 3vw) !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 0 0 100vmax rgba(3,4,6,.88), 0 28px 90px rgba(0,0,0,.65) !important;
}
body.vd-demo-open { overflow: hidden; }
.vd-demo[data-demo-mode="try"] .vd-showcase-back { top: 9px; right: 10px; z-index: 40; }
@media (max-width: 720px) {
  .vd-demo[data-demo-mode="try"] { inset: 8px !important; border-radius: 12px !important; }
}
