.emt-exhibitor {
    max-width: 1000px;
}

/* Gallery */
.emt-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.emt-gallery-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.emt-gallery-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.emt-gallery-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.emt-gallery-card .emt-no-preview {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
}

.emt-gallery-card-title {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 14px;
}

/* Customize step */
.emt-customize-header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.emt-customize-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.emt-preview-container {
    flex: 1;
    min-width: 0;
    background: #f0f0f1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    display: block;
    overflow: hidden;
}

.emt-preview-container [data-fabric="wrapper"] {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.emt-customize-controls {
    width: 260px;
    flex-shrink: 0;
}

.emt-edit-group {
    margin-bottom: 12px;
}

.emt-edit-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: #1d2327;
}

.emt-edit-group input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
}

.emt-merge-inserter {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 4px 6px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 12px;
    color: #646970;
    background: #f6f7f7;
    cursor: pointer;
}

.emt-merge-inserter:hover {
    border-color: #8c8f94;
}

.emt-variable-value {
    padding: 6px 8px;
    background: #f0f6fc;
    border: 1px solid #c3d8e8;
    border-radius: 4px;
    font-size: 13px;
    color: #1d2327;
}

.emt-download-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
}

.emt-download-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
}

.emt-download-format,
.emt-download-size {
    margin-bottom: 10px;
}

.emt-download-format label,
.emt-download-size label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.emt-download-format select,
.emt-download-size select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
}

/* Save section */
.emt-save-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.emt-save-status {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

.emt-save-ok {
    color: #00a32a;
}

.emt-save-error {
    color: #d63638;
}

/* Saved templates badge */
.emt-gallery-card {
    position: relative;
}

.emt-gallery-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2271b1;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
}

.emt-loading {
    color: #646970;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .emt-customize-layout {
        flex-direction: column;
    }

    .emt-customize-controls {
        width: 100%;
    }
}
