.etc-customizer-launch {
    margin: 1.5em 0;
}

.etc-open-customizer,
.etc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9em 1.25em;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
}

.etc-customizer-panel {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999999;
}

.etc-customizer-panel.active {
    display: block;
}

.etc-customizer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.etc-customizer-content {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(100%, 1000px);
    max-width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    background: #ffffff;
    overflow: auto;
}

.etc-customizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
}

.etc-close-customizer {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

.etc-customizer-body {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    height: 100%;
    min-height: 0;
}

.etc-customizer-preview,
.etc-customizer-controls {
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 100%;
}

.etc-customizer-preview {
    display: grid;
    gap: 1rem;
}

.etc-text-preview {
    display: grid;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 16px;
}

.etc-text-preview h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

#etc-texture-preview-canvas {
    width: 100%;
    height: auto;
    min-height: 200px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px #d8d8d8;
}

.etc-preview-canvas {
    width: 100%;
    min-height: 480px;
    background: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 16px;
    position: relative;
}

.etc-preview-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.etc-text-preview {
    margin-top: 1rem;
}

.etc-text-preview h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #333;
}

#etc-texture-preview-canvas {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #fff;
}

.etc-view-button {
    flex: 1 1 30%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 999px;
}

.etc-step {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.etc-step h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.etc-field {
    width: 100%;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.full-width {
    width: 100%;
}

.etc-layer-list {
    display: grid;
    gap: 0.75rem;
}

.etc-layer-item {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 0.85rem;
}

.etc-layer-item button {
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .etc-customizer-body {
        grid-template-columns: 1fr;
    }

    .etc-customizer-preview {
        order: 2;
    }
}
