.vc-index {
  display: block;
}

.vc-stage {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
  background: #fffdf9;
}

.vc-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.vc-filter-menu {
  position: relative;
}

.vc-filter-menu > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(154, 52, 18, 0.35);
  border-radius: 0.5rem;
  background: #fffaf4;
  padding: 0.45rem 0.8rem;
  font: inherit;
}

.vc-filter-menu > summary::-webkit-details-marker {
  display: none;
}

.vc-filter-body {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.35rem);
  left: 0;
  width: min(22rem, 88vw);
  max-height: min(70vh, 32rem);
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid rgba(154, 52, 18, 0.25);
  border-radius: 0.75rem;
  background: #fffdf9;
  box-shadow: 0 12px 32px rgba(63, 42, 34, 0.12);
}

.vc-filter-body label,
.vc-limit {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.45rem 0;
  font-size: 0.85rem;
}

.vc-filter-body select,
.vc-filter-body input,
.vc-limit select,
#vc-full {
  min-height: 2.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(154, 52, 18, 0.25);
  border-radius: 0.5rem;
  background: #fffaf4;
  font: inherit;
}

#vc-full {
  cursor: pointer;
  margin-left: auto;
}

.vc-veda-note,
.vc-legend,
.vc-edge-readout {
  color: #5c534c;
  font-size: 0.85rem;
  line-height: 1.4;
}

.vc-entity,
.vc-jump {
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vc-entity.is-active {
  border-color: #9a3412;
  background: #fff1e6;
}

.vc-entities {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.vc-entity {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-bottom: 1px solid rgba(154, 52, 18, 0.12);
  background: transparent;
}

.vc-graph {
  height: 72vh;
  min-height: 28rem;
  border: 1px solid rgba(154, 52, 18, 0.2);
  border-radius: 0.75rem;
  background: #fffdf9;
}

.vc-stage:fullscreen,
.vc-stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  padding: 0.75rem 1rem 1rem;
  box-sizing: border-box;
  background: #fffdf9;
}

.vc-stage:fullscreen .vc-graph,
.vc-stage:-webkit-full-screen .vc-graph {
  flex: 1;
  height: auto;
  min-height: 0;
}

.vc-cards,
.vc-chips,
.vc-thread,
.vc-path,
#vc-ledger {
  padding-left: 1.1rem;
}

.vc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding-left: 0;
}

.vc-jump {
  border: 1px solid rgba(154, 52, 18, 0.25);
  border-radius: 999px;
  background: #fffaf4;
  padding: 0.2rem 0.6rem;
}

.vc-folio section {
  margin-top: 1rem;
}

#vc-folio-witness {
  margin-top: 0.5rem;
  padding: 0.6rem;
  border-left: 3px solid #9a3412;
}

@media (max-width: 800px) {
  .vc-graph {
    height: 62vh;
    min-height: 22rem;
  }
  #vc-full {
    margin-left: 0;
  }
}
