/* The server marks every real tree read-only before ownership loads.
   Only GET /api/trees/:id owner:true may add is-tree-owner. */
body.is-shared-tree:not(.is-tree-owner) [data-act="styles"],
body.is-shared-tree:not(.is-tree-owner) [data-act="use-style"],
body.is-shared-tree:not(.is-tree-owner) [data-act="buy-paid"],
body.is-shared-tree:not(.is-tree-owner) [data-act="apply-paid"],
body.is-shared-tree:not(.is-tree-owner) [data-act="classic"],
body.is-shared-tree:not(.is-tree-owner) [data-act="product"],
body.is-shared-tree:not(.is-tree-owner) .tree-style-entry,
body.is-shared-tree:not(.is-tree-owner) .preview-ribbon,
body.is-shared-tree:not(.is-tree-owner) .theme-grid,
body.is-shared-tree:not(.is-tree-owner) .theme-shop,
body.is-shared-tree:not(.is-tree-owner) [data-style-shop],
body.is-shared-tree:not(.is-tree-owner) #shop,
body.is-shared-tree:not(.is-tree-owner) a[href*="#shop"],
body.is-shared-tree:not(.is-tree-owner) a[href*="#styles"],
body.is-shared-tree:not(.is-tree-owner) a[href*="preview="],
body.is-shared-tree:not(.is-tree-owner) a[href*="style="],
body.is-shared-tree:not(.is-tree-owner) a[href*="theme="],
body.is-shared-tree:not(.is-tree-owner) a[href="/shop"],
body.is-shared-tree:not(.is-tree-owner) a[href^="/shop/"] {
  display: none !important;
}
/* Public-tree loading must not reveal a temporary default scene. The app
   removes this attribute only after mounting/syncing the saved server theme. */
body.is-shared-tree #studio[data-tree-loading] #tree-canvas {
  visibility: hidden;
}
