/* Explain: Responsive workspace layout for editor and A4 preview */
.workspace-grid {
    display: grid;
    grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
    gap: 1rem;
    height: 100%;
    min-height: 0;
}

.sidebar-scroll {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.55) rgba(255, 255, 240, 0.08);
}

.preview-column {
    min-width: 0;
    height: 100%;
}

@media (max-width: 1023px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-scroll {
        max-height: 45vh;
    }
}
