.tree-editor .tree-row {
  min-height: 48px;
  padding: 2px 8px 2px calc(8px + var(--tree-depth, 0) * 12px);
  gap: 0;
  grid-template-columns: 44px 44px minmax(0, 1fr) 44px;
  position: relative;
}
.tree-editor .tree-row[hidden] { display: none; }
.tree-editor .tree-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 4px;
  border: 0;
  background: transparent;
}
.tree-editor .drag-handle,
.tree-editor .tree-toggle,
.tree-editor .tree-actions summary {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tree-editor .tree-toggle:disabled { opacity: 0.25; cursor: default; }
.tree-editor .tree-actions summary { list-style: none; font-size: 24px; }
.tree-editor .tree-actions summary::-webkit-details-marker { display: none; }
.tree-editor .tree-actions[open] { z-index: 20; }
.tree-editor .tree-actions-panel {
  position: absolute;
  right: 8px;
  top: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  background: var(--color-surface, white);
  border: 1px solid var(--color-border-soft, #ddd);
  border-radius: 8px;
  box-shadow: 0 4px 16px #0002;
}
.tree-editor .tree-actions-panel button { min-height: 44px; white-space: normal; }
.tree-editor :is(button, summary):focus-visible { outline: 2px solid var(--color-accent, #2563eb); outline-offset: -2px; }
