/* Carteles y biblioteca comparten la paleta y los controles de los interactivos. */
#sign-preview {
    position: fixed;
    z-index: 4500;
    box-sizing: border-box;
    max-width: min(300px, calc(100vw - 16px));
    max-height: 45vh;
    padding: 12px 16px;
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    background: rgba(15, 15, 20, 0.96);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
    color: #eee;
    font-size: 15px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow-y: auto;
    pointer-events: none;
}
#library-menu .interactive-modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; }
#library-upload[hidden] { display: none; }
#library-upload { padding-top: 14px; margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.15); }
#library-file { font-size: 12px; }
#library-status { min-height: 20px; color: #aaa; text-align: center; font-size: 13px; }
#library-status.library-error { color: #ff9999; }
#library-files { max-height: 32vh; overflow-y: auto; }
.library-file { display: block; padding: 12px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; background: rgba(0,0,0,0.25); text-decoration: none; color: #eee; overflow-wrap: anywhere; }
.library-file:hover, .library-file:focus-visible { border-color: var(--accent-color); background: rgba(255,204,0,0.06); }
.library-file strong { display: block; font-weight: normal; margin-bottom: 4px; }
.library-file span { font-size: 12px; color: #aaa; }
.library-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; font-size: 13px; }
.library-pagination .btn-moderno { width: auto; padding: 8px 12px; font-size: 12px; }
#library-menu button:disabled { opacity: 0.4; cursor: default; }
