.resource-preview-root-tree-item__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ms-color-foreground);
  font-size: var(--ms-text-body);
  font-weight: 600;
}

.resource-preview-root-tree-item__description {
  margin: 4px 0 0;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-label);
  line-height: 20px;
}

.resource-preview-tree-node {
  padding: 0;
}

.resource-preview-tree-node__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
}

.resource-preview-tree-node__toggle {
  margin-top: 2px;
  flex-shrink: 0;
}

.resource-preview-tree-node__select {
  height: auto;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-start;
  padding: 0;
  text-align: left;
}

.resource-preview-tree-node__select .ms-button__content {
  display: block;
  width: 100%;
}

.resource-preview-tree-node__title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.resource-preview-tree-node__index,
.resource-preview-tree-node__identifier {
  flex-shrink: 0;
}

.resource-preview-tree-node__title {
  overflow: hidden;
  margin: 0;
  color: var(--ms-color-foreground);
  font-size: var(--ms-text-body);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-preview-tree-node__description {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-label);
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resource-preview-tree-node__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-caption);
}

.resource-preview-tree-node__meta-item + .resource-preview-tree-node__meta-item::before {
  content: "·";
  margin-right: 8px;
}

.resource-preview-tree-node__children {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--ms-color-border);
  padding: 8px 12px;
}

.resource-preview-tree-frame-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 32px;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-caption);
}

.resource-preview-tree-frame-row__dot {
  width: 6px;
  height: 6px;
}

.resource-preview-tree-frame-row__role {
  flex-shrink: 0;
  font-size: var(--ms-text-tiny);
}

.resource-preview-tree-frame-row__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-preview-tree-empty {
  margin: 0;
  padding: 4px 32px;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-caption);
}
