.df-xml-toggle-btn svg,
.df-xml-expand-btn svg,
.df-xml-download-btn svg,
.df-xml-popup-close svg,
.df-xml-popup-copy svg,
.df-xml-popup-download svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.df-xml-inline-hidden {
  display: none !important;
}

.df-xml-popup {
  position: fixed;
  z-index: 3200;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.26);
  resize: both;
  overflow: hidden;
  min-width: 420px;
  min-height: 260px;
}

.df-xml-popup.visible {
  display: flex;
}

.df-xml-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
  cursor: move;
  user-select: none;
}

.df-xml-popup-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.df-xml-popup-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.df-xml-popup-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
  padding: 0;
}

.df-xml-popup-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.df-xml-popup-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  background: #fff;
}

.df-xml-popup-code {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  resize: none;
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  color: #0f172a;
  font: 12px/1.55 Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
  white-space: pre;
  overflow: auto;
}

.df-xml-popup.df-xml-popup-selected {
  width: 560px;
  height: 360px;
}

.df-xml-popup.df-xml-popup-full {
  width: 860px;
  height: 560px;
}

.sf-snippet-head .df-xml-head-actions,
.xml-preview-actions .df-xml-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sf-snippet-head .df-xml-head-actions {
  margin-left: auto;
}

.xml-preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.df-xml-toggle-btn.is-collapsed svg {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.df-xml-toggle-btn svg {
  transition: transform 0.16s ease;
}

.df-xml-download-anchor {
  display: none;
}
