/* UI chrome is clicked or dragged, not copied. Limit this to control surfaces:
   never disable selection on the workspace root, editors, help or console. */
#workspace :is(
    .rocodeAppHeader,
    .entryTopFloatingView,
    .entryPlaygroundTabWorkspace,
    .rocodeBlockToolbar,
    .entryCategoryListWorkspace,
    .propertyTab,
    .rocodeMainboardPanelHeader,
    .rocodeSensorPanelHeader,
    button,
    [role='button'],
    [role='tab']
) {
    -webkit-user-select: none;
    user-select: none;
}

/* Inputs inside those controls still support caret placement, select-all,
   mouse selection and copy/paste. Leave editor and output surfaces untouched. */
#workspace :is(input, textarea, [contenteditable=''], [contenteditable='true']) {
    -webkit-user-select: text;
    user-select: text;
}

/* A scene name also serves as a tab label. Exclude idle labels from page-wide
   selection; focusing one restores ordinary inline renaming and selection. */
#workspace .entrySceneFieldWorkspace:not(:focus) {
    -webkit-user-select: none;
    user-select: none;
}
