/* TeamAlpha URL preview + processing-state fix V54. */

/* V53 correctly sizes the processing card, but its desktop selector also
   forced display:flex while the inline state was display:none. Preserve the
   JS state machine: hidden means hidden; only an explicit processing display
   value reveals the panel. */
.app-container > .main-content .preview-column > #loading-panel {
    display: none !important;
}

.app-container > .main-content .preview-column > #loading-panel[style*="display: flex"],
.app-container > .main-content .preview-column > #loading-panel[style*="display:flex"] {
    display: flex !important;
}

/* A source-preview lookup/error must stay inside the editor canvas. */
.app-container > .main-content .preview-column > #preview-box {
    min-height: 0;
}

@media (min-width: 993px) {
    .app-container > .main-content .preview-column > #preview-box {
        flex: 1 1 auto !important;
        min-height: 0 !important;
    }
}

@media (max-width: 992px) {
    .app-container > .main-content .preview-column > #preview-box {
        flex: 0 0 auto !important;
        min-height: 0 !important;
    }
}

/* PREVIEW_STATE_FIX_V54 */
/* PROCESSING_PANEL_VISIBILITY_V54 */
/* URL_PREVIEW_FALLBACK_V54 */
/* CSS_FILE_END_V54 */
