/* Embed público da árvore (iframe no site) */
html, body.page-embed {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: transparent;
}
body.page-embed {
  overflow: hidden;
}
.embed-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0.65rem;
  box-sizing: border-box;
  background: transparent;
  touch-action: none;
}
.embed-toolbar {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-bottom: 0.55rem;
  flex-shrink: 0;
}
.embed-toolbar .btn {
  min-width: 2.4rem;
}
.page-embed .tree-stage {
  flex: 1 1 auto;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  touch-action: none;
}
.page-embed .tree-empty p {
  margin: 0;
}

@media (max-width: 720px) {
  .embed-wrap {
    padding: 0.45rem;
  }
  .embed-toolbar {
    margin-bottom: 0.35rem;
  }
}
