/* Theme presentation only; native editor buttons and Google translation remain authoritative. */
body.st-site .tox svg {
  stroke: none;
  stroke-width: 0;
}
/* DLE's upload button deliberately uses an outline SVG, unlike TinyMCE's filled icons. */
body.st-site .tox svg[fill="none"][stroke="currentColor"] {
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}
body.st-site .tox-tinymce {
  border: 1px solid var(--st-line);
  border-radius: 12px;
  box-shadow: 0 2px 9px #18332905;
}
body.st-site .tox .tox-editor-header {
  padding: 6px;
  background: var(--st-surface);
  border-bottom: 1px solid var(--st-line);
  box-shadow: none;
}
body.st-site .tox :is(.tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow, .tox-toolbar-overlord) {
  background: var(--st-surface);
}
body.st-site .tox .tox-toolbar__group {
  gap: 2px;
  padding: 2px 5px;
  border-color: var(--st-line);
}
body.st-site .tox .tox-tbtn {
  width: 32px;
  height: 34px;
  margin: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--st-ink);
}
body.st-site .tox .tox-tbtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
body.st-site .tox .tox-tbtn--select { width: auto; padding-inline: 7px; }
body.st-site .tox .tox-tbtn--bespoke { width: auto; }
body.st-site .tox .tox-tbtn:hover,
body.st-site .tox .tox-tbtn:focus,
body.st-site .tox .tox-tbtn--enabled {
  background: var(--st-soft);
  color: var(--st-accent);
}
body.st-site .tox .tox-tbtn--disabled { opacity: .45; }
body.st-site .tox .tox-statusbar {
  border-top: 1px solid var(--st-line);
  background: var(--st-surface);
  color: var(--st-muted);
}
/* Hide only Google's top banner. Keep the selector, attribution and other frames. */
body.st-site:not(.st-translate-native-controls):has(#google_translate_element) { top: 0 !important; }
body.st-site:not(.st-translate-native-controls) > .skiptranslate:has(> iframe.goog-te-banner-frame),
body.st-site:not(.st-translate-native-controls) > .skiptranslate:has(> iframe.VIpgJd-ZVi9od-ORHb-OEVmcd),
body.st-site:not(.st-translate-native-controls) iframe.goog-te-banner-frame,
body.st-site:not(.st-translate-native-controls) iframe.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
  visibility: hidden !important;
}
.st-side-language #google_translate_element { min-width: 0; margin-top: 12px; }
.st-side-language .goog-te-gadget { font: 11px/1.6 "Segoe UI", Arial, sans-serif; color: var(--st-muted); }
.st-side-language .goog-te-combo {
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 1px solid var(--st-line);
  border-radius: 7px;
  background: var(--st-surface);
  color: var(--st-ink);
  font: 12px/1.5 "Segoe UI", Arial, sans-serif;
}
.st-translate-original {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 10px;
  padding: 5px 10px;
  border: 1px solid var(--st-line);
  border-radius: 7px;
  background: var(--st-soft);
  color: var(--st-ink);
  font-size: 11px;
}
.st-translate-original:hover { border-color: var(--st-accent); }
@media (max-width: 540px) {
  body.st-site .tox .tox-editor-header { padding: 4px; }
  body.st-site .tox .tox-toolbar__group { padding-inline: 2px; }
  body.st-site .tox .tox-tbtn { min-width: 34px; height: 36px; }
}
