.musicogram-tile {
        min-width: 60px;
        height: 70px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        cursor: pointer;
        position: relative;
        padding: 4px 8px;
    }

    .musicogram-tile:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .musicogram-tile.active {
        background: rgba(255, 255, 255, 0.1); 
        border-color: var(--tile-color, #22d3ee);
        box-shadow: 0 0 15px var(--tile-color, #22d3ee);
        transform: scale(1.05);
    }

    .musicogram-tile.active .figure-icon {
        animation: tile-beat 0.2s ease-out;
    }

    @keyframes tile-beat {
        0% { transform: scale(1); }
        50% { transform: scale(1.15); }
        100% { transform: scale(1); }
    }

    .figure-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .figure-icon span:first-child {
        font-size: 1.5rem;
        line-height: 1;
    }

    .figure-icon span:last-child {
        font-size: 1.2rem;
        line-height: 1;
        color: rgba(34, 211, 238, 0.7);
    }

    .figure-name {
        font-size: 0.5rem;
        color: rgba(255, 255, 255, 0.4);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        margin-top: 2px;
        white-space: nowrap;
    }

    .measure-divider {
        width: 2px;
        height: 70px;
        background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0.2) 80%, transparent);
        margin: 0 8px;
        position: relative;
    }

    .measure-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
    }
