.vv-lab-launchers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 670px);
  margin-inline: auto;
}

.vv-lab-launch {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  padding: 11px 15px 11px 11px;
  border: 1px solid #e1dae9;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 16px 28px -22px #30234265;
  color: #181324;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.vv-lab-launch:hover {
  transform: translateY(-3px);
  border-color: #b3a8d6;
  box-shadow: 0 14px 24px -16px #3d2a625c;
}

.vv-lab-launch-title { font: 600 14px/1.28 Inter, sans-serif; }
.vv-lab-launch kbd {
  padding: 5px 7px;
  border-radius: 6px;
  background: #f2eef8;
  color: #503a72;
  white-space: nowrap;
  font: 500 10px/1.2 Inter, sans-serif;
}

.vv-lab-launch-arrow { color: #594483; font-size: 16px; }
.vv-lab-launch-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 12px;
  background: #201630;
}

.vv-lab-launch-search { align-content: center; gap: 4px; }
.vv-lab-launch-search i { width: 23px; height: 4px; border-radius: 10px; background: #c3afea; }
.vv-lab-launch-search i:nth-child(2) { width: 18px; margin-right: 5px; opacity: .65; }
.vv-lab-launch-search i:nth-child(3) { width: 12px; margin-right: 11px; opacity: .42; }

.vv-lab-launch-radial i {
  width: 27px;
  height: 27px;
  border: 1px solid #d2baed;
  border-radius: 50%;
  background: repeating-conic-gradient(#b198de 0deg 4deg, transparent 4deg 59deg);
  mask-image: radial-gradient(transparent 28%, #000 30%);
}

.vv-demo-dialog.vv-demo-lab {
  width: min(96vw, 1060px);
  height: fit-content;
  max-height: min(94dvh, 870px);
  padding: clamp(15px, 2.35vw, 28px);
  overflow: auto;
  border: 1px solid var(--vv-line, #ded9e7);
  border-radius: clamp(18px, 2.2vw, 28px);
  background: var(--vv-surface, #fff);
  color: var(--vv-ink, #181428);
  box-shadow: 0 30px 100px #140e2766;
}

.vv-demo-lab::backdrop { background: #17102468; backdrop-filter: blur(5px); }

.vv-lab-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.vv-lab-header h2 {
  margin: 0;
  font: 550 clamp(27px, 4vw, 44px)/1 Outfit, sans-serif;
  letter-spacing: -.045em;
}

.vv-lab-eyebrow {
  margin: 0 0 7px;
  color: #675293;
  font: 650 10px/1.3 Inter, sans-serif;
  letter-spacing: .13em;
}

.vv-demo-lab .vv-demo-close {
  position: static;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid #ddd5e7;
  background: #fff;
  color: #241730;
}

.vv-demo-lab .vv-demo-close:hover { background: #ebe4f4; }

.vv-lab-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 15px;
  margin: 17px 0 13px;
}

.vv-demo-lab :is(.vv-demo-tabs, .vv-demo-hosts) {
  margin: 0;
  border: 1px solid #e3ddeb;
  background: #eee9f5;
}

.vv-demo-lab :is(.vv-demo-tabs, .vv-demo-hosts) button {
  padding: 8px 12px;
  color: #51425e;
  white-space: nowrap;
}

.vv-demo-lab .vv-demo-tabs [aria-pressed=true] {
  background: #231631;
  color: #fff;
  border-color: #231631;
}

.vv-demo-lab .vv-demo-hosts [aria-pressed=true] {
  background: #fff;
  color: #3d285e;
  border-color: #e2d9ee;
}

.vv-demo-lab .vv-demo-hosts b { font-weight: 700; }

.vv-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.vv-lab-workspace {
  overflow: hidden;
  border-radius: 19px;
  border: 1px solid var(--vv-line, #ded9e7);
  background: var(--vv-surface, #fff);
  color: var(--vv-ink, #181428);
}

.vv-lab-guide { padding: 17px 18px 0; }
.vv-lab-guide h3, .vv-lab-preview h3 {
  margin: 0;
  font: 550 clamp(20px, 2.4vw, 29px)/1.08 Outfit, sans-serif;
  letter-spacing: -.036em;
}

.vv-lab-guide > p { margin: 6px 0 0; color: #d4c9e4; font: 400 12px/1.5 Inter, sans-serif; }

.vv-lab-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.vv-lab-examples[hidden], .vv-lab-category[hidden] { display: none; }
.vv-lab-examples button {
  padding: 5px 10px;
  border: 1px solid #b799da54;
  border-radius: 99px;
  background: #ffffff0a;
  color: #ede2ff;
  font: 550 11px/1.3 Inter, sans-serif;
}
.vv-lab-examples button:hover { border-color: #c8b0ec; background: #4c3568; }

.vv-demo-lab .vv-demo-display {
  position: relative;
  height: clamp(266px, 38dvh, 390px);
  padding: 0 10px;
}
.vv-demo-lab[data-mode="radial"] .vv-demo-display {
  height: clamp(300px, 46dvh, 444px);
  background: radial-gradient(ellipse at center, #eee7fa, transparent 68%);
}
.vv-demo-lab[data-mode="radial"] .vv-demo-display::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(68%, 350px);
  aspect-ratio: 1;
  border: 1px dashed #ad97cb58;
  border-radius: 50%;
  box-shadow: 0 0 0 16px #b493ed0e, 0 0 0 32px #b493ed09;
  translate: -50% -50%;
  pointer-events: none;
}

.vv-demo-lab .vv-demo-display > [data-tool=search] { align-items: start; padding-top: 4px; }
.vv-demo-lab .vv-demo-display > [data-tool][hidden] { display: none; }

.vv-lab-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(13px, 2vw, 19px);
  border: 1px solid #e5dced;
  border-radius: 19px;
  background: linear-gradient(160deg, #f1eaf8, #fdfcff 74%);
  min-width: 0;
}

.vv-lab-visual {
  display: grid;
  grid-template-rows: 1fr auto;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  padding: 9px;
  gap: 7px;
  border-radius: 13px;
  background: #21162e;
  box-shadow: 0 12px 22px -16px #27163a80;
}

.vv-lab-canvas {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(#b69ce91d 1px, transparent 1px) 0 0 / 21px 21px,
    linear-gradient(90deg, #b69ce91d 1px, transparent 1px) 0 0 / 21px 21px,
    #2a1c3b;
}
.vv-lab-canvas i {
  position: absolute;
  width: 25%;
  aspect-ratio: 1;
  border: 1px solid #a990d1;
  border-radius: 14%;
  rotate: -15deg;
  transition: transform .3s ease, background .3s ease, rotate .3s ease;
}
.vv-lab-canvas i:nth-child(1) { transform: translate(-37%, 24%); background: #49286b; }
.vv-lab-canvas i:nth-child(2) { transform: translate(32%, -22%); background: #704797; }
.vv-lab-canvas i:nth-child(3) { background: linear-gradient(145deg, #b49bf1, #663ba7); }
.vv-lab-canvas span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ede0ff; box-shadow: 0 0 14px #d6adff; }
.vv-demo-lab[data-mode=radial] .vv-lab-canvas i { border-radius: 50%; rotate: 0deg; }
.vv-lab-preview[data-state=preview] .vv-lab-canvas i:nth-child(2) { transform: translate(57%, -27%); }
.vv-lab-preview[data-state=selected] .vv-lab-canvas i:nth-child(3) { transform: scale(1.16); background: linear-gradient(145deg, #d0b4f4, #8d64c3); }

.vv-lab-timeline {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 7px;
  border-radius: 7px;
  background: #170f23;
}
.vv-lab-timeline span { display: block; height: 5px; width: 63%; border-radius: 2px; background: #986fc2; }
.vv-lab-timeline span:nth-child(2) { width: 49%; margin-left: 14%; background: #685095; }
.vv-lab-timeline span:nth-child(3) { width: 36%; margin-left: 27%; background: #d1aee4; }
.vv-lab-timeline i { position: absolute; inset: 0 auto 0 38%; width: 1px; background: #f1eaff; transition: left .3s ease; }
.vv-lab-preview[data-state=preview] .vv-lab-timeline i { left: 56%; }
.vv-lab-preview[data-state=selected] .vv-lab-timeline i { left: 72%; }

.vv-lab-preview-copy > p:not(.vv-lab-eyebrow, .vv-lab-category) { margin: 8px 0 0; color: #554863; font: 400 13px/1.55 Inter, sans-serif; }
.vv-lab-category {
  width: fit-content;
  margin: 10px 0 0;
  padding: 4px 8px;
  border-radius: 7px;
  background: #ece3f5;
  color: #50376e;
  font: 600 10px/1.4 Inter, sans-serif;
}

.vv-lab-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 12px;
  color: #655773;
  font: 500 11px/1.4 Inter, sans-serif;
}

.vv-demo-lab button:focus-visible, .vv-lab-launch:focus-visible { outline: 2px solid #8a5de1; outline-offset: 3px; }

@media (max-width: 680px) {
  .vv-lab-launchers { grid-template-columns: minmax(0, 1fr); width: min(100%, 380px); }
  .vv-lab-grid { grid-template-columns: minmax(0, 1fr); }
  .vv-lab-controls { justify-content: start; }
  .vv-lab-preview {
    display: grid;
    grid-template-columns: minmax(70px, .64fr) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }
  .vv-lab-visual { padding: 5px; gap: 4px; }
  .vv-lab-timeline { padding: 4px; gap: 2px; }
  .vv-lab-timeline span { height: 3px; }
  .vv-demo-lab .vv-demo-display,
  .vv-demo-lab[data-mode=radial] .vv-demo-display { height: clamp(250px, 37dvh, 340px); }
}

@media (prefers-reduced-motion: reduce) {
  .vv-lab-launch, .vv-lab-canvas i, .vv-lab-timeline i { transition: none; }
  .vv-lab-launch:hover { transform: none; }
}

.vv-demo-lab .vv-lab-guide > p {
  color: var(--vv-muted, #585269);
}

.vv-demo-lab .vv-lab-examples button {
  border-color: var(--vv-line, #ded9e7);
  background: var(--vv-paper, #f6f5f9);
  color: var(--vv-accent-hover, #4424b6);
}

.vv-demo-lab .vv-lab-examples button:hover {
  border-color: var(--vv-accent, #5530d9);
  background: var(--vv-accent-soft, #ece5fc);
}

.vv-demo-lab .vv-demo-tabs [aria-pressed=true] {
  border-color: var(--vv-accent, #5530d9);
  background: var(--vv-accent, #5530d9);
}

.vv-demo-lab .vv-lab-visual {
  border: 1px solid var(--vv-line, #ded9e7);
  background: var(--vv-paper, #f6f5f9);
  box-shadow: var(--vv-shadow, 0 10px 20px #25194712);
}

.vv-demo-lab .vv-lab-canvas {
  background:
    linear-gradient(#71569e18 1px, transparent 1px) 0 0 / 21px 21px,
    linear-gradient(90deg, #71569e18 1px, transparent 1px) 0 0 / 21px 21px,
    var(--vv-tinted, #efebf6);
}

.vv-demo-lab .vv-lab-canvas i:nth-child(1) { background: #d0baf2; }
.vv-demo-lab .vv-lab-canvas i:nth-child(2) { background: #b396e2; }
.vv-demo-lab .vv-lab-timeline { background: #eae2f4; }
.vv-demo-lab .vv-lab-timeline i { background: #4f3474; }
.vv-demo-lab .vv-lab-timeline span:nth-child(3) { background: #8762b0; }
