/* Permite seleccionar y copiar texto en el panel */
html.panel-guard-active,
html.panel-guard-active body {
    -webkit-user-select: text;
    user-select: text;
}

html.panel-guard-active input,
html.panel-guard-active textarea,
html.panel-guard-active select,
html.panel-guard-active [contenteditable="true"],
html.panel-guard-active .CodeMirror,
html.panel-guard-active .cm-editor,
html.panel-guard-active .cm-content,
html.panel-guard-active td,
html.panel-guard-active th,
html.panel-guard-active .copyable,
html.panel-guard-active code,
html.panel-guard-active pre {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

html.panel-guard-active img,
html.panel-guard-active video {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

html.panel-guard-blocked body {
    overflow: hidden;
}

html.panel-guard-blocked body > :not(.panel-guard-overlay):not(script):not(style) {
    filter: blur(10px) brightness(0.55);
    pointer-events: none;
    -webkit-user-select: none !important;
    user-select: none !important;
    transition: filter 0.35s ease;
}

html.panel-guard-mobile.panel-guard-blocked body > :not(.panel-guard-overlay):not(script):not(style) {
    filter: none;
    pointer-events: auto;
    -webkit-user-select: text !important;
    user-select: text !important;
}

.panel-guard-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 6, 10, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

html.panel-guard-blocked .panel-guard-overlay {
    display: flex;
}

.panel-guard-card {
    width: min(420px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(22, 24, 30, 0.98), rgba(12, 14, 18, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    padding: 28px 24px;
    text-align: center;
    color: #f3f4f6;
}

.panel-guard-card h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.panel-guard-card p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.92rem;
    line-height: 1.5;
}

.panel-guard-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .panel-guard-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .panel-guard-card h2 {
        font-size: 1.1rem;
    }

    .panel-guard-card p {
        font-size: 0.88rem;
    }
}
