.theme-builder .theme-layout-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.theme-builder .theme-layout-choice {
    cursor: pointer;
}

.theme-builder .theme-layout-choice input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-builder .theme-layout-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    width: 150px;
}

.theme-builder .theme-layout-choice input:checked + .theme-layout-card {
    border-color: #0b93ee;
    background: #eef7ff;
}

.theme-builder .theme-layout-preview {
    display: flex;
    width: 100%;
    height: 56px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
    box-sizing: border-box;
}

.theme-builder .theme-layout-preview-above {
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.theme-builder .theme-layout-preview-left {
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.theme-builder .theme-layout-preview-inside {
    align-items: stretch;
}

.theme-builder .theme-layout-preview .preview-label {
    font-size: 10px;
    color: #666;
    line-height: 1;
}

.theme-builder .theme-layout-preview .preview-input {
    display: block;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 3px;
    flex: 1 1 auto;
    min-height: 18px;
}

.theme-builder .theme-layout-preview-left .preview-input {
    height: 20px;
}

.theme-builder .theme-layout-preview-inside .preview-input {
    display: flex;
    align-items: flex-start;
    padding: 2px 4px;
    height: 100%;
}

.theme-builder .theme-layout-preview-inside .preview-label {
    color: #999;
}

.theme-builder .theme-layout-title {
    font-size: 12px;
    text-align: center;
}

.theme-builder .theme-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-builder .theme-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 92px;
    font-size: 11px;
    text-align: center;
}

.theme-builder .theme-swatch-color {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.15);
    margin-bottom: 4px;
}

.theme-builder .theme-css-output {
    max-height: 480px;
    overflow: auto;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: pre;
}
