html.light {
  --c-selected-bg: #90c9e8;
  --c-selected-subtree-bg: #e6f3fa;
}

html.dark {
  --c-selected-bg: #10374c;
  --c-selected-subtree-bg: #091f2a;
}

.meaningTree {
  margin-bottom: 10px;
  margin-top: 0px;
  padding-left: 0px;
}

.meaningTree ul {
  padding-left: 30px;
}

.meaningTree li {
  list-style: none;
}

.meaningTree .meaningContainer {
  padding: 2px 5px;
}

.meaningTree .selected > .meaningContainer {
  background: var(--c-selected-bg);
}

.meaningTree .selected ul {
  background: var(--c-selected-subtree-bg);
}

.meaningTree .id,
.meaningTree .type,
.meaningTree .internalRep,
.meaningTree .sourceIds,
.meaningTree .tagIds,
.meaningTree .relationIds {
  display: none;
}

.meaningTree .bc:not(:empty) {
  font-weight: bold;
  margin-right: 5px;
}

.meaningTree .typeName:not(:empty) {
  font-weight: bold;
  margin-right: 5px;
}

.meaningTree .html {
  font-size: 14px;
  margin-right: 10px;
}

.meaningTree .mention {
  border-bottom: 1px dotted var(--bs-gray-800);
  text-decoration: none;
}

.meaningTree .meaningTag {
  border-radius: 4px;
  color: #212529; /* in both themes */
  display: inline-block;
  font-size: 10px;
  margin-right: 5px;
  padding: 1px 4px;
  white-space: nowrap;
}

.meaningTree .sources span {
  background: #ffe0b2;
}

.meaningTree .tags span {
  background: #dbf7da;
}

.meaningTree .relation[data-type="1"] span {
  background: #b3ecf0;
}

.meaningTree .relation[data-type="2"] span {
  background: #f7dcda;
}

.meaningTree .relation[data-type="3"] span {
  background: #ffebff;
}

.meaningTree .relation[data-type="4"] span {
  background: #ffccff;
}

.textcomplete-dropdown {
  max-height: 155px;
  overflow-y: scroll;
}

.textcomplete-item a {
  overflow: hidden;
  text-overflow: ellipsis;
  width: 500px;
}
