.layout-editor-panel {
    display: none;
}

.layout-editor-panel.is-active {
    display: block;
}

.layout-builder-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1rem;
}

.layout-builder-card,
.layout-builder-preview-card {
    border: 1px solid #d0d7de;
    border-radius: 0.75rem;
    background: #fff;
}

.layout-builder-card {
    padding: 1rem;
}

.layout-builder-group + .layout-builder-group {
    margin-top: 1rem;
}

.layout-builder-group-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e3a5f;
}

.layout-builder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.layout-builder-preview-card {
    padding: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.layout-builder-preview-stage {
    background: #dbe4ee;
    border-radius: 1rem;
    padding: 1rem;
}

.layout-builder-preview {
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid #d0d7de;
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.layout-builder-help {
    color: #475569;
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .layout-builder-shell {
        grid-template-columns: 1fr;
    }
}
