.xml-drop-zone {
  border: 2px dashed #adb5bd;
  border-radius: .5rem;
  padding: 1.25rem;
  text-align: center;
  color: #6c757d;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.xml-drop-zone.drag-over {
  border-color: #0d6efd;
  background: #e7f1ff;
  color: #0d6efd;
}
.xml-stat {
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  padding: .75rem 1rem;
  background: #fff;
  height: 100%;
}
.xml-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.xml-stat-label {
  font-size: .85rem;
  color: #6c757d;
}
.xml-search {
  max-width: 390px;
}
.xml-tree-container {
  overflow: auto;
  max-height: 70vh;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  background: #fff;
}
.xml-tree {
  min-width: max-content;
  padding: .65rem .75rem;
  font-family: var(--bs-font-monospace);
  font-size: .9rem;
}
.xml-branch {
  margin-left: 1.15rem;
  border-left: 1px solid #dee2e6;
}
.xml-branch > summary {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .45rem;
  min-height: 1.8rem;
  padding: .15rem .35rem .15rem .6rem;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.xml-branch > summary::-webkit-details-marker {
  display: none;
}
.xml-branch > summary::before {
  content: "";
  position: absolute;
  left: -.34rem;
  top: .66rem;
  width: .38rem;
  border-top: 1px solid #adb5bd;
}
.xml-branch > summary::after {
  content: "";
  order: -1;
  width: 0;
  height: 0;
  border-top: .28rem solid transparent;
  border-bottom: .28rem solid transparent;
  border-left: .38rem solid #6c757d;
  margin-left: -.48rem;
  margin-right: .1rem;
  transform: translateY(.08rem);
  transition: transform .12s;
}
.xml-branch[open] > summary::after {
  transform: rotate(90deg) translateX(.08rem);
}
.xml-children {
  padding: .05rem 0 .2rem .15rem;
}
.xml-tag {
  color: #155e75;
  font-weight: 600;
}
.xml-item-count,
.xml-node-type {
  color: #6c757d;
  font-family: var(--bs-font-sans-serif);
  font-size: .78rem;
}
.xml-attributes {
  border-left: 1px solid #dee2e6;
  margin-left: 1.15rem;
  padding: .1rem 0 .15rem .6rem;
}
.xml-attribute {
  display: flex;
  gap: .4rem;
  align-items: baseline;
  min-height: 1.65rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.xml-attribute-name {
  color: #664d03;
  font-weight: 600;
}
.xml-equals {
  color: #6c757d;
}
.xml-attribute-value {
  color: #8a5a00;
}
.xml-leaf {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  min-height: 1.8rem;
  margin-left: 1.15rem;
  padding: .15rem .35rem .15rem .6rem;
  border-left: 1px solid #dee2e6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.xml-text-value {
  color: #198754;
}
.xml-comment {
  color: #6c757d;
  font-style: italic;
}
.xml-empty {
  margin: .1rem 0 .2rem 1.75rem;
  color: #6c757d;
  font-family: var(--bs-font-sans-serif);
  font-size: .8rem;
  font-style: italic;
}
.xml-node-match > summary,
.xml-node-match.xml-leaf,
.xml-attribute.xml-node-match {
  background: #fff3cd;
  border-radius: .2rem;
}
.xml-copy-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 1rem);
  background: #198754;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: .5rem;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 1080;
}
.xml-copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 575.98px) {
  .xml-search { max-width: none; flex-basis: 100%; }
  .xml-tree { font-size: .82rem; }
}