/* StellarChat native-feel guard: stop WebView/browser selection junk on app chrome.
   Keep inputs/editables selectable because people still need to type, tragically. */

html,
body {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    overscroll-behavior: none;
}

body,
.app-shell,
.app-screen,
.auth-view,
.auth-panel,
.screen-header,
.chat-header,
.chat-thread,
.chats-view,
.conversations-list,
.conversation-card,
.groups-list,
.group-card,
.contacts-list,
.contact-card,
.messages-list,
.message-bubble,
.message-meta,
.message-options-sheet,
.attachment-menu,
.manage-group-sheet,
.call-overlay,
.bottom-nav,
.nav-item,
button,
[role="button"],
.primary-button,
.secondary-button,
.text-button,
.chat-header-action,
.composer-icon-button,
.menu-button,
.icon-button {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

button,
[role="button"],
a,
input,
textarea,
select,
label,
.conversation-card,
.group-card,
.contact-card,
.message-bubble,
.chat-header-action,
.composer-icon-button,
.nav-item {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

button,
[role="button"],
.chat-header-action,
.composer-icon-button,
.primary-button,
.secondary-button,
.text-button,
.nav-item,
.conversation-card,
.group-card,
.contact-card,
.attachment-menu button,
.message-options-sheet button {
    touch-action: manipulation;
}

input,
textarea,
select,
option,
[contenteditable="true"],
[contenteditable="plaintext-only"],
.allow-text-selection,
.can-select-text,
[data-allow-selection="true"] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

input,
textarea,
select,
[contenteditable="true"],
[contenteditable="plaintext-only"] {
    cursor: text;
}

img,
svg,
video,
canvas,
.profile-photo,
.conversation-avatar,
.chat-thread-avatar,
.group-avatar,
.contact-avatar,
.brand-mark {
    -webkit-user-drag: none;
    user-drag: none;
}
