.vv-intro {
  margin-block: clamp(1.5rem, 3.5vw, 2.75rem) .8rem;
}

.vv-intro h4 {
  margin: 0 0 .55rem;
  color: var(--heading);
  font: 400 clamp(1.55rem, 2.8vw, 2.45rem)/1.12 var(--serif);
  letter-spacing: -.04em;
}

.vv-intro p { max-width: 68ch; }

.vv-preview { min-inline-size: 0; contain: inline-size; }
.vv-mobile-note { margin-block-end: .65rem; color: var(--text); font-size: .8rem; }

.vv-workbench, .vv-dialog {
  --vv-accent: #7134e8;
  --vv-accent-strong: #5d22cb;
  --vv-heading: #182230;
  --vv-text: #344054;
  --vv-muted: #596579;
  --vv-line: #e4e7ec;
  --vv-control-line: #d0d5dd;
  --vv-paper: #fff;
  --vv-quiet: #f9fafb;
  --vv-tint: #f2ebff;
  --vv-inset: clamp(.8rem, 1.45cqi, 1.1rem);
  color: var(--vv-text);
  background: var(--vv-paper);
  font: .875rem/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vv-workbench {
  --vv-pane-header-size: 6.375rem;
  --vv-controls-clearance: 7rem;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-inline-size: 58rem;
  block-size: 44rem;
  border: 1px solid var(--vv-line);
  border-radius: .7rem;
  box-shadow: 0 .35rem 1rem rgb(39 29 55 / 6%);
  container: vv-workbench / inline-size;
  zoom: var(--vv-scale, 1);
}

.vv-workbench:has(.vv-notice:not([hidden])) { --vv-controls-clearance: 15rem; }

:where(.vv-workbench, .vv-dialog) :focus-visible {
  outline: 2px solid var(--vv-accent);
  outline-offset: 2px;
}

.vv-topbar {
  display: grid;
  gap: .75rem;
  padding: var(--vv-inset);
  border-block-end: 1px solid var(--vv-line);
}

.vv-breadcrumb, .vv-pane-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: .18rem .42rem;
  align-items: center;
  color: var(--vv-muted);
  font-size: .8rem;
  line-height: 1.4;
}

.vv-home { display: inline-flex; flex: none; inline-size: 1em; block-size: 1em; }
.vv-home svg { inline-size: 100%; block-size: 100%; }
.vv-crumb-separator { color: #778495; }
:is(.vv-breadcrumb, .vv-pane-crumb) :is(.vv-current, strong) { color: var(--vv-heading); font-weight: 670; }
.vv-pane-header .vv-pane-crumb { margin-block-end: .15rem; font-size: .72rem; }

.vv-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vv-steps li {
  display: grid;
  gap: .12rem;
  align-content: start;
  padding: .38rem .55rem .4rem;
  border-block-start: 2px solid var(--vv-line);
  border-radius: .2rem;
  color: var(--vv-muted);
  font-size: .77rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.vv-steps small { font-size: .72rem; }
.vv-steps .is-complete { border-color: #c4adef; color: var(--vv-accent-strong); }

.vv-steps [aria-current="step"] {
  border-color: var(--vv-accent);
  color: var(--vv-accent-strong);
  background: var(--vv-tint);
}

.vv-setup-screen {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.vv-setup-screen, .vv-results {
  grid-row: 2;
  min-block-size: 0;
  min-inline-size: 0;
}

.vv-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr) minmax(0, 1.04fr) minmax(0, .96fr);
  min-block-size: 0;
}

.vv-pane {
  min-inline-size: 0;
  min-block-size: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block-start: var(--vv-pane-header-size);
  scrollbar-color: #cbd2db transparent;
}

.vv-pane + .vv-pane { border-inline-start: 1px solid var(--vv-line); }

.vv-overview, .vv-task-pane { scroll-padding-block-end: var(--vv-controls-clearance); }
:is(.vv-overview, .vv-task-pane) .vv-pane-body { padding-block-end: var(--vv-controls-clearance); }

.vv-pane-header {
  position: sticky;
  z-index: 1;
  inset-block-start: 0;
  display: grid;
  gap: .2rem;
  align-content: center;
  min-block-size: var(--vv-pane-header-size);
  padding: .65rem var(--vv-inset);
  border-block-end: 1px solid var(--vv-line);
  background: var(--vv-quiet);
}

.vv-pane-header h5, .vv-dialog-title, .vv-results h5 {
  margin: 0;
  color: var(--vv-heading);
  font-size: .97rem;
  font-weight: 720;
  line-height: 1.35;
}

.vv-pane-header p {
  color: var(--vv-muted);
  font-size: .75rem;
  line-height: 1.35;
}

.vv-count {
  display: inline-block;
  min-inline-size: 1.25rem;
  margin-inline-start: .2rem;
  padding: .1rem .34rem;
  border-radius: .35rem;
  color: var(--vv-accent-strong);
  background: var(--vv-tint);
  font-size: .7rem;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  vertical-align: .1em;
  white-space: nowrap;
}

.vv-pane-body {
  isolation: isolate;
  display: grid;
  min-inline-size: 0;
  min-block-size: 0;
  gap: .85rem;
  align-content: start;
  padding: .8rem var(--vv-inset) var(--vv-inset);
  overflow-wrap: anywhere;
}

.vv-section {
  display: grid;
  gap: .38rem;
  min-inline-size: 0;
}

.vv-section + .vv-section { padding-block-start: .75rem; border-block-start: 1px solid var(--vv-line); }

.vv-section h6, .vv-activity h5, .vv-profile-section h5 {
  margin: 0;
  color: var(--vv-heading);
  font-size: .81rem;
  font-weight: 720;
  line-height: 1.35;
}

.vv-section p { color: var(--vv-muted); font-size: .77rem; line-height: 1.45; }

.vv-field, .vv-detail-field {
  display: grid;
  gap: .22rem;
  min-inline-size: 0;
  color: var(--vv-heading);
  font-size: .77rem;
  font-weight: 650;
}

:is(.vv-field, .vv-detail-field) :is(input, select, textarea) {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 2.75rem;
  padding: .34rem .48rem;
  border: 1px solid var(--vv-control-line);
  border-radius: .33rem;
  color: var(--vv-heading);
  background: var(--vv-paper);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

:is(.vv-field, .vv-detail-field) textarea { min-block-size: 4.1rem; resize: vertical; }
:is(.vv-field, .vv-detail-field) :disabled { opacity: .62; }

.vv-field :is(input, select, textarea) { min-block-size: 2.15rem; font-size: .82rem; }
.vv-field textarea { min-block-size: 4.1rem; }

.vv-age-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.vv-input-shell { position: relative; display: block; min-inline-size: 0; }

.vv-input-shell::before {
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  inset-inline-start: .58rem;
  inline-size: .38rem;
  block-size: .38rem;
  border-radius: 50%;
  background: #178451;
  box-shadow: 0 0 0 2px #e5f5ec;
  transform: translateY(-50%);
  pointer-events: none;
  content: "";
}

.vv-input-shell:has(textarea)::before { inset-block-start: .95rem; }
.vv-input-shell :is(input, select, textarea) { padding-inline-start: 1.38rem; }

.vv-input-shell[data-state="invalid"]::before {
  background: #d92d20;
  box-shadow: 0 0 0 2px #fee4e2;
}

.vv-input-shell[data-state="invalid"] :is(input, select, textarea) { border-color: #e16960; }

:is(.vv-section, .vv-detail-form) .vv-field-error {
  color: #b42318;
  font-size: .74rem;
  font-weight: 580;
  line-height: 1.4;
}

.vv-checkbox {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  color: var(--vv-heading);
  font-size: .79rem;
  font-weight: 570;
}

.vv-checkbox input {
  flex: none;
  inline-size: 1rem;
  block-size: 1rem;
  margin: .12em 0 0;
  accent-color: var(--vv-accent);
}

.vv-checklist {
  display: grid;
  gap: .26rem;
  margin: 0;
  padding-inline-start: 1.1rem;
  color: var(--vv-muted);
  font-size: .77rem;
}

.vv-checklist li::marker { color: var(--vv-accent-strong); font-weight: 650; }
.vv-checklist strong, .vv-checklist small { display: block; }
.vv-checklist strong { color: var(--vv-heading); }
.vv-checklist small { font-size: .72rem; }

.vv-roster, .vv-tasks, .vv-library {
  display: grid;
  gap: .34rem;
  min-inline-size: 0;
}

.vv-person {
  display: flex;
  min-inline-size: 0;
  min-block-size: 2.75rem;
  gap: .46rem;
  align-items: center;
  padding: .3rem .4rem;
  border: 1px solid transparent;
  border-radius: .36rem;
  color: var(--vv-heading);
  background: var(--vv-quiet);
  font-size: .79rem;
  font-weight: 640;
  text-align: start;
  cursor: pointer;
}

.vv-person:hover:not(:disabled) { border-color: #d9c9fa; background: var(--vv-tint); }
.vv-person:disabled { opacity: .62; cursor: default; }

.vv-avatar {
  display: inline-grid;
  flex: none;
  inline-size: 1.85rem;
  block-size: 1.85rem;
  place-items: center;
  border-radius: 50%;
  color: var(--vv-heading);
  background: #eadff9;
  background: color-mix(in srgb, var(--vv-avatar-color, #9971cf) 36%, white);
  font-size: .66rem;
  font-weight: 760;
  line-height: 1;
}

.vv-person-name { min-inline-size: 0; }
.vv-person-bookmark { margin-inline-start: auto; color: var(--vv-accent-strong); }

.vv-facts {
  display: grid;
  gap: .4rem;
  margin: 0;
  font-size: .77rem;
  line-height: 1.45;
}

.vv-facts dt { color: var(--vv-heading); font-weight: 650; }
.vv-facts dd { margin: 0; color: var(--vv-muted); }

.vv-task {
  min-inline-size: 0;
  border: 1px solid var(--vv-line);
  border-radius: .38rem;
  background: var(--vv-paper);
}

.vv-task summary {
  padding: .55rem .52rem;
  color: var(--vv-heading);
  background: var(--vv-quiet);
  font-size: .79rem;
  font-weight: 680;
  cursor: pointer;
}

.vv-task summary::marker { color: var(--vv-accent); }
.vv-task summary:focus-visible { outline-offset: -2px; }

.vv-activity {
  display: grid;
  gap: .3rem;
  padding: .55rem .55rem .58rem .66rem;
  border-block-start: 1px solid var(--vv-line);
  color: var(--vv-muted);
  font-size: .76rem;
  line-height: 1.4;
}

.vv-activity .vv-button { justify-self: start; }

.vv-library-item {
  display: flex;
  gap: .4rem;
  align-items: center;
  justify-content: space-between;
  padding: .38rem .45rem;
  border: 1px solid var(--vv-line);
  border-radius: .34rem;
  color: var(--vv-heading);
  font-size: .76rem;
  line-height: 1.35;
}

.vv-library-item .vv-button { flex: none; }

.vv-footer {
  position: absolute;
  z-index: 2;
  inset-block-end: 0;
  inset-inline: 0;
  display: grid;
  justify-items: center;
  padding-block-end: .72rem;
  pointer-events: none;
}

.vv-notice {
  position: absolute;
  inset-block-end: calc(100% + .28rem);
  inset-inline-start: 50%;
  display: grid;
  gap: .35rem;
  inline-size: min(43%, 25rem);
  padding: .55rem .75rem .62rem;
  border: 1px solid #e0d5f9;
  border-radius: .55rem;
  color: #473663;
  background: #f4efff;
  box-shadow: 0 .3rem .9rem rgb(39 29 55 / 12%);
  font-size: .78rem;
  line-height: 1.4;
  transform: translateX(-50%);
  pointer-events: auto;
}

.vv-notice-head, .vv-notice-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.vv-notice-head { justify-content: space-between; font-size: .84rem; }

.vv-notice-close {
  display: inline-grid;
  min-inline-size: 1.7rem;
  min-block-size: 1.7rem;
  place-items: center;
  padding: .1rem;
  border: 0;
  border-radius: .28rem;
  color: inherit;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.vv-notice-close:hover { background: #e9dffd; }
.vv-notice-actions { flex-wrap: wrap; }

.vv-notice-actions :is(button, a) {
  display: inline-flex;
  min-block-size: 1.7rem;
  align-items: center;
  padding: .12rem .25rem;
  border: 0;
  border-radius: .25rem;
  color: var(--vv-accent-strong);
  background: transparent;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .13em;
  cursor: pointer;
}

.vv-notice-actions :is(button, a):hover { background: #e9dffd; }

.vv-notice progress {
  inline-size: 100%;
  block-size: .4rem;
  margin-block: .16rem;
  accent-color: var(--vv-accent);
}

.vv-run-panel {
  display: flex;
  gap: .7rem;
  align-items: center;
  inline-size: min(50%, 38rem);
  padding: .65rem .72rem;
  border: 1px solid #d9dfe6;
  border-radius: .65rem;
  background: #f4f6f8;
  box-shadow: 0 .22rem .65rem rgb(24 34 48 / 12%), 0 .75rem 1.5rem rgb(24 34 48 / 9%);
  pointer-events: auto;
}

.vv-checks {
  display: grid;
  flex: 1;
  gap: .28rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vv-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .4rem;
  align-items: center;
  padding: .26rem .42rem;
  border: 1px solid #cce8d7;
  border-radius: .34rem;
  color: #174c34;
  background: #eaf7ef;
  font-size: .74rem;
  font-weight: 660;
  line-height: 1.3;
}

.vv-check small { font-size: .69rem; font-weight: 600; }

.vv-check-icon {
  display: grid;
  inline-size: 1.15rem;
  block-size: 1.15rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #20844f;
  font-size: .73rem;
  font-weight: 750;
  line-height: 1;
}

.vv-check[data-state="pending"] { border-color: #ebdab2; color: #694807; background: #fff6e0; }
.vv-check[data-state="pending"] .vv-check-icon { background: #a3630c; }

.vv-tag {
  padding: .17rem .4rem;
  border-radius: .3rem;
  color: var(--vv-accent-strong);
  background: var(--vv-tint);
  font-size: .71rem;
  font-weight: 670;
}

.vv-buttons, .vv-dialog-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

.vv-run-panel .vv-buttons { flex: none; }

.vv-button, .vv-close {
  display: inline-flex;
  min-block-size: 2.75rem;
  gap: .32rem;
  align-items: center;
  justify-content: center;
  padding: .3rem .6rem;
  border: 1px solid var(--vv-control-line);
  border-radius: .34rem;
  color: var(--vv-heading);
  background: var(--vv-paper);
  font-size: .78rem;
  font-weight: 660;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.vv-button:hover:not(:disabled), .vv-close:hover { border-color: #cbb7ef; background: var(--vv-tint); }
.vv-button:disabled { opacity: .62; cursor: default; }
.vv-button[aria-pressed="true"] { color: var(--vv-accent-strong); border-color: #c7acef; background: var(--vv-tint); }

.vv-button:is(.vv-primary, .vv-button-primary) {
  border-color: var(--vv-accent);
  color: #fff;
  background: var(--vv-accent);
}

.vv-button:is(.vv-primary, .vv-button-primary):hover:not(:disabled) {
  border-color: var(--vv-accent-strong);
  background: var(--vv-accent-strong);
}

.vv-run-panel .vv-primary { box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 2px 4px rgb(93 34 203 / 32%); }

.vv-results {
  --vv-results-inset: clamp(1rem, 2.2cqi, 1.75rem);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block-start: 4.25rem;
  scrollbar-color: #cbd2db transparent;
  border-end-start-radius: inherit;
  border-end-end-radius: inherit;
  background: var(--vv-quiet);
}

.vv-results:focus-visible { outline-offset: -3px; }

.vv-results-header {
  position: sticky;
  z-index: 1;
  inset-block-start: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .8rem var(--vv-results-inset);
  border-block-end: 1px solid var(--vv-line);
  background: var(--vv-paper);
}

.vv-results-header h5 { font-size: 1.14rem; }
.vv-results-header .vv-button { flex: 0 0 auto; }

.vv-results-content {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  gap: 1rem;
  align-items: start;
  padding: var(--vv-results-inset);
}

.vv-results-brief, .vv-results-questions {
  display: grid;
  gap: .65rem;
  min-inline-size: 0;
  padding: .95rem 1rem;
  border: 1px solid var(--vv-line);
  border-radius: .5rem;
  background: var(--vv-paper);
  overflow-wrap: anywhere;
}

.vv-results-content h6 {
  margin: 0;
  color: var(--vv-heading);
  font-size: .91rem;
  font-weight: 710;
  line-height: 1.35;
}

.vv-results-meta { color: var(--vv-muted); font-size: .79rem; }

.vv-results-note {
  grid-column: 1 / -1;
  padding: .65rem .8rem;
  border: 1px solid #e2d9f6;
  border-radius: .42rem;
  color: #4c3d67;
  background: #f6f1ff;
  font-size: .79rem;
  line-height: 1.45;
}

.vv-dialog-crumb { font-size: .73rem; }

.vv-results-list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vv-results-list > li {
  display: grid;
  gap: .21rem;
  padding: .55rem .68rem;
  border: 1px solid var(--vv-line);
  border-radius: .34rem;
  background: var(--vv-quiet);
}

.vv-results-list strong { color: var(--vv-accent-strong); font-size: .81rem; }

.vv-overlay {
  --vv-header-inset: calc(var(--header-height) + env(safe-area-inset-top));
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: rgb(28 20 45 / 44%);
}

.vv-overlay-view {
  position: sticky;
  inset-block-start: calc(var(--vv-header-inset) / var(--vv-scale, 1));
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  block-size: min(100%, calc((100dvh - var(--vv-header-inset)) / var(--vv-scale, 1)));
  padding: .75rem;
}

.vv-dialog {
  position: relative;
  inset: auto;
  inline-size: min(37rem, 100%);
  max-block-size: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--vv-line);
  border-radius: .7rem;
  box-shadow: 0 .8rem 3rem rgb(39 29 55 / 25%);
}

.vv-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }

.vv-dialog-header {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  align-items: flex-start;
  padding: .8rem 1rem;
  border-block-end: 1px solid var(--vv-line);
  background: var(--vv-quiet);
}

.vv-dialog-title { margin-block-start: .15rem; font-size: 1.06rem; }
.vv-close { flex: none; min-inline-size: 2.75rem; font-size: 1.22rem; }

.vv-dialog-body {
  display: grid;
  gap: .8rem;
  min-inline-size: 0;
  min-block-size: 0;
  padding: .9rem 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}

.vv-dialog-footer {
  justify-content: flex-end;
  padding: .65rem 1rem;
  border-block-start: 1px solid var(--vv-line);
  background: var(--vv-quiet);
}

.vv-dialog-footer:empty { display: none; }

.vv-profile-cover {
  display: flex;
  min-block-size: 4.5rem;
  align-items: flex-end;
  margin-block-end: .95rem;
  padding-inline: .8rem;
  border: 1px solid var(--vv-line);
  border-radius: .45rem;
  background: linear-gradient(110deg, #dceaff, #ecddf9 53%, #f6dfe9);
}

.vv-profile-avatar {
  inline-size: 3.25rem;
  block-size: 3.25rem;
  border: 3px solid var(--vv-paper);
  font-size: .98rem;
  transform: translateY(.95rem);
}

.vv-profile-role { color: var(--vv-muted); }
.vv-tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.vv-profile-section { display: grid; gap: .25rem; }
.vv-detail-form { display: grid; gap: .62rem; }

.vv-workbench :is(.vv-button, .vv-person) { min-block-size: 2rem; }

.vv-credit { margin-block-start: .55rem; color: var(--text); font-size: .76rem; }
.vv-credit a { text-underline-offset: .14em; }
.vv-credit a:hover { color: var(--accent); }

.vv-sketch figcaption { margin-block-start: .4rem; color: var(--text); font-size: .8rem; }
