* {

.pin {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #64748b;
    border: 2px solid white;
    cursor: pointer;
}

.pin.active {
    background: lime;
}

.ladder-panel {
    height: 320px;
    background: #111827;
    border-top: 2px solid #334155;
    display: flex;
    flex-direction: column;
}

.ladder-toolbar {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #1f2937;
}

.ladder-toolbar button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: white;
}

.ladder-editor {
    flex: 1;
    overflow: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(8, 120px);
    gap: 10px;
}

.ladder-cell {
    height: 70px;
    background: #1e293b;
    border: 2px dashed #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
}

svg {
    width: 100%;
    height: 100%;
}

@media(max-width: 900px) {

    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 240px;
    }

    .workspace-wrapper {
        flex: 1;
    }

    .ladder-panel {
        height: 280px;
    }

    .ladder-editor {
        grid-template-columns: repeat(4, 120px);
    }

}