.editor-layout {
    display: flex; gap: 20px; flex-wrap: wrap; 
    justify-content: center; flex-direction: row-reverse;
    padding: 10px;
}

.picker-sidebar {
    flex: 0 0 230px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}

.pixel-cell {
    width: 20px !important; 
    height: 20px !important;
    cursor: crosshair;
    background-color: #000;
    box-sizing: border-box;
}

.editor-grid-surface {
    display: grid !important;
    gap: 1px;
    background: #333;
    border: 1px solid #333;
    width: fit-content !important;
    margin: 0 auto;
}

.color-inputs {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.input-group input {
    width: 62px;
    background: #2b2b2b;
    border: 1px solid #444;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    font-size: 14px;
}

.input-group span {
    font-size: 12px;
    color: #888;
    font-weight: bold;
}

.preview-container-editor {
    background: #111; padding: 20px; border-radius: 4px;
    display: flex; justify-content: center; border: 1px solid #333;
    overflow: hidden;
}

#editorOutput {
    width: 100%; height: 145px; background: #1e1e1e; color: #ccc;
    border: 1px solid #333; padding: 10px; font-family: monospace;
    font-size: 12px; resize: none; border-radius: 4px;
}

@media (max-width: 800px) {
    .editor-layout {
        flex-direction: column;
    }
