/* Disable text selection site-wide (inputs remain selectable) */
html,
body,
body *:not(input):not(textarea):not(select):not([contenteditable="true"]) {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Prevent image drag / save via drag */
img,
a {
    -webkit-user-drag: none !important;
    user-drag: none !important;
}

/* Hide content when devtools overlay is active */
body.gh-devtools-blocked {
    overflow: hidden !important;
}

body.gh-devtools-blocked::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    background: #0f0f1a;
    pointer-events: all;
}

body.gh-devtools-blocked::after {
    content: 'Developer tools are disabled on this site.';
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #fff;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    text-align: center;
    pointer-events: all;
}
